NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Expressive Efficiency of Sum Product Networks

James Martens, Venkatesh MedabalimiarXiv 2014

Introduction

Sum Product Networks (SPNs) represent a class of deep generative models that offer a compelling promise: exact and efficient probabilistic inference. Unlike models such as Deep Boltzmann Machines, which often require approximate methods like Gibbs sampling due to intractable partition functions, SPNs allow for the computation of marginals and partition functions in a single forward pass. This efficiency, however, is contingent upon the architecture satisfying specific structural constraints: decomposability and completeness (D&C).

While these constraints ensure validity, they raise a fundamental question regarding expressive efficiency: what is the cost of this tractability? This paper provides a rigorous theoretical analysis of D&C SPNs, establishing a strict depth hierarchy and identifying fundamental limitations in their ability to represent certain tractable distributions.

The Depth Hierarchy and the Power of Layers

A long-standing intuition in deep learning is that deeper architectures are more expressive than shallow ones. In the context of SPNs, this paper provides one of the first rigorous proofs of a strict depth hierarchy. The authors demonstrate that for any depth $d$, there exist distributions that can be efficiently represented by an SPN of depth $d+1$ but require an exponentially larger size to be represented by an SPN of depth $d$.

Specifically, the research shows that a function computable by a depth $d+1$ D&C SPN of size $O(n^2)$ requires a super-polynomial size of $n^{\Omega(\log(n)^{1/2d})}$ for a depth $d$ SPN. This confirms that adding layers significantly expands the representational capacity of the model. However, this benefit is not infinite. The authors also prove that the expressive gains from depth eventually plateau; once the depth reaches $O(\log(n)^2)$ relative to the input dimension $n$, the network can be compressed into a shallower structure without an exponential increase in size.

Circuits vs. Formulas: The Value of Reuse

Beyond depth, the paper examines the structural topology of SPNs. Many learning algorithms restrict SPNs to "formulas"—tree-like structures where each node has at most one parent. The authors prove that general SPN "circuits," which allow for node reuse (multiple parents), are strictly more efficient. A function that can be represented by a general D&C SPN circuit of size $O(n^{4/3})$ requires a super-polynomial size of $n^{\Omega(\log(n))}$ when restricted to a formula structure. This highlights the importance of graph-based architectures over tree-based ones in SPN design.

The Tractability Trade-off: A Fundamental Limit

Perhaps the most significant contribution of this work is the discovery that D&C SPNs cannot model all tractable distributions. Previously, it was speculated that SPNs might be universal for any density function with tractable marginals. The authors debunk this by constructing a specific counterexample: the uniform distribution over spanning trees of a complete graph.

While the marginals of this distribution are highly tractable (computable in $O(n^{1.19})$ time), the authors prove that any D&C SPN attempting to approximate it must be exponentially large—specifically, at least $2^{m/30240}$ where $m$ is the number of vertices. This proves that the D&C constraints, while necessary for fast inference, impose a fundamental limit on the types of dependencies the model can capture efficiently.

Theoretical Framework and Necessity of D&C

The proofs in this paper rely on a mapping between D&C SPNs and monotone syntactically set-multilinear arithmetic circuits. By translating probabilistic models into the language of circuit complexity, the authors utilized communication matrices to establish lower bounds on network size.

Furthermore, the paper addresses the necessity of the D&C conditions themselves. The authors introduce the concept of "strong validity"—where the model remains valid regardless of the specific univariate functions chosen at the leaves—and prove that decomposability and completeness are not just sufficient but necessary conditions for this property.

Conclusion

This research clarifies the theoretical landscape of Sum Product Networks. It confirms the value of depth and circuit-based architectures while exposing a critical "tractability trade-off." While SPNs remain a powerful tool for efficient inference, they are not a universal solution for all tractable distributions. Future work may focus on extending SPNs to bridge this gap or identifying whether the specific distributions SPNs struggle with are relevant to real-world applications.

Summary updated

BibTeX
@misc{martens2014expressive,
  author = {James Martens and Venkatesh Medabalimi},
  title = {{On the Expressive Efficiency of Sum Product Networks}},
  year = {2014},
  eprint = {1411.7717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.7717},
}
Figure