Abstract
Few-shot learning (FSL) aims to recognize novel categories with minimal labeled data. While humans excel at this by decomposing objects into reusable "visual primitives," most deep learning models treat images holistically. This paper proposes a framework for Compositional Primitive Discovery and Enhancing (CPDE). By employing self-supervised image splitting to discover parts and a bio-inspired Enlarging-Reducing (ER) loss to prioritize discriminative features, CPDE achieves state-of-the-art performance on standard FSL benchmarks while providing an interpretable look at the model's decision-making process.
Introduction: The Compositional Gap in Few-Shot Learning
Standard deep learning models are notoriously data-hungry, often requiring thousands of examples to master a new category. In contrast, humans are compositional thinkers. When encountering a novel animal, we don't perceive it as a completely alien entity; instead, we recognize familiar components—a neck like a giraffe, legs like a dog, or wings like a bird. This ability to learn basic building blocks (primitives) and recombine them allows for rapid generalization to novel concepts.
Current FSL methods often overlook this structural logic, treating images as single, holistic entities. The challenge lies in teaching machines to identify these primitives without the need for expensive, manually labeled part annotations.
Methodology
The proposed CPDE framework integrates two primary components into a standard CNN baseline to facilitate compositional learning.
1. Self-Supervised Primitive Discovery
To identify object parts without manual labels, the model utilizes a "split-order prediction" task. An image is divided into a grid (e.g., 2x2), and the resulting patches are shuffled. The network is then tasked with predicting the original spatial arrangement. To solve this jigsaw-like puzzle, the network is incentivized to recognize specific local features—visual primitives—within the splits. This self-supervised approach ensures the model learns structural primitives that transfer effectively across different semantic categories.
2. Primitive Enhancing via ER Loss
Once primitives are discovered (represented as channels in the network's penultimate layer), the model must determine which are most relevant for classification. The authors introduce the Enlarging-Reducing (ER) loss, inspired by biological neural principles:
- Hebbian Learning: Primitives that contribute strongly to a correct classification have their activations "enlarged."
- Winner-Take-All (WTA): Activations of "loser" primitives that do not significantly aid classification are suppressed or "reduced."
This dual mechanism results in a sparse, high-quality representation where novel classes are recognized as unique combinations of well-learned primitives from known classes.
Experiments and Results
The CPDE method was evaluated on several major benchmarks, demonstrating its versatility across fine-grained image classification and video recognition.
- CUB-200-2011: On this fine-grained bird dataset, CPDE achieved 80.11% accuracy in 5-way 1-shot tasks, a significant improvement over previous baselines.
- miniImageNet: The model reached 65.55% (1-shot) and 80.66% (5-shot) accuracy, setting a new state-of-the-art for the ResNet18 backbone.
- Few-Shot Video Recognition (Kinetics): CPDE proved extensible to temporal data, achieving 69.14% in 1-shot action recognition by treating temporal segments as primitives.
Key Insights
A significant advantage of CPDE is its inherent interpretability. By treating specific channels in the penultimate layer as visual primitives, researchers can visualize what the model "sees." For instance, a model might recognize a dinosaur by identifying primitives corresponding to a "long neck" from a goose and "four feet" from a dog. Furthermore, because it relies on self-supervision rather than human-annotated attributes, CPDE is highly scalable to new datasets.
Conclusion
By mimicking the human ability to decompose and recompose visual information, the CPDE framework bridges the gap between holistic deep learning and compositional reasoning. The combination of self-supervised discovery and bio-inspired enhancement not only boosts performance in few-shot scenarios but also offers a transparent window into the model's logic, paving the way for more robust and explainable AI.
Summary updated