Table of Contents
Fetching ...

ScaLoRA: Optimally Scaled Low-Rank Adaptation for Efficient High-Rank Fine-Tuning

Yilang Zhang, Xiaodong Yang, Yiwei Cai, Georgios B. Giannakis

TL;DR

ScaLoRA tackles the high cost of fine-tuning large language models by turning LoRA’s fixed low-rank updates into progressively high-rank updates through optimal scaling of adapters. It provides analytical solutions for both scalar and column-wise scaling, enabling efficient accumulation of updates without restarting optimizers, and demonstrates faster convergence and improved or competitive accuracy across NLU, commonsense reasoning, and math benchmarks on models up to 12B parameters. The method incurs modest per-step overhead and offers an intermittent variant to further amortize cost, making high-rank fine-tuning more practical for resource-constrained settings. Overall, ScaLoRA advances parameter-efficient fine-tuning by achieving higher effective update ranks with solid theoretical guarantees and broad empirical benefits.

Abstract

As large language models (LLMs) continue to scale in size, the computational overhead has become a major bottleneck for task-specific fine-tuning. While low-rank adaptation (LoRA) effectively curtails this cost by confining the weight updates to a low-dimensional subspace, such a restriction can hinder effectiveness and slow convergence. This contribution deals with these limitations by accumulating progressively a high-rank weight update from consecutive low-rank increments. Specifically, the per update optimal low-rank matrix is identified to minimize the loss function and closely approximate full fine-tuning. To endow efficient and seamless optimization without restarting, this optimal choice is formed by appropriately scaling the columns of the original low-rank matrix. Rigorous performance guarantees reveal that the optimal scaling can be found analytically. Extensive numerical tests with popular LLMs scaling up to 12 billion parameters demonstrate a consistent performance gain and fast convergence relative to state-of-the-art LoRA variants on diverse tasks including natural language understanding, commonsense reasoning, and mathematical problem solving.

ScaLoRA: Optimally Scaled Low-Rank Adaptation for Efficient High-Rank Fine-Tuning

TL;DR

ScaLoRA tackles the high cost of fine-tuning large language models by turning LoRA’s fixed low-rank updates into progressively high-rank updates through optimal scaling of adapters. It provides analytical solutions for both scalar and column-wise scaling, enabling efficient accumulation of updates without restarting optimizers, and demonstrates faster convergence and improved or competitive accuracy across NLU, commonsense reasoning, and math benchmarks on models up to 12B parameters. The method incurs modest per-step overhead and offers an intermittent variant to further amortize cost, making high-rank fine-tuning more practical for resource-constrained settings. Overall, ScaLoRA advances parameter-efficient fine-tuning by achieving higher effective update ranks with solid theoretical guarantees and broad empirical benefits.

Abstract

As large language models (LLMs) continue to scale in size, the computational overhead has become a major bottleneck for task-specific fine-tuning. While low-rank adaptation (LoRA) effectively curtails this cost by confining the weight updates to a low-dimensional subspace, such a restriction can hinder effectiveness and slow convergence. This contribution deals with these limitations by accumulating progressively a high-rank weight update from consecutive low-rank increments. Specifically, the per update optimal low-rank matrix is identified to minimize the loss function and closely approximate full fine-tuning. To endow efficient and seamless optimization without restarting, this optimal choice is formed by appropriately scaling the columns of the original low-rank matrix. Rigorous performance guarantees reveal that the optimal scaling can be found analytically. Extensive numerical tests with popular LLMs scaling up to 12 billion parameters demonstrate a consistent performance gain and fast convergence relative to state-of-the-art LoRA variants on diverse tasks including natural language understanding, commonsense reasoning, and mathematical problem solving.

Paper Structure

This paper contains 26 sections, 9 theorems, 69 equations, 3 figures, 8 tables, 1 algorithm.

Key Result

Theorem 1

Consider the SVD $\nabla \ell (\mathbf{W}_t) = \mathbf{U}_t \mathbf{\Sigma}_t \mathbf{V}_t^\top$. If $\mathop{\mathrm{rank}}\nolimits(\nabla \ell (\mathbf{W}_t)) \ge 2r,~\forall t$ and Assumption as:Lip-smooth holds, then $(\tilde{\mathbf{A}}_t^*, \tilde{\mathbf{B}}_t^*)$ minimizes eq:obj-full if an where sets $\mathcal{A}_t \cup \mathcal{B}_t = \{1,\ldots,2r\}$, $|\mathcal{A}_t|=|\mathcal{B}_t|=r

Figures (3)

  • Figure 1: Visualization of linear regression on synthetic data.
  • Figure 2: Visualization on the RTE dataset with DebertaV3-base.
  • Figure 3: Overhead comparison using LLaMA3-8B.

Theorems & Definitions (15)

  • Theorem 1
  • Theorem 1
  • Lemma 2
  • Theorem 3
  • Lemma 4
  • Theorem 5
  • proof
  • proof
  • proof
  • proof
  • ...and 5 more