Probing Representation Forgetting in Continual Learning

MohammadReza Davari, Eugene BelilovskyDistShift @ NeurIPS 2021

TL;DR

This paper argues that traditional metrics for catastrophic forgetting in continual learning (CL) might be misleading. By using linear probes to evaluate the usefulness of learned representations, they find that models trained naively often retain more knowledge than accuracy-based metrics suggest, and that many specialized CL methods don't significantly improve this representation-level retention.

What Problem Does This Paper Address?

Continual Learning (CL) aims to enable models to learn new tasks sequentially without forgetting previously acquired knowledge. The primary challenge is "catastrophic forgetting," where a model's performance on old tasks drastically drops after learning new ones. Typically, this is measured by a decline in classification accuracy on the old tasks. However, this paper points out that a model's internal representations can change (e.g., through feature permutations) without necessarily losing useful information, which might be masked by a simple accuracy drop. The authors propose a more nuanced way to assess forgetting by looking at the quality of the learned representations themselves, rather than just the final task performance.

Methods

The core contribution is the introduction and application of Linear Probes (LP) to measure "representation forgetting." Here's how it works:

  • Standard Approach: Evaluate a model's performance on Task 1 after it has been trained on Task 2. A drop in accuracy indicates forgetting.
  • Proposed Approach (Linear Probes):
    1. Train a model on Task 1.
  • Freeze the model's learned representations (the feature extractor part).
  • Train a simple linear classifier on top of these frozen representations using Task 1 data. This linear classifier acts as a "probe" to assess how well the representations encode Task 1 information.
  • After training on Task 2, repeat steps 2 and 3.
  • Compare the performance of the linear probe on Task 1 data before and after Task 2 training. A smaller drop in the probe's accuracy suggests less representation forgetting.

This method aims to disentangle changes in the final classifier from changes in the underlying feature representations. They also revisit existing CL benchmarks and compare naive fine-tuning with methods like Learning without Forgetting (LwF) and Experience Replay (ER) using this LP evaluation.

Datasets

The paper evaluates their approach on several standard CL benchmarks:

  • SplitCIFAR10: A common benchmark where CIFAR10 is split into multiple tasks. They use both a two-task version and a five-task sequence.
  • ImageNet Transfer: This involves transferring a model trained on ImageNet to downstream tasks like CUB (Caltech-UCSD Birds 200-2011) and Scenes.

Key Insights and Ideas

  • Accuracy is Not the Whole Story: Traditional accuracy metrics can overstate catastrophic forgetting. Representations might be re-organized or transformed rather than lost, especially in early layers.
  • Early Layers are Resilient: The initial layers of deep networks often show minimal or even improved representation quality for previous tasks after learning new ones, even without explicit CL methods. Forgetting tends to be concentrated in the later layers.
  • CL Methods Don't Always Help Representation Quality: Surprisingly, many CL methods designed to combat catastrophic forgetting don't significantly improve the quality of learned representations as measured by linear probes, compared to naive fine-tuning.
  • Model Capacity Matters: Larger models, even when trained naively without CL-specific regularization, can exhibit better representation retention. This suggests that simply increasing model size can be a form of implicit forgetting mitigation.
  • Misleading Evaluation: Relying solely on observed accuracy can lead to misinterpretations about the effectiveness of model scaling and CL techniques.

Key Results

  • SplitCIFAR10 (2-task): For ResNet and VGG models, naive fine-tuning showed a significant drop in accuracy (e.g., 85% to 63% for ResNet Task 1). However, linear probe evaluation revealed a much smaller degradation (around 6.8%), indicating representations remained largely useful. Forgetting was concentrated in the top layers.
  • ImageNet Transfer: When transferring from ImageNet to CUB, naive fine-tuning showed a large accuracy drop. However, linear probes on ImageNet data after fine-tuning showed nearly identical performance to LwF, suggesting LwF didn't offer significant representation retention benefits over naive fine-tuning in this scenario.
  • SplitCIFAR10 (5-task): In longer sequences, naive fine-tuning's observed accuracy was poor. However, LP accuracy showed that representations were much better preserved than accuracy metrics suggested. Furthermore, increasing model width (capacity) significantly improved LP accuracy for fine-tuning, making it competitive with methods like Experience Replay.

Limitations and Future Work

  • Focus on Linear Probes: While insightful, linear probes are a specific type of evaluation. Other downstream tasks or more complex probes might reveal different aspects of representation quality.
  • Reproducibility: The appendix notes slight differences in reproducing LwF results, indicating potential sensitivity to hyperparameters or training details.
  • Future Work: The paper implicitly suggests that future CL research should incorporate representation-level evaluations. They also highlight the potential of model capacity as a factor in mitigating forgetting, which could be explored further. The authors also suggest that their findings motivate the need for CL methods that explicitly improve representation quality, not just task performance.

Summary updated

BibTeX
@inproceedings{davari2021probing,
  author = {MohammadReza Davari and Eugene Belilovsky},
  title = {{Probing Representation Forgetting in Continual Learning}},
  booktitle = {DistShift @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=YzAZmjJ-4fL},
}
Figure