Introduction
In the field of Continual Learning (CL), models are tasked with learning a sequence of objectives without losing performance on previously acquired knowledge. This challenge is known as the plasticity-stability dilemma: a model must remain plastic enough to integrate new information while maintaining the stability required to preserve old memories. Standard training typically relies on First-Order (FO) optimization (backpropagation). While FO is efficient, it often converges to "sharp" minima—narrow regions in the loss landscape where even minor parameter updates for a new task can lead to catastrophic forgetting.
The Geometry of Forgetting
The core insight of this research is that the geometry of the loss landscape dictates the severity of forgetting. As illustrated in Figure 1, FO optimization tends to find sharp valleys. When the model shifts to a new task, the weights move, causing the loss on the old task to spike dramatically. In contrast, Zeroth-Order (ZO) optimization—which estimates gradients through random perturbations—naturally favors flatter regions. In these wider valleys, parameter shifts result in significantly smaller increases in loss for previous tasks, thereby mitigating forgetting.
Methodology: The ZO-FC Approach
While ZO optimization enhances stability, it lacks the precision required to train complex classifiers from scratch. To address this, the authors propose ZO-FC, a hybrid optimization strategy:
- ZO for Adapters: Lightweight Parameter-Efficient Fine-Tuning (PEFT) modules, such as LoRA adapters, are trained using ZO optimization within a frozen pre-trained backbone. This leverages the inherent "smoothing" property of ZO to find flat, stable solutions.
- FO for the Classifier: The final fully connected (FC) layer is trained using standard FO optimization. Since the classifier is the final layer, this does not require storing massive activation maps, maintaining the memory efficiency of the overall system while ensuring sharp decision boundaries.
Experimental Evaluation
The authors evaluated ZO-FC against state-of-the-art CL methods on benchmarks including CIFAR100, ImageNet-R, and DomainNet.
Key Results
- Memory Efficiency: ZO-FC achieves a 6x reduction in peak GPU memory usage (0.7 GB vs. ~4.35-7.21 GB for FO methods), enabling training on resource-constrained hardware.
- Stability and Accuracy: On ImageNet-R, ZO-FC demonstrated superior stability with a forgetting rate of just 4.40%. As shown in Figure 2, while naive ZO optimization often struggles with learnable classifiers (bottom row), the proposed approach maintains competitive average accuracy across various settings, often matching or exceeding complex FO-based regularizers.
Conclusion
This work redefines the role of Zeroth-Order optimization in deep learning. Beyond its known benefits for memory savings and black-box optimization, ZO serves as a powerful tool for navigating the plasticity-stability dilemma in Continual Learning. By inherently seeking flatter minima, ZO-FC provides a robust, memory-efficient alternative to traditional backpropagation-based methods.
Summary updated