Iterative Length-Regularized Direct Preference Optimization: A Case Study on Improving 7B Language Models to GPT-4 Level
Jie Liu, Zhanhui Zhou, Jiaheng Liu, Xingyuan Bu, Chao Yang, Han-Sen Zhong, Wanli Ouyang
TL;DR
This paper analyzes iterative direct preference optimization (iDPO) and identifies a pitfall where improved responses become more verbose. It introduces Iterative Length-Regularized DPO (iLR-DPO), a multi-objective framework that adds a length penalty to DPO to control verbosity while aligning with human preferences via an online reward model. Through a case study on a 7B open-source model, the method achieves GPT-4-level alignment on AlpacaEval 2.0 and demonstrates strong performance on MT-Bench, Arena-Hard, and the Open LLM Leaderboard, while keeping response length in check. The work also provides ablations, implementation details, and releases open-source resources to enable further research and evaluation.
Abstract
Direct Preference Optimization (DPO), a standard method for aligning language models with human preferences, is traditionally applied to offline preferences. Recent studies show that DPO benefits from iterative training with online preferences labeled by a trained reward model. In this work, we identify a pitfall of vanilla iterative DPO - improved response quality can lead to increased verbosity. To address this, we introduce iterative length-regularized DPO (iLR-DPO) to penalize response length. Our empirical results show that iLR-DPO can enhance a 7B model to perform on par with GPT-4 without increasing verbosity. Specifically, our 7B model achieves a $50.5\%$ length-controlled win rate against $\texttt{GPT-4 Preview}$ on AlpacaEval 2.0, and excels across standard benchmarks including MT-Bench, Arena-Hard and OpenLLM Leaderboard. These results demonstrate the effectiveness of iterative DPO in aligning language models with human feedback.
