Abstract
Few-Shot Class-Incremental Learning (FSCIL) presents a significant challenge for deep learning models: the requirement to learn new classes from minimal data without forgetting previously acquired knowledge. This paper introduces Comp-FSCIL, a cognitive-inspired framework that addresses this by decomposing images into reusable "visual primitives." By representing classes as compositions of these primitives, the model achieves state-of-the-art performance while maintaining a stable foundation of knowledge across incremental sessions.
Introduction
Standard deep learning models excel in static environments but struggle with incremental learning. In FSCIL scenarios, models often suffer from "catastrophic forgetting," where the high-dimensional representations (prototypes) of old classes are overwritten to accommodate new ones.
Humans solve this problem through compositionality. We recognize a novel object, like a "tank," by identifying familiar components: the "wheels" of a truck and the "barrel" of artillery. This paper proposes a similar logic for AI, building an "alphabet" of visual parts that can be recombined to represent new categories with very few training examples.
Methodology: The Comp-FSCIL Framework
The authors propose three primary pillars to enable compositional learning:
1. Primitive-Based Representation
Instead of treating a class as a single global vector, Comp-FSCIL represents each class as a set of local "primitives" derived from image patches. This allows the model to capture fine-grained features (e.g., fur textures, mechanical parts) that are likely to reappear across different object categories.
2. Centered Kernel Alignment (CKA) Similarity
Comparing an input image to a class requires measuring the similarity between two sets of features. While previous state-of-the-art methods used computationally expensive optimization techniques like Earth Mover's Distance (DeepEMD), this paper utilizes CKA. Originally a tool for comparing neural network layers, CKA is repurposed here as an efficient similarity metric that is robust to background noise and nearly 1,000 times faster than DeepEMD.
3. Primitive Reuse Module
To prevent forgetting, the model is explicitly encouraged to represent new classes using the closest primitives already learned from the base session. This "reuse" mechanism ensures that the model's underlying feature space remains stable, acting as a defense against the drift that typically causes catastrophic forgetting.
Experimental Results
The researchers evaluated Comp-FSCIL on three standard benchmarks: miniImageNet, CUB-200-2011 (fine-grained birds), and CIFAR100. Using various backbones including ResNet and Swin Transformer, the method consistently outperformed existing baselines.
- Performance: On the CUB200 dataset with a Swin Transformer, Comp-FSCIL achieved a final session accuracy of 72.80%, surpassing the previous best of 70.50%.
- Stability: The "Performance Drop" (PD) between the first and last sessions was significantly lower than competitors, validating the effectiveness of the primitive reuse strategy.
- Efficiency: The transition to CKA similarity reduced inference time from 12 seconds to 0.01 seconds per 100 images, making the approach viable for real-time applications.
Key Insights and Interpretability
Beyond performance, the compositional approach offers inherent interpretability. By visualizing the patches associated with specific primitives, researchers can see the model identifying "armor" and "barrels" to recognize a tank. Furthermore, the authors found that applying a power transformation ($\alpha < 1.0$) to features helped smooth matching weights, preventing the model from over-focusing on noisy outliers in the image patches.
Conclusion and Future Work
Comp-FSCIL demonstrates that mimicking human-like compositional reasoning can solve the dual challenges of few-shot learning and catastrophic forgetting. While the current model relies on a primitive library established during the base session, future work could explore dynamic libraries that evolve as the model encounters increasingly diverse environments or multi-modal primitives that bridge visual and linguistic data.
Summary updated