Abstract: Large language models (LLMs) exhibit remarkable capabilities in natural language processing but face catastrophic forgetting when learning new tasks, where adaptation to a new domain leads to a substantial decline in performance on previous tasks. In this paper, we propose Controlled LoRA (CLoRA), a subspace regularization method on LoRA structure. Aiming to reduce the scale of output change while introduce minimal constraint on model capacity, CLoRA imposes constraint on the direction of updating matrix null space. Experimental results on commonly used LLM finetuning tasks reveal that CLoRA significantly outperforms existing LoRA subsequent methods on both in-domain and outdomain evaluations, highlighting the superority of CLoRA as a effective parameter-efficient finetuning method with catastrophic forgetting mitigating. Further investigation for model parameters indicates that CLoRA effectively balances the trade-off between model capacity and degree of forgetting.
Introduction
When large language models (LLMs) undergo continued training or fine-tuning on new datasets, they frequently suffer from catastrophic forgetting. While the model improves on the new task, its performance on general tasks it was originally trained for often declines significantly. Existing solutions, such as re-training on old data or adding task-specific parameters, are often computationally expensive or architecturally complex.
Low-Rank Adaptation (LoRA) has become the industry standard for parameter-efficient fine-tuning (PEFT), but it does not inherently prevent forgetting. Even low-rank updates can overwrite critical logic within the base model. This paper introduces Controlled LoRA (CLoRA), which addresses this by controlling not just the magnitude of parameter updates, but the specific directions in which those changes occur.
Methodology
CLoRA builds upon the standard LoRA framework ($\Delta W = AB^T$) by introducing a novel Subspace Regularization term. The core intuition is based on the concept of a null space—the set of input vectors that a matrix effectively ignores. CLoRA forces the updating matrix $\Delta W$ to have a null space that aligns with a pre-defined, fixed matrix $P$.
During training, an orthogonal regularization penalty is added to the loss function. This encourages the trainable LoRA matrices ($A$ and $B$) to remain orthogonal to the fixed matrix $P$. Unlike standard $L_2$ regularization, which simply minimizes the size of updates, CLoRA allows for expressive updates as long as they stay within "safe" directions that do not interfere with the base model's foundational knowledge. The hyperparameter $k$ (the number of vectors in $P$) allows researchers to tune the strictness of this constraint.
Experimental Results
The effectiveness of CLoRA was evaluated across commonsense reasoning, mathematics, and continual learning benchmarks. The method consistently outperformed standard LoRA and other state-of-the-art PEFT variants.
As shown in the results, CLoRA-k2048 achieved an average out-domain score of 29.63%, significantly higher than standard LoRA's 20.58%. On the challenging BIG-Bench-Hard (BBH) benchmark, CLoRA scored 38.67% compared to LoRA's 26.69%. Notably, CLoRA also improved in-domain performance, reaching 83.7% average accuracy on commonsense tasks. In continual learning settings, CLoRA achieved 79.0% average accuracy, surpassing the previous leading method, O-LoRA (75.8%).
Conclusion
CLoRA effectively balances the trade-off between model capacity and the degree of forgetting. By restricting the subspace of updates, it ensures that the change in output is minimized for general inputs, preserving the base model's behavior while allowing for new learning. Future research will explore more sophisticated, data-driven methods for initializing the regularization matrix $P$ and potential hybrid approaches combining CLoRA with architectural modifications.
Summary updated