Abstract
Deep neural networks suffer from catastrophic forgetting when learning tasks sequentially, where new knowledge overwrites the weights necessary for previous tasks. We present Few-shot Self Reminder (FSR), a simple yet effective method that prevents forgetting by regularizing the model's output behavior. By storing a tiny subset of previous data in an episodic memory and matching the model's original raw logits, FSR maintains high performance across sequential tasks with minimal memory overhead.
The Challenge of Continual Learning
Continual learning is a major hurdle for deep learning systems. Standard optimization for a new task typically destroys the model's ability to perform on earlier ones. Existing solutions generally fall into two categories: parameter regularization (like Elastic Weight Consolidation, or EWC) and generative replay. However, weight-based regularization often fails when tasks are highly dissimilar, and generative replay adds significant computational complexity.
FSR challenges the status quo by focusing on protecting the function mapping (the behavior) rather than the internal weights. It also demonstrates that storing a very small amount of historical data is far more effective than previously assumed.
Methodology: Few-Shot Self Reminder (FSR)
The core of FSR is the "reminder" term added to the standard loss function. The model maintains a small "episodic memory" of samples from previous tasks along with the logits (raw, unnormalized outputs) produced when the model was at peak performance for those tasks.
Why Logit Matching?
While many methods use probability distillation, FSR uses an $L_2$ distance penalty to match raw logits. Logits preserve "dark knowledge"—the subtle relationships between non-predicted classes—which is often lost when probabilities are squashed by a softmax function. This provides a stronger, more informative constraint on the model's evolution.
Efficient Sample Selection
Surprisingly, complex selection methods like influence functions are not required. The authors found that class-stratified random sampling (picking a few random images from each category) works exceptionally well. FSR can significantly reduce forgetting with as little as one data point per class.
Key Results and Insights
FSR was evaluated on benchmarks including Permuted MNIST, Incremental CIFAR100, and a new, difficult "Nonlinearly Transformed MNIST" where tasks are highly dissimilar.
- Robustness to Dissimilarity: In tests with high distribution shifts (Nonlinear MNIST), weight-based methods like EWC failed completely. FSR maintained high performance, proving it handles distinct tasks much better than parameter-space methods.
- Memory Efficiency: On Permuted MNIST, FSR achieved accuracy comparable to EWC while using only 5% of the memory overhead.
- Superiority over iCaRL and LwF: FSR consistently outperformed other functional regularization methods because it uses actual historical data points as "anchors" rather than trying to infer old behavior from new task data.
Conclusion
Few-Shot Self Reminder proves that a "frustratingly simple" approach—logit matching on a tiny episodic memory—is a powerful tool against catastrophic forgetting. By regularizing behavior in the function space rather than the parameter space, FSR offers a flexible, memory-efficient, and robust solution for building vision systems that can learn continually.
Summary updated