TL;DR
Parameter-Efficient Fine-Tuning (PEFT) for Vision-Language Continual Learning often gets trapped in local minima due to the deterministic nature of standard backpropagation. This paper introduces a hybrid optimization strategy that strategically interleaves gradient-free Zeroth-Order (ZO) perturbations with First-Order (FO) updates across specific layers and modalities. The resulting Modality-aware ZO (MoZO) approach achieves state-of-the-art continual learning performance while slashing GPU memory usage by up to 89%.
What Problem Does This Paper Address?
Continual learning requires AI models to learn new tasks sequentially without forgetting what they have already learned. In Vision-Language Continual Learning (VLCL), researchers typically freeze large foundation models (like CLIP) and train lightweight adapter modules using Parameter-Efficient Fine-Tuning (PEFT) to save compute.
However, standard training relies on First-Order (FO) optimization—traditional backpropagation. Because PEFT restricts optimization to a very low-dimensional subspace, FO's deterministic update paths easily get trapped in sharp, suboptimal local minima. This causes the model to overfit to the current task, severely worsening catastrophic forgetting when new tasks arrive.
While Zeroth-Order (ZO) optimization (which estimates gradients using random forward-pass perturbations) can help models escape these local traps, naively replacing backpropagation with ZO causes massive training instability and performance drops in multimodal settings. This paper investigates exactly where and how to apply ZO optimization to make vision-language models resilient, stable continual learners.
Methods
The authors systematically map out how ZO optimization operates within a frozen CLIP model fitted with trainable PEFT modules (such as Mixture of Experts or LoRA). They explore two dimensions of granularity:
- Branch-wise Exploration: Applying ZO to either the vision branch, the language branch, or both (Dual ZO).
- Layer-wise Exploration: Testing different structural patterns across the network layers, including
Hop-odd(ZO in odd layers, FO in even layers),Hop-even,Prefix(ZO in the first six layers), andSuffix(ZO in the last six layers).
Based on their empirical findings, they propose Modality-aware ZO (MoZO), which stabilizes training through two key modifications:
- Gradient Sign Normalization: Parameters are updated based only on the direction of the estimated gradient, discarding volatile amplitude fluctuations.
- Modality-Specific Perturbation Control: Because the vision branch is highly sensitive, MoZO applies a tighter, smaller perturbation scale ($\epsilon_v$) to vision layers compared to language layers ($\epsilon_l$).
Datasets
The method was evaluated under the Class-Incremental Learning (CIL) paradigm using three major image classification benchmarks:
- CIFAR-100: Evaluated using both
Inc20(5 tasks of 20 classes) andInc10(10 tasks of 10 classes) configurations. - Tiny-ImageNet: Evaluated under an
Inc20setup. - ImageNet-R: A challenging variant containing various artistic and textured renditions of ImageNet classes, evaluated under an
Inc20setup.
Key Insights and Ideas
- Naive ZO Fails Multimodal Tasks: Completely replacing backpropagation with ZO leads to severe loss oscillations and failure to converge. The random perturbations introduce too much variance across complex multimodal landscapes.
- Interleaving is the Secret Sauce: Applying ZO and FO in an interleaved layer-wise manner (like
Hop-odd) significantly lowers gradient variance compared to continuous blocks of ZO. This aligns with the functional heterogeneity of deep networks: shallow layers focus on local features, while deeper layers capture abstract semantics. Interleaving balances exploration and stability perfectly. - The Vision Discrepancy: The vision branch exhibits far more violent gradient variance under ZO than the language branch. This is because image data operates on higher-dimensional tensors, making stochastic gradient estimation inherently harder to stabilize.
Key Results
- State-of-the-Art Accuracy: Interleaved layer-wise ZO configurations consistently beat the standard full-FO baseline (MoE4Adapter). On CIFAR Inc20, the
Vision w/ Hop-evenstrategy achieved a 82.41% Last Accuracy, outperforming the baseline's 80.47%. - MoZO Effectiveness: Incorporating gradient sign normalization and tighter vision constraints (MoZO) successfully stabilized the visual branch, pushing performance even higher and achieving top marks across both MoE and LoRA architectures.
- Massive Memory Savings: Because ZO optimization eliminates the need to store massive activation matrices for backpropagation, dual-branch ZO cut GPU memory consumption by 89.1% (from ~19.96GB down to ~2.17GB).
Limitations and Future Work
This work currently focuses strictly on CLIP-based vision-language modalities, which handle static images and text. The authors note that generalizing this hybrid ZO-FO collaboration to other multimodal transformers—such as those incorporating audio or video inputs—remains unexplored. These domains present more complex challenges, including heterogeneous feature distributions and temporal dependencies, which will require further refinement of the MoZO framework.
Summary updated