arXiv:2610.08049cs.LGOct 2026

Manuscript Offprint

arXiv:2610.08049

A Riemannian Geometry for Low-rank Adaptation

Shoichiro Takeda, Shin'ya Yamaguchi, Satoshi Suzuki, Yasunori Akagi

Abstract

Low-rank adaptation (LoRA) is widely used as a parameter-efficient fine-tuning technique for pre-trained deep neural networks, which approximates the weight update via full fine-tuning by a low-rank matrix BA⊤BA^{\top}. This parameterization leads to the equivalence relation (B,A)∼(BG−1,AG⊤)(B, A) \sim (BG^{-1}, AG^{\top}) for any invertible matrix GG because BA⊤=BG−1(AG⊤)⊤BA^{\top} = BG^{-1}(AG^{\top})^{\top} and thus both pairs yield the same loss value. This relation induces a quotient manifold where matrices (BG−1,AG⊤)(BG^{-1}, AG^{\top}) for all GG are identified, eliminating redundant directions along which the loss value remains unchanged. To respect the geometry of this manifold, the original search space is endowed with a Riemannian metric that is invariant under the equivalence relation. Such a metric induces preconditioning at each gradient step and ensures that each weight update via LoRA changes the loss value, leading to efficient optimization. In this paper, we propose a new Riemannian metric that is specifically tailored to LoRA to close the gap to full fine-tuning at the weight level. We theoretically show that LoRA with our preconditioning induced by this metric satisfies the following two properties at each iteration: (i) The weight update follows the direction closest to the gradient of full fine-tuning within the subspace of first-order weight changes allowed by the LoRA parameterization. (ii) The updated weight matrix is closer in Frobenius norm to that of full fine-tuning than the updated weight matrices of LoRA with conventional preconditioning and without preconditioning. These theoretical insights suggest that our preconditioning makes LoRA better approximate full fine-tuning, thereby leading to more efficient optimization. Experiments show the effectiveness and efficiency of our preconditioning for LoRA on fine-tuning tasks with language and vision domains.

1 Introduction

Recent progress of foundation models with deep neural networks, such as large vision and large language models, has been remarkable [39, 17, 10, 61, 2]. When transferring these pre-trained models to a specific downstream task, one popular technique is full fine-tuning that updates all the model parameters. However, full fine-tuning of large foundation models is impractical due to their large number of parameters, requiring high computational and storage costs for each task-specific model.

To address this issue, parameter-efficient fine-tuning techniques have become a promising alternative to full fine-tuning [25, 44, 21, 22, 18]. Among these techniques, low-rank adaptation (LoRA) is the de facto standard thanks to its simplicity and effectiveness [21]. Let W0,W∈Rm×nW_0, W \in \mathbb{R}^{m \times n} denote the weight matrices of a layer in the pre-trained and fine-tuned models, respectively. In LoRA, the weight update of full fine-tuning ΔW∈Rm×n\Delta W \in \mathbb{R}^{m \times n} from W0W_0 to WW is approximated by low-rank matrix

Preprint.

factorization 1^{1} as follows:

W=W0+ΔW≈W0+BA⊤,(1)W=W_{0}+\Delta W\approx W_{0}+B A^{\top}, \tag{1}

where B∈Rm×rB \in \mathbb{R}^{m \times r} and A∈Rn×rA \in \mathbb{R}^{n \times r} are trainable factors. Let L:Rm×n→R\mathcal{L} : \mathbb{R}^{m \times n} \to \mathbb{R} denote the loss function for a downstream task. Then, LoRA is formulated as

min⁡(B,A)∈XL(W0+BA⊤),(2)\min_{(B,A)\in\mathcal{X}}\mathcal{L}\left(W_{0}+B A^{\top}\right), \tag{2}

where X:=Rm×r×Rn×r\mathcal{X} := \mathbb{R}^{m \times r} \times \mathbb{R}^{n \times r} denotes the original search space for this problem. By choosing a sufficiently small r≪min⁡(m,n)r \ll \min(m, n), LoRA yields fewer trainable parameters and lower computational and storage costs than full fine-tuning, i.e., min⁡W∈Rm×nL(W)\min_{W \in \mathbb{R}^{m \times n}} \mathcal{L}(W).

