Abstract
This paper introduces the Hierarchical Compositional Network (HCN), a generative model designed to discover the fundamental "building blocks" of binary images—such as strokes in letters or geometric primitives—without supervision. By utilizing max-product message passing (MPMP) instead of standard backpropagation, the model learns interpretable, reusable features and demonstrates significant robustness to noise and clutter compared to traditional Convolutional Neural Networks (CNNs).
Introduction
While deep learning excels at visual discrimination, standard generative models like Variational Autoencoders (VAEs) or Generative Adversarial Networks (GANs) often fail to learn the intuitive "parts" that constitute an image. When trained on text, for instance, these models frequently learn blurry, overlapping features rather than discrete, reusable letters or strokes.
The authors identify three primary gaps in existing generative frameworks: weak priors that fail to distribute variation across layers, inference issues regarding "explaining away" (where one feature's presence should decrease the likelihood of another overlapping feature), and a general lack of interpretability in learned features.
Methodology: The Hierarchical Compositional Network
The HCN is a multilayer directed generative model consisting of alternating convolutional and pooling layers. It employs three types of binary factors to structure its representations:
- AND Factors: Used to compose lower-level features into complex structures.
- OR Factors: Used to handle overlapping features and alternative compositions.
- POOL Factors: Used to allow for small spatial perturbations and local invariance.
Weights as Latent Variables
Unlike standard networks where weights are fixed parameters, the HCN treats weights as latent variables. This allows the model to perform feature learning and inference jointly. To find the Maximum A Posteriori (MAP) configuration of these features, the authors use a specific schedule of Max-Product Message Passing (MPMP). This approach naturally handles "explaining away": if the model determines a vertical bar explains a set of pixels, it suppresses the messages sent to other potential features for those same pixels.
Interestingly, the authors demonstrate that a fast forward pass in a trained HCN has the exact same functional form as a standard CNN with linear activations and binary weights, bridging the gap between generative logic and discriminative efficiency.
Experimental Evaluation
The model was evaluated on several binary image datasets, including synthetic shapes, noisy text strings, and the MNIST handwritten digit database.
Key Results
- Superior Compression: On a "Symbols" dataset, HCN achieved an encoding cost of 11%, compared to 85% for Noisy-OR Component Analysis (NOCA), indicating it discovered far more efficient building blocks.
- Robustness to Corruption: While a standard CNN slightly outperformed HCN on clean MNIST data (9.53% vs. 11.15% error), the HCN was vastly superior under heavy noise (20.69% error vs. 39.28% for CNN) and "line clutter" (37.22% vs. 55.77%).
- Few-Shot Learning: The model generalized effectively from very few samples, such as training on only the first 40 digits of each MNIST category.
Discussion and Insights
The HCN's interpretability is a direct result of its architecture; by forcing the model to compose images from binary parts using OR gates, the learned weights resemble actual physical components like strokes or shapes rather than abstract statistical patterns. Furthermore, the model's noise invariance stems from the fact that its forward pass is a monotonic transformation. As long as the signal remains stronger than the noise, the relative ranking of categories remains stable.
Limitations and Future Work
The current model is strictly designed for binary images. Extending this logic to grayscale or color images would require a fundamental shift in the "OR" composition logic. Additionally, while the forward pass is efficient, the learning and full inference (backward pass) are computationally complex and require significant memory overhead. Future work will focus on scaling the model and refining MAP inference techniques.
Summary updated