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

Yang Cao · Submission to ICLR 2025 · Withdrawn

TL;DR

SORSA (Singular Values and Orthonormal Regularized Singular Vectors Adaptation) is a parameter-efficient fine-tuning (PEFT) method that explicitly decomposes weight matrices into frozen residual components and trainable principal singular components ($U_p$, $S_p$, $V_p$). By pairing this low-rank decomposition with an explicit orthonormal penalty on the singular vectors, SORSA preserves foundational pre-trained representations, lowers the condition number during optimization, and consistently outperforms LoRA and PiSSA on complex reasoning tasks.

What Problem Does This Paper Address?

As large language models scale to tens or hundreds of billions of parameters, full-parameter fine-tuning becomes impractical due to astronomical VRAM footprints (e.g., fine-tuning Llama 2 70B in Float32 requires over 1 TB of VRAM). While low-rank adaptation techniques like LoRA allow parameter-efficient updates with zero added inference latency, they often disrupt the underlying geometric structure of pre-trained representations.

The authors identify that standard fine-tuning and LoRA induce massive deviations in the directions of singular vectors ($\Delta D$), which can degrade generalized capabilities and accelerate catastrophic forgetting. Existing SVD-based methods (like PiSSA) fold singular values directly into low-rank factor matrices, discarding explicit constraints on vector orthonormality and leading to optimization instabilities and sub-optimal conditioning.

Methods

SORSA re-thinks low-rank matrix parameterization through the lens of Singular Value Decomposition (SVD):

  • SVD Decomposition and Freezing: For a weight matrix $W_0 \in \mathbb{R}^{m \times n}$, SVD splits the matrix into principal singular components $W_p = U_p \text{diag}(S_p) V_p^\top$ (rank $r$) and residual components $W_r = U_r \text{diag}(S_r) V_r^\top$. $W_r$ contains the minor singular components and is completely frozen during training.
  • Isolated Singular Parameterization: Unlike PiSSA—which collapses singular values into factor matrices ($A = U_p S_p^{1/2}$, $B = S_p^{1/2} V_p^\top$)—SORSA optimizes $U_p$, $S_p$, and $V_p$ separately: $$\text{SORSA}(x) = x W_r + x (U_p \odot S_p) V_p^\top$$ Computing $(U_p \odot S_p)$ as an element-wise scaling rather than explicit matrix multiplication keeps runtime complexity identical to standard LoRA.

  • Orthonormal Regularization: To prevent $U_p$ and $V_p$ from collapsing or losing orthogonality during gradient steps, SORSA adds an explicit Frobenius regularization term: $$\mathcal{L}_{\text{reg}} = \|U_p^\top U_p - I\|_F + \|V_p^\top V_p - I\|_F$$

  • Theoretical Optimization Guarantees: The authors prove that $\mathcal{L}_{\text{reg}}$ is convex, has Lipschitz continuous gradients, and rigorously decreases the condition number $\kappa(W_p)$ after an initial optimization phase ($t > c$), directly improving gradient flow and optimization stability.

Datasets

The authors evaluated SORSA across reasoning and generative benchmarks using common public datasets (no new datasets were introduced):

  • Fine-tuning Data: The first 100K examples from MetaMathQA (for mathematical reasoning) and the first 100K examples from CodeFeedback Filtered Instruction (for code generation).
  • Evaluation Benchmarks: GSM-8K and MATH for mathematical reasoning; HumanEval for code synthesis.

Key Insights and Ideas

  • Drift Analysis of Weight Geometries: By measuring deviations in singular values ($\Delta \Sigma$) and singular vectors ($\Delta D$), the authors show that LoRA and partial fine-tuning cause large, diffuse alterations across all layers. SORSA with regularization maintains localized, layer-specific updates with significantly smaller geometric drift, protecting pre-trained capabilities.
  • Condition Number Control: In unregularized adaptation, singular vector matrices drift away from orthonormality, inflating the condition number $\kappa(W_p)$. Enforcing orthonormality bounds the ratio between $\sigma_{\max}(W_p)$ and $\sigma_{\min}(W_p)$, stabilizing gradient descent even when utilizing larger learning rates.
  • Hyperparameter Scaling Law: Theory dictates that to guarantee gradient descent convergence, the regularization scaling parameter $\gamma$ must scale inversely with the learning rate ($\gamma \propto 1/\eta_d$).

Key Results

SORSA was tested on Llama 2 7B, Mistral 7B v0.1, Gemma 7B, and the linear RNN architecture RWKV6 7B:

  • Llama 2 7B:
  • GSM-8K: 56.03% accuracy, outperforming Full Fine-Tuning (49.05%), LoRA (42.30%), AdaLoRA (47.30%), and PiSSA (53.07%).
  • MATH: 10.36%, substantially outperforming PiSSA (7.44%), Full FT (7.22%), and LoRA (5.50%).
  • HumanEval: 24.39% (vs. PiSSA's 21.95% and LoRA's 18.29%).
  • RWKV6 7B:
  • Surged to 45.87% on GSM-8K and 11.32% on MATH, where PiSSA achieved 32.07% / 9.42% and LoRA attained only 8.04% / 7.38%.
  • Mistral 7B & Gemma 7B:
  • Mistral 7B achieved 73.09% on GSM-8K and 21.86% on MATH.
  • On Gemma 7B, results were competitive but mixed: SORSA hit 55.49% on HumanEval (tied with AdaLoRA), though AdaLoRA slightly edged out SORSA on GSM-8K (78.99% vs. 78.09%) and MATH (31.44% vs. 29.52%).

Limitations and Future Work

  • Limited Scope of Evaluation: Due to compute budgets, empirical verification was confined to mathematical and coding benchmarks across 7B-parameter models; scaling behavior on 70B+ models or instruction-following chat benchmarks remains untested.
  • Cross-Domain Validation: The SVD framing applies broadly to dense matrices, but testing on vision architectures (e.g., Vision Transformers, Diffusion Models) or multimodal models was left to future work.
  • Quantization Synergy: The authors note that integrating SORSA with low-bit quantization (analogous to QLoRA or QPiSSA) is an essential next step for deployment on edge hardware and resource-constrained environments.

Summary updated

Abstract

In this paper, we propose Singular Values and Orthonormal Regularized Singular Vectors Adaptation, or SORSA, a novel PEFT method. 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 singular value decomposition (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 make the optimization more efficient. SORSA adapters could be merged during inference, thus eliminating any inference latency. We also introduce a method to analyze the variation of the parameters by performing SVD and discuss and analyze SORSA's superiority in minimizing the alteration in the SVD aspect. 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\%), AdaLoRA (47.30\%), Full FT (49.05\%), and PiSSA (53.07\%). On the MATH benchmark, SORSA achieved 10.36\% accuracy, outperforming LoRA (5.50\%), AdaLoRA (6.48\%), Full FT (7.22\%), and PiSSA (7.44\%). We conclude that SORSA offers a new perspective on parameter-efficient fine-tuning, demonstrating remarkable performance.

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},
}

Loading related content...

Figure