IL2M: Class Incremental Learning With Dual Memory

Eden Belouadah, Adrian PopescuICCV 2019

Abstract

Class Incremental Learning (IL) is a fundamental challenge in computer vision where models must learn new classes sequentially without forgetting previous ones. The primary obstacle is catastrophic forgetting, often driven by a prediction bias toward new, data-rich classes over old classes represented only by a few exemplars. We propose IL2M (Incremental Learning with Dual Memory), which utilizes a standard exemplar memory alongside a minimal secondary memory of class statistics. By employing vanilla fine-tuning and a novel score rectification step, IL2M effectively mitigates prediction bias. Our approach outperforms existing distillation-based methods on large-scale benchmarks including ImageNet, VGGFace2, and Google Landmarks, particularly when memory is highly constrained.

Introduction

In Class Incremental Learning (IL), an artificial agent must learn new categories of objects over time while maintaining its performance on previously learned categories. Deep Neural Networks (DNNs) typically suffer from catastrophic forgetting, where training on new data overwrites weights essential for recognizing old classes.

To combat this, a common strategy is to maintain a "bounded memory" of representative images (exemplars) from past classes. However, this creates a significant data imbalance: the model is exposed to thousands of images for new classes but only a handful for old ones. This imbalance leads to a prediction bias, where the model assigns systematically higher confidence scores to new classes, causing it to misclassify old objects as new ones.

Prediction bias across different memory sizes (K). New classes consistently receive higher mean scores than past classes, a gap that widens as memory decreases.

Methodology

IL2M departs from the traditional reliance on "distillation loss" and introduces a dual-memory architecture designed for efficient bias correction.

Dual Memory System

The architecture consists of two distinct memory components:

  1. Exemplar Memory: A standard buffer storing a small set of images for past classes.
  2. Statistical Memory ($S$): An extremely compact memory storing the mean prediction scores of classes recorded when they were first introduced (i.e., when the full dataset for those classes was available).

Vanilla Fine-Tuning

Contrary to prevailing wisdom, the authors found that distillation loss—intended to preserve old knowledge by matching current outputs to previous model outputs—can actually degrade performance when exemplars are present. IL2M instead utilizes standard vanilla fine-tuning with a cross-entropy classification loss.

Score Rectification

During the inference phase, if the model's initial prediction points to a new class, IL2M applies a rectification formula to the scores of all past classes. By leveraging the initial statistics stored in memory $S$, the model "boosts" the scores of past classes to make them competitive with new class scores, effectively leveling the playing field.

Overview of the IL2M incremental process. As the model moves through states, it updates its primary model $\mathcal{M}$ and stores class statistics in the secondary memory $S$.

Experimental Results

The method was rigorously evaluated on three large-scale datasets: ILSVRC (ImageNet), VGGFace2, and Google Landmarks. Experiments varied the total memory size ($K$) and the number of incremental states ($Z$).

IL2M consistently outperformed state-of-the-art methods like iCaRL and DeeSIL. On ImageNet with 10 incremental states, IL2M improved top-1 accuracy by 5.3 points with 20,000 exemplars and by 11.9 points with 5,000 exemplars compared to vanilla fine-tuning. Notably, the performance advantage of IL2M grew as the available memory decreased, highlighting the effectiveness of statistical rectification in data-scarce scenarios.

Conclusion

IL2M demonstrates that complex distillation losses are not always necessary for effective incremental learning. By identifying and mathematically correcting prediction bias using a tiny secondary memory of initial class statistics, IL2M provides a robust and efficient solution for sequential learning. While the method currently assumes a fixed architecture and requires some exemplars, its simplicity and performance on large-scale datasets mark a significant step toward closing the gap between incremental and joint training.

Summary updated

BibTeX
@inproceedings{belouadah2019il,
  author = {Eden Belouadah and Adrian Popescu},
  title = {{IL2M: Class Incremental Learning With Dual Memory}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
  doi = {10.1109/iccv.2019.00067},
}
Figure