Predicting the Susceptibility of Examples to Catastrophic Forgetting

Guy Hacohen, Tinne Tuytelaars

Introduction: The Challenge of Continual Learning

In Continual Learning (CL), a neural network is trained on a sequence of tasks. The "holy grail" challenge in this field is catastrophic forgetting: as the model learns a new task (Task B), its performance on a previously learned task (Task A) plummets.

To combat this, researchers often employ a "replay buffer"—a small reservoir of old data that the model revisits while learning new information. However, most state-of-the-art methods fill this buffer using random sampling, treating every image of a "bicycle" or "bee" as equally valuable. This paper asks a fundamental question: Are some examples inherently more likely to be forgotten than others? If we can predict which examples are "at risk," we can curate much more effective replay buffers.

The Core Insight: Learning Speed and Forgetting

The authors take a behavioral approach, investigating the relationship between how fast a model learns an example and how well it remembers it later. They define "learning speed" as the average accuracy of a specific example across all training epochs of a task. If a model correctly classifies an image starting from the very first epoch, it’s considered a "fast" or simple example. If it only gets it right in the final epochs, it’s a "slow" or complex example.

Examples learned quickly vs slowly

This investigation revealed a striking "last-in-first-out" (LIFO) forgetting pattern. Because neural networks exhibit a simplicity bias, they learn easy, low-frequency patterns first. These "simple" examples are remarkably robust and rarely forgotten. Conversely, the "complex" examples learned at the tail end of a task are the most fragile and the first to be forgotten when new data is introduced. In fact, the authors found a near-perfect correlation ($r = 0.995$) between an example's learning speed and the probability that a network would remember it after a task switch.

Speed-Based Sampling (SBS)

Motivated by this LIFO dynamic, the authors introduce Speed-Based Sampling (SBS). Instead of randomly selecting data for the replay buffer, SBS tracks learning speeds and filters the data accordingly.

Interestingly, the optimal strategy isn't just to save the hardest examples. The authors discovered the concept of a "Goldilocks" buffer: the best performance comes from saving moderately fast examples. The absolute easiest examples are already remembered without help, and the absolute hardest might be too noisy or complex to be useful within a strictly limited buffer size. Therefore, SBS removes the $q\%$ quickest-learned and $s\%$ slowest-learned examples, sampling the replay buffer exclusively from the moderately fast remainder.

SBS is designed as a "plug-and-play" module. It doesn't replace existing CL algorithms (like DER++ or AGEM); it simply upgrades their data selection process. Furthermore, computing the learning speed requires only one extra float per example during the standard forward pass, making it computationally cheap compared to other selective replay methods.

Key Results

The researchers evaluated SBS on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and TinyImageNet, across both Task-Incremental Learning (TIL) and the more challenging Class-Incremental Learning (CIL) settings.

SBS consistently outperformed random sampling across almost every tested algorithm:

  • On CIFAR-100-20 (split into 20 tasks), SBS improved mean accuracy to 55.43%, compared to 51.75% for random sampling.
  • On TinyImageNet-2, SBS achieved 52.15% accuracy, outperforming specialized methods like Herding (51.17%) and GSS (49.36%).

The study also noted that as the size of the replay buffer increases, the "optimal" examples to save shift from easy to harder. A small buffer should focus on the easiest-to-forget "simple" things, while a larger buffer can afford to protect more complex data. Surprisingly, this ideal buffer composition remains roughly the same regardless of whether the subsequent task is similar to the previous one or completely random noise, suggesting that forgetting is driven more by the data's inherent complexity than by the specific nature of the new information.

Limitations and Future Directions

While highly effective, SBS has limitations. The current definition of "learning speed" requires training for multiple epochs, making it difficult to apply in "online" or "single-pass" settings where the model sees each data point only once. Additionally, while the authors provide a heuristic for hyperparameter tuning (e.g., removing the top and bottom 20%), the optimal $q$ and $s$ values can vary based on the dataset and buffer size.

Future work will likely focus on finding alternative proxies for example complexity that do not require multiple training epochs, potentially allowing these powerful insights to be applied to real-time, continuous data streams.

Summary updated

BibTeX
@inproceedings{hacohen2025predicting,
  author = {Guy Hacohen and Tinne Tuytelaars},
  title = {{Predicting the Susceptibility of Examples to Catastrophic Forgetting}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=sUBuOCquHX},
}
Figure