SORSA: Singular Values and Orthonormal Regularized Singular Vectors Adaptation of Large Language Models

Yang Cao · OpenReview

Abstract

The rapid advancement in large language models (LLMs) comes with a significant increase in their parameter size, presenting challenges for adaptation and fine-tuning. Parameter-efficient fine-tuning (PEFT) methods are widely used to adapt LLMs for downstream tasks efficiently. In this paper, we propose Singular Values and Orthonormal Regularized Singular Vectors Adaptation, or SORSA, a novel PEFT method. We introduce a method to analyze the variation of the parameters by performing singular value decomposition (SVD) and discuss and analyze SORSA's superiority in minimizing the alteration in the SVD aspect. Each SORSA adapter consists of two main parts: trainable principal singular weights $W_p = U_p \text{diag}(S_p) V^\top_p$, and frozen residual weights $W_r = U_r \text{diag}(S_r) V^\top_r$. These parts are initialized by performing SVD on pre-trained weights. Moreover, we implement and analyze an orthonormal regularizer, which we prove could decrease the condition number of $W_p$ and allows the optimization to be more efficient. SORSA adapters could be merged during inference, thus eliminating any inference latency. After all, SORSA shows a faster convergence than PiSSA and LoRA in our experiments. On the GSM-8K benchmark, Llama 2 7B adapted using SORSA achieved 56.03% accuracy, surpassing LoRA (42.30%), Full FT (49.05%), and PiSSA (53.07%). On the MATH benchmark, SORSA achieved 10.36% accuracy, outperforming LoRA (5.50%), Full FT (7.22%), and PiSSA (7.44%). We conclude that SORSA offers a new perspective on parameter-efficient fine-tuning, demonstrating remarkable performance.

Introduction

Adapting Large Language Models (LLMs) to specific downstream tasks is a cornerstone of modern AI development. However, as models scale to hundreds of billions of parameters, full-parameter fine-tuning becomes computationally prohibitive. Parameter-Efficient Fine-Tuning (PEFT) methods, most notably LoRA (Low-Rank Adaptation), have emerged as the standard solution. While effective, these methods often face challenges in low-data regimes, such as overfitting and catastrophic forgetting, where the model loses its general-purpose reasoning capabilities while learning a specific task.

SORSA (Singular Values and Orthonormal Regularized Singular Vectors Adaptation) addresses these limitations by focusing on the mathematical "health" of the weight matrices during training. By maintaining well-conditioned weights through singular value decomposition (SVD) and a novel regularization technique, SORSA achieves superior generalization and faster convergence compared to existing baselines.

The Problem: Ill-Conditioned Weights in PEFT

The authors identify a critical mathematical issue in standard PEFT: the condition number of the weight matrices. During standard fine-tuning, the trainable matrices often become "ill-conditioned," meaning their singular values vary wildly. This instability leads to a distorted weight structure that can destroy the model's pre-trained knowledge and lead to unstable optimization.

In contrast, a well-conditioned matrix preserves the geometric relationships learned during pre-training. SORSA is designed to keep the optimization process within a stable, well-behaved region of the parameter space.

The SORSA Methodology

SORSA introduces a two-pronged approach to stabilize the fine-tuning process:

1. SVD-Based Initialization

The pre-trained weight matrix $W_0$ is decomposed via SVD into two distinct parts:

  • Principal Weights ($W_p$): This component contains the top-$r$ singular values and vectors. Unlike LoRA, which initializes adapters randomly or with zeros, SORSA represents $W_p$ as three separate trainable components: $U_p$, $\text{diag}(S_p)$, and $V_p^\top$.
  • Residual Weights ($W_r$): This component contains the remaining singular values and vectors and is kept frozen during training.

This initialization ensures that the model starts training from a state that already captures the most significant features of the pre-trained weights.

2. Orthonormal Regularization

The core innovation of SORSA is the introduction of an orthonormal regularizer. The authors add a penalty term to the loss function that encourages the singular vector matrices ($U_p$ and $V_p$) to remain orthonormal ($U^\top U \approx I$).

Mathematically, the authors prove that this regularizer decreases the condition number of the trainable weights. This theoretical foundation guarantees a faster, linear convergence rate for gradient descent. Like LoRA, SORSA adapters can be merged back into the base model after training, ensuring zero additional inference latency.

Experimental Results

The authors evaluated SORSA across several LLM architectures, including Llama 2 7B, Mistral 7B, Gemma 7B, and RWKV6 7B, focusing on demanding reasoning and coding benchmarks.

Mathematical Reasoning (GSM-8K and MATH)

