A Compositional Theory of Curvature in Probabilistic Circuits

Hrithik Suresh, Sahil Sidheekh, Shelar Parth Vijay, Yasir Z, Sriraam Natarajan, Narayanan Chatapuram KrishnanarXiv 2026

TL;DR

While smoothing out the loss landscape generally helps machine learning models generalize better, applying a blanket sharpness penalty to Probabilistic Circuits (PCs) can backfire and cause severe underfitting. This paper proves that a node's contribution to global curvature factorizes exactly into its structural usage (circuit flow) and its intrinsic local sharpness. By leveraging this insight, the authors introduce an adaptive, local-curvature-gated regularizer that targets truly sharp regions without destroying the model's capacity.

What Problem Does This Paper Address?

Probabilistic Circuits (PCs) are a class of generative models prized for their ability to perform exact, tractable probabilistic inference in linear time. Unlike deep neural networks, where calculating the exact curvature (the Hessian matrix) of the loss landscape is computationally impossible, PCs possess a unique structural advantage: their Hessian trace can be computed exactly in a single forward-backward pass.

Recent work exploited this to introduce a global trace regularizer, which penalizes sharpness uniformly across the circuit to guide the model toward flatter, better-generalizing optima. However, the authors noticed a troubling paradox: in data-rich regimes, this global regularization actually causes the model to underfit, degrading both training and test performance. Furthermore, global sharpness is highly concentrated in just a few nodes. Curiously, regularizing only these dominant nodes makes the underfitting even worse.

This paper sets out to resolve this puzzle by asking a fundamental question: What does global curvature actually represent inside a compositional model like a Probabilistic Circuit?

Methods

The authors solve this mystery by proving the Exact Global-Local Decomposition Theorem. They demonstrate that any sum node $n$'s contribution to the global Hessian trace ($T_n$) factorizes exactly into two distinct components:

$$T_n(x) = F_n(x)^2 \cdot t_n(x)$$

  1. Contextual Usage ($F_n(x)^2$): The squared circuit flow, which measures how heavily the network relies on this specific node to explain the input data.
  2. Local Curvature ($t_n(x)$): The intrinsic sharpness of the node's own local mixture distribution, completely independent of its position in the circuit.

This decomposition reveals that uniform global regularization is fundamentally flawed: it accidentally penalizes nodes simply because they are highly utilized (high flow), rather than because they are intrinsically sharp.

To fix this, the authors propose Adaptive Sharpness-Aware Learning (Local-Curvature Gating). Instead of applying a uniform penalty strength $\mu$ to all nodes, they gate the regularizer using a node-specific weight $\omega_n$ based purely on the empirical local trace:

$$\omega_n = \frac{\hat{t}_n}{\max_{m \in S} \hat{t}_m}$$

Crucially, they derive a closed-form Expectation-Maximization (EM) update rule for this gated objective, ensuring that the targeted regularization retains the exact same linear-time complexity as standard training.

Datasets

The method was rigorously evaluated on:

  • 2D Synthetic Data: A mixture of three isotropic Gaussians surrounded by a ring of noise, used to visually map optimization trajectories.
  • DEBD Benchmarks: The standard suite of 20 binary density estimation datasets (ranging from smaller domains like nltcs with 16 variables to large ones like ad with 1,556 variables). All experiments utilized Hidden Chow-Liu Tree (HCLT) architectures.

Key Insights and Ideas

  • The Depth Bias of Flow: Because flow is partitioned and attenuated as it travels down through sum nodes, structurally shallow nodes naturally accumulate massive flow. As a result, global trace regularization suffers from a severe depth bias, disproportionately flattening shallow nodes regardless of their actual geometric sharpness.
  • Ranking Reversals: Ranking nodes by their global contribution vs. their local intrinsic curvature yields entirely different results. A node near the root might dominate the global trace despite being locally flat, while a highly sharp deep node might contribute nothing globally due to low flow.
  • Targeted Flatness: As visualized in the synthetic experiments, uniform global regularization flattens the landscape indiscriminately and misses the optimal parameter space. Gating the penalty by local curvature allows the model to selectively smooth out non-generalizing sharpness while preserving the capacity of high-flow pathways (see Figure 1).
Figure 1: Global Flatness Can Underfit: Local Curvature Determines Where to Regularize. Training trajectories of a PC on a 2D data distribution, from a shared initialization (star), shown over the (a) train NLL, (b) test NLL, and (c) sharpness surface. The unregularized model reaches a sharp optimum that generalizes poorly. The global trace regular- izer’s uniform penalty helps achieve flattest region, but at the expense of under-fitting (poor train and test NLL), whereas our adaptive penalty targets nodes of high local curvature tn and generalizes best, while also reducing sharpness. Both approaches use the same regularization strength µ.

Key Results

  • Mitigating Underfitting: On the 20 DEBD datasets using full training data, standard global trace regularization underperformed compared to the unregularized baseline in 18 out of 20 cases due to underfitting. The proposed local-curvature-gated regularizer successfully recovered this lost capacity, matching or outperforming the baseline on the majority of datasets.
  • Sparsity Clarified: The authors confirmed that while global trace contribution is incredibly sparse (less than 10% of nodes account for 99.99% of the trace), the intrinsic local trace is distributed much more broadly (see Figure 3). This proves that the apparent sparsity of global curvature is an artifact of structural flow, not local geometry.
Figure 3: Only a small fraction of sum nodes accounts for most of the global Hessian trace. Cumulative share of the total trace as sum nodes are ranked by their empirical contribution ( bTn). Across datasets, the distribution is highly concentrated: a small set of nodes dominates the global sharp- ness signal, while most nodes contribute negligibly.

Limitations and Future Work

While this work provides a elegant framework, the authors note a few limitations and avenues for future exploration:

  • Simple Gating Functions: The current implementation uses a straightforward linear scaling relative to the maximum local trace as a proof of concept. Developing richer, non-linear gating functions that jointly optimize for both local geometry and contextual flow remains an open challenge.
  • Broader Structural Applications: Beyond regularization, this global-local decomposition opens up exciting new paradigms for curvature-aware model compression (e.g., pruning nodes that exhibit both low flow and low curvature) and adaptive circuit architecture design.

Summary updated

BibTeX
@misc{suresh2026compositional,
  author = {Hrithik Suresh and Sahil Sidheekh and Shelar Parth Vijay and Yasir Z and Sriraam Natarajan and Narayanan Chatapuram Krishnan},
  title = {{A Compositional Theory of Curvature in Probabilistic Circuits}},
  year = {2026},
  eprint = {2608.12869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.12869},
}
Figure