Pith. sign in

REVIEW 3 major objections 4 minor 25 references

Hardware-efficient tractable probabilistic inference for TinyML Neurosymbolic AI applications

T0 review · 3 major / 4 minor · reviewed 2026-08-06 · deepseek-v4-flash

Pith's one-line read Replacing every weight of a deterministic probabilistic circuit with its nth root lets symbolic and neurosymbolic models run on TinyML hardware at float16 or float32 precision, with the original probability recovered exactly by raising…

desk verdict Hardware results are real and useful, but the 'exact recovery' claim in §III-C only holds for complete evidence; for marginal queries it is false. read the letter →

arxiv 2507.05141 v1 pith:QS7BLONU submitted 2025-07-07 cs.LG cs.PF

classification cs.LGcs.PF
keywords probabilisticcircuitsdeterministicPCsnth-rootcompressionTinyMLneurosymbolicAIlow-precisioninferenceFPGAembeddedsystems
verification ladder T0 review T1 audit T2 compute T3 formal

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The reading

This paper argues that the main obstacle to running symbolic models on TinyML hardware, their need for 64-bit precision to avoid underflow, can be removed by a parameter transform that exploits the structure of deterministic probabilistic circuits (PCs). Replacing every weight $\theta$ with $\theta^{1/n}$ compresses the circuit's dynamic range so that float16 or float32 arithmetic suffices, and because determinism guarantees a single active computational path, the original probability is recovered exactly by computing $(F')^n$. The authors present a three-step workflow, select a hardware-friendly deterministic PC, compress it with this $n$-th-root transformation, and deploy it, and report resource reductions on FPGA of up to 82.3% in flip-flops, 52.6% in LUTs, and 18.0% in Flash, plus an average 4.67x inference speedup on the ESP32. If correct, this makes neurosymbolic AI, with its uncertainty quantification and rule-based reasoning, practical on embedded devices without custom number formats.

What carries the argument

The load-bearing object is the $n$-th-root transformation applied to every weight of a deterministic PC: each parameter $\theta$ is replaced by $\theta^{1/n}$, with $n$ chosen so that $P_{\min}^{1/n} \ge \epsilon_{\mathrm{uf}}$, where $P_{\min}$ is the circuit's smallest possible non-zero output and $\epsilon_{\mathrm{uf}}$ is the hardware's underflow threshold. The identity that makes it work is that along the single active path of a deterministic circuit the operations are multiplications, so $(a\cdot b)^{1/n} = a^{1/n}\cdot b^{1/n}$; hence the rooted circuit computes the $n$-th root of the true output and the true output is recovered as $(F')^n$. The paper pairs this with the exponential scaling law $F(c\theta) = c^n F(\theta)$ to reason about when pre-scaling or dynamic rescaling is needed.

What would settle it

Take a deterministic PC whose output on partial evidence is a sum of two monomials $a$ and $b$. After replacing weights by their square roots, the circuit outputs $\sqrt{a}+\sqrt{b}$, and squaring the result gives $(\sqrt{a}+\sqrt{b})^2$, which is not $a+b$; for instance with $a=0.01$ and $b=0.04$ the recovered value is $0.09$ instead of $0.05$. Evaluating this on a concrete circuit with one variable left unobserved would settle whether exact recovery holds for partial evidence.

Watch

Extended reading notes

Core claim

The paper's central claim is that underflow, which forces probabilistic circuits to be evaluated in 64-bit precision on embedded hardware, can be bypassed without approximation by replacing every weight $\theta$ with its $n$-th root $\theta^{1/n}$ and then raising the circuit output to the $n$-th power after inference. The justification is that determinism guarantees a single active computational path for any evidence, so the output is one product of weights, and $\prod_i \theta_i^{1/n} = (\prod_i \theta_i)^{1/n}$; therefore $(F')^n$ recovers the original probability exactly. The index $n$ is chosen minimally so that the smallest possible non-zero output stays above the hardware's underflow threshold, which the authors use to switch from float64 to float16 on FPGA and to native float32 on the ESP32. The paper also proves a companion scaling law, that uniformly multiplying every weight by $c$ multiplies the circuit polynomial by $c^n$, which it uses to analyze pre-scaling and dynamic rescaling.

