BiDoRA: Bi-level Optimization-Based Weight-Decomposed Low-Rank Adaptation

Peijia Qin, Ruiyi Zhang, Pengtao Xie

Abstract

Parameter-efficient fine-tuning (PEFT) is a flexible and efficient method for adapting large language models (LLMs) to downstream tasks. Among these methods, weight-decomposed low-rank adaptation (DoRA) is a promising approach that decomposes weight matrices into magnitude and direction components to mimic full fine-tuning (FT) better. However, DoRA's simultaneous optimization of these components makes it over-expressive, increases the risk of overfitting, and creates a coupled updating pattern that limits its learning capacity. To address these issues, we propose Bi-level Optimization-Based Weight-Decomposed Low-Rank Adaptation (BiDoRA), a novel PEFT method based on a bi-level optimization framework. BiDoRA fundamentally differs from DoRA by optimizing the magnitude and direction in two separate, asynchronous loops using distinct training and validation data splits. This decoupled optimization process effectively mitigates overfitting and allows for more flexible updates that align even more closely with FT. For instance, weight decomposition analysis shows BiDoRA achieves a magnitude-direction update correlation of $-8.042$, significantly closer to the FT ideal compared to $-1.784$ for DoRA. Evaluation of BiDoRA on diverse tasks spanning natural language understanding, generation, token classification, and extremely small biomedical datasets reveals that it consistently outperforms DoRA and a wide range of leading PEFT methods. This improvement is statistically significant, as demonstrated on the GLUE benchmark where BiDoRA surpasses DoRA with a p-value of $2.4\times10^{-4}$ in terms of the Wilcoxon signed-rank test.

Introduction

Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA have become the standard for adapting Large Language Models (LLMs) without the massive cost of full fine-tuning (FT). A recent advancement, DoRA, improved upon LoRA by decomposing weight matrices into magnitude and direction components, better mimicking the update patterns of FT. However, DoRA optimizes magnitude and direction simultaneously on the same training data, leading to overfitting—especially on small datasets—and coupled updating patterns that constrain learning capacity.

Methodology

BiDoRA utilizes a Bi-level Optimization (BLO) framework to decouple the optimization of weight magnitude and direction. Inspired by Neural Architecture Search, the magnitude component is treated as the "architecture" (upper level) and the direction component as the "sub-network" (lower level).

Overview of the BiDoRA framework, illustrating the search phase with bi-level optimization and the subsequent retraining phase.

The Two-Loop Optimization

  • Lower Level (Inner Loop): The model learns the direction component ($\Delta V$) using the training split while keeping the magnitude fixed.
  • Upper Level (Outer Loop): The model optimizes the magnitude component ($m$) by minimizing loss on a separate validation split, using the direction learned in the lower level.
  • Orthogonal Regularization: A Gram regularization loss is introduced to ensure low-rank direction vectors are diverse and non-redundant.
  • Retraining Phase: After finding the optimal magnitude, the direction component undergoes a final fine-tuning phase on the combined training and validation sets.

Experimental Results

BiDoRA was evaluated across a wide spectrum of tasks, including the GLUE benchmark, text classification (Reuters-21578), natural language generation (E2E), and small biomedical datasets (BBP, MIC).

Performance comparison of BiDoRA against LoRA, DoRA, and full fine-tuning (FT) on the GLUE benchmark using RoBERTa and DeBERTa models.

Key Findings

  • State-of-the-Art Performance: BiDoRA consistently outperformed LoRA and DoRA. On RoBERTa-base, BiDoRA achieved an average GLUE score of 85.2, significantly higher than DoRA's 84.6.
  • Mimicking Full Fine-Tuning: Full fine-tuning (FT) typically shows a strong negative correlation between magnitude and direction updates. BiDoRA achieves a correlation of $-8.042$, aligning much more closely with the FT ideal than DoRA ($-1.784$).
  • Robustness on Small Data: On the tiny BBP dataset (200 samples), BiDoRA reached an F1 score of 92.0, compared to DoRA's 89.3, demonstrating its effectiveness as a regularizer.

Conclusion and Limitations

BiDoRA effectively addresses the over-expressiveness of DoRA through decoupled bi-level optimization. While it achieves superior performance and closer alignment with full fine-tuning dynamics, it does introduce a computational overhead, with total training time being roughly 1.64x that of DoRA. Future work may focus on more efficient hypergradient estimators to reduce this per-step cost.

Summary updated

BibTeX
@article{qin2025bidora,
  author = {Peijia Qin and Ruiyi Zhang and Pengtao Xie},
  title = {{BiDoRA: Bi-level Optimization-Based Weight-Decomposed Low-Rank Adaptation}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=v2xCm3VYl4},
}
Figure