Introduction
Computer vision has traditionally been divided between two paradigms: interpretable hierarchical models and high-performance Deep Learning. Compositional models represent objects as hierarchies of parts, offering high interpretability but suffering from training difficulties and poor scalability. Conversely, Convolutional Neural Networks (CNNs) provide state-of-the-art performance but operate as "black boxes," lacking explicit modeling of structural relationships.
This paper introduces CompNet, a unified framework that bridges this gap. By demonstrating that inference in hierarchical And-Or Graphs (AOGs) is mathematically equivalent to operations in a feed-forward network, the authors enable end-to-end training via back-propagation. The result is a model that combines the interpretability of compositional structures with the learning power of deep learning.
Methodology: The Composition Network (CompNet)
CompNet is structured as an And-Or Graph (AOG), where nodes represent different levels of visual abstraction:
- And-nodes: Model the composition of sub-parts into larger structures (e.g., combining strokes to form a digit). CompNet utilizes a multiscale nonparametric model to learn part displacements without requiring manual anchor points.
- Or-nodes: Capture structural variations or "switches" between different configurations (e.g., different handwriting styles).
- Leaf-nodes: Represent basic visual primitives, implemented using CNN layers to extract robust features from the input image.
The core innovation lies in the equivalence between AOG inference (finding the maximum score for a pattern) and the forward pass of a Feed-Forward Network (FFN). This allows the entire hierarchy—including structural relationships and feature weights—to be optimized simultaneously using standard back-propagation.
Key Insights: Learning and Interpretability
CompNet introduces several unique capabilities to deep visual modeling:
- End-to-End Structure Learning: Unlike traditional AOGs with fixed structures, CompNet learns the relevance and strength of connections during training. It can even learn negative weights to check for the absence of features, mimicking biological vision traits.
- Transparency via Backtracking: The AOG structure allows for "backtracking" from a final detection to identify the specific primitives and sub-parts that triggered the result. This process generates a "parse graph" for every input image, providing a clear explanation for the model's decision.
- Efficiency and Inductive Bias: By explicitly modeling structural geometry, CompNet achieves high performance with fewer parameters. On MNIST, a shallower CompNet outperformed the standard LeNet-5 baseline (0.80% vs 0.89% error).
Experimental Results
The model was evaluated across three diverse domains:
- Handwritten Digits (MNIST): Achieved a state-of-the-art error rate of 0.80%.
- Scene Text Recognition: Set high benchmarks on IIIT5K (88.9% accuracy) and Chars74K (85.3%), outperforming several CNN-based methods by better handling font and background variations.
- Object Detection (PASCAL VOC 2007): Achieved 52.0% mAP, significantly outperforming traditional compositional models (34.7%) and even R-CNN baselines using similar features (47.3%).
Conclusion
CompNet represents a significant step toward making deep learning models more interpretable without sacrificing performance. By unifying AOGs and FFNs, it provides a scalable way to learn complex structural hierarchies. While current implementations rely on predefined hyperparameters for layer depth, future work in automated architecture search and deeper feature backbones (like VGG16) promises to further enhance the model's capabilities.
Summary updated