Due to the fewer trainable parameters, LoRA often exhibits a performance gap compared to full fine-tuning. To fill this gap, various approaches have been studied for improving the performance of LoRA, e.g., modeling (architecture) improvements [58, 26, 41, 13], leveraging multiple LoRA modules [15, 32, 16, 50, 59, 28, 30], learning-rate tuning [19], and refined initialization schemes [33, 54, 16, 55, 67]. As another line of approach, exploiting the invariance of LoRA has been studied [63, 50]. Specifically, the loss function L\mathcal{L} is invariant under the equivalence relation (B,A)∼(BG−1,AG⊤)(B, A) \sim (BG^{-1}, AG^\top), in the sense that L(W0+BA⊤)=L(W0+BG−1(AG⊤)⊤)\mathcal{L}(W_0 + BA^\top) = \mathcal{L}(W_0 + BG^{-1}(AG^\top)^\top) for all G∈GL(r)G \in \text{GL}(r). This equivalence relation induces the quotient manifold X/GL(r)\mathcal{X}/\text{GL}(r) where matrices (BG−1,AG⊤)(BG^{-1}, AG^\top) for all GG are identified, eliminating redundant directions along which the value of L\mathcal{L} remains unchanged. To respect the geometry of this manifold, the original search space X\mathcal{X} is endowed with a Riemannian metric that is invariant under the equivalence relation. Such a metric induces preconditioning at each gradient step and ensures that each weight update via LoRA changes the value of L\mathcal{L}, leading to efficient optimization. Conventional studies [63, 50] adopt a well-known invariant metric proposed in [36], and this metric induces preconditioning

∇BL↦(∇BL)(A⊤A)−1,∇AL↦(∇AL)(B⊤B)−1,(3)\nabla_{B}\mathcal{L}\mapsto(\nabla_{B}\mathcal{L})(A^{\top}A)^{-1},\quad\nabla_{A}\mathcal{L}\mapsto(\nabla_{A}\mathcal{L})(B^{\top}B)^{-1}, \tag{3}

where ∇BL\nabla_B \mathcal{L} and ∇AL\nabla_A \mathcal{L} denote the Euclidean gradients of L\mathcal{L} with respect to BB and AA, respectively. LoRA with this preconditioning outperforms the original LoRA in multiple fine-tuning tasks. However, the adopted Riemannian metric is classical and tuned to the low-rank matrix completion setting [36]. Therefore, there remains room to tailor this metric to LoRA.

In this paper, we propose a new Riemannian metric to improve the performance of LoRA. Specifically, we tailor the metric to LoRA to close the gap to full fine-tuning at the weight level. As a result, this metric induces new preconditioning

∇BL↦(I−12PB)(∇BL)(A⊤A)−1,∇AL↦(I−12PA)(∇AL)(B⊤B)−1,(4)\nabla_{B}\mathcal{L}\mapsto(I-\frac{1}{2}P_{B})(\nabla_{B}\mathcal{L})(A^{\top}A)^{-1},\quad\nabla_{A}\mathcal{L}\mapsto(I-\frac{1}{2}P_{A})(\nabla_{A}\mathcal{L})(B^{\top}B)^{-1}, \tag{4}

where PB:=B(B⊤B)−1B⊤P_B := B(B^\top B)^{-1} B^\top and PA:=A(A⊤A)−1A⊤P_A := A(A^\top A)^{-1} A^\top are the orthogonal projections onto the column spaces of BB and AA, respectively. We theoretically show that LoRA with this preconditioning satisfies the following two properties at each iteration tt: (i) The weight update from WtW_t to Wt+1W_{t+1} follows the direction closest to the gradient of full fine-tuning within the subspace of first-order weight changes (i.e., first-order changes in WW) allowed by the LoRA parameterization (1). (ii) The updated weight matrix Wt+1W_{t+1} is closer in Frobenius norm to that of full fine-tuning than the updated weight matrices of LoRA with (3) and without preconditioning. These theoretical insights suggest that our preconditioning makes LoRA better approximate full fine-tuning, thereby improving the performance of LoRA. In addition, our preconditioning (4) admits an efficient implementation with the same time complexity of (3). We validated the practical effectiveness and efficiency of our preconditioning for LoRA on several fine-tuning tasks with language and vision domains, including natural language generation, image classification, and commonsense reasoning tasks.

References (63)