NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mnemonics Training: Multi-Class Incremental Learning without Forgetting.

Yaoyao Liu, An-An Liu, Yuting Su, Bernt Schiele, Qianru SunarXiv 2020 · DOI

TL;DR

This paper introduces Mnemonics Training, a novel framework for Multi-Class Incremental Learning (MCIL) that treats exemplars not just as stored data, but as optimizable parameters. By using a bilevel optimization approach, the authors transform these "mnemonic" exemplars into highly representative boundary samples that significantly reduce catastrophic forgetting, outperforming existing state-of-the-art methods by a wide margin.

What Problem Does This Paper Address?

Machine learning models typically suffer from catastrophic forgetting: when trained on new data, they tend to overwrite the knowledge acquired from previous tasks. In Multi-Class Incremental Learning (MCIL), we want a model to learn new classes over time without losing the ability to recognize old ones.

Because memory is limited, we cannot store all previous data. The standard solution is to keep a small set of "exemplars" from old classes to "refresh" the model's memory. However, current methods rely on heuristic rules to pick these samples—such as "herding," which selects samples nearest to the class mean. The authors argue that these heuristics are sub-optimal because they don't account for how the data distribution changes as new classes are added.

Methods

The core innovation is Mnemonics Training, where exemplars are parameterized and optimized in an end-to-end manner. Instead of just picking existing images, the framework treats the pixels of the exemplars as variables to be tuned.

The training follows a Bilevel Optimization Program (BOP):

  1. Model-level Optimization: The classification model is trained using a combination of new class data and the current set of mnemonic exemplars.
  2. Exemplar-level Optimization: The exemplars themselves are updated to minimize the validation loss of a "temporary model" on the new class data. This ensures the exemplars are as representative as possible for the current model state.
The computing flow of mnemonics training, showing the alternation between model-level and exemplar-level optimization across different phases.

Additionally, the authors use weight transfer operations to preserve structural knowledge between phases and a local BOP to adjust old exemplars to fit the evolving data distribution.

Datasets

The authors evaluated their approach on three standard MCIL benchmarks:

  • CIFAR-100: 60,000 images across 100 classes.
  • ImageNet-Subset: A 100-class subset of the full ImageNet dataset.
  • ImageNet: The full ILSVRC 2012 dataset containing 1.3 million images across 1,000 classes.

Experiments were conducted across different "phase" settings (5, 10, and 25 phases) to test the model's resilience over long-term incremental learning.

Key Insights and Ideas

  • Boundary over Center: Intriguingly, optimized mnemonic exemplars tend to migrate toward the boundaries between classes rather than the center. This makes sense from a classification perspective: boundary samples are more critical for defining the decision margins that separate different categories.
  • Dynamic Adaptation: Unlike fixed heuristic exemplars, mnemonics are "alive." They are adjusted in every new phase to stay relevant to the current, expanded data distribution.
  • Clearer Separation: Visualization via t-SNE shows that mnemonic exemplars result in much cleaner class separation in the feature space compared to random sampling or herding.
t-SNE results comparing random, herding, and mnemonics. Note how mnemonics (ours) leads to clearer separation and boundary-focused exemplars.

Key Results

Mnemonics training consistently outperformed baselines across all datasets and architectures.

  • Large Margins: On the challenging 25-phase ImageNet benchmark, the mnemonics approach achieved an average accuracy 4.4% higher than the previous state-of-the-art (LUCIR) and 17.9% higher than the herding-based iCaRL.
  • Reduced Forgetting: The "forgetting rate" (the drop in accuracy on the initial classes by the end of the training) was significantly lower. For example, on 25-phase CIFAR-100, the forgetting rate for LUCIR was reduced from 26.46% to 19.80% when using mnemonics.
  • Scalability: The performance boost actually increases as the number of incremental phases grows, suggesting the method is particularly robust for long-term learning scenarios.
Phase-wise accuracy curves showing that mnemonics (blue line) consistently stays closer to the upper bound than other methods across various datasets and phase counts.

Limitations and Future Work

  • Computational Overhead: Bilevel optimization is computationally expensive, as it requires calculating second-order derivatives (Hessian-vector products) to back-propagate through the training process.
  • Optimization Stability: While the results are strong, bilevel optimization can sometimes be sensitive to hyperparameters like learning rates for the different levels.
  • Future Directions: The authors suggest that exploring more complex synthesis methods (beyond direct pixel optimization) or integrating these mnemonics with generative models could be promising avenues for future research.

Summary updated

BibTeX
@misc{liu2020mnemonics,
  author = {Yaoyao Liu and An-An Liu and Yuting Su and Bernt Schiele and Qianru Sun},
  title = {{Mnemonics Training: Multi-Class Incremental Learning without Forgetting.}},
  year = {2020},
  eprint = {2002.10211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.10211},
}
Figure