Load-bearing premise

The method's exactness rests on the premise that evaluating a deterministic probabilistic circuit on any query follows exactly one path of multiplications, so that replacing each weight by its $n$-th root can be undone by raising the final output to the $n$-th power.

Editorial extensions

If this is right

  • Probabilistic circuits used as reasoning modules in neurosymbolic systems can run on commodity microcontrollers in native float32, removing the need for custom number formats such as Posit or logarithmic number systems.
  • On FPGAs, PC inference can use float16 instead of float64, reducing flip-flop usage by up to 82.3% and LUT usage by up to 52.6%, so larger or multiple symbolic models fit on the same fabric.
  • The recovery step $(F')^n$ is exact on the paper's account, so the deployment preserves the formal guarantees of tractable probabilistic inference rather than trading exactness for speed.
  • The method combines with a separate neural network, as shown in the Colep experiment on CIFAR-10, where the root-compressed PC accounts for about 3 ms of a 624 ms hybrid inference.
  • The same precision reduction gives an average 4.67x inference speedup on the ESP32, because the microcontroller executes float32 natively instead of emulating double precision.

Reading between the lines

Editorial extensions of the paper, not claims the author makes directly.

  • A boundary the paper leaves implicit: the exact-recovery argument as written applies to complete evidence, where the output is a single product; for partial evidence the output is a sum of monomials and $(\sum_i a_i^{1/n})^n \neq \sum_i a_i$, so a marginal-inference extension would need per-path bookkeeping or a modified aggregation rule.
  • An implication of the experimental setup: the reported ESP32 speedup is mostly the precision change from emulated float64 to native float32; the root transform's specific contribution is to make that precision change safe, so on hardware with fast native float64 the speedup would shrink even though the FPGA resource savings would remain.
  • A natural transfer: the same root-distributes-over-multiplication property should carry over to other deterministic arithmetic-circuit families used in neurosymbolic reasoning, and could be combined with per-node dynamic rescaling to handle partial evidence without sacrificing exactness.
Share X Bluesky LinkedIn Reddit HN

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, and a circularity audit.

Referee Report

3 major / 4 minor

Summary. The paper proposes a complete pipeline for running Bayesian-network-derived deterministic probabilistic circuits (det-PCs) on TinyML hardware: train the PC, compress it by replacing every weight with its nth root, and deploy it using float16 on FPGA or float32 on ESP32. The theoretical claim is that determinism guarantees a single active computational path for any evidence, so the output of the transformed circuit can be raised to the nth power to recover the original inference result exactly. The hardware measurements report resource reductions up to 82.3% in flip-flops and 52.6% in LUTs on FPGA, and speedups up to 4.98x on ESP32.

Significance. The problem is timely and the deployment study is relevant: the paper demonstrates concrete resource savings for symbolic models on embedded platforms, and the homogeneity observation in Eq. (5) is correct for complete instantiations of BN-compiled circuits. However, the two central claims—exact recovery for arbitrary evidence and underflow prevention via nth-root scaling—are not established by the analysis. Since the resource and speedup results are not accompanied by any accuracy or likelihood-error measurements, the practical significance of the proposed compression is currently unquantified.

major comments (3)
  1. [Section III-C] The exact-recovery claim is false for marginal queries, which are a central use case for probabilistic circuits. The paper's own Eq. (5) writes F({θ}) as a sum over complete instantiations. For partial evidence e, the circuit evaluates F(e) = Σ_j P_j(e), a sum over several compatible instantiations. After replacing each weight θ by θ^(1/n), the transformed circuit computes F'(e) = Σ_j P_j(e)^(1/n). Raising to n gives (F'(e))^n = (Σ_j P_j(e)^(1/n))^n = Σ_j P_j(e) + cross terms, so exact recovery fails whenever more than one path contributes. Determinism prevents multiple non-zero children of a sum node only for complete assignments; under partial evidence, smooth sum nodes aggregate several active paths. The statement that determinism 'guarantees a single active computational path for any evidence' is therefore incorrect and contradicts Eq. (5).
  2. [Section III-C and Table I] The nth-root transformation does not, as claimed, prevent intermediate underflow. The rule (Pmin)^(1/n) ≥ ε_uf only guarantees that the final monomial value is above the underflow threshold. For a monomial with n factors, a partial product of k<n root-scaled factors can be as small as Pmin^(k/n). With the DNA numbers in Table I (Pmin = 4.6e-271, n = 65 for float16), (Pmin)^(1/65) ≈ 6.9e-5, and the product of two such factors is ≈ 4.8e-9, which is below the float16 minimum subnormal of 5.96e-8, so the intermediate product underflows to zero. Thus the proposed scaling can still produce zero internal values during evaluation, unless the multiplication order or arithmetic format is specifically engineered to prevent this; the paper provides no such analysis and no numerical validation showing that transformed and original outputs agree.
  3. [Section IV] The hardware experiments report only resource usage, flash usage, and inference time; they do not report any accuracy, likelihood, or output-value comparison between the original and the nth-root-transformed circuit. Table I gives no correctness metric. Given the exact-recovery failure for marginal queries and the intermediate-underflow issue, the claimed 'minimal accuracy degradation' is unsupported. The measured speedups and resource savings are only meaningful if the transformed circuit actually computes the intended query, which is not demonstrated.
minor comments (4)
  1. [Table I] The root index for the DNA PC on ESP32 (n = 9) does not appear to be minimal under the stated rule: with Pmin = 4.6e-271 and ε_uf = 1.18e-38, (Pmin)^(1/8) ≈ 5.1e-34 already exceeds the threshold, so n = 8 would suffice. Please reconcile this value or explain any additional safety margin.
  2. [Sections II and III] The notation n is used both for the number of variables in the Bayesian network and for the root index in the nth-root transformation, which can confuse the reader. Consider using m or r for the root degree.
  3. [Section III-B] The proof of exponential scaling explicitly assumes that each complete-instantiation term contains exactly n CPT parameters. This assumption is valid for BN-compiled polynomials, but the paper later refers to 'deterministic PCs' in general. The scope of the proof should be stated more precisely.
  4. [Abstract and Section IV] The abstract claims 'minimal accuracy degradation', but no accuracy metric appears in the experimental section. The claim should either be backed by measurements or removed.

Circularity Check

0 steps flagged · score 0.0 of 10

No circularity: the nth-root scaling argument is a mathematical manipulation of the PC's polynomial, and the reported hardware savings are measured against external baselines.

full rationale

The central derivation is self-contained. Equation (5) proves F(cθ)=c^n F(θ) by factoring c^n out of the sum over complete instantiations, which is a homogeneity property of the network polynomial, not a restatement of the desired result. The nth-root transformation then replaces each parameter by its nth root and, for a single-term output, recovers F(x) as (F'(x))^n; the choice of n from Pmin and ε_uf is given by an explicit formula, not fitted to measured resource savings. FPGA and ESP32 results compare against external float64 baselines, so the hardware claims are not constructed from the method's assumptions. The only self-citation, reference [16], appears as one example of embedded Bayesian-network inference and carries no load-bearing weight. The main weakness—exact recovery is claimed for 'any evidence,' but the single-active-path premise fails for partial evidence, where F is a sum over multiple compatible instantiations and (Σ P_j^{1/n})^n does not equal Σ P_j—is a correctness and assumption gap in the partial-evidence regime, not circularity. The paper's own Eq. (5) already models F as a sum over terms, so the root transform is an independent, though overgeneralized, mathematical claim.

Assumptions & free parameters 2 free parameters · 3 assumptions · 0 invented entities

The central derivation rests on the polynomial homogeneity of deterministic PCs and on the assumption that queries have a single active term. The root index is chosen from a model statistic and hardware threshold, so it is not a learned free parameter, but the single-term assumption is the key unstated premise and is false for partial evidence.

free parameters (2)
  • root index n (FPGA, float16 target) = 13 (BNetFlix), 65 (DNA), 14 (Cifar10 PC)
    Chosen as the minimal integer such that Pmin^(1/n) is at least the float16 underflow threshold. It is a design parameter, not fitted to measured outcomes, but it controls the compression.
  • root index n (ESP32, float32 target) = 2 (BNetFlix), 9 (DNA), 2 (Cifar10 PC)
    Chosen as the minimal integer such that Pmin^(1/n) is at least the float32 underflow threshold. It is a design parameter, not fitted to measured outcomes.
assumptions (3)
  • domain assumption Each full instantiation term in the compiled PC is a single product whose parameters all receive the same root exponent.
    Used to assert that rooting all weights turns F into F^(1/n) and that powering restores F. This holds for complete assignments but not for sums over partial evidence. Appears in Section III-B proof and Section III-C.
  • domain assumption Determinism gives a single active path for any evidence.
    Invoked in Section III-C to justify exact recovery. It is true for complete inputs but false for partial evidence, since multiple full instantiations remain active.
  • domain assumption The baseline double-precision implementation would underflow without the transformation.
    Assumed in Section IV and used to motivate the float64 baseline. No direct measurement of underflow is reported for the deployed tasks beyond the earlier statement of roughly 28 restarts during dynamic rescaling.

how reviews work

0 comments
Cite this review

Pith. "Pith review of Hardware-efficient tractable probabilistic inference for TinyML Neurosymbolic AI applications." pith.science (2026). https://pith.science/paper/QS7BLONU

@misc{pith2026250705141,
  author       = {Pith},
  title        = {Pith review of: Hardware-efficient tractable probabilistic inference for TinyML Neurosymbolic AI applications},
  year         = {2026},
  howpublished = {\url{https://pith.science/paper/QS7BLONU}},
  note         = {Machine review of arXiv:2507.05141}
}
abstract

Neurosymbolic AI (NSAI) has recently emerged to mitigate limitations associated with deep learning (DL) models, e.g. quantifying their uncertainty or reason with explicit rules. Hence, TinyML hardware will need to support these symbolic models to bring NSAI to embedded scenarios. Yet, although symbolic models are typically compact, their sparsity and computation resolution contrasts with low-resolution and dense neuro models, which is a challenge on resource-constrained TinyML hardware severely limiting the size of symbolic models that can be computed. In this work, we remove this bottleneck leveraging a tight hardware/software integration to present a complete framework to compute NSAI with TinyML hardware. We focus on symbolic models realized with tractable probabilistic circuits (PCs), a popular subclass of probabilistic models for hardware integration. This framework: (1) trains a specific class of hardware-efficient \emph{deterministic} PCs, chosen for the symbolic task; (2) \emph{compresses} this PC until it can be computed on TinyML hardware with minimal accuracy degradation, using our $n^{th}$-root compression technique, and (3) \emph{deploys} the complete NSAI model on TinyML hardware. Compared to a 64b precision baseline necessary for the PC without compression, our workflow leads to significant hardware reduction on FPGA (up to 82.3\% in FF, 52.6\% in LUTs, and 18.0\% in Flash usage) and an average inference speedup of 4.67x on ESP32 microcontroller.

Figures

Figures reproduced from arXiv: 2507.05141 by the authors.

Figure 1
Figure 1. Overview of the proposed framework successful integration into TinyML [8], symbolic reasoning remains challenging. This is mostly due to the model nature of symbolic tasks: a much higher computation resolution (64- bit floating-point or higher for some PMs) compared to DNNs; and a typically sparse structure (e.g. tree-shaped), dominated by element-wise operations, instead of dense vector-matrix multiplications for D… view at source ↗
Figure 2
Figure 2. (a) A Bayesian network encoding a distribution with three variables [PITH_FULL_IMAGE:figures/full_fig_p002_2.png] view at source ↗
Figure 3
Figure 3. NeSy deployment workflow The numerical optimisations achieved via the n th-root trans￾formation, along with the resulting FPGA resource utilization and ESP32 performance, are summarized in Table I. The values of n chosen for each model and platform reflect the different Pmin values and the target precision’s underflow threshold (ϵuf ). A. Results on PC-only benchmarks Experiments use the DNA (180 variables) and BNet… view at source ↗

Discussion (0). Continue with ORCID to comment.

Reference graph

Works this paper leans on

25 extracted references · 24 canonical work pages

  1. [1]

    On calibration of modern neural networks,

    C. Guo, G. Pleiss, Y . Sun, and K. Q. Weinberger, “On calibration of modern neural networks,” in International Conference on Machine Learning. PMLR, 2017, pp. 1321–1330

  2. [2]

    Simple and scalable predictive uncertainty estimation using deep ensembles,

    B. Lakshminarayanan, A. Pritzel, and C. Blundell, “Simple and scalable predictive uncertainty estimation using deep ensembles,” in Advances in Neural Information Processing Systems , 2017

  3. [3]

    Neurosymbolic ai: The 3 rd wave,

    A. d. Garcez and L. C. Lamb, “Neurosymbolic ai: The 3 rd wave,” Artificial Intelligence Review, vol. 56, no. 11, pp. 12 387–12 406, 2023

  4. [4]

    On the robustness and reliability of late multi-modal fusion using probabilistic circuits,

    S. Sidheekh, P. Tenali, S. Mathur, E. Blasch, and S. Natarajan, “On the robustness and reliability of late multi-modal fusion using probabilistic circuits,” in International Conference on Information Fusion (FUSION) . IEEE, 2024, pp. 1–8

  5. [5]

    A Scalable Approach to Probabilistic Neuro-Symbolic Robustness Verification

    V . Manginas, N. Manginas, E. Stevinson, S. Varghese, N. Katzouris, G. Paliouras, and A. Lomuscio, “A scalable approach to probabilistic neuro-symbolic verification,” arXiv preprint arXiv:2502.03274 , 2025

  6. [6]

    Einsum net- works: Fast and scalable learning of tractable probabilistic circuits,

    R. Peharz, S. Lang, A. Vergari, K. Stelzner, A. Molina, M. Trapp, G. Van den Broeck, K. Kersting, and Z. Ghahramani, “Einsum net- works: Fast and scalable learning of tractable probabilistic circuits,” in International Conference on Machine Learning . PMLR, 2020, pp. 7563–7574

  7. [7]

    COLEP: Certifiably Robust Learning-Reasoning Conformal Prediction via Probabilistic Circuits

    M. Kang, N. M. G ¨urel, L. Li, and B. Li, “Colep: Certifiably robust learning-reasoning conformal prediction via probabilistic circuits,” arXiv preprint arXiv:2403.11348, 2024

  8. [8]

    Mlperf tiny bench- mark,

    C. Banbury, V . J. Reddi, P. Torelli, J. Holleman, N. Jeffries, C. Kiraly, P. Montino, D. Kanter, S. Ahmed, D. Pau et al. , “Mlperf tiny bench- mark,” arXiv preprint arXiv:2106.07597 , 2021

Show all 25 references
  1. [9]

    Darwiche, Modeling and reasoning with Bayesian networks

    A. Darwiche, Modeling and reasoning with Bayesian networks . Cam- bridge University Press, 2009

  2. [10]

    Probabilistic circuits: A unifying framework for tractable probabilistic models,

    Y . Choi, A. Vergari, and G. Van den Broeck, “Probabilistic circuits: A unifying framework for tractable probabilistic models,” UCLA. URL: http://starai. cs. ucla. edu/papers/ProbCirc20. pdf , p. 6, 2020

  3. [11]

    On relaxing determinism in arithmetic circuits,

    A. Choi and A. Darwiche, “On relaxing determinism in arithmetic circuits,” in International Conference on Machine Learning . PMLR, 2017, pp. 825–833

  4. [12]

    Problp: A framework for low-precision probabilistic inference,

    N. Shah, L. I. G. Olascoaga, W. Meert, and M. Verhelst, “Problp: A framework for low-precision probabilistic inference,” in Design Automa- tion Conference (DAC), 2019, pp. 1–6

  5. [13]

    FPGA implementation of bayesian network inference for an embedded diag- nosis,

    S. Zermani, C. Dezan, H. Chenini, J. P. Diguet, and R. Euler, “FPGA implementation of bayesian network inference for an embedded diag- nosis,” in Conference on Prognostics and Health Management (PHM) . IEEE, 2015, pp. 1–10

  6. [14]

    Towards real-time, on-board, hardware-supported sen- sor and software health management for unmanned aerial systems,

    J. Schumann, K. Y . Rozier, T. Reinbacher, O. J. Mengshoel, T. Mbaya, and C. Ippolito, “Towards real-time, on-board, hardware-supported sen- sor and software health management for unmanned aerial systems,” International Journal of Prognostics and Health Management , vol. 6, no...

  7. [15]

    Comparison of arithmetic number formats for inference in sum-product networks on fpgas,

    L. Sommer, L. Weber, M. Kumm, and A. Koch, “Comparison of arithmetic number formats for inference in sum-product networks on fpgas,” in International Symposium on Field-Programmable Custom Computing Machines (FCCM) . IEEE, 2020, pp. 75–83

  8. [16]

    On the use of bayesian networks for resource-efficient self-calibration of analog/rf ics,

    M. Andraud, L. Galindez, Y . Lu, Y . Makris, and M. Verhelst, “On the use of bayesian networks for resource-efficient self-calibration of analog/rf ics,” in International Test Conference (ITC) . IEEE, 2018, pp. 1–10

  9. [17]

    Klay: Accelerating arithmetic circuits for neurosymbolic ai,

    J. Maene, V . Derkinderen, and P. Z. Dos Martires, “Klay: Accelerating arithmetic circuits for neurosymbolic ai,” in International Conference on Learning Representations (ICLR) , 2025

  10. [18]

    Local computations with prob- abilities on graphical structures and their application to expert systems,

    S. L. Lauritzen and D. J. Spiegelhalter, “Local computations with prob- abilities on graphical structures and their application to expert systems,” Journal of the Royal Statistical Society: Series B (Methodological) , vol. 50, no. 2, pp. 157–194, 1988

  11. [19]

    Compiling bayesian networks using vari- able elimination,

    M. Chavira and A. Darwiche, “Compiling bayesian networks using vari- able elimination,” in Conference on Uncertainty in Artificial Intelligence (UAI). Morgan Kaufmann Publishers Inc., 2000, pp. 87–94

  12. [20]

    Compiling relational bayesian networks for exact inference,

    M. Chavira, A. Darwiche, and M. Jaeger, “Compiling relational bayesian networks for exact inference,” International Journal of Approximate Reasoning, vol. 42, no. 1-2, pp. 4–20, 2006

  13. [21]

    A differential approach to probabilistic inference,

    A. Darwiche, “A differential approach to probabilistic inference,” Jour- nal of the ACM (JACM) , vol. 50, no. 3, pp. 280–305, 2003

  14. [22]

    Dpu: Dag processing unit for irregular graphs with precision-scalable posit arithmetic in 28 nm,

    N. Shah, L. I. G. Olascoaga, S. Zhao, W. Meert, and M. Verhelst, “Dpu: Dag processing unit for irregular graphs with precision-scalable posit arithmetic in 28 nm,” IEEE Journal of Solid-State Circuits , vol. 57, no. 8, pp. 2586–2596, 2021

  15. [23]

    [Online]

    AMD, AMD Vitis High-Level Synthesis (HLS) Tool , 2024, accessed: 2024-03-31. [Online]. Available: https://www.amd.com/en/products/ software/adaptive-socs-and-fpgas/vitis/vitis-hls.html

  16. [24]

    Systems, ESP32 Series Datasheet , January 2023, https://www

    E. Systems, ESP32 Series Datasheet , January 2023, https://www. espressif.com/sites/default/files/documentation/esp32 datasheet en.pdf

  17. [25]

    Automatic mapping of the sum-product network inference problem to fpga-based accelerators,

    L. Sommer, J. Oppermann, A. Molina, C. Binnig, K. Kersting, and A. Koch, “Automatic mapping of the sum-product network inference problem to fpga-based accelerators,” in International Conference on Computer Design (ICCD) . IEEE, 2018, pp. 350–357

Pith tools

Reviewed August 6, 2026 · model on record in the stance chip above.