TL;DR
Neural networks exhibit a "last-in-first-out" forgetting pattern: examples learned quickly during training are robust to forgetting, while those learned slowly are the first to go when new tasks arrive. By leveraging this insight, the authors introduce Speed-Based Sampling (SBS), a simple replay strategy that prioritizes examples based on their learning speed, significantly outperforming standard random sampling across diverse continual learning benchmarks.
What Problem Does This Paper Address?
Deep learning models suffer from catastrophic forgetting: when trained on a sequence of tasks, they often abruptly lose the ability to perform previous tasks. While "replay buffers"—storing a small subset of old data to "rehearse" later—are a popular fix, most methods fill these buffers using random sampling.
The authors argue that treating all examples as equally likely to be forgotten is a mistake. They set out to answer a fundamental question: Can we predict which specific examples a model is most likely to forget? By understanding the "behavioral" patterns of forgetting, we can design smarter replay buffers that keep the most "at-risk" or "informative" data.
Methods
The core metric introduced is learning speed. For every example in a task, the authors track how many epochs it takes for the model to start classifying it correctly.
- Learning Speed Score: Formally, this is the average accuracy of an example across all training epochs of its task. An example correctly classified from epoch 1 has a high speed; one only learned in the final epochs has a low speed.
- Speed-Based Sampling (SBS): Instead of random sampling, SBS filters the training data before filling the replay buffer. It removes the $q\%$ quickest-learned examples (which the model remembers anyway) and the $s\%$ slowest-learned examples (which might be too complex or noisy to be worth the limited buffer space).
To find the optimal $q$ and $s$ without "cheating" by looking at future tasks, the authors use a clever RotNet auxiliary task. They train the model to predict image rotations on the current task's data and perform a grid search for the buffer composition that best preserves performance on that rotation task.
Datasets
The researchers evaluated their findings on standard image classification benchmarks partitioned into sequential tasks:
- CIFAR-10 & CIFAR-100: Split into 2, 5, or 20 tasks.
- TinyImageNet: Split into 2 or 10 tasks.
They tested both Task-Incremental Learning (TIL), where the model knows which task it's performing at test time, and the more challenging Class-Incremental Learning (CIL), where it doesn't.
Key Insights and Ideas
- The Simplicity-Forgetting Link: Neural networks have a "simplicity bias"—they learn easy, low-frequency patterns first. The authors discovered a "reverse simplicity bias" in forgetting: the complex examples learned last are the first to be forgotten.
- The "Goldilocks" Zone for Replay: Replaying the very easiest examples is a waste of space because the model rarely forgets them. Replaying the hardest examples is often ineffective because they are too difficult to maintain with a tiny buffer. The best performance comes from replaying "moderately fast" examples.
- Buffer Size Matters: As the replay buffer gets larger, the "optimal" examples to keep shift. Small buffers should focus on easier examples to maintain a baseline, while larger buffers can afford to store and protect more complex, slower-to-learn examples.
- Task Independence: Remarkably, the best buffer composition for Task A is largely independent of what Task B actually is. Whether the next task is similar, different, or even just memorizing random labels, the model's internal forgetting dynamics for Task A remain consistent.
Key Results
SBS consistently advances the state-of-the-art when integrated into existing continual learning algorithms like DER++, GEM, and AGEM.
- Performance Boost: In CIFAR-100 (20 tasks), SBS improved mean accuracy from 51.75% (random sampling) to 55.43%.
- Robustness: The correlation between learning speed and forgetting probability is incredibly high ($r = 0.995$). This pattern held true across different architectures (ResNet-18, VGG-16), optimizers (SGD, Adam), and learning rates.
Limitations and Future Work
- Epoch Dependency: The learning speed score requires training for multiple epochs. In "online" or "stream-like" settings where the model only sees each example once, this specific metric can't be calculated. The authors suggest future work should look for single-pass proxies for complexity.
- Computational Overhead: While calculating the score is "free" during the forward pass, the RotNet-based hyperparameter tuning requires extra training runs, which might be expensive for massive datasets.
- Discrete Scores: With very few training epochs, the learning speed score becomes "chunky" (discrete), which can add noise to the sampling process.
Overall, this paper provides a compelling behavioral lens for understanding forgetting, moving away from complex math toward a data-centric intuition: if you want to remember the past, focus on the things that were just hard enough to learn, but not so hard they're impossible to keep.
Summary updated