Introduction
In the field of Continual Learning (CL), recent research has often prioritized increasingly complex algorithmic architectures to combat catastrophic forgetting. However, this paper argues that a simpler, more fundamental approach—Experience Replay (ER)—remains a highly effective baseline when properly optimized. By identifying and addressing specific technical pitfalls in standard ER implementations, the authors introduce a "bag of tricks" that allows a basic rehearsal strategy to significantly outperform current state-of-the-art (SOTA) methods.
The Challenge of Class-Incremental Learning
The authors focus on Class-Incremental Learning (Class-IL), the most demanding scenario in CL. In Class-IL, a model encounters classes in sequential tasks (e.g., learning digits 0-1, then 2-3) and must eventually classify all seen classes without task-specific identifiers at test time. Deep Neural Networks typically suffer from catastrophic forgetting in this setting, as they overwrite previous knowledge to minimize loss on the current task. While complex regularization and architectural modifications have been proposed, the authors demonstrate that the primary limitations of Experience Replay—overfitting the buffer, recency bias, and inefficient sampling—can be mitigated with five targeted modifications.
The Bag of Tricks
The proposed "bag of tricks" addresses the structural weaknesses of naive ER through five simple yet effective components:
- Independent Buffer Augmentation (IBA): Standard implementations often store already-augmented images, leading the model to memorize specific noise patterns. IBA stores raw images and applies fresh random augmentations during each rehearsal step, improving generalization.
- Bias Control (BiC): To counter the inherent recency bias toward new classes, a simple linear layer is added to the network's end to calibrate output logits, ensuring old and new classes are treated equitably.
- Exponential LR Decay (ELRD): Instead of resetting the learning rate per task, ELRD decays it globally across the entire data stream. This "cooling" process stabilizes weights as the model accumulates knowledge.
- Balanced Reservoir Sampling (BRS): BRS ensures the memory buffer maintains an equal representation of all classes encountered so far, preventing the accidental deletion of entire categories during random sampling.
- Loss-Aware Reservoir Sampling (LARS): LARS prioritizes keeping "difficult" examples in the buffer. When the buffer is full, it discards items with the lowest loss scores, as these are considered already mastered by the model.
Experimental Results
The "Enhanced ER" (ER+T) was evaluated across multiple benchmarks, including Split Fashion-MNIST, Split CIFAR-10, Split CIFAR-100, and the real-world CORe-50 dataset. The results demonstrate a dramatic improvement over both naive ER and established SOTA methods like iCaRL and GEM.
On Split CIFAR-10 with a buffer size of 1000, ER+T achieved an accuracy gain of 51.2 percentage points over the baseline ER. Even with smaller buffers, the performance remains robust; for instance, on CIFAR-10 with a buffer of 200, ER+T reached approximately 59% accuracy, significantly higher than iCaRL's 41%. Furthermore, ER+T maintains computational efficiency, avoiding the expensive optimization problems required by methods like GEM.
Conclusion
This work serves as a reminder of Occam’s Razor in machine learning: complexity is not always a prerequisite for performance. By refining the implementation details of Experience Replay, the authors show that a well-tuned rehearsal strategy can serve as a formidable baseline in Continual Learning. The "bag of tricks" provides a practical framework for researchers to build more robust CL systems without resorting to overly intricate architectures.
Summary updated