arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.19601cs.LGcs.AIcs.CL
收藏

通过估计数据分布的比率进行偏好优化

Preference Optimization by Estimating the Ratio of the Data Distribution

Korea Advanced Institute of Science and Technology (KAIST)(韩国科学技术院)

Yeongmin Kim, Heesun Bae, Byeonghu Na, Il-Chul Moon

AI总结:

本文提出Bregman偏好优化(BPO),通过估计数据分布比率来对齐语言模型,同时提升生成质量与多样性,在Llama-3-8B上达到最先进性能。

摘要:

直接偏好优化(DPO)作为一种简单且稳定的方法,被广泛用于使大型语言模型(LLMs)与人类偏好对齐。本文从似然比估计的角度研究了一种广义的DPO损失,使策略模型能够匹配目标策略。目标策略的比率提供了策略分布的唯一标识,无需依赖奖励模型或配分函数。这使得广义损失能够同时保持简单性和理论保证,而先前的工作如$f$-PO未能同时实现这两点。我们提出了Bregman偏好优化(BPO),一个用于比率匹配的广义框架,提供了一系列达到目标策略最优性的目标函数。BPO将DPO作为特例包含在内,并为所有实例提供了易处理的形式,使得实现仅需几行代码。我们进一步开发了缩放Basu幂散度(SBA),一种可用于BPO实例的梯度缩放方法。BPO框架补充了其他DPO变体,并适用于这些变体定义的目标策略。在实验中,与$f$-DPO或$f$-PO等其他概率损失扩展在生成保真度和多样性之间表现出权衡不同,BPO的实例相比DPO同时提高了胜率和熵。当应用于Llama-3-8B-Instruct时,BPO在Llama-3-8B骨干网络中达到了最先进的性能,在AlpacaEval2上取得了55.9%的长度控制胜率。项目页面:https://github.com/aailab-kaist/BPO。

英文摘要:

Direct preference optimization (DPO) is widely used as a simple and stable method for aligning large language models (LLMs) with human preferences. This paper investigates a generalized DPO loss that enables a policy model to match the target policy from a likelihood ratio estimation perspective. The ratio of the target policy provides a unique identification of the policy distribution without relying on reward models or partition functions. This allows the generalized loss to retain both simplicity and theoretical guarantees, which prior work such as $f$-PO fails to achieve simultaneously. We propose Bregman preference optimization (BPO), a generalized framework for ratio matching that provides a family of objective functions achieving target policy optimality. BPO subsumes DPO as a special case and offers tractable forms for all instances, allowing implementation with a few lines of code. We further develop scaled Basu's power divergence (SBA), a gradient scaling method that can be used for BPO instances. The BPO framework complements other DPO variants and is applicable to target policies defined by these variants. In experiments, unlike other probabilistic loss extensions such as $f$-DPO or $f$-PO, which exhibit a trade-off between generation fidelity and diversity, instances of BPO improve both win rate and entropy compared with DPO. When applied to Llama-3-8B-Instruct, BPO achieves state-of-the-art performance among Llama-3-8B backbones, with a 55.9\% length-controlled win rate on AlpacaEval2. Project page: https://github.com/aailab-kaist/BPO.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