On the GSM-8K benchmark, Llama 2 7B adapted with SORSA achieved an accuracy of 56.03%, significantly outperforming LoRA (42.30%) and even surpassing Full Parameter Fine-Tuning (49.05%). Similar gains were observed on the more difficult MATH benchmark, where SORSA reached 10.36% compared to LoRA's 5.50%.

Convergence and Stability

Training curves demonstrate that SORSA reaches lower loss levels faster than PiSSA and LoRA. This is particularly evident in the later stages of training, where the orthonormal regularizer stabilizes the gradient norm, preventing the optimization from stalling or diverging.

Robustness Across Architectures

SORSA showed remarkable robustness on the RWKV6 7B model, achieving 45.87% on GSM-8K. In the same setting, LoRA struggled to follow complex instruction patterns, achieving only 8.04%. This suggests that SORSA's structural preservation helps the model maintain its instruction-following capabilities more effectively than traditional low-rank methods.

Conclusion

SORSA offers a new perspective on PEFT by prioritizing the mathematical conditioning of weight matrices. By combining SVD-based initialization with orthonormal regularization, it provides a more stable and efficient path for adapting LLMs to complex tasks. The method not only outperforms standard baselines in accuracy but also offers faster convergence and better preservation of pre-trained knowledge. As LLMs continue to grow, techniques like SORSA that ensure optimization stability will be vital for efficient and effective model adaptation.

Summary updated

Abstract

The rapid advancement in large language models (LLMs) comes with a significant increase in their parameter size, presenting challenges for adaptation and fine-tuning. Parameter-efficient fine-tuning (PEFT) methods are widely used to adapt LLMs for downstream tasks efficiently. In this paper, we propose Singular Values and Orthonormal Regularized Singular Vectors Adaptation, or SORSA, a novel PEFT method. We introduce a method to analyze the variation of the parameters by performing singular value decomposition (SVD) and discuss and analyze SORSA's superiority in minimizing the alteration in the SVD aspect. Each SORSA adapter consists of two main parts: trainable principal singular weights $W_p = U_p \text{diag}(S_p) V^\top_p$, and frozen residual weights $W_r = U_r \text{diag}(S_r) V^\top_r$. These parts are initialized by performing SVD on pre-trained weights. Moreover, we implement and analyze an orthonormal regularizer, which we prove could decrease the condition number of $W_p$ and allows the optimization to be more efficient. SORSA adapters could be merged during inference, thus eliminating any inference latency. After all, SORSA shows a faster convergence than PiSSA and LoRA in our experiments. On the GSM-8K benchmark, Llama 2 7B adapted using SORSA achieved 56.03% accuracy, surpassing LoRA (42.30%), Full FT (49.05%), and PiSSA (53.07%). On the MATH benchmark, SORSA achieved 10.36% accuracy, outperforming LoRA (5.50%), Full FT (7.22%), and PiSSA (7.44%). We conclude that SORSA offers a new perspective on parameter-efficient fine-tuning, demonstrating remarkable performance. The code is available at https://github.com/Gunale0926/SORSA.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
GSM8K · GSM-8KSORSAaccuracy56.03%+6.98 vs baselinesplit: test · fine-tuned · params=7B · backbone=Llama 2 7B · training-data=first 100K MetaMathQA examples
Source quote
L24: After all, SORSA shows a faster convergence than LoRA and PiSSA in our experiments. On the GSM-8K benchmark, Llama 2 7B adapted using SORSA achieved 56.03% accuracy, surpassing LoRA (42.30%) and Full FT (49.05%).
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
GSM8K · GSM-8KLoRA baselineaccuracy42.30%split: test · fine-tuned · params=7B · backbone=Llama 2 7B · training-data=first 100K MetaMathQA examples
Source quote
L24: After all, SORSA shows a faster convergence than LoRA and PiSSA in our experiments. On the GSM-8K benchmark, Llama 2 7B adapted using SORSA achieved 56.03% accuracy, surpassing LoRA (42.30%) and Full FT (49.05%).
GSM8K · GSM-8KFull FT baselineaccuracy49.05%split: test · fine-tuned · params=7B · backbone=Llama 2 7B · training-data=first 100K MetaMathQA examples
Source quote
L24: After all, SORSA shows a faster convergence than LoRA and PiSSA in our experiments. On the GSM-8K benchmark, Llama 2 7B adapted using SORSA achieved 56.03% accuracy, surpassing LoRA (42.30%) and Full FT (49.05%).
BibTeX
@misc{cao2024sorsa,
  author = {Yang Cao},
  title = {{SORSA: Singular Values and Orthonormal Regularized Singular Vectors Adaptation of Large Language Models}},
  year = {2024},
  eprint = {2409.00055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.00055},
}
Figure