arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.06645cs.CLcs.AI
收藏

FocalPO:通过聚焦正确的偏好排序来增强偏好优化

FocalPO: Enhancing Preference Optimizing by Focusing on Correct Preference Rankings

LMU Munich(慕尼黑大学);Columbia University(哥伦比亚大学);University of Southern California(南加州大学);University of Oxford(牛津大学);Munich Center for Machine Learning(慕尼黑机器学习中心)

Tong Liu, Xiao Yu, Wenxuan Zhou, Jindong Gu, Volker Tresp

AI总结:

针对 DPO 难以纠正错误排序偏好对的问题,本文提出 FocalPO,通过 Focal Loss 式调制因子动态降权错误样本、强化正确样本,并在多个基准和模型上优于 DPO 变体。

摘要:

诸如 Direct Preference Optimization(DPO,直接偏好优化)之类的高效偏好优化算法,已成为使大型语言模型(LLM)与人类偏好对齐的流行方法。这些算法隐式地将 LLM 视为奖励模型,并专注于训练它纠正排序错误的偏好对。然而,近期工作通过实验发现,DPO 训练很少改善这些排序错误的偏好对,尽管其梯度强调这些样本。我们提出 FocalPO,这是一种 DPO 变体,转而降低排序错误偏好对的权重,并优先增强模型对其已经能够正确排序的偏好对的理解。受视觉任务中使用的 Focal Loss 启发,FocalPO 通过加入一个调制因子来动态缩放 DPO 损失,从而实现这一点。我们的实验表明,在引入的超参数固定的情况下,使用 Mistral-Base-7B 和 Llama-3-Instruct-8B,FocalPO 在 Alpaca Eval 2.0 等流行基准上超过了 DPO 及其变体。此外,我们通过实验揭示了 FocalPO 如何影响正确和错误样本组上的训练,进一步强调了其有效性。

英文摘要:

Efficient preference optimization algorithms such as Direct Preference Optimization (DPO) have become a popular approach in aligning large language models (LLMs) with human preferences. These algorithms implicitly treat the LLM as a reward model, and focus on training it to correct misranked preference pairs. However, recent work~\citep{chen2024preference} empirically finds that DPO training \textit{rarely improves these misranked preference pairs}, despite its gradient emphasizing on these cases. We introduce FocalPO, a DPO variant that instead \textit{down-weighs} misranked preference pairs and prioritizes enhancing the model's understanding of pairs that it can already rank correctly. Inspired by Focal Loss used in vision tasks, FocalPO achieves this by adding a modulating factor to dynamically scale DPO loss. Our experiment demonstrates that FocalPO surpasses DPO and its variants on popular benchmarks like Alpaca Eval 2.0 using Mistral-Base-7B and Llama-3-Instruct-8B, with the introduced hyperparameter fixed. Additionally, we empirically reveals how FocalPO affects training on correct and incorrect sample groups, further underscoring its effectiveness.

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

↑