Memorizing Complementation Network for Few-Shot Class-Incremental Learning

Zhong Ji, Zhishen Hou, Xiyao Liu, Yanwei Pang, Xuelong Li

TL;DR

The Memorizing Complementation Network (MCNet) tackles the "stability-plasticity" dilemma in Few-Shot Class-Incremental Learning (FSCIL) by ensembling diverse models that complement each other’s memorized knowledge. By combining structural diversity (CNNs vs. Transformers) with a novel Prototype Smoothing Hard-mining Triplet (PSHT) loss, the authors significantly reduce catastrophic forgetting and overfitting, setting new state-of-the-art benchmarks.

What Problem Does This Paper Address?

Few-Shot Class-Incremental Learning (FSCIL) is a challenging frontier in computer vision. It requires a model to learn new classes continually from just a handful of examples (few-shot) without forgetting the "base" classes it was originally trained on (incremental).

Most existing models suffer from two major issues:

  1. Catastrophic Forgetting: As the model updates to accommodate new classes, the weights shift, causing it to "forget" how to recognize old ones.
  2. Overfitting: With only a few samples for new classes, models tend to memorize specific noise rather than generalizable features.

While previous work focused on single-model solutions, the authors argue that a single model is inherently limited. It might focus on one set of features (e.g., a bird's beak) while ignoring others (e.g., its wings), making it fragile when those specific features are overwritten during incremental updates.

Methods

The core innovation is the Memorizing Complementation Network (MCNet), which uses an ensemble approach to ensure that even if one model "forgets" a feature, others retain it.

1. Building Diversity (The Ensemble)

To make the ensemble effective, the models must be diverse. The authors use two strategies:

  • Structure-Wise Complementation (SWC): They pair a CNN head (excellent at local features) with a Transformer head (better at capturing global, long-distance dependencies).
  • Task-Wise Complementation (TWC): One model is trained on a standard visual classification task, while another performs cross-modal classification, aligning visual features with semantic vectors (word embeddings of class names).
  • Attention Regularization (AR): A specific loss term forces different models to focus on different spatial parts of the image, ensuring their learned knowledge is truly complementary.
The MCNet framework showing how different embedding networks and complementation strategies are combined.

2. Updating with PSHT Loss

To update the model in incremental sessions without old data, the authors introduce the Prototype Smoothing Hard-mining Triplet (PSHT) loss.

  • Smoothing: Since old samples are unavailable, they assume old classes follow a Gaussian distribution centered around their stored "prototypes" (centroids). They sample "pseudo-features" from this distribution to represent old classes during training.
  • Hard-mining: The loss pushes novel samples away from each other and, crucially, away from the distributions of old classes to prevent overlap in the embedding space.
Illustration of the PSHT loss pushing novel samples away from old class distributions.

Datasets

The authors evaluated MCNet on three standard benchmarks:

  • CIFAR100: 100 classes of small images.
  • miniImageNet: A subset of ImageNet often used for few-shot tasks.
  • CUB200: A fine-grained dataset of 200 bird species, which is particularly challenging for incremental learning due to the high similarity between classes.

Key Insights and Ideas

  • The "Aha" Moment for Ensembles: As shown in Figure 1, a single model might lose the ability to recognize a bird if it forgets the "beak" features. By ensembling, the system can combine "beak/wing" knowledge from one model with "claw/tail" knowledge from another, maintaining a robust representation of the bird even after updates.
  • Shallow vs. Deep: The authors found that shallow layers learn general features (edges, textures) that are highly transferable. By freezing these and only fine-tuning the deepest layers, they significantly reduced forgetting (Figure 6).
  • Distribution vs. Point: Treating old classes as fixed points (prototypes) is insufficient. Modeling them as Gaussian distributions (Smoothing) provides a much better boundary for the triplet loss to work against.
Fine-tuning only the deepest layers (layer 4) yields the best performance.

Key Results

MCNet consistently outperformed state-of-the-art (SOTA) methods like CEC and F2M across all datasets, with the gap widening as more incremental sessions were added.

  • CUB200: Achieved a final accuracy of 59.08%, outperforming the previous best (F2M) by 3.19%.
  • CIFAR100: Reached a final accuracy of 50.72% (a 1.37% improvement over SOTA).
  • miniImageNet: Reached 49.08% (a 1.24% improvement over SOTA).

Ablation studies confirmed that combining both SWC and TWC strategies provided better results than either alone, proving that structural and task-based diversity are both critical.

Limitations and Future Work

  • Computational Overhead: Ensembling multiple models, especially including Transformers, increases the memory footprint and computational cost during both training and inference.
  • Hyperparameter Sensitivity: The performance relies on tuning coefficients like $\alpha$ (for Attention Regularization) and $\lambda$ (for Knowledge Distillation). As seen in Figure 7, there is a clear "sweet spot" for these values, and performance drops if they are too high or too low.
  • Future Directions: The authors suggest exploring more efficient ways to introduce diversity or better methods for cross-modal integration to further boost performance in low-data regimes.

Summary updated

BibTeX
@article{ji2023memorizing,
  author = {Zhong Ji and Zhishen Hou and Xiyao Liu and Yanwei Pang and Xuelong Li},
  title = {{Memorizing Complementation Network for Few-Shot Class-Incremental Learning}},
  journal = {IEEE Trans. Image Process.},
  year = {2023},
  url = {https://openreview.net/forum?id=hNaYliwF5ZV},
}
Figure