Controlled Low-Rank Adaptation with Subspace Regularization for Continued Training on Large Language Models

Yuheng Lu, Bingshuo Qian, Caixia Yuan, Huixing Jiang, Xiaojie Wang

TL;DR

Controlled LoRA (CLoRA) is a new fine-tuning method that tackles "catastrophic forgetting" by constraining the direction of model updates. By using subspace regularization to preserve a pre-defined portion of the model's original behavior, CLoRA achieves superior performance on new tasks while actually improving or maintaining performance on old ones, outperforming standard LoRA and other state-of-the-art variants.

What Problem Does This Paper Address?

When Large Language Models (LLMs) are trained on new data—a process called continued training or fine-tuning—they often suffer from catastrophic forgetting. This means that as the model adapts to a new domain (e.g., learning medical jargon), its performance on previous tasks (e.g., general reasoning) sharply declines.

While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA (Low-Rank Adaptation) were designed for efficiency, they don't inherently prevent forgetting. The authors point out a theoretical danger: even a low-rank update can, in principle, completely wipe out the most important features of the base model. Existing solutions like "data rehearsal" (mixing in old data) are often impractical due to the massive scale of LLM training sets and privacy concerns. CLoRA aims to solve this by building constraints directly into the learning process.

Methods

CLoRA builds upon the standard LoRA architecture, where a weight update $\Delta W$ is decomposed into two low-rank matrices, $A$ and $B$ (i.e., $\Delta W = AB^T$).

The core innovation is Subspace Regularization. The authors introduce a pre-defined, fixed matrix $P$ and add an orthogonal loss term to the training objective. This loss forces the update matrix $\Delta W$ to have a specific "null space."

Figure 1: Illustration of the intuition behind our ap- proach. For input x, the component in Null(∆W) (null space of the updating matrix ∆W) would be ignored, the change of output ∆y is obtained only from the com- ponent in Row(∆W) (row space of ∆W, the orthogo- nal complement of Null(∆W)). CLoRA introduces a pre-defined subset of Null(∆W) by imposing orthogo- nal regularization with pre-defined matrix P.

As shown in Figure 1, the intuition is that if an input component falls into the "null space" of the update, the update doesn't change the output for that component. By imposing this constraint, CLoRA effectively "protects" parts of the model's original knowledge.

In practice, this is implemented by applying the orthogonal loss to the trainable $A$ and $B$ matrices in the transformer's attention layers (specifically the v-proj modules), as illustrated in Figure 2.

Figure 2: Illustration of CLoRA on typical decoder-only transformer based LLMs. LoRA updating is applied on v-proj in multi-head attention layer for each layer. CLoRA add orthogonal loss computes from trainable LoRA parameters (A and B) to the original language modeling loss.

Datasets

The authors evaluated CLoRA across several challenging settings:

  • Commonsense Reasoning: Fine-tuned on Commonsense170K and evaluated on eight in-domain datasets (e.g., BoolQ, PIQA, HellaSwag).
  • Out-domain Benchmarks: To measure forgetting, they used BIG-Bench-Hard (BBH) and MMLU-Pro.
  • Math Tasks: Fine-tuned on MetaMathQA and evaluated on GSM8K and MATH.
  • Continual Learning: Tested on standard benchmarks (5 text classification tasks) and a "Large Number of Tasks" benchmark (15 datasets).

Key Insights and Ideas

  • Direction Over Rank: Standard LoRA restricts the rank (size) of the update, but CLoRA argues that the direction of the update in the vector space is what truly determines forgetting.
  • The Capacity-Forgetting Trade-off: Traditional regularization (like L2) often hurts a model's ability to learn new things (capacity). CLoRA provides a "knob"—the hyperparameter $k$ (the size of the regularization matrix)—that allows researchers to balance learning new knowledge versus retaining the old.
  • Surpassing the Base Model: Remarkably, in some out-domain tests, CLoRA-tuned models performed better than the original base model. This suggests that by preventing interference, the model can extract generally useful features from the new data without the usual "noise" of forgetting.

Key Results

CLoRA consistently outperformed standard LoRA, DoRA, and other variants:

  • Superior Generalization: In the commonsense reasoning tasks (see Figure 5), CLoRA-k2048 achieved an average in-domain accuracy of 83.7%, compared to LoRA's 79.9%.
  • Mitigating Forgetting: On the BIG-Bench-Hard (out-domain) benchmark, the base LLaMA-2-7B model scored 34.91%. Standard LoRA dropped significantly to 26.69%, while CLoRA-k2048 actually improved upon the base model, reaching 38.67%.
  • Continual Learning: In multi-stage training, CLoRA maintained a high average accuracy of 79.0% across tasks, significantly higher than the 43.7% achieved by sequential LoRA.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  1. Initialization: The current version uses simple random initialization for the regularization matrix $P$. They suggest that more sophisticated methods (like using SVD components) might yield even better results.
  2. Capacity Measurement: The study uses the scale of parameter updates ($||\Delta W||$) as a proxy for model capacity. They suggest that more nuanced theoretical measurements of capacity could lead to even more precise control.
  3. Hybrid Approaches: There is potential to combine CLoRA's learning-based constraints with architecture-based methods (like O-LoRA) for even more robust continual learning.

Summary updated

BibTeX
@inproceedings{lu2025controlled,
  author = {Yuheng Lu and Bingshuo Qian and Caixia Yuan and Huixing Jiang and Xiaojie Wang},
  title = {{Controlled Low-Rank Adaptation with Subspace Regularization for Continued Training on Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure