This paper, presented by researchers from Vicarious, introduces a novel way to look "backward" through a Convolutional Neural Network (CNN). By treating a standard pre-trained CNN as a component of a hierarchical generative model, the authors enable the network to perform tasks it wasn't originally designed for, such as reconstructing object instances, imagining variations of a category, and parsing cluttered scenes.
TL;DR
The authors build a hierarchical generative model over the activations of a pre-trained CNN, allowing for a "backward pass" that fuses top-down and bottom-up information. This unified framework enables the network to isolate individual object instances in cluttered scenes and "imagine" coherent object variations by performing approximate MAP inference.
What Problem Does This Paper Address?
Standard CNNs are excellent at classification—a "bottom-up" process that maps an image to a label. However, they are notoriously "black box" and don't easily support top-down queries. For example, if a CNN sees a "sheep-shaped cloud," it might not classify it as a sheep, but a human can easily "imagine" a sheep fitting that shape.
Existing methods for looking backward through a network (like deconv-nets or guided backpropagation) often produce fragmented features rather than coherent object instances. The challenge is that the mapping from image to label is many-to-one (invariance), making the reverse mapping one-to-many. This paper addresses the lack of a principled, unified framework for top-down reasoning that can handle object instances, occlusion, and ambiguity.
Methods
The core innovation is defining a generative model of CNN activations.
- Representation: The model considers two sets of activations: bottom-up ($F_{bu}$) from the original CNN and top-down ($F_{td}$) which represents the reconstruction of an object.
- Hidden Variables ($H$): To handle the one-to-many nature of the backward pass, the authors introduce hidden variables at each layer. these encode attributes like shape, appearance, and location. Specifically, they use a mixture component index ($\gamma$) to choose between different top-down filters and a spatial offset ($\delta$).
- Bayesian Network: The model is structured as a Bayesian net (see Figure 1 below). Each layer's top-down activation is conditioned on the layer above it and the hidden variables of that layer.
- Inference: Solving for the best reconstruction is generally intractable. The authors propose a greedy, layer-wise backward pass to approximate Maximum A Posteriori (MAP) inference. This allows the system to efficiently "trace" a high-level concept (like "airplane") down to the image space.
- Learning: They use a Hard EM algorithm. In the E-step, they impute hidden variables; in the M-step, they update the top-down convolution weights and prior distributions.
Datasets
- Synthetic Airplanes: A dataset of 3,600 images of airplanes rendered from CAD models on clean backgrounds with masks. 3,000 were used for training and 600 for testing.
- Real Images: The model was evaluated on real-world photographs of airplanes to test its generalization capabilities (Figure 6).
- Base Model: The experiments were built upon the pre-trained VGG-16 network, specifically utilizing layers up to
pool5.
Key Insights and Ideas
- Invariance vs. Instantiation: Because CNNs are designed to be invariant (ignoring small shifts or variations to classify), the backward pass must explicitly model these variations as hidden variables to reconstruct a specific instance.
- Mixture of Convolutions: By using $K$ sets of top-down weights, the model can capture the diverse "modes" of an object category (e.g., different angles or styles of airplanes).
- Iterative Scene Parsing: A powerful "aha moment" is the ability to parse scenes by subtraction. The model finds the most likely object (the MAP solution), subtracts its activations from the bottom-up feature maps, and then runs the backward pass again to find the next object (see Figure 5).
- Feature Compositionality: The authors note that for this to work perfectly, a CNN should ideally represent a "whole" as a sum of its "parts." They argue that standard end-to-end training often compromises this property in higher layers, which is a limitation for generative tasks.
Key Results
- Coherent Sampling: The model can generate diverse, realistic samples of airplanes from scratch (Figure 3). By "clinching" hidden variables at high layers, they demonstrated that most category variation is captured at the top of the hierarchy.
- Robust Scene Parsing: In scenes with multiple objects and clutter, the model successfully identified and isolated individual airplanes one-by-one by navigating the posterior distribution (Figure 5).
- Real-World Generalization: Despite being trained only on synthetic CAD renders, the model successfully performed MAP inference on real images, correctly identifying the primary object structure (Figure 6).
Limitations and Future Work
- Scale Invariance: The current model does not explicitly handle scale. The authors had to manually scan over different scales during inference. They plan to introduce dedicated hidden variables for scale in the future.
- Local vs. Global Attributes: Currently, the model uses a single mixture index for an entire layer. The authors suggest that using a tensor of indices (local attributes) would be more expressive.
- CNN Architecture: The authors believe that training CNNs specifically to accumulate invariance more gradually would make them even better suited for this generative backward pass.
- Scaling Up: The study focused on a single category (airplanes). Scaling the framework to handle the full diversity of ImageNet categories is a major next step.
Summary updated