TL;DR
This paper introduces PLAN, a novel framework for continual learning that enhances Low-Rank Adaptation (LoRA) by proactively managing task-specific subspaces. By anticipating future interference and optimizing for worst-case scenarios, PLAN significantly improves knowledge retention and adaptation efficiency in large pre-trained models, setting a new state-of-the-art.
What Problem Does This Paper Address?
Continual learning (CL) aims to enable models to learn new tasks sequentially without forgetting previously acquired knowledge – a challenge known as catastrophic forgetting. This is particularly relevant for large pre-trained models that are increasingly adapted for various downstream tasks. Parameter-efficient fine-tuning (PEFT) methods, like LoRA, offer a scalable solution by introducing only a small number of trainable parameters per task. However, existing LoRA-based CL methods often rely on passive strategies, such as enforcing orthogonality between task subspaces, to prevent interference. While effective, this passive approach limits the model's ability to strategically adapt and may not fully leverage the potential of the parameter space. The paper addresses the gap of moving beyond passive interference avoidance to a more proactive and intelligent allocation of task-specific subspaces within the LoRA framework.
Methods
PLAN builds upon LoRA by introducing two core innovations:
- Proactive Subspace Allocation: Instead of simply isolating task subspaces, PLAN proactively manages them. For each task, it defines a low-rank update matrix ($B_t A_t$) where $A_t$ is constructed by selecting orthogonal basis vectors from a predefined set. This selection is informed by a novel optimization objective.
- Min-Max Optimization Objective: To anticipate future interference, PLAN optimizes the $B_t$ matrix using a min-max objective. This objective minimizes the loss on the current task while considering worst-case perturbations along the directions of unselected basis vectors (those reserved for future tasks). This ensures that the current task's updates are robust to potential conflicts from subsequent tasks.
- Orthogonal Basis Selection: A key aspect is how $A_t$ is formed. PLAN uses a frequency-based mechanism to select basis vectors that have consistently experienced minimal perturbation during previous training steps. This strategy proactively identifies stable directions in the parameter space for future task adaptation.
Datasets
The paper evaluates PLAN on three standard CL benchmarks in the vision domain:
- CIFAR-100: Divided into 10-class subsets.
- ImageNet-R: Divided into tasks with 40, 20, or 10 classes (resulting in 5, 10, or 20 tasks).
- DomainNet: Divided into five tasks, each with 69 classes.
The experiments also utilize a ViT-B/16 model pre-trained on ImageNet-21K and fine-tuned on ImageNet-1K, as well as a self-supervised ViT-B/16 variant (iBOT).
Key Insights and Ideas
- Proactive vs. Passive Interference Mitigation: The core insight is that moving from passively avoiding interference (e.g., strict orthogonality) to proactively anticipating and optimizing for it leads to significantly better continual learning performance.
- Worst-Case Perturbation for Robustness: By optimizing for worst-case future perturbations, PLAN ensures that current task updates are inherently more stable and less prone to degrading past knowledge.
- Stable Subspace Identification: The frequency-based selection of basis vectors for $A_t$ is crucial. It identifies directions that are consistently less affected by interference, providing a robust foundation for learning new tasks.
- Foundation Models Benefit Greatly: PLAN's approach of managing subspaces is particularly well-suited for large pre-trained models, where efficient adaptation without catastrophic forgetting is paramount.
Key Results
PLAN consistently outperforms existing state-of-the-art CL methods across various benchmarks and task settings. For instance, on ImageNet-R with 20 tasks, PLAN achieves an Average Accuracy (Acc) of 71.06% and Average Anytime Accuracy (AAA) of 77.93%, surpassing methods like InfLoRA (69.83% Acc, 76.83% AAA) and O-LORA (59.94% Acc, 68.92% AAA). Similar improvements are observed on CIFAR-100 and DomainNet. The paper also highlights that PLAN maintains more stable accuracy levels throughout the learning process compared to other methods, which often exhibit sharp drops.
Limitations and Future Work
The authors acknowledge several limitations and suggest future research directions:
- Strict Orthogonality: While effective for preventing forgetting, the strict orthogonality might not explicitly promote positive backward transfer. Future work could explore methods to selectively relax orthogonality.
- Architecture Specificity: The current experiments primarily focus on Vision Transformer (ViT) models. Extending and evaluating PLAN on other architectures like Convolutional Neural Networks (CNNs) or different data modalities is a valuable next step.
- Adaptive Basis Generation: For highly heterogeneous task sequences, exploring adaptive basis generation beyond the standard orthogonal basis could be beneficial.
Summary updated