Abstract
Catastrophic forgetting remains a primary obstacle in continual learning (CL), where neural networks overwrite knowledge of previous tasks when learning new ones. While research often focuses on complex memory buffers or regularization algorithms, this paper investigates the impact of standard training hyperparameters. We demonstrate that a "stable" training regime—utilizing dropout, learning rate decay, and small batch sizes—promotes wider local minima and minimizes parameter displacement. Our analysis shows that this simple baseline can outperform state-of-the-art continual learning methods without requiring additional memory or complex loss functions.
Introduction
Continual learning (CL) requires models to learn a sequence of tasks incrementally without access to prior training data. This setup triggers the "stability-plasticity dilemma": models must be plastic enough to acquire new knowledge but stable enough to retain old information. Traditional solutions involve experience replay, explicit regularization (e.g., Elastic Weight Consolidation), or parameter isolation. However, the influence of the underlying optimization process—specifically the training regime—is often overlooked. This paper bridges that gap by analyzing forgetting through the lens of loss landscape geometry.
The Geometry of Forgetting
To understand why networks forget, we can model the loss landscape using a second-order Taylor expansion. This mathematical framework reveals that forgetting is primarily driven by two geometric factors: the curvature of the loss at the local minimum (represented by the maximum eigenvalue of the Hessian, $\lambda_{max}$) and the distance the weights move when learning a new task ($||\Delta w||$).
As illustrated in the figure above, a flatter (wider) minimum allows for small weight shifts without a significant spike in the loss of previous tasks. Conversely, sharp minima are highly sensitive to even minor parameter updates, leading to catastrophic forgetting.
The "Stable" Training Regime
Based on these geometric insights, we propose a Stable Training Regime designed to minimize both curvature and displacement using standard deep learning techniques:
- Dropout: By regularizing activations, dropout pushes weight norms down and flattens the minima, effectively reducing curvature.
- Learning Rate (LR) Decay: A high initial LR facilitates the exploration of wide basins. Subsequent decay prevents weights from drifting too far during the learning of the next task, thereby reducing weight displacement ($||\Delta w||$).
- Small Batch Size: Small batches introduce stochastic noise that helps Stochastic Gradient Descent (SGD) converge toward wider, flatter regions of the loss landscape.
In contrast, a "Plastic" (or Naive) regime typically uses larger batch sizes and omits dropout or LR decay, leading to sharper minima and higher displacement.
Experimental Evaluation
We evaluated the stable regime against standard CL benchmarks, including Permuted MNIST, Rotated MNIST, and the challenging Split CIFAR-100 (20 sequential tasks).
As shown in the figure above, the stable regime (Network 1) maintains significantly higher accuracy across tasks compared to the plastic regime (Network 2). On Split CIFAR-100, the memory-less "Stable SGD" achieved 59.9% average accuracy, significantly outperforming complex methods like EWC (42.7%) and A-GEM (50.7%). Furthermore, the average forgetting metric for Stable SGD was just 0.08, compared to 0.31 for Naive SGD.
Key Insights and Discussion
- Wide Minima are Crucial: Just as wide minima improve generalization, they are foundational for retention in CL. If a task settles in a flat basin, the weights can adapt to new information without destroying old knowledge.
- Orthogonality to Existing Methods: These training tricks are not just replacements for CL algorithms; they are complementary. Applying the stable regime to existing methods like ER-Reservoir on Rotated MNIST boosted accuracy from 69.2% to 78.2%.
- Dropout's Role: Beyond preventing overfitting, dropout reduces the effective dimensionality of representations, making gradient updates for new tasks less likely to interfere with critical weight directions for old tasks.
Conclusion
This work demonstrates that the training regime is a first-class citizen in continual learning research. By simply choosing hyperparameters that favor wide minima and low parameter displacement, we can achieve performance that rivals or exceeds complex, state-of-the-art algorithms. Future CL research should adopt these stable training practices as a standard baseline to ensure that algorithmic improvements are measured against an optimized optimization process.
Summary updated