Abstract
Sum-Product Networks (SPNs) are deep probabilistic models celebrated for their ability to perform exact, tractable inference in polynomial time. Traditionally treated as "black boxes" for density estimation, their internal hierarchical structure holds significant potential for representation learning. This paper introduces Sum-Product Autoencoding (SPAE), a framework that repurposes SPNs as unsupervised representation learners. By leveraging internal node activations and Most Probable Explanation (MPE) inference, SPAE encodes raw data into compact features and decodes them back into the original input space. Our results demonstrate that SPAE rivals state-of-the-art autoencoders in multi-label classification while providing unique probabilistic benefits such as robustness to missing data.
Introduction
In the field of representation learning, neural autoencoders are the standard for transforming raw data into compact, feature-rich "codes." However, these models often require extensive hyperparameter tuning and struggle with complex probabilistic queries or incomplete data. Conversely, Sum-Product Networks (SPNs) offer rigorous probabilistic guarantees but have historically been underutilized for feature extraction. The authors of this paper bridge this gap by asking: Can the internal nodes of an SPN function as an autoencoder? SPAE answers this by utilizing the hierarchical, part-based nature of SPNs to perform both encoding and decoding.
Methodology
The SPAE framework introduces two primary methods for generating embeddings from an SPN structure: Activation (ACT) and Categorical (CAT) embeddings.
ACT (Activation) Embeddings
This approach treats the SPN similarly to a standard neural network. The encoding is defined as the activation value (the probability output) of specific internal nodes. To decode, the model performs a top-down pass using the MPE algorithm to reconstruct the input configuration that most likely generated those specific activations.
CAT (Categorical) Embeddings
CAT embeddings treat the sum nodes within an SPN as latent (hidden) variables. To encode, the model identifies the most likely state for these hidden variables given the input via MPE inference. The decoding process then works backward from these categorical states to find the most probable input configuration.
A key innovation in both methods is the use of MaxProdMPE for decoding. Because SPNs are hierarchical, the decoding process essentially "materializes" a tree structure that best explains the compressed code, allowing for high-fidelity reconstruction.
Experimental Evaluation
The researchers evaluated SPAE on Multi-Label Classification (MLC) across 10 standard benchmarks, including Arts, Scene, and Yeast. Qualitative assessments were also performed using binarized MNIST handwritten digits and the NIPS text corpus.
Key Insights
- Training-Free Reconstruction: Surprisingly, SPNs can reconstruct data effectively even without being explicitly trained for autoencoding. This ability emerges naturally from maximizing data likelihood during standard training.
- Compositionality: Visualizations confirm that SPNs learn part-based representations. Lower-level nodes capture fundamental features (e.g., strokes or blobs), while higher-level nodes compose these into complex objects like digits or topics.
- Robustness to Missing Data: Built on a probabilistic foundation, SPAE handles "partial embeddings" far better than traditional autoencoders. It uses MPE inference to "fill in the blanks" when parts of the code are missing or corrupted.
Results and Discussion
SPAE demonstrated competitive performance against strong baselines such as Restricted Boltzmann Machines (RBMs) and Denoising Autoencoders (DAEs). In specific Multi-Label Classification scenarios, SPAE achieved a +25.47% relative improvement in Jaccard score and a +144.78% improvement in Exact Match score over standard Logistic Regression. Furthermore, the model proved resilient to information loss; even when 50% of the embedding components were randomly removed, reconstruction performance dropped by less than half.
Limitations
Despite its strengths, SPAE relies on MPE inference, which is generally NP-hard. The authors utilize the MaxProdMPE approximation, which is effective in practice but not always optimal. Additionally, the quality of the autoencoder is currently dependent on the quality of the pre-learned SPN structure.
Conclusion
Sum-Product Autoencoding successfully transforms SPNs into powerful representation learners, combining the tractability of probabilistic models with the feature-extraction power of deep learning. Future research into "differentiable MPE" may allow for fine-tuning SPNs specifically for reconstruction, potentially further closing the gap with traditional deep learning architectures.
Summary updated