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

Probing Representation Forgetting in Supervised and Unsupervised Continual Learning

MohammadReza Davari, Nader Asadi, Sudhir Mudur, Rahaf Aljundi, Eugene Belilovsky

This paper, presented by researchers from Concordia University, Mila, and Toyota Motor Europe, challenges the conventional wisdom surrounding "catastrophic forgetting" in neural networks. By shifting the focus from final task accuracy to the quality of the underlying features, the authors reveal that our models might be remembering much more than we think.

TL;DR

The authors argue that "catastrophic forgetting" is often a failure of the classification head rather than a total loss of knowledge. By using Linear Probes to measure "representation forgetting," they demonstrate that naive finetuning—especially when using contrastive losses—retains highly useful features across long task sequences, and that increasing model capacity significantly improves this feature retention.

What Problem Does This Paper Address?

In Continual Learning (CL), the primary enemy is catastrophic forgetting: the abrupt drop in performance on old tasks when a model learns something new. Traditionally, researchers measure this by looking at observed accuracy—how well the model performs on Task A after being trained on Task B.

However, the authors point out a critical nuance: a model’s performance might drop simply because the "classification head" (the last layer) has drifted, even if the "backbone" (the feature extractor) still produces excellent representations. If the features are still there, the model hasn't truly "forgotten" the data; it has just lost the ability to map those features to labels using its current head. This paper seeks to disambiguate these two phenomena by introducing and probing the concept of representation forgetting.

Methods

The core tool used in this study is the Linear Probe (LP). To measure representation forgetting, the authors freeze the backbone of a model at various stages of continual learning and train an optimal linear classifier on top of it using data from a previous task. If the LP accuracy remains high, the representation is still useful, even if the model's original classification head fails.

The authors compare several training objectives and CL strategies:

  • Standard Cross-Entropy (CE) finetuning.
  • Supervised Contrastive Learning (SupCon): A loss that pulls samples of the same class together and pushes different classes apart in embedding space.
  • SimCLR: An unsupervised contrastive approach.
  • Established CL methods: Including Learning without Forgetting (LwF), Elastic Weight Consolidation (EWC), and Experience Replay (ER).

They also propose a "fast remembering" approach using Nearest Mean of Exemplars (NME), which uses a tiny buffer of old samples only at inference time to reconstruct class prototypes, bypassing the need for complex rehearsal during training.

Datasets

The study employs a diverse range of benchmarks to test different scales and sequence lengths:

  • SplitCIFAR100: 10 tasks of 10 classes each.
  • SplitMiniImageNet: 20 tasks.
  • ImageNet32: A massive 200-task sequence (5 classes per task) to observe long-term trends.
  • ImageNet Transfer Sequence: A realistic sequence moving from ImageNet to MIT Scenes, Caltech-UCSD Birds (CUB), and Oxford Flowers.

Key Insights and Ideas

  • Accuracy is a Deceptive Metric: In many settings, observed accuracy suggests total forgetting, while Linear Probes reveal that the representations remain remarkably stable. Naive finetuning often undergoes minimal representation forgetting compared to what standard metrics imply.
  • Contrastive Learning is "CL-Friendly": SupCon and SimCLR are surprisingly robust for continual learning. In long sequences, SupCon often exhibits positive backward transfer, where learning new tasks actually improves the representation quality for older tasks.
  • Capacity Matters: Contrary to some recent studies suggesting larger models don't help with forgetting, the authors show that wider and deeper models significantly reduce representation forgetting. This benefit is hidden when looking only at observed accuracy but becomes clear under LP evaluation.
  • Forgetting is Layer-Dependent: Representation forgetting is most extreme in the final layers. Early layers in the network experience almost no forgetting and sometimes even improve their utility for old tasks as training progresses.

Key Results

The paper's experiments show that in long task sequences, simple finetuning with SupCon can rival or outperform specialized CL methods like LwF and even Experience Replay with small buffers.

Figure 2. 10-Task SplitCIFAR100. We compare observed acc. and linear probe acc. Naively finetuning with CE does poorly if using the observed accuracy. However using the LP based evaluation we observe that performance gap to other methods is lower. Further- more when finetuning is performed instead with the SupCon loss function LP performance can rival that of LwF.

In the extreme 200-task ImageNet32 sequence, the gap becomes even more pronounced. As shown in Figure 5, SupCon (black line) maintains a high LP accuracy throughout the entire sequence, eventually outperforming Experience Replay with 5 samples per class (green line), despite SupCon having no access to old data during training.

Figure 5. 200-Task ImageNet32. We compare Linear probe accuracy for Tasks 1 data over the whole sequence. As the model observes the later tasks of the sequence, the performance of finetuning with CE reaches LwF, and finetuning with SupCon outperforms ER with 5 samples per class.

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Task-Incremental vs. Class-Incremental: This work focuses on the task-incremental setting (where the task identity is known). The more challenging class-incremental setting remains a subject for future study.
  • Beyond Linear Probes: While LP is a strong proxy for knowledge, it may not capture all nuances of what a model has "learned" or "forgotten."
  • Task Diversity: The authors suggest testing on more "distant" task sequences (e.g., moving from natural images to sketches) to see if these representation-retention trends hold when the data distributions shift more radically.

Summary updated

BibTeX
@misc{davari2022probing,
  author = {MohammadReza Davari and Nader Asadi and Sudhir Mudur and Rahaf Aljundi and Eugene Belilovsky},
  title = {{Probing Representation Forgetting in Supervised and Unsupervised Continual Learning}},
  year = {2022},
  eprint = {2203.13381},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.13381},
}
Figure