Files
adapters_as_hypotheses/docs/oftv2_input_centric.md
T
wassname 3800481a30 Initial commit: adapters as representational hypotheses catalog
30 PEFT methods reframed as hypotheses about transformer geometry.
Each entry: pseudocode, hypothesis, evidence, grade.
All papers saved to docs/ (full text).
2026-02-22 19:48:37 +08:00

494 lines
57 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Title: Orthogonal Finetuning Made Scalable
URL Source: https://arxiv.org/pdf/2506.19847
Published Time: Thu, 16 Oct 2025 00:06:59 GMT
Number of Pages: 18
Markdown Content:
# Orthogonal Finetuning Made Scalable
Zeju Qiu 1,† Weiyang Liu 1,2,†,* Adrian Weller 3,4 Bernhard Schölkopf 1
> 1
Max Planck Institute for Intelligent Systems 2The Chinese University of Hong Kong
> 3
University of Cambridge 4The Alan Turing Institute †Equal contribution
> *
Project lead, Correspondence to wyliu@cse.cuhk.edu.hk spherelab.ai/oftv2
Abstract
Orthogonal finetuning (OFT) offers highly parameter-efficient adaptation while preventing catastrophic forgetting, but its high runtime and memory demands limit practical deployment. We identify the core computational bottleneck in OFT as its weight-centric implementation, which relies on costly matrix-matrix multipli-cations with cubic complexity. To overcome this, we propose OFTv2, an input-centric refor-mulation that instead uses matrix-vector mul-tiplications ( i.e. , matrix-free computation), re-ducing the computational cost to quadratic. We further introduce the Cayley-Neumann param-eterization, an efficient orthogonal parameteri-zation that approximates the matrix inversion in the Cayley transform via a truncated Neu-mann series. These modifications allow OFTv2 to achieve up to 10 × faster training and 3 ×
lower GPU memory usage without compro-mising performance. In addition, we extend OFTv2 to support finetuning quantized founda-tion models and show that it outperforms the popular QLoRA in training stability, efficiency, and memory usage.
1 Introduction
As foundation models continue to improve in per-formance, recent years have witnessed a paradigm shift from end-to-end learning to a pretraining-finetuning framework. This shift underscores the need for finetuning methods that are both effec-tive and scalable. Owing to its training stabil-ity and adaptation efficiency, orthogonal finetun-ing (OFT) (Qiu et al., 2023; Liu et al., 2024) has emerged as a promising approach for adapting foundation models to downstream tasks. However, while performing well, OFT incurs high compu-tational and memory costs, limiting its scalability. Motivated by these challenges, we seek to make OFT more scalable to large foundation models. Towards this goal, we begin by identifying the key bottleneck that limits OFTs scalability. At OFT OFTv2
> 020 40 60 80 GPU memory (GB)
> OFT OFTv2 0100 200 300 Training time (s) / 100 iterations
> >3 x>10 x
Figure 1: OFTv2 significantly reduces training time and GPU memory usage without sacrificing performance. The finetuning is performed with Qwen2.5-7B.
its core, OFT learns layer-shared orthogonal ma-trices to transform pretrained weight matrices, re-sulting in a naive weight-centric implementation where forward inference is performed after merg-ing the learned orthogonal matrices into weight matrices during training. The weight-centric im-plementation thus involves matrix-matrix multipli-cations with cubic complexity. As weight matri-ces grow large, this cubic scaling severely limits OFTs applicability to large foundation models. However, these matrix-matrix multiplications are not fundamentally necessary. We draw inspiration from matrix-free methods (Chen, 2005), such as the power method and the Lanczos algorithm, which avoid explicit matrix-matrix operations by treat-ing matrices as linear operators applied to vectors. These methods operate entirely through matrix-vector multiplications, applying a matrix to vectors in the appropriate space without ever forming full matrix products. Guided by the same insight, we introduce an input-centric implementation of OFT, in which the learned orthogonal transformations are applied directly to the input vectors during each forward pass, rather than being merged into the weight matrix. This reformulation reduces the com-plexity from cubic to quadratic. We refer to this new formulation as OFTv2. Despite its simplicity, this change significantly enhances the scalability of 1
> arXiv:2506.19847v2 [cs.LG] 14 Oct 2025
OFT, making it suitable for finetuning large founda-tion models that the original OFT could not handle due to memory constraints. Another scalability bottleneck in OFT arises from the Cayley parameterization used by Liu et al. (2021a); Qiu et al. (2023); Liu et al. (2024) to pre-serve orthogonality. While effective, this param-eterization involves computing a matrix inverse, which becomes increasingly costly and less numer-ically stable as weight matrices get larger. To ad-dress this, we use a numerically stable yet efficient approximation the CayleyNeumann parameteri-zation (CNP) (Qiu et al., 2025). By replacing the matrix inverse in the original Cayley transform with a truncated Neumann series, CNP offers improved numerical stability and lower computational cost, particularly in settings where OFT is applied to fine-tune large foundation models. With CNP, OFTv2 becomes even more scalable and readily applicable for efficient adaptation of such models. In Figure 1, we compare OFT and OFTv2 by performing fine-tuning tasks on Qwen2.5-7B, which is the largest model that the original OFT can finetune within a single Nvidia H100 (80GB). These empirical re-sults demonstrate that OFTv2 achieves substantial GPU memory savings and training speed-up over the original OFT formulation (Qiu et al., 2023). In practice, finetuning ultra-large foundation models ( e.g. , LLaMA 3.1-70B (Grattafiori et al., 2024), Qwen 2.5-72B (Yang et al., 2024a)) typi-cally requires quantization to fit within GPU mem-ory limits. To support this, we follow the general design of the QLoRA framework (Dettmers et al., 2023) but replace LoRA with OFTv2. Our input-centric implementation of orthogonal finetuning enables a seamless application to the finetuning of quantized foundation models, resulting in QOFT an efficient orthogonal finetuning that enables ef-ficient adaptation of quantized ultra-large models. Our major contributions are summarized below: • Inspired by matrix-free methods that avoid matrix-matrix multiplications in solving linear systems, we propose OFTv2an input-centric reformulation of OFT that achieves significantly better scalability, with more than 10 × faster training and 3 × lower GPU memory usage. • We apply the CayleyNeumann parameteriza-tion (Qiu et al., 2025) in OFTv2. It approximates the Cayley transform with a truncated Neumann series and eliminates matrix inversions. • Owing to the new input-centric formulation, we adapt OFTv2 to finetuning quantized foundation models. This enables memory-efficient finetun-ing of ultra-large models. • We apply OFTv2 and its quantized variant to different foundation models (including large lan-guage models and text-to-image generative mod-els) across various model scales.
2 Related Work
Parameter-efficient finetuning (PEFT) . As foun-dation models become increasingly large and pow-erful, there has been growing interest in finetuning them for downstream tasks in a parameter-efficient manner (Houlsby et al., 2019; Aghajanyan et al., 2020; Hu et al., 2022a; Edalati et al., 2022; Wang et al., 2022; Gheini et al., 2021; Zaken et al., 2022; Guo et al., 2020; Sung et al., 2021; Ansell et al., 2022; Lester et al., 2021; Li and Liang, 2021; Vu et al., 2022; He et al., 2021; Mao et al., 2021; Karimi Mahabadi et al., 2021; Liu et al., 2022; Sung et al., 2022; Chen et al., 2023; Jia et al., 2022; Chen et al., 2022; Zhang et al., 2022; Jie and Deng, 2023; Lian et al., 2022; Luo et al., 2023; Zhang et al., 2024; Wu et al., 2024). In particu-lar, reparameterization-based methods ( e.g. , Agha-janyan et al. (2020); Hu et al. (2022a); Edalati et al. (2022); Zi et al. (2023); Chavan et al. (2023)) are enjoying wide adoption. LoRA (Hu et al., 2022a) learns a pair of small low-rank matrices whose product is added to each weight matrix, enabling task adaptation with a small number of trainable pa-rameters. Building on LoRA, several works dynam-ically adjust the rank across layers to better balance the parameter budget (Zhang et al., 2023b; Valipour et al., 2022; Zhang et al., 2023a, 2024). To improve scalability, QLoRA (Dettmers et al., 2023) quan-tizes the frozen base model to 4-bit NormalFloat with double quantization and back-propagates only through LoRA, achieving near full-precision accu-racy while drastically lowering memory usage.
Orthogonal Finetuning . Qiu et al. (2023); Liu et al. (2024) propose a reparameterization-based method that learns layer-shared orthogonal matri-ces to transform neurons, yielding strong general-ization and stable training. The is motivated by the observation that hyperspherical energy ( i.e. , a geometric characterization of neurons on the unit sphere) influences generalization (Liu et al., 2018, 2021b; Lin et al., 2020; Liu et al., 2023), and that orthogonal transformations keep this energy in-variant (Liu et al., 2021a). A growing body of 2Pretrained Weight Matrix
> W
> dnd
# x+Pretrained Weight Matrix
> W
> nd
> ... Orthogonal Matrix R
> brdrn
> Low-rank Matrix
> AB
> (a) Low-rank Structure in LoRA (b) Sparse Orthogonal Structure in OFT
> AB00
Figure 2: Comparison between LoRA and OFT.
research (Ma et al., 2024; Yang et al., 2024b; Gor-bunov et al., 2024; Yuan et al., 2024; Feng et al., 2025; Raj and Coyle, 2025; Lingam et al., 2024; Bini et al., 2024; Su et al., 2024; Liao and Monz, 2024) builds upon the core idea of OFT. Figure 2 provides a comparison between OFT and LoRA. OFT achieves parameter efficiency through spar-sity, whereas LoRA relies on a low-rank structure.
3 OFTv2: Faster and More Scalable
3.1 Preliminaries
Let W = [ w1, · · · , wn] ∈ Rd×n be a weight ma-trix with columns wi ∈ Rd. In a linear layer, the forward pass is z = W x , where x ∈ Rd is the in-put and z ∈ Rn is the output. OFT reparameterizes the weight matrix with WOFT = RW 0 where W0
is the pretrained weight matrix and R ∈ Rd×d is an orthogonal matrix. OFT only learns R for adapt-ing the pretrained model to downstream tasks. To enforce orthogonality, Liu et al. (2021b); Qiu et al. (2023); Liu et al. (2024) parameterize R using the Cayley transform: R = ( I + Q)( I Q)1, where
Q is a skew-symmetric matrix satisfying Q =
Q. To further improve parameter-efficiency, OFT constrains the orthogonal matrix R to have a block-diagonal structure: R = Diag (R1, · · · , Rr)
where for any i, Ri ∈ Rb×b is a small orthogonal matrix and b·r = d. Each Ri can be parameterized using the Cayley transform. This block-diagonal form imposes a sparsity pattern on R, effectively making it a sparse orthogonal matrix. Leveraging this structure, Liu et al. (2024) further enhances parameter efficiency using butterfly factorization.
3.2 From Weight-centric Implementation to Input-centric Implementation
OFT performs finetuning by learning an orthogo-nal matrix to directly transform the weight matrix, which naturally leads to a weight-centric imple-mentation of the forward pass:
z =
> (1) Weight transform : matrix-matrix mult.
z }| {
W
> 0
R x
| {z }
> (2) Linear map : matrix-vector mult.
(1) The original OFT first performs a weight trans-form by computing W
> OFT
= W
> 0
R (i.e. , a matrix-matrix multiplication) and then computes the results of a linear layer with the equivalent weight matrix W
> OFT
(i.e. , a matrix-vector multipli-cation). This incurs O(nd 2) complexity due to the matrix-matrix multiplication. Inspired by matrix-free methods for solving linear systems, we observe that OFTs forward pass can be interpreted as two linear maps applied to the input. This leads to an input-centric implementation
z = W
> 0
> (1) Linear map : matrix-vector mult.
z }| {
Rx
| {z }
> (2) Linear map : matrix-vector mult.
(2) where only two matrix-vector multiplications are required, reducing the complexity from cubic to quadratic: O(nd + d2). This simple conceptual shift in implementation entails a substantial speed-up in training time and reduction in GPU memory.
3.3 Approximate Orthogonality via Cayley-Neumann Parameterization
The Cayley parameterization constructs an orthog-onal matrix R with (I + Q)( I Q)1, where Q
is a skew-symmetric matrix. One limitation of this formulation is that it only generates rotation ma-trices, though empirical studies (Liu et al., 2021a; Qiu et al., 2023; Liu et al., 2024) suggest that this restriction does not negatively affect performance. More critically, computing a matrix inverse intro-duces numerical instability and additional compu-tational overhead, making it challenging to scale to large orthogonal matrices. To address this, we use the Cayley-Neumann parameterization proposed by Qiu et al. (2025), where the matrix inverse is approximated by a truncated Neumann series:
R = ( I + Q)( I Q)1 = ( I + Q) ∞X
> i=0
Qi
≈ (I + Q)I +
> k
X
> i=1
Qi,
where larger k leads to better approximation. Re-moving the matrix inversion improves training sta-bility. The Neumann series approximation con-verges in the operator norm if ∥Q∥ < 1. This 3condition is naturally satisfied in practice: to start from the pretrained model, OFT initializes the or-thogonal matrix R as the identity, which requires
Q to start as a zero matrix. Since finetuning begins with a small learning rate and typically involves relatively few steps, Q tends not to drift far from zero. Empirically, even if ∥Q∥ slightly exceeds 1,it does not harm OFTs training stability, as we use only a finite number of Neumann terms.
Custom CUDA kernel for skew-symmetric ma-trices . To maximize GPU memory efficiency, we leverage the skew-symmetric structure of Q ∈
Rn×n, where Qii = 0 , Qij = Qji . By stor-ing only the upper triangular part as a vector, we reduce the storage requirement from n2 to n(n1) 2 .During the forward pass, Q is reconstructed on-the-fly using a highly optimized custom CUDA kernel that significantly accelerates this process.
4 QOFT: Adapting OFTv2 to Finetuning Quantized Foundation Models
While PEFT methods primarily aim to reduce op-timizer memory by minimizing trainable parame-ters, the growing scale of foundation models has shifted the memory bottleneck to the pretrained weights themselves. As model dimensions grow, these frozen parameters increasingly dominate memory consumption during training (Kim et al., 2023). To address this emerging challenge, we ar-gue that truly scalable OFT must operate directly on quantized model representations, such as Nor-malFloat4 (Dettmers et al., 2023) and AWQ (Lin et al., 2024). This represents a critical shift that enables OFT to scale effectively. To this end, we introduce QOFT, a natural ex-tension of OFTv2 for quantized foundation mod-els. QOFT largely follows the framework of QLoRA (Dettmers et al., 2023). Specifically, the quantized low-bit weight matrices are first dequan-tized to higher precision, after which the parameter-efficient adaptation is carried out in the higher-precision space. Formally, the forward pass of QOFT can be written as
z = Dequant (Wquant )
| {z }
> Fronzen
R
|{z}
> Trainable
x (3) The update of OFTv2s orthogonal matrix R is performed in high precision ( e.g. , BF16). We de-note the dequantization function as Dequant (·) and follow QLoRAs design by adopting a double quan-tization strategy, where the quantization parameters of the weight matrices are themselves quantized to further reduce GPU memory usage.
Flexible quantized finetuning via OFTv2 . We now explain why the weight-centric implemen-tation of OFT is ill-suited for quantized foun-dation models. Computing the matrix product
W
> quant
R involves rotating (or reflecting) a quan-tized weight matrix, which requires first dequan-tizing it to higher precision before applying the transformation. While this is mathematically valid, it makes OFT dependent on the specific quantiza-tion method used. Different quantization schemes may require different treatments for computing Dequant (Wquant )R, introducing unnecessary complexity. In contrast, the input-centric imple-mentation avoids this issue by fully decoupling OFT from weight quantization. It applies the learned orthogonal matrix R to the input x. The subsequent forward pass proceeds as usual under any quantization strategy. As a result, OFTv2 be-comes a quantization-agnostic PEFT method com-patible with arbitrary weight quantization schemes.
QOFT vs. QLoRA . We now look into the for-ward pass of QLoRA: z = Dequant (Wquant )x +(AB )x where A ∈ Rd×r and B ∈ Rr×n are low-rank matrices and r ≪ min( d, n ) is usually quite small. First, QOFT is more suitable for post-training quantization when merging the finetuned weights back into the quantized model. In QLoRA, the equivalent weight W + AB can alter the dy-namic range ( i.e. , the possible minimum and maxi-mum values) of the weight matrix, potentially com-plicating requantization. In contrast, the equiva-lent weight in QOFT, RW , preserve the dynamic range of individual elements. The worse-case re-quantization error for QLoRA is always larger than QOFT by ∥AB ∥∞. This advantage is also par-tially supported by recent evidence (Tseng et al., 2024; Ashkboos et al., 2024) suggesting that or-thogonal transformations can homogenize weight magnitudes and suppress outliers. Another practical limitation of QLoRA is its training instability. Across various experiments, we observe that QLoRA is prone to loss divergence and unstable optimization. We suspect this arises from the inherently noisier gradients in QLoRA, which adversely affect the finetuned weights. In contrast, QOFT benefits from the orthogonality of R, which also regularizes the back-propagated gradients. As a result, the adaptation weights in QOFT are better conditioned, and when merged into the pretrained model, they yield a more sta-4WR0
> Pretrained Weight
x
> Adapter
z
> Input
> Output
xInput
zOutput
> +
AB Adapter W0
> Pretrained Weight (a) Sequential (b) Parallel Figure 3: Comparison between sequential ( e.g. , OFT) and parallel ( e.g. , LoRA) adaptation.
ble finetuned model. This observation is supported by prior work (Qiu et al., 2023; Liu et al., 2024) showing that OFT significantly improves training stability and mitigates catastrophic forgetting.
5 Discussions and Intriguing Insights
Sparse vs. low-rank PEFT . As shown in Fig-ure 2, OFT and LoRA achieve parameter-efficiency through sparsity and low rank, respectively. This suggests an intriguing analogy between OFT and LoRA, as sparsity and low rank represent arguably two of the most widely studied and exploited struc-tural properties in matrices. To further enhance the scalability of OFT, more structured sparsity should be exploited, e.g. , butterfly factorization (Liu et al., 2024). Moreover, similar to AdaLoRA (Zhang et al., 2023c), the sparsity level in OFT can be conditioned on the task and layer. Compared to low-rank PEFT, sparse PEFT approaches like OFT remain relatively underexplored, leaving many in-teresting open problems for future investigation.
Sequential vs. parallel adaptation . As shown in Figure 3, OFT and LoRA exemplify two dis-tinct adaptation strategies: sequential adaptation and parallel adaptation, respectively. This contrast is particularly intriguing, as it explains why sequen-tial adaptation benefits from orthogonality, while parallel adaptation naturally aligns with low rank. Sequential adaptation offers great expressiveness but is also more susceptible to error propagation and distortion of the pretrained models spectral properties. Enforcing orthogonality on R is there-fore a natural choice, as it preserves these proper-ties and helps prevent the accumulation of errors. Sparsity is the natural choice if we want to save parameters in orthogonal matrices. Parallel adap-tation adds the adapter R to the pretrained model. In this case, we want R to be a dense update while maintaining parameter efficiencya goal naturally achieved through low-rank matrices. This perspec-tive may inspire new directions in adapter design.
Efficient orthogonality parameterization . OFT also highlights the importance of efficient parame-terization of orthogonal matrices. In fact, the effi-ciency is closely tied to two factors: (1) the degree to which orthogonality needs to be approximated, and (2) the size of the set of orthogonal matrices considered. Our experiments indicate that exact orthogonality and the full orthogonal group are not strictly necessary, as parameterizations from the special orthogonal group and approximate orthog-onality perform quite well in practice. This raises an open question: can we find even more efficient parameterizations with comparable performance?
6 Experiments on Scalability
Our experiments systematically evaluate OFTv2 along two key dimensions: (1) its scalability im-provements over the original OFT, and (2) its finetuning performance across a diverse set of tasks from multiple domains. For both aspects, we compare OFTv2 and QOFT against the well-established, memory- and compute-efficient low-rank adaptation methods LoRA (Hu et al., 2022b) and QLoRA (Dettmers et al., 2023).
6.1 GPU Memory Efficiency
As depicted in Figure 1, OFTv2 achieves a 3× re-duction in GPU memory consumption compared to the original OFT when finetuning the Qwen2.5-7B model. Furthermore, QOFT significantly re-duces memory consumption by enabling the or-thogonal finetuning of quantized base models. In the following ablation studies comparing against both LoRA and QLoRA baselines, where QLoRA broadly refers to low-rank adaptation of quantized models without being limited to NormalFloat 4-bit quantization, we evaluate the actual GPU memory consumption during finetuning of Qwen2.5 mod-els from 0.5B to 72B parameters. For a compre-hensive analysis, we additionally incorporate the widely adopted quantization method AWQ (Lin et al., 2024) for activation-aware quantization. The results are summarized in Figure 4. Our experi-mental results demonstrate that OFTv2 and QOFT achieve memory efficiency comparable to low-rank adaptation methods, with a consistent performance across model scales and data formats.
6.2 Computational Efficiency
We begin by evaluating the training speed of OFTv2 relative to the original OFT. To this end, 57.67 18.8 34.6 74.7 OOM 4.63 8.24 12.95 23.4 41.8 83.6 4.54 7.98 12.6 22.9 40.9 83.1 0.5B 1.5B 3B 7B 14B 32B 72B Model size 010 20 30 40 50 60 70 80 GPU memory (GB) OFT LoRA OFTv2 OOM OOM OOM
> 45.95 8.34 13.1 20.9 36.1 68.1 4.09 6.06 8.51 13.2 21.1 37.1 67.2 0.5B 1.5B 3B 7B 14B 32B 72B Model size 010 20 30 40 50 60 70 GPU memory (GB)
> 4.27 6.68 9.54 14.6 23.1 41.3 76.9 4.27 6.78 9.66 14.6 23.5 41 77.4 0.5B 1.5B 3B 7B 14B 32B 72B Model size 010 20 30 40 50 60 70 80 GPU memory (GB) QLoRA QOFT QLoRA QOFT (a) Original Qwen2.5 (a) BnB-quantized Qwen2.5 (c) AWQ-quantized Qwen2.5 OOM
Figure 4: Results of GPU memory usage for the same finetuning task. (a) OFT, LoRA and OFTv2 on Qwen2.5; (b) QLoRA and QOFT on NF4-quantized Qwen2.5; (c) QLoRA and QOFT on AWQ-quantized Qwen2.5.
Model Size GPUs LoRA OFTv2
Llama-2-7B 8×H100 00:12:10 00:15:10 Llama-2-13B 8×H100 00:17:00 00:19:50
Table 1: Training time (clock time) comparison: OFTv2 vs. LoRA on GSM8K for mathematical reasoning.
we finetune a Qwen2.5-7B model on the OASST1-Guanaco-9K dataset (Dettmers et al., 2023) for in-struction following and measure the training time. As shown in Figure 1, OFTv2 achieves a 3 × speed-up over the original OFT. We further compare the overall training speed of OFTv2 and LoRA across different model scales and precisions. Settings from both the GSM8K experiment (Table 4) and the OpenR1-Math-220k experiment (OpenR1-Team, 2025) (Table 5) are used for comparison. Clock times for each setting are reported in Table 1 and Table 2. While low-rank adaptation methods like LoRA benefit from PyTorchs highly optimized GEMM operations via NVIDIA cuBLAS/cuDNN libraries, the simple designs in OFTv2 significantly narrow this optimization gap in full-precision set-tings. Notably, OFTv2 outperforms LoRA in quan-tized settings (Table 2), demonstrating that its quantization-agnostic design effectively leverages underlying quantization-layer optimizations.
7 Experiments on Performance
Having established that OFTv2 achieves compara-ble memory and computational efficiency to low-rank adaptation methods, we then test its perfor-mance on a variety of tasks.
7.1 Encoder-Decoder Model: BART
We evaluate the finetuning of BART-large (Lewis et al., 2019) on the XSum (Narayan et al., 2018) and CNN/DailyMail (Hermann et al., 2015) datasets for text summarization, reporting ROUGE-
Model Size GPUs QLoRA QOFT
Qwen2.5-1.5B 8×H100 01:20:00 01:17:30
Qwen2.5-7B 8×H100 03:25:00 03:19:30
Qwen2.5-32B 8×H100 12:51:45 12:27:45
Table 2: Clock time comparison of QOFT and QLoRA on OpenR1-Math-220k for mathematical reasoning.
1/2/L scores for LoRA and OFTv2 under both full-precision and NormalFloat4 4-bit quantiza-tion. We further investigate different configura-tions by increasing the rank r for LoRA and the block size b for OFTv2. The results from these finetuning tasks are reported in Table 3. We ob-serve that OFTv2/QOFT consistently outperforms LoRA/QLoRA across all tested configurations, while notably utilizing 4753% fewer trainable pa-rameters. The performance gain gets more obvious with increasing model capacity: at the maximum parameter budget, QOFT outperforms QLoRA by +0.93 ROUGE-1 on XSum (44.16 vs. 43.23), sug-gesting a more effective utilization of expanded adapters. Furthermore, the finetuning performance of OFTv2/QOFT further improves with an increase budget of trainable parameters.
7.2 Decoder-only Model: Llama-2 Series
We finetune Llama-2 7B and 13B models on the NLG datasets GSM8K (Cobbe et al., 2021) and WikiText-2 (Merity et al., 2017). To ensure fair-ness, we use the same set of hyperparameters for each method across datasets, precisions, and model scales. Both LoRA and QLoRA set rank to r = 16 .Both OFTv2 and QOFT set block size to b = 32 .Table 4 shows that OFTv2 consistently outperforms the low-rank adapter across different settings.
7.3 Decoder-only Model: Qwen2.5 Series
We perform supervised finetuning on the Hugging-face OpenR1-Math-220k (OpenR1-Team, 2025) 6A photo of [V] cat in a futuristic space station
> A photo of [V] cat in a magical floating garden in the clouds
> A photo of [V] dog in a futuristic space station
> A photo of [V] dog in a magical crystal cave
> LoRA QLoRA OFTv2 QOFT
> Input images Input images
Figure 5: Qualitative results from Dreambooth finetuning of Stable Diffusion 3.5 Large (8.1B parameters), with peak allocated GPU memory: LoRA ( 52.33 GB ), OFT ( 52.32 GB ), QLoRA ( 41.60 GB ) and QOFT ( 41.53 GB ).
Quant. LoRA / QLoRA OFTv2 / QOFT # Params XSum ↑ CNN/DailyMail ↑ # Params XSum ↑ CNN/DailyMail ↑
Full Prec. 4.33M 43.33 / 20.06 / 35.11 43.11 / 20.22 / 29.69 2.03M 43.36 / 20.21 / 35.31 43.27 / 20.29 / 29.71
8.65M 43.47 / 20.19 / 35.21 43.20 / 20.31 / 29.71 4.19M 43.85 / 20.69 / 35.83 43.72 / 20.73 / 30.22
17.30M 43.38 / 20.20 / 35.25 43.17 / 20.31 / 29.72 8.52M 44.12 / 20.96 / 36.01 44.08 / 21.02 / 30.68
NF4 4.33M 43.09 / 19.82 / 34.92 43.17 / 20.25 / 29.66 2.03M 43.10 / 19.92 / 35.00 43.31 / 20.37 / 29.74
8.65M 43.15 / 19.80 / 34.92 43.10 / 20.24 / 29.65 4.19M 43.72 / 20.58 / 35.68 43.71 / 20.74 / 30.22
17.30M 43.23 / 19.92 / 35.10 43.11 / 20.23 / 29.63 8.52M 44.16 / 20.98 / 36.09 44.10 / 21.05 / 30.69
Table 3: ROUGE-1, ROUGE-2, and ROUGE-L scores for BART-large finetuned on XSum and CNN/DailyMail.
> Model Metric 16-bit 4-bit LoRA OFTv2 QLoRA QOFT 7B # Params 39.98M 17.65M 39.98M 17.65M WikiText-2 ↓6.63 6.14 5.74 5.60
> GSM8K ↑33.81 34.65 34.12 37.23 13B # Params 62.59M 27.62M 62.59M 27.62M WikiText-2 ↓5.23 4.98 5.31 5.05
> GSM8K ↑45.94 46.02 44.20 47.92
Table 4: Finetuning results of Llama-2 models on WikiText-2 (perplexity) and GSM8K (test accuracy).
dataset—a large-scale mathematical reasoning cor-pus containing challenging problems and two to four reasoning traces distilled from DeepSeek R1 (Guo et al., 2025). Following the evalu-ation protocol of Qwen2.5-Math (Yang et al., 2024a), we report pass@1 performance on estab-lished math benchmarks: CMATH (Wei et al., 2023), AMC23 (Project-Numina), AQUA (Ling et al., 2017), Olympiad Bench (He et al., 2024), Gaokao 2023 En (Liao et al., 2024), and Minerva Math (Lewkowycz et al., 2022). Finetuning was only performed on NormalFloat 4-bit quantized base models due to the substantial memory re-quirements imposed by the large context window size (16384), necessary for training on a reasoning dataset. The results are reported in Table 5. The baseline method refers to the pre-trained Qwen2.5 models without any continual training. We observe that QOFT consistently outperforms both QLoRA and the base model across all evaluated scales and tasks, despite using significantly fewer train-able parameters. For instance, on the Qwen2.5-7B instruction-tuned model, QOFT achieves a 96.9% SAT Math accuracy compared to QLoRAs 68.8%, while utilizing only 17.55M parameters (57% fewer than QLoRAs 40.37M). This advantage scales ro-bustly: the Qwen2.5-32B variant finetuned with QOFT attains 100% SAT Math accuracy, surpass-ing both the baseline (65.6%) and QLoRA (96.9%). These gains persist across mathematical reason-7Model Type # Params AMC23 AQUA CMATH GaoKao Minerva Olympiad/ SAT 2023 En Math Bench Math Qwen2.5-1.5B-it Baseline - 17.5 49.2 65.2 36.4 9.6 12.0 59.4
> QLoRA 18.46M 15.0 42.5 61.5 29.6 8.1 8.9 59.4
> QOFT 7.89M 27.5 53.1 68.5 41.0 11.8 14.4 81.2 Qwen2.5-1.5B Baseline -0.0 18.9 4.0 4.2 2.6 2.4 28.1
> QLoRA 18.46M 15.0 37.4 64.2 26.8 8.5 6.8 62.5
> QOFT 7.89M 22.5 53.1 56.3 36.1 8.5 12.7 87.5 Qwen2.5-7B-it Baseline -50.0 16.5 89.3 61.8 33.5 36.6 53.1
> QLoRA 40.37M 30.0 48.0 88.8 50.1 25.4 19.7 68.8
> QOFT 17.55M 52.5 70.9 90.5 63.6 33.5 37.6 96.9 Qwen2.5-7B Baseline -25.0 55.1 61.2 42.9 11.8 29.9 71.9
> QLoRA 40.37M 35.0 48.8 73.7 49.9 18.8 18.5 62.5
> QOFT 17.55M 52.5 59.4 80.7 55.6 21.7 34.7 87.5 Qwen2.5-32B-it Baseline -62.5 18.5 92.5 70.1 41.5 44.4 65.6
> QLoRA 134.22M 62.5 71.7 94.0 71.2 39.7 46.8 96.9
> QOFT 57.90M 75.0 83.1 94.7 73.5 41.5 48.7 100.0 Qwen2.5-32B Baseline -35.0 23.2 35.7 46.8 20.2 25.2 62.5
> QLoRA 134.22M 40.0 52.4 90.5 61.0 32.0 29.8 65.6
> QOFT 57.90M 70.0 68.5 90.7 71.4 36.0 44.9 93.8
Table 5: Pass@1 performance of the Qwen2.5 series LLMs and its QLoRA/QOFT finetuned variants using the chain-of-thought reasoning distilled from DeepSeek R1.
ing tasks (e.g., 70.0% on AMC23 for QOFT-32B vs. QLoRAs 40.0%), suggesting that orthogonal adaptation in quantized space better preserves the models reasoning capabilities compared to low-rank adaptation. The results demonstrate QOFTs dual strength: parameter efficiency without sacrific-ing task performance, particularly in the quantized setting. In contrast, QLoRA-finetuned models can exhibit training instabilities (Li et al., 2023), lead-ing to model collapse where their performance fell below the base model. Appendix C gives more re-sults on finetuning math-specific Qwen2.5 models.
7.4 Text-to-image Generative Models: SD-3.5
To assay the generality of the proposed methods across modalities, we perform Dreambooth (Ruiz et al., 2023) finetuning on the latest Stable Diffu-sion 3.5 models (Esser et al., 2024). Dreambooth finetunes text-to-image models using a limited set of images depicting the same subject. This process binds the subject to a unique token identifier, en-abling subject-driven generation where the model synthesizes this subject in novel scenes beyond the training data. Qualitative results are shown in Fig-ure 5 and Appendix D. We also report the actual peak GPU memory usage during the finetuning process in Appendix D. For finetuning the Nor-malFloat 4-bit quantized Stable Diffusion 3.5 Large model, QOFT requires slightly less GPU memory (35 .02 GB) than the QLoRA method ( 35 .03 GiB).
8 Concluding Remarks
OFTv2 advances orthogonal finetuning through three key innovations: (i) an input-centric refor-mulation using matrixvector products, reducing training time by over 10× and peak memory by 3× without loss in performance; (ii) a Neumann se-ries based approximation of the Cayley transform, improving numerical stability while preserving ap-proximate orthogonality; and (iii) an extension to quantized models, which matches or surpasses QLoRA in speed, stability, and memory efficiency. Across BART, LLaMA2, Qwen2.5, and Stable Dif-fusion3.5 (0.5B72B), OFTv2 achieves competi-tive performance with roughly half the trainable parameters and consistent memory savings.
9 Limitations
OFTv2 substantially improves upon OFT in both memory and computational efficiency, matching low-rank methods in memory usage across data types and training speed in the quantized setting. However, its full-precision fine-tuning remains slower. This limitation arises from fundamental dif-ferences: low-rank can be naturally maintained effi-ciently through two simple linear layers, while pre-8serving orthogonality presents a greater optimiza-tion challenge. Additionally, low-rank approaches benefit from extensive community-driven engineer-ing and optimization. Bridging this computational gap presents an interesting research direction.
Acknowledgment
The authors would like to sincerely thank Tim Z. Xiao, Le Chen, Yao Feng and Zhen Liu for sugges-tions and helpful discussions. The core idea was proposed by WL and ZQ, the experiments were conducted by ZQ, and the project was led and su-pervised by WL. The paper was drafted by WL and ZQ, and later polished by AW and BS.
References
Armen Aghajanyan, Luke Zettlemoyer, and Sonal Gupta. 2020. Intrinsic dimensionality explains the effectiveness of language model fine-tuning. arXiv preprint arXiv:2012.13255 . 2 Alan Ansell, Edoardo Ponti, Anna Korhonen, and Ivan Vuli´ c. 2022. Composable sparse fine-tuning for cross-lingual transfer. In ACL . 2 Saleh Ashkboos, Amirkeivan Mohtashami, Maximilian Croci, Bo Li, Pashmina Cameron, Martin Jaggi, Dan Alistarh, Torsten Hoefler, and James Hensman. 2024. Quarot: Outlier-free 4-bit inference in rotated llms. In NeurIPS . 4 Massimo Bini, Karsten Roth, Zeynep Akata, and Anna Khoreva. 2024. Ether: Efficient finetuning of large-scale models with hyperplane reflections. In ICML .3Arnav Chavan, Zhuang Liu, Deepak Gupta, Eric Xing, and Zhiqiang Shen. 2023. One-for-all: General-ized lora for parameter-efficient fine-tuning. arXiv preprint arXiv:2306.07967 . 2 Jiaao Chen, Aston Zhang, Xingjian Shi, Mu Li, Alex Smola, and Diyi Yang. 2023. Parameter-efficient fine-tuning design spaces. In ICLR . 2 Ke Chen. 2005. Matrix preconditioning techniques and applications . 19. Cambridge University Press. 1 Shoufa Chen, Chongjian Ge, Zhan Tong, Jiangliu Wang, Yibing Song, Jue Wang, and Ping Luo. 2022. Adapt-former: Adapting vision transformers for scalable visual recognition. In NeurIPS . 2 Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, and 1 others. 2021. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168 . 6 Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. 2023. Qlora: Efficient finetuning of quantized llms. In NeurIPS . 2, 4, 5, 6 Ali Edalati, Marzieh Tahaei, Ivan Kobyzev, Vahid Par-tovi Nia, James J Clark, and Mehdi Rezagholizadeh. 2022. Krona: Parameter efficient tuning with kro-necker adapter. arXiv preprint arXiv:2212.10650 .2Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Do-minik Lorenz, Axel Sauer, Frederic Boesel, and 1 others. 2024. Scaling rectified flow transformers for high-resolution image synthesis. In ICML . 8 Jinyuan Feng, Zhiqiang Pu, Tianyi Hu, Dongmin Li, Xiaolin Ai, and Huimu Wang. 2025. Omoe: Diversi-fying mixture of low-rank adaptation by orthogonal finetuning. arXiv preprint arXiv:2501.10062 . 3 Mozhdeh Gheini, Xiang Ren, and Jonathan May. 2021. Cross-attention is all you need: Adapting pretrained transformers for machine translation. In EMNLP . 2 Mikhail Gorbunov, Kolya Yudin, Vera Soboleva, Aibek Alanov, Alexey Naumov, and Maxim Rakhuba. 2024. Group and shuffle: Efficient structured orthogonal parametrization. In NeurIPS . 3 Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, and 1 others. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783 . 2 Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Ruoyu Zhang, Runxin Xu, Qihao Zhu, Shi-rong Ma, Peiyi Wang, Xiao Bi, and 1 others. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948 . 7 Demi Guo, Alexander M Rush, and Yoon Kim. 2020. Parameter-efficient transfer learning with diff prun-ing. arXiv preprint arXiv:2012.07463 . 2 Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Leng Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, and 1 oth-ers. 2024. Olympiadbench: A challenging bench-mark for promoting agi with olympiad-level bilin-gual multimodal scientific problems. arXiv preprint arXiv:2402.14008 . 7 Junxian He, Chunting Zhou, Xuezhe Ma, Taylor Berg-Kirkpatrick, and Graham Neubig. 2021. Towards a unified view of parameter-efficient transfer learning.
arXiv preprint arXiv:2110.04366 . 2 Karl Moritz Hermann, Tomas Kocisky, Edward Grefen-stette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. 2015. Teaching machines to read and comprehend. In NIPS . 6
9Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. 2019. Parameter-efficient transfer learning for nlp. In
ICML . 2 Edward J Hu, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, and 1 others. 2022a. Lora: Low-rank adaptation of large language models. In ICLR . 2 Edward J. Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022b. LoRA: Low-rank adaptation of large language models. In ICLR . 5 Menglin Jia, Luming Tang, Bor-Chun Chen, Claire Cardie, Serge Belongie, Bharath Hariharan, and Ser-Nam Lim. 2022. Visual prompt tuning. In ECCV .2Shibo Jie and Zhi-Hong Deng. 2023. Fact: Factor-tuning for lightweight adaptation on vision trans-former. In AAAI . 2 Rabeeh Karimi Mahabadi, James Henderson, and Se-bastian Ruder. 2021. Compacter: Efficient low-rank hypercomplex adapter layers. In NeurIPS . 2 Jeonghoon Kim, Jung Hyun Lee, Sungdong Kim, Joon-suk Park, Kang Min Yoo, Se Jung Kwon, and Dong-soo Lee. 2023. Memory-efficient fine-tuning of com-pressed large language models via sub-4-bit integer quantization. In NeurIPS . 4 Diederik P Kingma and Jimmy Ba. 2015. Adam: A method for stochastic optimization. In ICLR . 14 Brian Lester, Rami Al-Rfou, and Noah Constant. 2021. The power of scale for parameter-efficient prompt tuning. arXiv preprint arXiv:2104.08691 . 2 Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov, and Luke Zettlemoyer. 2019. Bart: De-noising sequence-to-sequence pre-training for natural language generation, translation, and comprehension.
arXiv preprint arXiv:1910.13461 . 6 Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, and 1 others. 2022. Solving quan-titative reasoning problems with language models. In
NeurIPS . 7 Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. In
ACL . 2 Yixiao Li, Yifan Yu, Chen Liang, Pengcheng He, Nikos Karampatziakis, Weizhu Chen, and Tuo Zhao. 2023. Loftq: Lora-fine-tuning-aware quantization for large language models. arXiv preprint arXiv:2310.08659 .8Dongze Lian, Daquan Zhou, Jiashi Feng, and Xinchao Wang. 2022. Scaling & shifting your features: A new baseline for efficient model tuning. In NeurIPS . 2 Baohao Liao and Christof Monz. 2024. 3-in-1: 2d rotary adaptation for efficient finetuning, efficient batching and composability. arXiv preprint arXiv:2409.00119 .3Minpeng Liao, Wei Luo, Chengxi Li, Jing Wu, and Kai Fan. 2024. Mario: Math reasoning with code interpreter outputa reproducible pipeline. arXiv preprint arXiv:2401.08190 . 7 Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. 2024. Awq: Activation-aware weight quantization for on-device llm compression and acceleration. In MLSys .4, 5 Rongmei Lin, Weiyang Liu, Zhen Liu, Chen Feng, Zhid-ing Yu, James M Rehg, Li Xiong, and Le Song. 2020. Regularizing neural networks via minimizing hyper-spherical energy. In CVPR . 2 Wang Ling, Dani Yogatama, Chris Dyer, and Phil Blun-som. 2017. Program induction by rationale genera-tion: Learning to solve and explain algebraic word problems. arXiv preprint arXiv:1705.04146 . 7 Vijay Chandra Lingam, Atula Neerkaje, Aditya Vavre, Aneesh Shetty, Gautham Krishna Gudur, Joydeep Ghosh, Eunsol Choi, Alex Dimakis, Aleksandar Bo-jchevski, and Sujay Sanghavi. 2024. Svft: Parameter-efficient fine-tuning with singular vectors. In
NeurIPS . 3 Haokun Liu, Derek Tam, Mohammed Muqeeth, Jay Mo-hta, Tenghao Huang, Mohit Bansal, and Colin A Raf-fel. 2022. Few-shot parameter-efficient fine-tuning is better and cheaper than in-context learning. In
NeurIPS . 2 Weiyang Liu, Rongmei Lin, Zhen Liu, Lixin Liu, Zhid-ing Yu, Bo Dai, and Le Song. 2018. Learning to-wards minimum hyperspherical energy. In NeurIPS .2Weiyang Liu, Rongmei Lin, Zhen Liu, James M Rehg, Liam Paull, Li Xiong, Le Song, and Adrian Weller. 2021a. Orthogonal over-parameterized training. In
CVPR . 2, 3 Weiyang Liu, Rongmei Lin, Zhen Liu, Li Xiong, Bern-hard Schölkopf, and Adrian Weller. 2021b. Learning with hyperspherical uniformity. In AISTATS . 2, 3 Weiyang Liu, Zeju Qiu, Yao Feng, Yuliang Xiu, Yuxuan Xue, Longhui Yu, Haiwen Feng, Zhen Liu, Juyeon Heo, Songyou Peng, Yandong Wen, Michael J. Black, Adrian Weller, and Bernhard Schölkopf. 2024. Parameter-efficient orthogonal finetuning via butter-fly factorization. In ICLR . 1, 2, 3, 5
10 Weiyang Liu, Longhui Yu, Adrian Weller, and Bernhard Schölkopf. 2023. Generalizing and decoupling neu-ral collapse via hyperspherical uniformity gap. In
ICLR . 2 Gen Luo, Minglang Huang, Yiyi Zhou, Xiaoshuai Sun, Guannan Jiang, Zhiyu Wang, and Rongrong Ji. 2023. Towards efficient visual adaption via structural re-parameterization. arXiv preprint arXiv:2302.08106 .2Xinyu Ma, Xu Chu, Zhibang Yang, Yang Lin, Xin Gao, and Junfeng Zhao. 2024. Parameter efficient quasi-orthogonal fine-tuning via givens rotation. In ICML .3Yuning Mao, Lambert Mathias, Rui Hou, Amjad Alma-hairi, Hao Ma, Jiawei Han, Wen-tau Yih, and Madian Khabsa. 2021. Unipelt: A unified framework for parameter-efficient language model tuning. arXiv preprint arXiv:2110.07577 . 2 Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2017. Pointer sentinel mixture mod-els. In ICLR . 6 Shashi Narayan, Shay B Cohen, and Mirella Lap-ata. 2018. Dont give me the details, just the summary! topic-aware convolutional neural net-works for extreme summarization. arXiv preprint arXiv:1808.08745 . 6 OpenR1-Team. 2025. Openr1-math-220k. 6, 17 Project-Numina. Aimo validation amc. 7 Zeju Qiu, Simon Buchholz, Tim Z. Xiao, Maximil-ian Dax, Bernhard Schölkopf, and Weiyang Liu. 2025. Reparameterized llm training via orthog-onal equivalence transformation. arXiv preprint arXiv:2506.08001 . 2, 3 Zeju Qiu, Weiyang Liu, Haiwen Feng, Yuxuan Xue, Yao Feng, Zhen Liu, Dan Zhang, Adrian Weller, and Bern-hard Schölkopf. 2023. Controlling text-to-image dif-fusion by orthogonal finetuning. In NeurIPS . 1, 2, 3, 5Snehal Raj and Brian Coyle. 2025. Hyper compressed fine-tuning of large foundation models with quantum inspired adapters. arXiv preprint arXiv:2502.06916 .3Nataniel Ruiz, Yuanzhen Li, Varun Jampani, Yael Pritch, Michael Rubinstein, and Kfir Aberman. 2023. Dreambooth: Fine tuning text-to-image diffusion models for subject-driven generation. In CVPR . 8 Junda Su, Zirui Liu, Zeju Qiu, Weiyang Liu, and Zhaozhuo Xu. 2024. In defense of structural sparse adapters for concurrent llm serving. In Findings of EMNLP . 3 Yi-Lin Sung, Jaemin Cho, and Mohit Bansal. 2022. Lst: Ladder side-tuning for parameter and memory efficient transfer learning. In NeurIPS . 2 Yi-Lin Sung, Varun Nair, and Colin A Raffel. 2021. Training neural networks with fixed sparse masks.
NeurIPS . 2 Albert Tseng, Jerry Chee, Qingyao Sun, Volodymyr Kuleshov, and Christopher De Sa. 2024. Quip#: Even better llm quantization with hadamard in-coherence and lattice codebooks. arXiv preprint arXiv:2402.04396 . 4 Mojtaba Valipour, Mehdi Rezagholizadeh, Ivan Kobyzev, and Ali Ghodsi. 2022. Dylora: Parameter efficient tuning of pre-trained models using dynamic search-free low-rank adaptation. arXiv preprint arXiv:2210.07558 . 2 Tu Vu, Brian Lester, Noah Constant, Rami Al-Rfou, and Daniel Cer. 2022. Spot: Better frozen model adaptation through soft prompt transfer. In ACL . 2 Yaqing Wang, Subhabrata Mukherjee, Xiaodong Liu, Jing Gao, Ahmed Hassan Awadallah, and Jian-feng Gao. 2022. Adamix: Mixture-of-adapter for parameter-efficient tuning of large language models. In EMNLP . 2 Tianwen Wei, Jian Luan, Wei Liu, Shuang Dong, and Bin Wang. 2023. Cmath: Can your language model pass chinese elementary school math test? arXiv preprint arXiv:2306.16636 . 7 Taiqiang Wu, Jiahao Wang, Zhe Zhao, and Ngai Wong. 2024. Mixture-of-subspaces in low-rank adaptation.
arXiv preprint arXiv:2406.11909 . 2 An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Day-iheng Liu, Fei Huang, Haoran Wei, and 1 others. 2024a. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115 . 2, 7 Chenxu Yang, Ruipeng Jia, Naibin Gu, Zheng Lin, Siyuan Chen, Chao Pang, Weichong Yin, Yu Sun, Hua Wu, and Weiping Wang. 2024b. Orthogonal finetuning for direct preference optimization. arXiv preprint arXiv:2409.14836 . 3 Shen Yuan, Haotian Liu, and Hongteng Xu. 2024. Bridging the gap between low-rank and orthogonal adaptation via householder reflection adaptation. In
NeurIPS . 3 Elad Ben Zaken, Yoav Goldberg, and Shauli Ravfogel. 2022. BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-models. In
ACL . 2 Feiyu Zhang, Liangzhi Li, Junhao Chen, Zhouqiang Jiang, Bowen Wang, and Yiming Qian. 2023a. In-crelora: Incremental parameter allocation method for parameter-efficient fine-tuning. arXiv preprint arXiv:2308.12043 . 2 Qingru Zhang, Minshuo Chen, Alexander Bukharin, Pengcheng He, Yu Cheng, Weizhu Chen, and Tuo Zhao. 2023b. Adaptive budget allocation for parameter-efficient fine-tuning. In ICLR . 2
11 Qingru Zhang, Minshuo Chen, Alexander Bukharin, Nikos Karampatziakis, Pengcheng He, Yu Cheng, Weizhu Chen, and Tuo Zhao. 2023c. Adalora: Adap-tive budget allocation for parameter-efficient fine-tuning. arXiv preprint arXiv:2303.10512 . 5 Ruiyi Zhang, Rushi Qiang, Sai Ashish Somayajula, and Pengtao Xie. 2024. Autolora: Automatically tuning matrix ranks in low-rank adaptation based on meta learning. arXiv preprint arXiv:2403.09113 . 2 Yuanhan Zhang, Kaiyang Zhou, and Ziwei Liu. 2022. Neural prompt search. arXiv preprint arXiv:2206.04673 . 2 Bojia Zi, Xianbiao Qi, Lingzhi Wang, Jianan Wang, Kam-Fai Wong, and Lei Zhang. 2023. Delta-lora: Fine-tuning high-rank parameters with the delta of low-rank matrices. arXiv preprint arXiv:2309.02411 .2
12 Appendix
Table of Contents
A Experimental Details 14 B Effect of Neumann Series Terms in Orthogonal Parameterization 16 C Mathematical Reasoning with Qwen2.5 17 D Subject-driven Generation with Stable diffusion 3.5 18
13 A Experimental Details
This section outlines the specifics of our experimental setup, including the optimizer, code frameworks, computational resources, evaluation methods, and detailed hyperparameters used for each experiment.
Training details. We employed the Adam optimizer (Kingma and Ba, 2015) for all our training runs. The specific hyperparameters used for each experiment are detailed in the tables referenced below. These include learning rates, batch sizes, number of training epochs, and method-specific configurations: the rank r for LoRA-based methods and the block size b for OFTv2/QOFT. If not explicitly specified, the
r for LoRA-based methods is 16 and the block size b for OFTv2/QOFT is set as 32. For the Wikitext dataset, hyperparameters are listed in Table 8. For the GSM8K dataset, hyperparameters are listed in Table 9. For the XSum dataset, hyperparameters are listed in Table 6. For the CNN/DailyMail dataset, hyperparameters are listed in Table 7. Since it is known that merging QLoRA adapter weights to its quantized base models leads to performance degradation 1 and distorts the real performance, for every experiment, we evaluate the fine-tuned model without merging the trainable parameters, but load them as extra adapter layers.
> Hyperparameter LoRA OFTv2
> BF16 NF4 BF16 NF4
> r= 8 r= 16 r= 32 r= 8 r= 16 r= 32 b= 16 b= 32 b= 64 b= 16 b= 32 b= 64
> Learning rate 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 4e-4 4e-4 4e-4 4e-4 4e-4 4e-4 Epoch 10 10 10 10 10 10 555555Batch size 32 32 32 32 32 32 32 32 32 32 32 32 Gradient Accumulation 444444444444
Table 6: Hyper-parameter setup of fine-tuning BART-large on XSum with LoRA and OFTv2.
> Hyperparameter LoRA OFTv2
> BF16 NF4 BF16 NF4
> r= 8 r= 16 r= 32 r= 8 r= 16 r= 32 b= 16 b= 32 b= 64 b= 16 b= 32 b= 64
> Learning rate 1e-4 1e-4 1e-4 1e-4 1e-4 1e-4 4e-4 4e-4 4e-4 4e-4 4e-4 4e-4 Epoch 555555555555Batch size 64 64 64 64 64 64 64 64 64 64 64 64 Gradient Accumulation 444444444444
Table 7: Hyper-parameter setup of fine-tuning BART-large on CNN/DailyMail with LoRA and OFTv2.
Code framework. Our method is implemented using the Hugging Face PEFT 2 framework, a widely adopted open-source framework providing state-of-the-art parameter-efficient fine-tuning of pre-trained large language models and diffusion models. The implementation of OFTv2 will be released on Hugging Face PEFT soon, to allow for easy reproduction of our training results. We utilized the Hugging Face TRL library for supervised fine-tuning 3. For the base model quantization, we leveraged bitsandbytes 4 for the NormalFloat 4-bit quantization and the QLoRA finetuning, and AutoAWQ 5 for AWQ quantization.
Pretrained models. Our work utilized several pre-trained large language models. Specifically, we employed models from the Qwen2.5 model series 6, which are available under the permissive Apache 2.0 license . We also leveraged the Llama 2 models 7, governed by the Llama 2 license . Additionally, for the
> 1Comparison of merging methods: https://kaitchup.substack.com/p/lora-adapters-when-a-naive-merge
> 2https://huggingface.co/docs/peft/en/index
> 3https://github.com/huggingface/trl
> 4https://github.com/bitsandbytes-foundation/bitsandbytes
> 5https://github.com/casper-hansen/AutoAWQ
> 6https://huggingface.co/collections/Qwen/qwen25-66e81a666513e518adb90d9e
> 7https://huggingface.co/collections/meta-llama/metas-llama2-models-675bfd70e574a62dd0e40541
14 Hyperparameter LoRA OFTv2
> BF16 NF4 BF16 NF4 7B 13B 7B 13B 7B 13B 7B 13B Learning rate 2e-4 2e-4 2e-4 2e-4 2e-4 2e-4 2e-4 2e-4 Epoch 10 10 10 10 10 10 10 10 Batch size 16 16 16 16 16 16 16 16 Gradient Accumulation 22222222
Table 8: Hyper-parameter setup of fine-tuning Llama 2 on Wikitext-2 with LoRA and OFTv2.
> Hyperparameter LoRA OFTv2
> BF16 NF4 BF16 NF4 7B 13B 7B 13B 7B 13B 7B 13B Learning rate 2e-4 2e-4 2e-4 2e-4 8e-4 8e-4 8e-4 8e-4 Epoch 10 10 10 10 10 10 10 10 Batch size 16 16 16 16 16 16 16 16 Gradient Accumulation 44444444
Table 9: Hyper-parameter setup of fine-tuning Llama 2 on GSM8K with LoRA and OFTv2.
text summarization tasks, the BART-large model was used, which is also distributed under the Apache 2.0 license . For the text-to-image generation, we utilized the Stable Diffusion 3.5 models, which are under the Stability AI Community license . We have adhered to all respective licensing agreements for these models throughout our work.
Dataset. The experiments in this study utilized a diverse range of publicly available datasets to ensure comprehensive evaluation. For finetuning language modeling tasks, we employed the Wikitext-2 8 dataset, which is distributed under the CC-BY-SA-3.0 license . Text summarization performance was assessed by fine-tuning on the CNN / DailyMail Dataset 9, also licensed under Apache 2.0 , and the XSum dataset 10 ,which is available under the MIT license . For finetuning mathematical reasoning capabilities, we used the GSM8K 11 dataset, available under the MIT license , and the OpenR1-Math-220k 12 dataset, which can be used under the Apache 2.0 license . The Dreambooth dataset 13 for fine-tuning the diffusion models are under the cc-by-4.0 license .
Compute Resources. All the training tasks are performed on a NVIDIA HGX H100 8-GPU System
node with 80GB memory each. We used a single NVIDIA H100 NVL GPU with 94GB memory to benchmark the memory usage.
> 8https://huggingface.co/datasets/Salesforce/wikitext
> 9https://huggingface.co/datasets/abisee/cnn_dailymail
> 10 https://huggingface.co/datasets/EdinburghNLP/xsum
> 11 https://huggingface.co/datasets/openai/gsm8k
> 12 https://huggingface.co/datasets/open-r1/OpenR1-Math-220k
> 13 https://huggingface.co/datasets/google/dreambooth
15 B Effect of Neumann Series Terms in Orthogonal Parameterization
OFTv2 employs the Cayley-Neumann parameterization to improve the training efficiency; the number of Neumann series terms becomes a hyperparameter. We conducted an additional ablation study to evaluate the impact of the number of Neumann series terms on finetuning performance for WikiText. The results are reported in Table 10. We observe that when the number of Neumann terms is too small ( e.g. , 2), the approximation error to orthogonality slightly degrades performance. For the experiments reported in the main paper, we used five Neumann terms, which we found to be well-suited across all evaluated tasks.
Model Method 2 terms 3 terms 4 terms 5 terms 6 terms
Llama 2 7B OFTv2 6.22 6.15 6.14 6.13 6.14 Llama 2 13B OFTv2 5.11 5.00 4.99 4.98 4.99 Llama 2 7B QOFT 5.70 5.62 5.58 5.60 5.61 Llama 2 13B QOFT 5.14 5.02 5.04 5.05 5.05
> Table 10: Effect of Neumann Series Terms on the Llama-2 Models
16 C Mathematical Reasoning with Qwen2.5
Training details. We fine-tuned the Qwen2.5 models using QLoRA or QOFT on a random subset of 50,000 samples from the Huggingface OpenR1-Math-220k dataset (OpenR1-Team, 2025). For each method and benchmark, we selected the best-performing model after trying learning rates of 1 × 10 5,
2 × 10 5, 5 × 10 5, and 1 × 10 4. We used a batch size of 16 for the 1.5B models and 8 for the 7B and 32B models, with 2 gradient accumulation steps for all. A cosine learning rate scheduler was employed, with a minimum learning rate set to 10% of the initial value.
Evaluation details. For evaluating the Qwen2.5 base models and the QLoRA or QOFT fine-tuned versions, we utilized the same evaluation pipeline as Qwen2.5-Math 14 . This framework provides robust tools for parsing and evaluating mathematical expressions and problem-solving steps, ensuring accurate and consistent assessment of model performance on these mathematical benchmarks. More specifically, we report the models pass@1 performance, i.e. , the performance on the first attempt for a given task, obtained by utilizing the Qwen2.5 Chain-of-Though question prompt (Figure 6).
<|im_start|>system\n Please reason step by step, and put your final answer within \\boxed{{}}. <|im_end|>\n <|im_start|>user\n{input}<|im_end|>\n <|im_start|>assistant\n{output}\n\n
Figure 6: Prompt template used for evaluating Qwen2.5 series models on mathematical reasoning benchmarks.
> Model Method # Params AMC23 AQUA CMATH GaoKao Minerva Olympiad/ SAT 2023 En Math Bench Math Qwen2.5-1.5B-math-it QLoRA 18.46M 27.5 33.5 86.8 43.6 15.4 15.1 46.9
> QOFT 7.89M 45.0 70.9 87.2 60.5 25.4 32.0 93.8 Qwen2.5-1.5B-math QLoRA 18.46M 25.0 31.5 49.0 36.9 10.7 12.9 50.0 QOFT 7.89M 27.5 31.5 55.5 37.7 13.6 14.4 37.5
> Qwen2.5-7B-math-it QLoRA 40.37M 32.5 34.6 89.8 47.0 18.8 18.2 53.1
> QOFT 17.55M 52.5 76.8 92.7 66.8 35.7 41.6 93.8 Qwen2.5-7B-math QLoRA 40.37M 30.0 38.6 75.7 48.6 21.0 20.4 50.0 QOFT 17.55M 30.0 40.6 81.7 49.4 21.3 20.4 50.0
Table 11: The pass@1 performance of the Qwen2.5 series math-specific large language fine-tuned with QLoRA/QOFT by the Chain-of-Thought reasoning.
> 14 https://github.com/QwenLM/Qwen2.5-Math
17 D Subject-driven Generation with Stable diffusion 3.5
Here we provide additional qualitative results of fine-tuning the Stable Diffusion 3.5 Medium model in Figure 7. A photo of [V] dog in a mystical ancient temple
> A photo of [V] dog in a tropical paradise A photo of [V] cat in a city A photo of [V] cat in a Japanese zen garden
> LoRA QLoRA OFTv2 QOFT
> Input images Input images
Figure 7: Qualitative results from Dreambooth fine-tuning of Stable Diffusion 3.5 Medium (8.1B parameters), with peak allocated GPU memory: LoRA ( 38.00 GB ), OFT ( 38.02 GB ), QLoRA ( 35.03 GB ) and QOFT ( 35.02 GB ).
The actual GPU memory usage during LoRA and OFTv2 fine-tuning is summarized in Table 12. As shown, OFTv2/QOFT demonstrates memory efficiency similar to LoRA and QLoRA, regardless of data precision or model scale.
SD 3.5 Medium SD 3.5 Large
LoRA 38.00 GB 52.33 GB OFTv2 38.02 GB 52.32 GB QLoRA 35.03 GB 41.60 GB QOFT 35.02 GB 41.53 GB
Table 12: Actual GPU memory usage during fine-tuning: LoRA, QLoRA, OFTv2, and QOFT applied on Stable Diffusion 3.5 Medium and Large.
18