Memory-Efficient Class-Incremental Learning for Image Classification

Hanbin Zhao, Hui Wang, Yongjian Fu, Fei Wu, Xi Li

TL;DR

Class-incremental learning often struggles with "catastrophic forgetting" due to strict memory limits on saving old data. This paper introduces a clever workaround: instead of storing a few high-fidelity exemplar images, store a much larger quantity of compressed, low-fidelity images. By combining this memory-saving trick with a "duplet learning" strategy to bridge the compression domain gap, the authors achieve state-of-the-art accuracy without increasing the memory footprint.

What Problem Does This Paper Address?

In an ideal world, machine learning models would continuously learn new concepts over time. In reality, when a model is trained on new classes sequentially (Class-Incremental Learning, or CIL), it suffers from catastrophic forgetting—it completely overwrites what it previously learned about old classes.

To prevent this, standard CIL methods use a "rehearsal" strategy: they keep a tiny memory buffer containing a few representative images (exemplars) from past classes to replay during training. However, because memory budgets are strictly limited in real-world applications, models can only save a handful of images per class. This small sample size causes a severe drop in classification performance. The authors of this paper tackle a fundamental trade-off: how can we maximize the amount of past knowledge transferred to the model within a fixed, rigid memory budget?

Methods

The authors propose a shift in perspective: prioritize the quantity of exemplars over their visual fidelity. By compressing images, they can pack significantly more exemplars into the same memory buffer.

However, low-fidelity, compressed images look different to a neural network than sharp, original images, creating a domain shift that can degrade performance. To solve this, the framework introduces three key components:

  1. Memory-Efficient Exemplar Preserving: Images are compressed using techniques like PCA, downsampling, or deep autoencoders, allowing the buffer to hold more samples.
  2. Duplet Learning Scheme: To bridge the domain gap, the network is trained on "duplet pairs"—explicit pairs of an original image and its low-fidelity counterpart. This forces the feature extractor to learn domain-compatible representations, effectively aligning the features of compressed and uncompressed images.
  3. Classifier Adaptation Scheme: Knowledge distillation (used to keep old class knowledge) often introduces noise into the classifier. To fix this, the authors freeze the feature extractor and fine-tune the classifier using only the pure, true labels of the stored auxiliary samples.
Overview of the duplet learning and classifier adaptation pipeline

Datasets

The method was rigorously evaluated on two standard image classification benchmarks:

  • iCIFAR-100: A dataset of 100 classes, evaluated in incremental batches of 5, 10, 20, and 50 classes at a time.
  • ImageNet (ILSVRC 2012): Evaluated on both a subset of 100 classes (iILSVRC-small) in batches of 10, and the full 1000-class dataset (iILSVRC-full) in incremental steps of 100 classes to test large-scale viability.

Key Insights and Ideas

  • Quantity Beats Quality: In memory-constrained rehearsal, having a higher volume of low-quality images provides a better representation of a class's distribution than having only a few high-quality images.
  • The Compression Domain Gap is Real: Simply feeding compressed images into standard CIL models causes performance to tank. The model treats the compression artifacts as a completely different data domain.
  • Duplet Alignment Works: Forcing the network to evaluate original and compressed images side-by-side during training is an incredibly effective way to build a domain-invariant feature extractor. As shown via t-SNE visualizations in the paper, duplet learning successfully collapses the domain gap.

Key Results

The proposed method consistently outperformed top-tier CIL baselines (such as iCaRL, BiC, and ETE) across all benchmarks:

  • On iCIFAR-100 (with 10 classes added per session), the proposed method achieved an average accuracy of 67.04%, notably outperforming iCaRL (60.79%) and BiC (63.86%).
  • On the massive iILSVRC-full benchmark, it achieved a final-session accuracy of 75.4% and an average accuracy of 84.9%, outperforming the closest state-of-the-art competitor (BiC) by 2.1%.
Accuracy curves comparing the proposed method against baselines on iCIFAR-100

Limitations and Future Work

While the results are impressive, there is a sweet spot for compression. The authors acknowledge that if image fidelity is reduced too drastically, the model's performance eventually drops because vital class-discriminative features are completely wiped out during compression.

For future work, the authors plan to explore more advanced selection schemes specifically designed for low-fidelity auxiliary samples, aiming to inherit even more class information without breaking the memory budget.

Summary updated

BibTeX
@article{zhao2022memory,
  author = {Hanbin Zhao and Hui Wang and Yongjian Fu and Fei Wu and Xi Li},
  title = {{Memory-Efficient Class-Incremental Learning for Image Classification}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2022},
  url = {https://openreview.net/forum?id=q6C0NkoBZt},
}
Figure