Abstract
AlterSGD is a simple yet powerful optimization strategy designed to mitigate catastrophic forgetting in continual learning by steering neural networks toward flat minima. By alternating between gradient descent and ascent, the method effectively minimizes the gradient norm, leading to more robust representations. Evaluated on semantic segmentation tasks, AlterSGD significantly outperforms existing methods like MiB without complex regularization or high computational costs.
Introduction
Deep Neural Networks (DNNs) struggle with sequential multitasking, often suffering from catastrophic forgetting where learning new tasks degrades performance on previously acquired knowledge. A key insight in addressing this is the geometry of the loss landscape. A "sharp minimum" is highly sensitive to distribution shifts common in continual learning, leading to significant error increases. Conversely, a "flat minimum" resides in a wide basin, maintaining low error even as the landscape shifts.
Methodology: Alternative Training
AlterSGD introduces a two-phase training regime for each learning session:
- Normal Training Phase: Standard gradient descent is used for the majority of iterations (ratio $p \\approx 0.8-0.9$) to ensure convergence toward a local minimum for the current task.
- Alternative Training Phase: Once near convergence, the optimizer alternates between one step of gradient descent and one step of gradient ascent.
Theoretically, this oscillation is approximately equivalent to minimizing the square of the gradient norm ($\\|\\nabla_\\theta L(\\theta)\\|_2^2$). By minimizing the gradient norm, the optimizer effectively "escapes" sharp pits and settles into wider, flatter regions of the loss landscape, which are inherently more robust to forgetting.
Experimental Setup
The method was evaluated on the PASCAL VOC 2012 benchmark for semantic segmentation using the "15-1" protocol. In this setting, the model is first trained on 15 classes, followed by 5 incremental sessions where new classes are introduced one by one. Crucially, no "replay" buffers were used, meaning the model had no access to data from previous sessions.
Results and Discussion
AlterSGD was compared against MiB (Modeling the Background), the previous state-of-the-art for incremental segmentation. Quantitative results demonstrate that AlterSGD significantly mitigates forgetting. For the initial 15 classes, AlterSGD improved the mIoU from 42.4% to 52.7%. Across all classes, it achieved an mIoU of 42.7%, compared to 34.9% for MiB.
Qualitatively, segmentation maps produced by AlterSGD maintain sharper boundaries and more accurate object shapes for older classes compared to baseline methods, which often lose fine details or fail to recognize previously learned objects entirely. The simplicity of the update rule makes it computationally efficient and easy to integrate into existing pipelines without the heavy hyperparameter tuning required by penalty-based methods like EWC.
Conclusion
AlterSGD offers a computationally efficient and simple-to-implement solution for finding flat minima in continual learning. By modifying the update rule rather than adding complex regularization terms, it achieves state-of-the-art performance in semantic segmentation. Future work may explore adaptive switching mechanisms to automatically trigger the alternative training phase based on convergence metrics, potentially further improving robustness across diverse tasks.
Summary updated