Orthogonal Finetuning for Direct Preference Optimization

Chenxu Yang, Ruipeng Jia, Naibin Gu, Zheng Lin, Siyuan Chen, Chao Pang, Weichong Yin, Yu Sun, Hua Wu, Weiping Wang · OpenReview

Abstract

Direct Preference Optimization (DPO) is an effective preference optimization algorithm. However, DPO-tuned models tend to overfit on dispreferred samples, manifesting as overly long generations lacking diversity. While recent regularization approaches have endeavored to alleviate this issue by modifying the objective function, they often do so at the cost of alignment performance. This paper introduces weight-Rotated Preference Optimization (RoPO), which incorporates regularization from the perspective of weight updating. By conducting only rotational and magnitude-stretching updates, RoPO maintains hyperspherical energy invariance and preserves the knowledge encoded in neuron angles. Extensive experiments show that RoPO aligns with human preferences while retaining original expressive capacity using only 0.0086% trainable parameters, outperforming DPO on MT-Bench and AlpacaEval 2 while significantly enhancing generation diversity.

Introduction: The Geometry of Overfitting

While Direct Preference Optimization (DPO) has emerged as a popular reinforcement-learning-free method for aligning Large Language Models (LLMs) with human preferences, it suffers from a significant defect: overfitting. This manifests as "verbosity bias," where the model generates abnormally long, repetitive, and less diverse text. This behavior is often linked to the suppression of the end-of-sentence (<eos>) token as the model aggressively pushes the probability of dispreferred samples toward zero.

Comparison between DPO and RoPO. DPO leads to anisotropic neuron distributions and overfitting, while RoPO preserves hyperspherical energy through rotation and magnitude-stretching.

The authors identify a geometric correlation between this overfitting and the spatial distribution of neurons. In standard DPO, neurons tend to cluster together (anisotropy), increasing the "hyperspherical energy" (HE) of the system. This structural shift often leads to "knowledge forgetting," where the model loses general reasoning capabilities acquired during pre-training. RoPO addresses this by ensuring that the relative angles between neurons—where core knowledge is stored—remain preserved during the alignment process.

Methodology: Weight-Rotated Preference Optimization (RoPO)

The core technical innovation of RoPO is the restriction of weight updates to orthogonal transformations. By focusing on rotation rather than displacement, RoPO maintains the structural integrity of the model's internal representations.

Key Technical Components

  • Hyperspherical Energy (HE) Invariance: RoPO is designed to keep HE invariant, preventing the anisotropic clumping observed in standard DPO and maintaining a more uniform distribution of neurons.
  • Bidirectional Integrated Givens (BIG) Matrices: Instead of standard additive updates (like LoRA), RoPO utilizes a series of Givens rotations. These mathematical operations rotate vectors in 2D planes to update the weight matrix $W$ without distorting its orthogonal properties.
  • Magnitude-Stretching: To provide the model with sufficient learning capacity, a trainable vector $m$ is introduced to scale the length of neurons. This allows for magnitude adjustments without altering the critical relative angles between neurons.
  • Extreme Parameter Efficiency: Because it only trains rotation angles and scaling factors, RoPO is incredibly lean, requiring only 0.0086% of the total parameters to be trainable—significantly less than standard LoRA configurations.

Experimental Evaluation

The researchers evaluated RoPO using Mistral-7B-v0.1 and Llama-3-8B backbones. Models were first supervised fine-tuned (SFT) on UltraChat-200k and then preference-aligned using the UltraFeedback dataset. Evaluation covered instruction following (MT-Bench, AlpacaEval 2, Arena-Hard), reasoning (BoolQ, PIQA, HellaSwag, WinoGrande), and generation diversity.

Key Results and Insights

RoPO consistently outperformed standard DPO and other recent variants such as IPO, KTO, and ORPO across all major benchmarks.

Performance comparison across methods. RoPO achieves significantly higher generation diversity (green) and superior alignment scores (pink) compared to standard DPO and other variants.
  • Superior Alignment: RoPO outperformed DPO by up to 10 points on MT-Bench and achieved a length-weighted win rate improvement of 2.8 points on AlpacaEval 2 over the strongest baselines.
  • Enhanced Diversity: RoPO improved generation diversity by an average of 6 points compared to DPO, effectively curing the "repetitive verbosity" issue that plagues many aligned models.
  • Knowledge Preservation: On commonsense reasoning tasks, RoPO maintained an average accuracy of 85.43%. In contrast, standard DPO and other methods showed signs of "knowledge forgetting," with accuracies dropping as low as 70-83%.

Conclusion

RoPO demonstrates that the geometry of weight updates is a critical factor in preventing alignment overfitting. By constraining the optimization space to orthogonal transformations and magnitude stretching, RoPO preserves the structural knowledge of the pre-trained model while achieving state-of-the-art alignment. This method offers a highly parameter-efficient path toward building LLMs that are both helpful and diverse in their responses.

Summary updated

BibTeX
@misc{yang2024orthogonal,
  author = {Chenxu Yang and Ruipeng Jia and Naibin Gu and Zheng Lin and Siyuan Chen and Chao Pang and Weichong Yin and Yu Sun and Hua Wu and Weiping Wang},
  title = {{Orthogonal Finetuning for Direct Preference Optimization}},
  year = {2024},
  eprint = {2409.14836},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.14836},
}
Figure