[Paper Review] Hierarchical compositional feature learning
This paper proposes the Hierarchical Compositional Network (HCN), a deep generative model that learns disentangled, binary, compositional features from unlabeled binary images using max-product message passing (MPMP) without EM or backpropagation. HCN discovers interpretable, reusable parts (e.g., letters or digit components) and achieves fast inference with the same functional form as a CNN, outperforming standard CNNs in generalization under data corruption.
We introduce the hierarchical compositional network (HCN), a directed generative model able to discover and disentangle, without supervision, the building blocks of a set of binary images. The building blocks are binary features defined hierarchically as a composition of some of the features in the layer immediately below, arranged in a particular manner. At a high level, HCN is similar to a sigmoid belief network with pooling. Inference and learning in HCN are very challenging and existing variational approximations do not work satisfactorily. A main contribution of this work is to show that both can be addressed using max-product message passing (MPMP) with a particular schedule (no EM required). Also, using MPMP as an inference engine for HCN makes new tasks simple: adding supervision information, classifying images, or performing inpainting all correspond to clamping some variables of the model to their known values and running MPMP on the rest. When used for classification, fast inference with HCN has exactly the same functional form as a convolutional neural network (CNN) with linear activations and binary weights. However, HCN's features are qualitatively very different.
Motivation & Objective
- To develop a deep generative model that discovers disentangled, hierarchical features from unlabeled binary images without supervision.
- To address the challenge of inference and learning in directed generative models with explaining-away phenomena, which are difficult for standard variational methods.
- To enable joint learning of features and pool states without separate EM stages, using a unified message-passing framework.
- To demonstrate that the model supports flexible tasks—such as classification, inpainting, and semi-supervised learning—via simple clamping of observed variables.
- To show that HCN generalizes better than standard CNNs under data corruption, even with minimal labeled data.
Proposed method
- HCN uses a directed factor graph with AND, OR, and POOL factors to compose features hierarchically across layers, modeling image generation as a structured composition of reusable binary parts.
- Features are treated as latent variables rather than fixed parameters, enabling end-to-end joint inference and learning via max-product message passing (MPMP) with a specific scheduling protocol.
- MPMP enables effective explaining-away by propagating evidence across the network, overcoming limitations of standard variational inference in deep directed models.
- The model supports both unsupervised and supervised learning: supervision is incorporated by clamping label variables, with inference remaining unchanged.
- Inference in HCN has the same functional form as a CNN with linear activations and binary weights, enabling fast classification via a single forward pass.
- The architecture uses fixed pooling (with small perturbations) and binary weights, which enhances interpretability and computational efficiency.
Experimental results
Research questions
- RQ1Can a deep generative model discover disentangled, interpretable, and reusable parts (e.g., letters or digit components) from unlabeled binary images without supervision?
- RQ2Can max-product message passing (MPMP) effectively perform joint inference and learning in a hierarchical generative model with explaining-away effects, without relying on EM or backpropagation?
- RQ3Does the HCN model generalize better than standard CNNs under data corruption, especially when trained on very few examples?
- RQ4Can the same inference mechanism handle diverse tasks—such as classification, inpainting, and semi-supervised learning—by simply clamping observed variables?
- RQ5Is the functional form of HCN inference equivalent to a CNN with linear activations and binary weights, and does this equivalence yield practical advantages in speed or robustness?
Key findings
- HCN successfully discovers interpretable, compositional features (e.g., letters or digit components) from a single image with no supervision, as shown in Figure 1.
- With only 4 labeled images (one per class), HCN achieved a 0.6% test error in 4-class classification, demonstrating strong performance in minimally-supervised settings.
- In supervised training, HCN achieved a test error of 0.07%, significantly outperforming a standard CNN (0.5% error) and a ReLU-based CNN (2.5% error) on the same task.
- On corrupted MNIST data, HCN generalizes better than a standard CNN: for grid corruption, HCN error was 68.52% vs. 82.69% for CNN, and for line clutter, 37.22% vs. 55.77%.
- The HCN training time scales linearly with data size and model complexity, taking ~17 hours on a single CPU for MNIST with 400 images, though memory usage can reach 150GB for message storage.
- The first-layer weights of HCN (Figure 9a) show clear, reusable parts of digits, such as strokes and curves, confirming the model’s ability to learn meaningful, hierarchical features.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.