Introduction
Large Language Models (LLMs) often face the challenge of catastrophic forgetting when fine-tuned sequentially on new tasks. While Low-Rank Adaptation (LoRA) is a popular parameter-efficient fine-tuning method, existing continual learning (CL) approaches typically require adding new LoRA parameters for every task. This leads to a linear growth in memory requirements, which is unscalable for long sequences of tasks.
Researchers have introduced SLAO (Single LoRA continual learning with Orthogonal initialization via continual merging), a method that enables continual learning using only a single, shared LoRA adapter. SLAO achieves state-of-the-art performance with constant memory overhead by leveraging the geometric properties of LoRA matrices.
Methodology: The SLAO Framework
SLAO introduces two primary mechanisms to manage task interference and preserve knowledge without increasing the parameter count:
1. Orthogonal Basis Initialization
To minimize interference between tasks, SLAO extracts an orthogonal basis from the previous task's $A$ matrix using QR decomposition. By initializing the $A$ matrix for the next task with this basis, the model begins learning in a geometric space that respects the knowledge already encoded, effectively reducing the risk of overwriting previous features.
2. Asymmetric Time-Aware Merging
The core of SLAO is its merging strategy. The authors identified a fundamental asymmetry in how LoRA matrices learn: the $A$ matrix tends to capture general features that are highly similar across tasks, whereas the $B$ matrix captures task-specific information.
SLAO treats these matrices differently during the merging process:
- Matrix $A$: Updated directly to incorporate general features.
- Matrix $B$: Merged using a time-aware scaling factor $\lambda(i) = 1/\sqrt{i}$, where $i$ is the task index. This mathematical dampening prevents new, task-specific updates from aggressively overwriting the accumulated knowledge of previous tasks.
Empirical Evidence of LoRA Asymmetry
The design of SLAO is grounded in empirical observations of how LoRA adapters evolve. Analysis of cosine similarity across various tasks reveals that $A$ matrices maintain high similarity, while $B$ matrices remain distinct.
This observation justifies the asymmetric approach: since $A$ is relatively stable across tasks, it can be updated more freely, while $B$ requires careful merging to preserve task-specific nuances.
Experimental Results
SLAO was evaluated on several benchmarks, including a 15-task sequence combining GLUE, SuperGLUE, and various classification tasks using Llama and Qwen models.
- Performance: SLAO achieved an average accuracy of 74.8% on the 15-task benchmark, outperforming standard sequential LoRA (68.7%) and even beating parameter-growing methods like O-LoRA (73.5%).
- Memory Efficiency: Unlike competing methods that scale linearly with the number of tasks ($O(T(m+n)r)$), SLAO maintains constant memory complexity ($O((m+n)r)$).
- Knowledge Retention: SLAO significantly reduced negative backward transfer. Its backward transfer score was -3.5%, a sharp improvement over the -17.2% seen in basic sequential fine-tuning.
Conclusion and Future Directions
SLAO demonstrates that constant-memory continual learning is possible for LLMs using a single LoRA adapter. By combining orthogonal initialization with asymmetric merging, it effectively balances the acquisition of new skills with the retention of old ones.
While highly effective, the method currently assumes a fixed rank for all tasks and operates within the Neural Tangent Kernel (NTK) regime. Future research may explore adaptive rank allocation to handle tasks of varying complexity and investigate curriculum learning to further optimize the merging sequence.
Summary updated