Abstract
This paper addresses the challenge of Few-Shot Class-Incremental Learning (FSCIL), a scenario where artificial intelligence models must learn new categories from a limited number of examples while maintaining performance on previously learned classes. We introduce TOPIC (TOpology-Preserving knowledge InCrementer), a framework that utilizes a Neural Gas network to map and preserve the feature space's underlying topology. By balancing the preservation of old knowledge through Anchor Loss and the adaptation to new classes via Min-Max Loss, TOPIC effectively mitigates catastrophic forgetting and overfitting. Experimental results on CIFAR100, miniImageNet, and CUB200 demonstrate that TOPIC significantly outperforms existing state-of-the-art methods in accuracy retention and stability.
Introduction
Standard deep learning models are typically rigid; learning new categories usually requires retraining on the entire dataset to avoid "catastrophic forgetting." While Class-Incremental Learning (CIL) attempts to address this by adding classes over time, it generally assumes the availability of large-scale data for new categories. Conversely, Few-Shot Learning (FSL) focuses on learning from minimal data but often ignores the retention of prior knowledge.
FSCIL operates at the intersection of these two fields. The primary challenge is twofold: preventing new updates from overwriting weights representing previous knowledge (forgetting) and ensuring the model does not memorize the few available samples of new classes (overfitting).
Methodology: The TOPIC Framework
The authors propose the TOpology-Preserving knowledge InCrementer (TOPIC). Unlike traditional methods that rely on raw classification scores or stored image exemplars, TOPIC focuses on the feature manifold—the geometric structure of data organization within the model.
Neural Gas (NG) Network
At the core of TOPIC is a Neural Gas network. Instead of saving random images to represent past classes, the NG network uses a flexible grid of nodes that adapts to the shape of the data distribution. This captures the "topology" of the feature space far more efficiently than raw data points.
Incremental Learning and Loss Functions
To manage the growth of the network as new classes are introduced, TOPIC employs several key mechanisms:
- Competitive Hebbian Learning: The NG network dynamically grows and updates connections using biologically inspired rules, inserting new nodes to represent novel classes.
- Anchor Loss (AL): This function acts as a tether, ensuring that nodes representing old classes do not drift significantly as the model adapts to new data, thereby preventing forgetting.
- Min-Max Loss (MML): To combat overfitting on small datasets, MML pushes the model to make new classes distinct. It minimizes the distance between a new sample and its assigned node ("min") while maximizing the distance between nodes of different classes ("max").
Experimental Evaluation
The researchers evaluated TOPIC on three standard computer vision benchmarks adapted for the incremental few-shot setting:
- CIFAR100: 60 initial classes followed by 40 classes added in "5-way 5-shot" increments.
- miniImageNet: Processed similarly to CIFAR100 to test robustness on more complex imagery.
- CUB200: A fine-grained dataset of 200 bird species, providing a challenging "10-way 5-shot" incremental test.
Key Results
TOPIC demonstrated a substantial performance lead over existing methods like iCaRL and EEIL:
- Accuracy Retention: On CIFAR100, TOPIC achieved a final accuracy of 29.37% after all increments, outperforming the next best method (NCM at 19.50%) by nearly 10%.
- Stability: While naive fine-tuning approaches saw immediate performance collapses, TOPIC's accuracy decayed gracefully, remaining closer to the theoretical upper bound of joint training.
- Efficiency: The framework maintains these results with negligible memory overhead compared to methods requiring the storage of thousands of exemplar images.
Discussion and Conclusion
TOPIC suggests that topology is memory. By preserving the relationships between data points rather than just the points themselves, the model maintains a more robust long-term memory. Moving beyond standard knowledge distillation—which often fails in data-imbalanced few-shot settings—TOPIC's direct operation on the feature manifold provides a more stable path for incremental learning.
Future work may address the framework's dependency on the quality of the initial base model and the sensitivity of its loss function hyperparameters. Additionally, scaling the Neural Gas to handle thousands of increments for real-world applications remains an open area for exploration.
Summary updated