KeepLoRA: Continual Learning with Residual Gradient Adaptation
Mao-Lin Luo, Zi-Hao Zhou, Yi-Lin Zhang, Yuanyu Wan, Tong Wei, Min-Ling Zhang
TL;DR
The paper addresses continual learning for vision-language models by revealing that general knowledge is stored in a principal weight subspace while domain-specific adaptations reside in the residual subspace. It proposes KeepLoRA, a gradient-projection-based method that updates only in the residual subspace while initializing from the current-task gradient and maintaining orthogonality to both the pre-trained and prior-task subspaces. Theoretical analysis (via subspace projection and the Eckart–Young–Mirsky theorem) supports optimal balance between plasticity and stability, and extensive experiments on CLIP and LLaVA demonstrate state-of-the-art performance across MTIL, DCL, and UCIT benchmarks. The approach is parameter-efficient, incurs no inference overhead, and is readily applicable to large-scale models, offering a practical solution for continual learning in multimodal AI systems.
Abstract
Continual learning for pre-trained vision-language models requires balancing three competing objectives: retaining pre-trained knowledge, preserving knowledge from a sequence of learned tasks, and maintaining the plasticity to acquire new knowledge. This paper presents a simple but effective approach called KeepLoRA to effectively balance these objectives. We first analyze the knowledge retention mechanism within the model parameter space and find that general knowledge is mainly encoded in the principal subspace, while task-specific knowledge is encoded in the residual subspace. Motivated by this finding, KeepLoRA learns new tasks by restricting LoRA parameter updates in the residual subspace to prevent interfering with previously learned capabilities. Specifically, we infuse knowledge for a new task by projecting its gradient onto a subspace orthogonal to both the principal subspace of pre-trained model and the dominant directions of previous task features. Our theoretical and empirical analyses confirm that KeepLoRA balances the three objectives and achieves state-of-the-art performance. The implementation code is available at https://github.com/MaolinLuo/KeepLoRA.
