Continuous Subspace Optimization for Continual Learning
Quan Cheng, Yuanyu Wan, Lingyu Wu, Chenping Hou, Lijun Zhang
TL;DR
This work targets catastrophic forgetting in continual learning by fine-tuning pre-trained Vision Transformers through a sequence of gradient-derived subspaces. By enforcing orthogonality between the current task's optimization subspace and the accumulated historical subspace, and by consolidating task-specific directions via Frequent Directions, CoSO enables memory-efficient, progressive learning across many tasks. Empirical results on ImageNet-R, CIFAR100, and DomainNet show CoSO consistently surpassing state-of-the-art PEFT baselines, with notable gains in long task sequences and robustness across diverse domains. The approach offers a scalable pathway for continual adaptation of foundation models and points to future extensions in multi-modal settings.
Abstract
Continual learning aims to learn multiple tasks sequentially while preserving prior knowledge, but faces the challenge of catastrophic forgetting when adapting to new tasks. Recently, approaches leveraging pre-trained models have gained increasing popularity in mitigating this issue, due to the strong generalization ability of foundation models. To adjust pre-trained models for new tasks, existing methods usually employ low-rank adaptation, which restricts parameter updates to a fixed low-rank subspace. However, constraining the optimization space inherently compromises the model's learning capacity, resulting in inferior performance. To address this limitation, we propose Continuous Subspace Optimization for Continual Learning (CoSO) to fine-tune the model in a series of subspaces rather than a single one. These sequential subspaces are dynamically determined through the singular value decomposition of the gradients. CoSO updates the model by projecting gradients onto these subspaces, ensuring memory-efficient optimization. To mitigate forgetting, the optimization subspace of each task is constrained to be orthogonal to the historical task subspace. During task learning, CoSO maintains a task-specific component that captures the critical update directions for the current task. Upon completing a task, this component is used to update the historical task subspace, laying the groundwork for subsequent learning. Extensive experiments on multiple datasets demonstrate that CoSO significantly outperforms state-of-the-art methods, especially in challenging scenarios with long task sequences.
