Introduction
Modern deep learning architectures, particularly Convolutional Neural Networks (CNNs), have achieved remarkable success in visual recognition tasks. However, these models typically require thousands of labeled examples to achieve high accuracy, a stark contrast to human biological vision which can learn new categories from a single instance. This research addresses the "data hunger" of standard models by proposing a compositional approach to one-shot learning. The core premise is that objects can be represented as hierarchical compositions of shared, meaningful parts discovered through unsupervised geometric analysis.
Methodology
The proposed framework, termed the Compositional Patch Model (CPM), moves away from raw pixel-based pattern matching toward a structured, part-based representation.
Skeletonization and Patch Decomposition
The first step in the pipeline is the extraction of a "symmetry axis" or skeleton from the input image. This process provides a topological descriptor that is invariant to minor stylistic variations or stroke thickness. By parsing the skeleton at junctions and endpoints, the model automatically decomposes an object into a set of "meaningful patches" without requiring human-labeled strokes.
Hierarchical AND-OR Graphs
The model represents object classes using a hierarchical AND-OR graph (AOG). In this structure:
- AND-nodes represent the spatial composition of different regions (e.g., the top and bottom loops of an '8').
- OR-nodes capture the variability within those regions by allowing for a dictionary of different patches that could represent the same functional part.
Inference via Active Patches and Warping
During recognition, the model treats patches as "active," allowing for local transformations such as rotation and scaling. The final classification is determined by finding the best fit between the compositional model and the test image. This involves a warping process using Shape Context to minimize an energy function, where the cost of reconstruction serves as a proxy for class membership.
Experimental Results
The CPM was evaluated on the MNIST and USPS handwritten digit datasets, focusing on the low-data regime (1 to 5 training samples).
| Method | MNIST (n=1) | MNIST (n=5) | USPS (n=1) |
|---|---|---|---|
| CPM (Proposed) | 68.86% | 83.79% | 69.31% |
| CNN | 28.01% | 39.80% | 15.37% |
| DBM | 24.37% | 41.76% | 13.56% |
| K-NN | 42.08% | 64.26% | 56.98% |
The results demonstrate that the CPM significantly outperforms standard deep learning models like CNNs and Deep Boltzmann Machines (DBMs) when data is scarce. Notably, the model also showed strong transfer learning capabilities; a CPM trained on MNIST achieved 68.58% accuracy on USPS without any domain-specific fine-tuning.
Discussion and Conclusion
The success of the CPM highlights the importance of compositionality and geometric priors in one-shot learning. By focusing on the "bones" of an object rather than its surface appearance, the model achieves a level of abstraction that facilitates learning from minimal data.
However, challenges remain. The model is sensitive to structural variations not present in the training set (e.g., different topological forms of the same digit). Additionally, the computational cost of the matching process currently limits real-time application. Future research will focus on extending this symmetry-based part extraction to more complex, multi-layered real-world objects and optimizing the inference engine.
Summary updated