Is On-Policy Data always the Best Choice for Direct Preference Optimization-based LM Alignment?
Zetian Sun, Dongfang Li, Xuhui Chen, Baotian Hu, Min Zhang
TL;DR
This paper challenges the default assumption that on-policy data is always superior for LM alignment with human preferences. It introduces an alignment stage hypothesis, proposing a two-stage process—preference injection (diverse data) and preference fine-tuning (high-quality data)—and develops a boundary-measurement algorithm to detect stage transitions during training. The authors provide theoretical analysis linking DPO objectives to alignment objectives and define a practical, BT-based notion of preference consistency to estimate the general text distribution. Empirically, they show that the effectiveness of on-policy versus off-policy data varies across models and initial conditions, and that the boundary-measurement approach generalizes across multiple LMs and an alternative method (SLiC-HF). The work yields actionable guidance for data selection to improve efficiency and reliability in LM alignment, highlighting that strategic, stage-aware data blending can outperform naïve on-policy-only strategies.
Abstract
The alignment of language models~(LMs) with human preferences is critical for building reliable AI systems. The problem is typically framed as optimizing an LM policy to maximize the expected reward that reflects human preferences. Recently, Direct Preference Optimization~(DPO) was proposed as a LM alignment method that directly optimize the policy from static preference data, and further improved by incorporating on-policy sampling~(i.e., preference candidates generated during the training loop) for better LM alignment. However, we show on-policy data is not always optimal, with systematic effectiveness difference emerging between static and on-policy preference candidates. For example, on-policy data can result in a $3\times$ effectiveness compared with static data for Llama-3, and a $0.4\times$ effectiveness for Zephyr. To explain the phenomenon, we propose the alignment stage assumption, which divides the alignment process into two distinct stages: the preference injection stage, which benefits from diverse data, and the preference fine-tuning stage, which favors high-quality data. Through theoretical and empirical analysis, we characterize these stages and propose an effective algorithm to identify the boundaries between them. We perform experiments on $5$ models~(Llama, Zephyr, Phi-2, Qwen, Pythia) and $2$ alignment methods~(DPO, SLiC-HF) to show the generalizability of alignment stage assumption and the effectiveness of the boundary measurement algorithm.
