On the Hardness of Approximating Distributions with Tractable Probabilistic Models

John Leland, YooJung Choi

TL;DR

This paper shatters the hope that allowing a small approximation error can bypass the exponential complexity of Tractable Probabilistic Models (TPMs). The authors prove that approximating arbitrary distributions within a bounded error is $\mathsf{NP}$-hard for any model supporting tractable marginals. Furthermore, they demonstrate an unconditional exponential size gap between standard decomposable probabilistic circuits and deterministic ones, proving that the "determinism tax" persists even in the approximate setting.

What Problem Does This Paper Address?

In probabilistic machine learning, there is a fundamental tug-of-war between expressivity (the ability to capture complex data distributions) and tractability (the ability to efficiently compute queries like marginals or conditionals). Standard deep generative models like VAEs or diffusion models are highly expressive but make exact inference mathematically intractable.

Tractable Probabilistic Models (TPMs), particularly Probabilistic Circuits (PCs), solve this by enforcing structural constraints on a network of sum and product nodes to guarantee linear-time inference. For example, a PC can compute marginal probabilities efficiently if it is smooth and decomposable, and it can compute Maximum-a-Posteriori (MAP) queries if it is also deterministic.

Figure 1: A smooth, decomposable, and deterministic PC (weights shown only for the root for conciseness).

However, these structural constraints come at a steep cost: exactly representing certain distributions requires the circuit size to explode exponentially. This paper addresses a natural, lingering question in the field: Can we avoid this exponential size blow-up if we settle for a close approximation instead of an exact representation?

Methods

The authors tackle this question using structural complexity theory and rigorous mathematical proofs:

  1. Hardness Reductions: To evaluate the hardness of approximation, the authors construct a reduction from the Boolean Satisfiability ($\mathsf{SAT}$) problem. They show that if a model can efficiently find a close approximation (measured via $f$-divergence or Total Variation Distance) to a normalized distribution, it could be used to solve $\mathsf{SAT}$ in polynomial time.
  2. Communication Complexity & The Sauerhoff Function: To study the size gap between circuit classes, the authors leverage the Sauerhoff function—a specific Boolean function known to have an exponential separation between decomposable and deterministic logical circuits. They develop a novel edge-pruning algorithm to show that a compact, deterministic PC approximating a distribution over this function would imply a compact logical circuit, leading to a contradiction.
  3. Divergence Analysis: The authors analyze how bounding global distance measures (like Kullback-Leibler divergence or Total Variation Distance) impacts the accuracy of local queries (marginals, conditionals, and MAP).

Datasets

None. This is a purely theoretical paper and does not utilize empirical datasets or experimental evaluations.

Key Insights and Ideas

  • Approximation is Not a Silver Bullet: Allowing a small, non-vanishing approximation error does not alleviate the fundamental hardness of representation. If a model class guarantees efficient marginal computations, learning a close approximation to an arbitrary distribution remains $\mathsf{NP}$-hard.
  • The Persistence of the Determinism Tax: Determinism is a strict property where the sub-trees under a sum node have mutually disjoint supports. The paper proves that the exponential size penalty required to enforce determinism cannot be bypassed by accepting a small approximation error.
  • The Asymmetry of Inference Guarantees: Bounding the global distance (like Total Variation Distance) between a true distribution and an approximate model provides excellent absolute error bounds for marginal and MAP queries. However, it completely fails for conditional queries; the error for conditional marginals and conditional MAP can still grow arbitrarily large.

Key Results

  • $\mathsf{NP}$-Hardness of $f$-Divergence Approximation: Theorem 3.4 establishes that for any $k$-convex $f$-divergence and an error bound $\epsilon < 1/4$, finding an approximation using a model with tractable marginals is $\mathsf{NP}$-hard.
  • Unconditional Exponential Separation: Theorem 4.1 proves that a deterministic and decomposable PC requires an exponential size of $2^{\Omega(n)}$ to approximate a distribution that a standard decomposable PC can represent exactly in just $O(n^2)$ size.
  • Query Bounds: The paper mathematically characterizes that while $D_f(P\|Q) < k\epsilon^2$ guarantees $|P(\mathbf{y}) - Q(\mathbf{y})| < \epsilon$ for marginals and MAP, it provides no such guarantee for conditionals (Theorem 5.5).

Limitations and Future Work

The primary limitation of this work is its focus on relatively tight approximation bounds ($\epsilon < 1/4$). The authors note that it remains an open question whether these exponential size gaps and hardness bounds persist under much weaker approximation constraints (e.g., when the Total Variation Distance is allowed to approach 1).

Additionally, while this paper establishes limits for circuits optimized for marginal and MAP queries, the approximate representation power of other prominent tractable frameworks (such as determinantal point processes or positive unital circuits) remains an open area for future exploration.

Summary updated

Abstract

A fundamental challenge in probabilistic modeling is to balance expressivity and inference efficiency. Tractable probabilistic models (TPMs) aim to directly address this tradeoff by imposing constraints that guarantee efficient inference of certain queries while maintaining expressivity. In particular, probabilistic circuits (PCs) provide a unifying framework for many TPMs, by characterizing families of models as circuits satisfying different structural properties. Because the complexity of inference on PCs is a function of the circuit size, understanding the size requirements of different families of PCs is fundamental in mapping the trade-off between tractability and expressive efficiency. However, the study of expressive efficiency of circuits are often concerned with exact representations, which may not align with model learning, where we look to approximate the underlying data distribution closely by some distance measure. Moreover, due to hardness of inference tasks, exactly representing distributions while supporting tractable inference often incurs exponential size blow-ups. In this paper, we consider a natural, yet so far underexplored, question: can we avoid such size blow-up by allowing for some small approximation error? We study approximating distributions with probabilistic circuits with guarantees based on $f$-divergences, and analyze which inference queries remain well-approximated under this framework. We show that approximating an arbitrary distribution with bounded $f$-divergence is $\mathsf{NP}$-hard for any model that can tractably compute marginals. In addition, we prove an exponential size gap for approximation between the class of decomposable PCs and that of decomposable and deterministic PCs.
BibTeX
@inproceedings{leland2025hardness,
  author = {John Leland and YooJung Choi},
  title = {{On the Hardness of Approximating Distributions with Tractable Probabilistic Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=0GvEaa9prl},
}
Figure