Orthogonal Finetuning Made Scalable

Zeju Qiu, Weiyang Liu, Adrian Weller, Bernhard Schölkopf · DOI

Abstract

Orthogonal Finetuning (OFT) offers a stable alternative to Low-Rank Adaptation (LoRA) by preserving the geometric relationships of neurons, yet its high computational cost has historically limited its application to large-scale foundation models. This paper introduces OFTv2, a scalable reformulation that achieves a 10x speedup and 3x memory reduction over the original method. By shifting to an input-centric approach and utilizing a truncated Neumann series for matrix parameterization, OFTv2 enables efficient adaptation of models with billions of parameters, including 4-bit quantized versions (QOFT). Experimental results across language modeling, mathematical reasoning, and image generation demonstrate that OFTv2 consistently outperforms LoRA and QLoRA in stability and accuracy while utilizing significantly fewer parameters.

Introduction

Finetuning massive foundation models like Llama 3 or Stable Diffusion requires a delicate balance between performance and resource constraints. While Low-Rank Adaptation (LoRA) has become the industry standard due to its efficiency, it can sometimes suffer from instability or "catastrophic forgetting," where the model loses general knowledge while specializing. Orthogonal Finetuning (OFT) provides a theoretically grounded alternative by learning orthogonal transformations that preserve the hyperspherical energy—the geometric relationship—of a model's neurons.

Despite its advantages, the original OFT was computationally prohibitive for large models. The cubic complexity ($O(d^3)$) of its weight-centric operations created a "memory wall" that prevented its use on models with billions of parameters. Orthogonal Finetuning Made Scalable introduces OFTv2, transforming this niche method into a high-performance tool capable of rivaling and often exceeding LoRA's performance on modern hardware.

The Scalability Bottleneck

The primary challenge with the original OFT was its weight-centric nature. To maintain orthogonality, the method performed matrix-matrix multiplications during training. As model dimensions ($d$) increased, the $O(d^3)$ complexity became unsustainable. Furthermore, this approach was incompatible with quantized models, which are essential for deploying large-scale AI on consumer-grade GPUs.

OFTv2: Technical Innovations

The authors propose three key innovations to overcome these hurdles:

1. Input-Centric Reformulation

Instead of merging learned orthogonal matrices into the weights during training, OFTv2 applies the transformation directly to the input vectors during the forward pass. This shift changes the mathematical operation from matrix-matrix multiplication to matrix-vector multiplication, effectively reducing computational complexity from cubic ($O(d^3)$) to quadratic ($O(d^2)$). This "matrix-free" approach allows the model to treat matrices as linear operators, significantly lowering the memory footprint.

2. Cayley-Neumann Parameterization

The original OFT relied on the Cayley transform, which requires a matrix inversion—a process that is notoriously slow and numerically unstable for large matrices. OFTv2 replaces this with a truncated Neumann series, an approximation using a finite sum of matrix powers. This approximation is faster to compute, more numerically stable, and maintains the necessary orthogonal properties for effective finetuning.

3. Quantized OFT (QOFT)

Because the input-centric approach does not require modifying the base weights directly during the forward pass, it is "quantization-agnostic." The researchers introduced QOFT, which allows for the orthogonal finetuning of 4-bit quantized models (using formats like NF4 or AWQ). Unlike QLoRA, which can suffer from loss divergence and training crashes, QOFT remains stable even under extreme compression.

Experimental Evaluation

OFTv2 was evaluated across a diverse range of modalities and tasks:

  • Language and Mathematics: Evaluated on WikiText-2 and the OpenR1-Math-220k dataset, using benchmarks such as GSM8K, CMATH, AMC23, and SAT Math.
  • Summarization: Tested using the BART-large model on XSum and CNN/DailyMail datasets.
  • Text-to-Image Generation: Subject-driven generation (DreamBooth) using Stable Diffusion 3.5 Large and Medium.

Key Results and Insights

The empirical results highlight the efficiency and robustness of the OFTv2 framework:

  • Efficiency Gains: On a Qwen2.5-7B model, OFTv2 achieved a 10x speedup in training time and a 3x reduction in GPU memory usage compared to the original OFT.
  • Superior Reasoning: In complex mathematical reasoning tasks, QOFT significantly outperformed QLoRA. On the SAT Math benchmark, QOFT reached 96.9% accuracy, whereas QLoRA reached only 68.8% using the same base model.
  • Parameter Economy: OFTv2 often matched or exceeded LoRA’s performance while using 47% to 53% fewer trainable parameters.
  • Stability: While LoRA updates can sometimes distort the pre-trained weight space, OFT’s rotation-based updates keep internal representations better conditioned. This structural advantage prevents the "loss divergence" often seen in quantized training.

Limitations and Future Work

While OFTv2 represents a major leap forward, some challenges remain. In full-precision settings, OFTv2 is still slightly slower than LoRA because LoRA benefits from highly optimized cuBLAS kernels. OFT’s sparse orthogonal operations require further specialized kernel development to reach peak hardware efficiency. Additionally, maintaining exact orthogonality during optimization is inherently more complex than the linear updates used in LoRA.

Future research may explore butterfly factorization to further increase the structured sparsity of orthogonal matrices, potentially leading to even more efficient adapters for the next generation of foundation models.

Conclusion

OFTv2 successfully bridges the gap between the theoretical benefits of orthogonal transformations and the practical requirements of large-scale model adaptation. By making orthogonal finetuning scalable and quantization-ready, it provides a robust, parameter-efficient alternative to LoRA, particularly for tasks requiring high stability and reasoning capabilities.

Summary updated

BibTeX
@misc{qiu2025orthogonal,
  author = {Zeju Qiu and Weiyang Liu and Adrian Weller and Bernhard Schölkopf},
  title = {{Orthogonal Finetuning Made Scalable}},
  year = {2025},
  eprint = {2506.19847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.19847},
}
Figure