TL;DR
Bounding the spectral growth of adapters prevents catastrophic forgetting in Low-Rank Adaptation (LoRA). The authors introduce SCLoRA, a method that uses parameterized Singular Value Decomposition (SVD) and quantile-based spectral clipping to guide learning toward task-specific minor singular components while preserving general pre-trained knowledge.
What Problem Does This Paper Address?
Parameter-Efficient Fine-Tuning (PEFT) methods, particularly Low-Rank Adaptation (LoRA), have become the default strategy for adapting large pre-trained language models to downstream tasks. By freezing the base model and training small adapter matrices, LoRA drastically cuts down on compute and storage costs.
However, LoRA suffers from a major drawback: catastrophic forgetting. As the model learns the nuances of a new downstream task, it rapidly loses the broad, foundational knowledge it acquired during its massive pre-training phase. This paper investigates why this forgetting happens from a spectral perspective and proposes a principled way to fix it without compromising downstream task performance.
Methods
The authors analyze the weight updates through the lens of Singular Value Decomposition (SVD). They introduce SCLoRA (Low-Rank Adaptation with Spectral Clipping), which modifies the standard LoRA formulation in three key ways:
- Parameterized SVD Adapter: Instead of updating the weights using two standard low-rank matrices ($BA$), SCLoRA explicitly formulates the weight update directly in the spectral domain: $\Delta W = U\Sigma V^\top$, where $U$ and $V$ represent the left and right singular vectors, and $\Sigma$ contains the learnable singular values ($sn$).
- Quantile-Based Spectral Clipping: To prevent the uncontrolled growth of singular values during training, SCLoRA enforces an upper bound ($\bar{\sigma}$) on $\Sigma$. This bound is dynamically determined by calculating a specific quantile ($q$) of the pre-trained model's own spectral distribution. Bounding the updates creates a distribution-aware "trust region."
- Orthogonal Regularization: To ensure that $U$ and $V$ remain strictly valid as orthonormal singular vectors throughout optimization, the authors introduce a regularization penalty term: $R(U,V) = ||U^\top U - I|| + ||VV^\top - I||$.
Datasets
The authors evaluated SCLoRA across a diverse suite of models and benchmarks:
- Natural Language Understanding (NLU): The GLUE benchmark (including MNLI, SST-2, CoLA, QQP, QNLI, RTE, MRPC, and STS-B) evaluated on RoBERTa-base and DeBERTa-base models.
- Question Answering (QA): SQuAD v1.1 and SQuAD v2.0 benchmarks evaluated on DeBERTaV3-base.
- Commonsense Reasoning: An amalgamation of 8 tasks (BoolQ, PIQA, SIQA, HellaSwag, WinoGrande, ARC-e, ARC-c, OBQA) evaluated on large-scale models: LLaMA-7B and LLaMA2-7B.
- Pre-training Knowledge Retention: Evaluated using datasets like BookCorpus, OpenWebText, STORIES, PG19, and $\text{C4}_{\text{en}}$ to quantify catastrophic forgetting.
Key Insights and Ideas
- Principal vs. Minor Components: Using Fisher overlap analysis, the authors discovered that the principal singular components (those with large singular values) of a pre-trained model are already highly aligned with downstream tasks and can be easily reused. Conversely, the minor singular components (small singular values) are highly task-specific and require the most adaptation.
- The Mathematical Root of Forgetting: The authors prove theoretically (via Laplace approximation) that an increase in the singular values of the adapter directly reduces the pre-trained prior probability. Because standard stochastic gradient descent implicitly drives the spectral norm to grow rapidly, standard LoRA inherently forces the model to forget.
- Guiding Learning via Bounding: By clipping the singular values, SCLoRA prevents the global, well-aligned principal components from being distorted. This forces the optimization process to focus its updates on the minor spectral regions where task-specific tuning is actually beneficial.
Key Results
- Superior Downstream Performance: On the GLUE benchmark using RoBERTa-base, SCLoRA achieved an average score of 87.08, outperforming standard LoRA (86.40) and other SVD-based variants like PiSSA (86.32) and MiLoRA (86.56).
- Drastic Reduction in Forgetting: When fine-tuning RoBERTa-base on the MRPC dataset, standard LoRA's spectral norm exploded to 3.39, causing its accuracy on the pre-trained BookCorpus dataset to plummet from 61.64% to a dismal 3.77%. SCLoRA successfully suppressed the spectral norm to 0.94, retaining a pre-trained accuracy of 32.00% while delivering higher downstream accuracy.
- Effective Scaling to LLMs: When fine-tuning LLaMA2-7B on commonsense reasoning tasks, SCLoRA achieved the highest average downstream accuracy (81.0% vs LoRA's 77.6%) while keeping the pre-training perplexity significantly lower than standard LoRA.
Limitations and Future Work
- Hyperparameter Selection: SCLoRA introduces the quantile threshold $q$ as a hyperparameter. While sensitivity studies show that performance remains stable across a broad, moderate range ($q \ge 0.3$), it still requires initial tuning.
- Future Extensions: The authors note that the spectral clipping framework introduced here could be highly beneficial if extended to more complex architectures, such as Mixture of Experts (MoE) models, to alleviate world-knowledge forgetting.
Summary updated