Large Scale Incremental Learning

Yue Wu, Yinpeng Chen, Lijuan Wang, Yuancheng Ye, Zicheng Liu, Yandong Guo, Yun Fu

Introduction

Incremental learning (IL) is a fundamental requirement for artificial intelligence systems that must operate in dynamic environments, acquiring new knowledge over time without losing previously learned skills. However, deep neural networks are notoriously prone to catastrophic forgetting. When a model is updated with new classes using only the new data, the weights associated with previous classes are overwritten, causing performance on those "old" classes to plummet.

Existing IL strategies typically employ two main techniques: maintaining a small memory buffer of "exemplars" (representative samples from old classes) and using "knowledge distillation" to ensure the new model's outputs remain similar to the old model's. While these methods work reasonably well on small-scale datasets like CIFAR-100, they struggle significantly as the number of classes scales into the thousands. This paper identifies a critical "recency bias" in large-scale incremental learning: because the model sees thousands of new images but only a handful of old exemplars during an update, the final classification layer learns to favor the new classes almost exclusively.

The Bias Correction (BiC) Method

The authors propose Bias Correction (BiC), a two-stage training framework designed to explicitly model and correct this recency bias.

Stage 1: Standard Incremental Training

In the first stage, the model undergoes standard incremental training. It is trained on the current task's data plus the small set of exemplars from previous tasks. The loss function combines standard cross-entropy on the current classes with a distillation loss that encourages the model to produce similar logits for old classes as the previous iteration of the model.

Stage 2: Linear Bias Correction

In Stage 2, the authors address the bias discovered in the final fully connected (FC) layer. They found that even when the feature extractor (convolutional layers) retains the ability to distinguish old classes, the FC layer's weights are scaled such that new classes receive much higher activation values. To fix this, they freeze the entire network and introduce a simple linear transformation layer after the FC layer. For the $n$ old classes, the outputs remain unchanged. For the $m$ new classes, the outputs $o_k$ are transformed via $q_k = \alpha o_k + \beta$.

The two-stage BiC training pipeline, showing the separation of training and validation data for bias correction.

The parameters $\alpha$ and $\beta$ are optimized using a small, balanced validation set. This set consists of a tiny, equal number of samples from both old and new classes that were withheld from the training set in Stage 1. By tuning just these two parameters, the model learns to "downscale" the overconfident new class predictions, effectively re-balancing the classifier without needing a complex retraining process.

Experimental Evaluation

The method was evaluated on three major benchmarks representing different scales of complexity:

  • CIFAR-100: 100 classes of small images, primarily used for ablation studies.
  • ImageNet-1000: The standard 1,000-class object recognition benchmark, providing a rigorous test of scalability.
  • Celeb-10000: A subset of MS-Celeb-1M containing 10,000 distinct individuals, representing a significantly larger scale than most previous incremental learning research.

Key Results and Insights

BiC demonstrates remarkable robustness as the number of classes increases. On ImageNet-1000, BiC achieved a final accuracy of 73.2%, significantly outperforming previous state-of-the-art methods like EEIL (52.0%) and iCaRL (44.0%). This represents an average improvement of 11.1% across incremental steps.

Accuracy vs. number of classes on ImageNet-1000 and MS-Celeb-1M, showing BiC maintaining a flatter degradation curve compared to baselines.

On the Celeb-10000 dataset, BiC outperformed iCaRL by 13.2% in final accuracy (87.98% vs 65.56%). The primary insights from these results include:

  • Linearity of Bias: Surprisingly, the complex imbalance-induced bias can be corrected with a simple linear model ($y = ax + b$). You don't need complex retraining; you just need to re-calibrate the "volume" of the new classes' outputs.
  • Validation Value: Using a small portion of the memory budget for a balanced validation set is more effective for calibration than using those same images as extra training exemplars.
  • Scalability: Unlike prior methods that show a massive performance "drop-off" as more classes are added, BiC maintains a consistent gap with the "upper bound" (joint training on all data).

Limitations and Future Work

Despite its success, BiC still relies on storing a small number of exemplars, which may pose privacy concerns in certain applications. Additionally, while BiC handles class imbalance well, the inherent challenge of distinguishing between increasing numbers of visually similar classes remains an area for improvement. Future research could explore dynamic memory budgets or exemplar-free bias correction techniques to further enhance the privacy and efficiency of incremental learning systems.

Summary updated

BibTeX
@inproceedings{wu2019large,
  author = {Yue Wu and Yinpeng Chen and Lijuan Wang and Yuancheng Ye and Zicheng Liu and Yandong Guo and Yun Fu},
  title = {{Large Scale Incremental Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00046},
}
Figure