Neural Collapse Inspired Feature-Classifier Alignment for Few-Shot Class Incremental Learning

Yibo Yang, Haobo Yuan, Xiangtai Li, Zhouchen Lin, Philip Torr, Dacheng Tao

TL;DR

This paper introduces NC-FSCIL, a framework that tackles catastrophic forgetting in few-shot incremental learning by pre-assigning and fixing classifier prototypes in an optimal geometric configuration known as a simplex Equiangular Tight Frame (ETF). By training the model to align features with these fixed targets using a novel dot-regression loss, the authors achieve state-of-the-art performance across multiple benchmarks without the need for complex regularizers.

What Problem Does This Paper Address?

Few-Shot Class-Incremental Learning (FSCIL) is a challenging computer vision task where a model must learn a large set of "base" classes and then continually learn new "novel" classes from only a handful of examples (e.g., 5 images per class).

The core difficulty is catastrophic forgetting: when the model learns new classes, its performance on old classes typically plummets. The authors identify a "misalignment dilemma" as the culprit. In traditional methods, classifier prototypes (the vectors representing each class) are learnable. When new classes are added, these prototypes are adjusted to make room, often drifting away from the features the model previously learned for old classes. This misalignment, illustrated in Figure 1(a), makes the model "forget" what the old classes look like.

Figure 1: A popular choice in prior studies is to evolve the old-class prototypes via delicate design of loss or regularizer to keep them separated from novel-class prototypes, but will cause misalignment. As a comparison, we pre-assign and fix an optimal feature-classifier alignment, and then train a model towards the same neural collapse optimality in each session to avoid target conflict.

Methods

The authors draw inspiration from Neural Collapse (NC), a phenomenon observed at the end of training where features of the same class collapse to a single point, and the centers of all classes form a perfectly symmetrical geometric structure called a simplex ETF. This structure is mathematically optimal for classification because it maximizes the separation between classes.

Key components of their proposed NC-FSCIL include:

  1. Fixed ETF Classifier: Instead of learning classifier weights, they pre-assign fixed prototypes for all classes (base and future novel classes) as a simplex ETF. This ensures that the "slots" for every class are maximally separated and never change, avoiding target conflict between sessions.
  2. Dot-Regression (DR) Loss: Standard Cross-Entropy loss includes a "push" term that can be noisy when data is scarce. Since the prototypes are already fixed in an optimal layout, the authors use a DR loss that focuses solely on "pulling" features toward their assigned fixed prototype.
  3. NC-FSCIL Pipeline:
    • Base Session: The backbone and a projection layer are trained together on the large base dataset.
  4. Incremental Sessions: The backbone is frozen to preserve general features. Only the projection layer is finetuned using the few-shot novel data and a small memory of mean features from old classes.
The NC-FSCIL architecture

Datasets

The framework was evaluated on three standard FSCIL benchmarks:

  • miniImageNet: 100 classes (60 base, 40 novel added in 8 sessions).
  • CIFAR-100: 100 classes (60 base, 40 novel added in 8 sessions).
  • CUB-200: A fine-grained dataset of 200 bird species (100 base, 100 novel added in 10 sessions).

Key Insights and Ideas

  • Neural Collapse as a Target, Not Just a Result: While NC is usually an emergent property of long training, this paper treats it as a predefined optimization goal. By fixing the classifier to the NC-optimal state, they bypass the need for complex loss functions designed to prevent prototype drift.
  • Simplicity is Strength: Unlike many FSCIL methods that rely on sophisticated distillation or complex regularization terms, NC-FSCIL uses a single, straightforward loss function.
  • Geometric Stability: Fixing the classifier provides a stable "coordinate system" for the feature space. As long as the projection layer can map new images to their pre-assigned spots without disturbing old mappings, forgetting is minimized.

Key Results

NC-FSCIL achieved state-of-the-art results across all sessions on miniImageNet and CIFAR-100.

  • miniImageNet: Achieved a final session accuracy of 58.31%, a 2.61% improvement over the previous best (ALICE). The average accuracy across all sessions improved by 3.83%.
  • CIFAR-100: Achieved a final session accuracy of 56.11% and an average accuracy improvement of 4.29% over ALICE.
  • CUB-200: While it didn't beat the final session accuracy of ALICE, it maintained the highest average accuracy across all sessions among all compared methods.

Detailed session-by-session results for miniImageNet and CIFAR-100 are shown in the tables below:

miniImageNet Results Table CIFAR-100 Results Table

Limitations and Future Work

  • Known Class Count: The current method requires knowing the total number of incremental classes in advance to construct the simplex ETF. In truly open-ended real-world scenarios, this might not be possible.
  • Backbone Dependency: The performance relies heavily on the quality of the backbone features learned during the base session. If the base session is too small or unrepresentative, the fixed ETF might be too rigid.
  • Future Directions: The authors suggest exploring how to adapt this framework for scenarios where the total number of future classes is unknown, potentially by reserving "extra" vertices in the ETF.

Summary updated

BibTeX
@inproceedings{yang2023neural,
  author = {Yibo Yang and Haobo Yuan and Xiangtai Li and Zhouchen Lin and Philip Torr and Dacheng Tao},
  title = {{Neural Collapse Inspired Feature-Classifier Alignment for Few-Shot Class Incremental Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=y5W8tpojhtJ},
}
Figure