This paper by Robert Gens and Pedro Domingos represents a significant milestone in the evolution of Sum-Product Networks (SPNs). It bridges the gap between the exact, tractable inference of SPNs and the high-performance predictive power of discriminative learning, allowing these deep architectures to optimize directly for classification accuracy.
The Expressiveness vs. Tractability Trade-off
In the world of probabilistic graphical models, there is a classic trade-off: expressiveness vs. tractability. Standard models, like Markov Random Fields, are highly expressive but usually require approximate inference because exact calculation is "NP-hard" for complex data. Sum-Product Networks (SPNs) were recently proposed to solve this, offering a deep architecture where exact inference is guaranteed to be fast.
However, prior to this research, SPNs were only trained generatively—meaning they learned the joint distribution $P(X, Y)$. In tasks like image classification, we usually care about the conditional distribution $P(Y|X)$. Discriminative models typically outperform generative ones because they focus specifically on the decision boundary. The challenge was that discriminative training for SPNs hadn't been defined, and standard deep learning techniques like backpropagation faced "gradient diffusion" (vanishing gradients) when applied to the specific structure of SPNs.
Methods: Soft and Hard Gradients
The authors propose two main ways to train SPNs discriminatively:
- Marginal Inference (Soft Gradient): They derived a backpropagation-style algorithm to compute the gradient of the conditional log-likelihood. This involves two passes through the network: one to compute the probability of the label given the input, and another to compute the "partition function" (the normalization constant).
- MPE Inference (Hard Gradient): To combat the "diffusion problem"—where gradients become uninformative as they pass through many layers—the authors introduced "hard" gradient descent. Instead of summing over all possible hidden states (marginalization), they use the single most probable state (MPE).
Crucially, the authors proved that the requirements for a "valid" SPN (completeness and consistency) are actually less restrictive for discriminative models than for generative ones. Because we don't need to sum over the input variables ($X$), only the hidden variables ($H$) and labels ($Y$), we can build more flexible and complex models for classification.
Image Classification Architecture
To test their discriminative training, the authors designed a specific SPN architecture inspired by "star models" for computer vision tasks.
As shown above, the model treats images hierarchically. It breaks down classes into a collection of "parts" and "mixtures," mapping down to specific locations and image patches. This structural efficiency allows the network to achieve high accuracy with far fewer features (e.g., 400 dictionary items) than competing methods that require thousands.
Key Results
The researchers evaluated their approach on two standard computer vision benchmarks: CIFAR-10 (60,000 32x32 images across 10 classes) and STL-10 (larger 96x96 images, using only the labeled portion).
- CIFAR-10: As illustrated in the performance chart, the discriminative SPN achieved 83.96% accuracy, which was the highest published result at the time. It outperformed standard deep models and SVMs while using significantly smaller dictionary sizes.
- STL-10: The model reached 62.3% accuracy, also a record at the time of writing, despite ignoring the large pool of unlabeled data typically used to boost scores on this benchmark.
- Speed: Because SPNs guarantee linear-time inference relative to the size of the network, these models remain extremely fast during both training and deployment compared to traditional graphical models.
Limitations and Future Work
While "hard" (MPE) inference acts as a powerful synchronizer for deep layers—providing a sparse but strong signal that helps the network converge out of local minima—the authors suggest that "soft" inference might still be better for certain types of nodes (those with high fan-in) to help separate different "modes" of data more quickly.
Furthermore, the authors used a manually designed "star-like" architecture for these vision tasks. Automatically learning the structure of a discriminative SPN (rather than just the weights) remains a major next step. Finally, while this paper focuses on image classification, the authors point toward applying these techniques to structured prediction problems, such as natural language processing, where exact inference is traditionally very difficult.
Summary updated