Faster Than SVD, Smarter Than SGD: The OPLoRA Alternating Update

Abdulla Jasem Almansoori, Maria Ivanova, Andrey Veprikov, Aleksandr Beznosikov, Samuel Horváth, Martin Takác

Abstract

Low-Rank Adaptation (LoRA) has revolutionized the fine-tuning of large-scale models by significantly reducing the number of trainable parameters. However, a persistent "performance gap" remains between standard LoRA updates and theoretical upper bounds like SVDLoRA, which utilizes Singular Value Decomposition (SVD) for optimal projections. We introduce Optimally Preconditioned LoRA (OPLoRA), a memory-efficient optimizer that bridges this gap. By reframing the LoRA update as an alternating least squares sub-problem, OPLoRA achieves the precision of SVD-based methods with the memory footprint of standard Adam. Our evaluations across synthetic tasks and real-world benchmarks like RoBERTa on MNLI demonstrate that OPLoRA consistently outperforms vanilla LoRA and matches the performance of computationally expensive SVD baselines.

Introduction: The LoRA Performance Gap

While LoRA is the industry standard for parameter-efficient fine-tuning, training the low-rank $U$ and $V$ matrices using first-order optimizers like Adam or SGD is often ill-conditioned. This leads to slower convergence and lower final accuracy compared to "SVDLoRA"—a baseline that computes a full-rank update and projects it back to low-rank using SVD. The computational cost of performing a full SVD on massive weight matrices at every step makes SVDLoRA impractical. OPLoRA was developed to capture the benefits of SVD-quality updates without the prohibitive overhead.

Methodology

The core innovation of OPLoRA is casting the LoRA update as a regularized low-rank sub-problem solved via an alternating update strategy.

Alternating Least Squares (ALS)

Instead of updating $U$ and $V$ simultaneously, OPLoRA solves for the optimal $U$ given the current $V$, and then solves for the optimal $V$ given the newly updated $U$. The authors demonstrate that even a small number of these alternating steps (e.g., 1 or 2) allows the optimizer to closely track a true truncated SVD projection.

Efficient Computation with LoRSum

To maintain efficiency, the authors introduced the LoRSum subroutine. This algorithm allows for the summation of low-rank matrices—such as the current weights and the gradient—and finds the best low-rank approximation of that sum without ever constructing a full, dense matrix. This keeps the complexity at $O(K \cdot \max\{d_{out}, d_{in}\} \cdot r^2)$, where $r$ is the rank and $K$ is the number of alternating steps.

Low-Rank Momentum

Standard LoRA variants often force momentum into the weight's current subspace, which can lead to "subspace collapse." OPLoRA avoids this by maintaining a dedicated low-rank estimate of the full-rank momentum buffer, ensuring that the optimization process retains high-quality directional information.

Experimental Results

Synthetic Linear Tasks

In controlled environments using synthetic linear tasks, OPLoRA demonstrates its ability to bridge the gap to SVDLoRA. As shown in the mini-batch experiments, increasing the number of alternating steps allows OPLoRA to converge significantly faster than standard LoRA and eventually match the SVDLoRA baseline.

OPLoRA convergence on a synthetic linear task (mini-batch) compared to SVDLoRA and standard LoRA.

Real-World NLP: RoBERTa on MNLI

To test performance on large-scale models, the authors evaluated OPLoRA using RoBERTa-base on the MNLI task. OPLoRA matched the performance of the SVDLoRA baseline while maintaining the memory efficiency required for practical use. Notably, OPLoRA consistently outperformed vanilla LoRA and other preconditioned variants.

Evaluation accuracy of various LoRA methods on the MNLI task using RoBERTa-base.

Image Classification

On MNIST, OPLoRA achieved 98.58% accuracy compared to 98.18% for LoRA+AdamW. On CIFAR-100, the gains were even more pronounced, with OPLoRA reaching 26.94% accuracy, significantly surpassing vanilla LoRA's 24.66%.

Key Insights

  • Preconditioning as a Special Case: Existing state-of-the-art preconditioned LoRA methods are shown to be "one-step" versions of the OPLoRA alternating algorithm. Adding a second step is what allows OPLoRA to begin tracking the optimal SVD projection.
  • Memory Parity: Despite its mathematical sophistication, OPLoRA only requires 3x the number of LoRA parameters in memory—the same overhead as the standard Adam optimizer.

Conclusion and Future Work

OPLoRA provides a robust, memory-efficient path to achieving SVD-quality fine-tuning. While the current implementation is computationally efficient, future work will focus on highly optimized multi-threaded implementations to improve wall-clock training time. Additionally, the authors plan to extend the framework to convolutional layers and investigate the nuances of SVDLoRA's performance in deeper network architectures.

Summary updated

BibTeX
@inproceedings{almansoori2025faster,
  author = {Abdulla Jasem Almansoori and Maria Ivanova and Andrey Veprikov and Aleksandr Beznosikov and Samuel Horváth and Martin Takác},
  title = {{Faster Than SVD, Smarter Than SGD: The OPLoRA Alternating Update}},
  booktitle = {OPT @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=uTk764rexn},
}
Figure