Skip to main content
QUICK REVIEW

[Paper Review] The Sum-Product Theorem: A Foundation for Learning Tractable Models

Abram L. Friesen, Pedro Domingos|arXiv (Cornell University)|Nov 11, 2016
Bayesian Modeling and Causal InferenceComputer Science42 references8 citations
TL;DR

This paper introduces the Sum-Product Theorem, a unifying principle that guarantees tractable inference in any semiring by requiring factors in every product to have disjoint scopes. It enables learning of expressive, high-treewidth models—such as nonconvex functions optimized in polynomial time—by enforcing this condition during training, significantly outperforming standard learning methods that ignore optimization cost.

ABSTRACT

Inference in expressive probabilistic models is generally intractable, which makes them difficult to learn and limits their applicability. Sum-product networks are a class of deep models where, surprisingly, inference remains tractable even when an arbitrary number of hidden layers are present. In this paper, we generalize this result to a much broader set of learning problems: all those where inference consists of summing a function over a semiring. This includes satisfiability, constraint satisfaction, optimization, integration, and others. In any semiring, for summation to be tractable it suffices that the factors of every product have disjoint scopes. This unifies and extends many previous results in the literature. Enforcing this condition at learning time thus ensures that the learned models are tractable. We illustrate the power and generality of this approach by applying it to a new type of structured prediction problem: learning a nonconvex function that can be globally optimized in polynomial time. We show empirically that this greatly outperforms the standard approach of learning without regard to the cost of optimization.

Motivation & Objective

  • To unify and generalize tractable inference across diverse problems such as probabilistic inference, constraint satisfaction, optimization, and database queries.
  • To identify a minimal, sufficient condition for tractable summation over any semiring: disjoint scopes of factors in products.
  • To develop a general algorithm for learning tractable representations in any semiring by enforcing the disjoint scopes condition.
  • To demonstrate the method’s power on a novel structured prediction task: learning nonconvex functions globally optimizable in polynomial time.
  • To show that existing results—like tractable Markov logic and SPNs—are corollaries of the proposed theorem.

Proposed method

  • Proposes the Sum-Product Theorem: summation over a semiring is tractable if all factors in every product have disjoint variable scopes.
  • Defines a general inference algorithm that computes summations over any semiring using dynamic programming on a decomposition tree with disjoint scopes.
  • Develops a learning algorithm that enforces disjoint scopes at training time to ensure all learned models are inherently tractable.
  • Applies the framework to structured prediction by learning a Min-Sum Function (MSF) that decomposes a nonconvex objective into smaller, independently optimizable components.
  • Uses variable clustering via correlation and k-means to guide decomposition, and evaluates leaf nodes via multi-start L-BFGS to simulate learned subfunctions.
  • Employs a threshold-based pruning strategy (thresholds t=30, v=2) to control model complexity and avoid overfitting.

Experimental results

Research questions

  • RQ1Can a single, unified condition ensure tractable inference across diverse problems that reduce to summation over a semiring?
  • RQ2Does enforcing disjoint scopes in product factors guarantee tractability in any semiring, regardless of model expressiveness or treewidth?
  • RQ3Can this condition be leveraged to learn nonconvex functions that are globally optimizable in polynomial time?
  • RQ4How does learning a tractable decomposition structure compare to standard end-to-end learning of continuous functions without optimization awareness?
  • RQ5What existing results in probabilistic modeling and constraint satisfaction are subsumed by the Sum-Product Theorem?

Key findings

  • The Sum-Product Theorem establishes that disjoint scopes in product factors are sufficient for tractable summation in any commutative semiring, providing a unifying foundation for tractable inference.
  • The proposed learning algorithm successfully captures the structural decomposition of a highly multimodal test function (variant of Rastrigin), enabling efficient global optimization.
  • Learned Min-Sum Functions (MSFs) outperform direct optimization of the original function by finding significantly lower minima when both are given the same time budget.
  • The method achieves better optimization performance than standard learning approaches that do not account for optimization cost, even when leaf functions are perfectly known.
  • The framework generalizes and simplifies prior results, including the tractability of tractable Markov logic and sum-product networks, as corollaries of the theorem.
  • Empirical results show that optimizing decomposed subfunctions (with disjoint scopes) explores exponentially fewer modes than optimizing the full function, leading to faster convergence to global minima.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.