Abstract
Probabilistic Circuits (PCs) are a promising class of tractable generative models, yet research has primarily focused on maximizing log-likelihood on general-purpose hardware. This paper shifts the focus toward hardware efficiency, evaluating how different structure-learning strategies—LearnSPN, Einsum Networks (Einets), and Structured-decomposable PCs (SDPCs)—perform in terms of energy consumption and parallelism. By developing a hardware-cost evaluation model, we demonstrate that regular, vectorized structures like Einets offer a superior energy-to-accuracy trade-off, making them ideal for deployment on energy-constrained edge devices.
Introduction
As AI moves to the "edge" (e.g., smart sensors and medical wearables), models must perform robust reasoning under uncertainty while operating on limited battery power. Probabilistic Circuits (PCs) are attractive because they allow for exact and efficient complex queries, such as marginal probabilities. However, most PC research focuses on maximizing predictive accuracy on CPUs or GPUs, ignoring the physical constraints of dedicated silicon. Irregular, deeply nested graphs are difficult to parallelize and lead to high energy costs due to frequent memory access. This study provides a systematic hardware-centric evaluation of how different PC learning algorithms perform when implemented on specialized hardware.
Hardware-Centric Evaluation
The researchers compared four primary PC learning and compilation strategies: LearnSPN, Einsum Networks (Einets), Structured-decomposable PCs (SDPCs), and compiled Bayesian Networks (Arithmetic Circuits). To evaluate these, they developed a hardware-cost model that breaks down efficiency into three metrics:
- Energy per Inference: Calculated using relative costs for operations (e.g., a 64-bit addition costs 1 unit, while a global memory fetch costs 10).
- Parallelism: Estimated as the ratio of total nodes to the depth of the circuit ($N_{nodes}/D$).
- Hardware Reusability: The ability to use the same physical processing elements for different tasks.
As illustrated in Figure 1, the "shape" of the computational graph is critical. While standard neural networks rely on regular Multiply-Accumulate (MAC) operations, PCs often result in irregular instances computed with linear functions. This irregularity poses significant challenges for traditional parallel accelerators, necessitating a shift toward more regular PC structures.
Key Insights and Empirical Results
The study utilized 20 benchmark datasets to ensure generalizability. A primary finding was the "Memory Bottleneck": memory fetches (both local and global) dominate energy consumption, often accounting for 60-80% of the total cost. This highlights that reducing model size alone is insufficient; optimization must focus on data movement.
While LearnSPN often achieves the highest likelihood by fitting data with custom, irregular structures, this flexibility makes it difficult to parallelize. Conversely, Einets provide a highly regular, vectorized structure. Even with a fixed, hardware-friendly structure, Einets can be tuned to provide an excellent trade-off between energy and accuracy.
As shown in Figure 6, Einets consistently offer the most favorable energy-to-accuracy trade-off across various benchmarks. They maintain competitive performance even under tight energy budgets where other models become prohibitively expensive. Furthermore, Einets offer parallelism two to three orders of magnitude higher than LearnSPN or traditional Arithmetic Circuits because their operations are inherently vectorized. The authors also demonstrated that a single, fixed Einet structure could perform reasonably well across all benchmarks, a significant advantage for manufacturing universal chips.
Conclusion and Future Work
This research demonstrates that imposing structural constraints—like those in Einsum Networks—can significantly improve hardware friendliness without sacrificing much performance. Interestingly, adding constraints like structured-decomposability did not significantly hurt accuracy, suggesting that tractability and hardware efficiency are compatible goals.
Future work should involve testing these structures on actual FPGA or ASIC implementations to capture low-level physical effects. Additionally, the authors suggest developing "Hardware-Aware Learning" strategies that use hardware cost directly as a regularization term during the training process, rather than evaluating it post-hoc.
Summary updated