NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Bag of Tricks for Few-Shot Class-Incremental Learning

Shuvendu Roy, Chunjong Park, Aldi Fahrezi, Ali Etemad

Abstract

We present a bag of tricks framework for few-shot class-incremental learning (FSCIL), which is a challenging form of continual learning that involves continuous adaptation to new tasks with limited samples. FSCIL requires both stability and adaptability, i.e., preserving proficiency in previously learned tasks while learning new ones. Our proposed bag of tricks brings together six key and highly influential techniques that improve stability, adaptability, and overall performance under a unified framework for FSCIL. We organize these tricks into three categories: stability tricks, adaptability tricks, and training tricks. Stability tricks aim to mitigate the forgetting of previously learned classes by enhancing the separation between the embeddings of learned classes and minimizing interference when learning new ones. On the other hand, adaptability tricks focus on the effective learning of new classes. Finally, training tricks improve the overall performance without compromising stability or adaptability. We perform extensive experiments on three benchmark datasets, CIFAR-100, CUB-200, and miniIMageNet, to evaluate the impact of our proposed framework. Our detailed analysis shows that our approach substantially improves both stability and adaptability, establishing a new state-of-the-art by outperforming prior works in the area. We believe our method provides a go-to solution and establishes a robust baseline for future research in this area.

Introduction

Machine learning models typically suffer from catastrophic forgetting: when trained on new data, they "overwrite" the knowledge of what they learned previously. This is especially difficult in Few-Shot Class-Incremental Learning (FSCIL), where a model first learns a large set of "base" classes and must then learn a sequence of new "novel" classes using only a handful of examples (e.g., 5 images per class).

Researchers face the stability-adaptability dilemma: high stability prevents forgetting but can hinder adaptation to new classes, while high adaptability allows for learning new tasks at the risk of overwriting old knowledge. This paper seeks a "middle ground" by identifying a specific set of "tricks" that improve both sides of the equation simultaneously.

The Bag of Tricks Framework

The authors curate and unify six influential techniques into three categories: Stability, Adaptability, and Training.

Stability Tricks

Applied during the initial "Base" training phase, these tricks aim to create a robust and well-separated embedding space to prevent future interference.

  • Supervised Contrastive Loss (SupCon): The model pulls samples of the same class together and pushes different classes apart in the embedding space.
  • Pre-assigning Prototypes (ETF): Using an Equiangular Tight Frame to fix class targets ensures they are maximally separated from the start.
  • Pseudo-classes: "Hard" data augmentations create fake classes during base training, essentially "reserving space" in the embedding landscape for future novel classes.
Conceptual illustration of how stability tricks improve class separation and reduce interference when learning incremental classes.

Adaptability and Training Tricks

Adaptability tricks are applied during incremental sessions. Incremental SubNet Tuning identifies a sub-network of parameters essential for base classes and freezes them, fine-tuning only the remaining parameters for new classes. This allows for adaptation without destroying old knowledge.

Training tricks are general performance boosters. Self-Supervised Pre-training helps the model learn more generalized features before labels are introduced, while Rotation Prediction serves as an auxiliary task during base training to improve feature robustness.

Experimental Evaluation

The framework was evaluated on major benchmarks including CIFAR-100, CUB-200, and miniImageNet. The "Bag of Tricks" approach set new state-of-the-art (SOTA) records across the board.

Ablation study showing the cumulative performance improvement on CIFAR-100, CUB-200, and miniImageNet as different tricks are added to the baseline.

As shown in the ablation study above, Stability Tricks are the most critical component; removing them caused an 11.2% drop in accuracy. In the ultra-difficult 1-shot setting, the framework outperformed previous methods by a massive 6.83%.

Key Insights and Scalability

  • Forward Compatibility: By using SupCon and ETF prototypes, the authors create a "well-organized" embedding space, making it easier to "slot in" new classes later without interfering with old boundaries.
  • Subnetworks Solve the Dilemma: SubNet tuning effectively bypasses the stability-adaptability trade-off by physically separating the parameters responsible for "remembering" and "learning."
  • Scalability: Unlike many FSCIL methods that only work on small backbones, these tricks show larger performance gains when applied to bigger models like Vision Transformers (ViT) and ResNet-50.

Conclusion

While the proposed framework significantly closes the gap, the authors acknowledge that novel class performance is still lower than base class performance. Future research should focus on further narrowing this gap and exploring how these tricks might apply to other data-scarce scenarios beyond image classification.

Summary updated

BibTeX
@article{roy2024bag,
  author = {Shuvendu Roy and Chunjong Park and Aldi Fahrezi and Ali Etemad},
  title = {{A Bag of Tricks for Few-Shot Class-Incremental Learning}},
  journal = {Accepted by TMLR},
  year = {2024},
  url = {https://openreview.net/forum?id=DiyYf1Kcdt},
}
Figure