arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.16751cs.CLcs.LGstat.ML
收藏

语言模型中奖励好样本与惩罚坏样本的梯度分析框架

A Gradient Analysis Framework for Rewarding Good and Penalizing Bad Examples in Language Models

University of California, Santa Barbara(加州大学圣巴巴拉分校)

Yi-Lin Tuan, William Yang Wang

AI总结:

本文提出一种梯度分析框架,系统比较语言模型中同时奖励好样本和惩罚坏样本的优化方法,发现将DPO与ExMATE结合能显著提升模型性能。

摘要:

除了最大化似然估计(MLE)这一优化好样本概率的语言模型(LM)标准目标外,许多研究探索了同时惩罚坏样本以提升输出分布质量的方法,包括非似然训练、指数最大化平均处理效应(ExMATE)和直接偏好优化(DPO)。为系统比较这些方法并为LM优化提供统一方案,本文提出了一种独特的梯度分析视角,分析在LM中同时奖励好样本和惩罚坏样本的损失函数。通过数学推导和在CausalDialogue与Anthropic HH-RLHF数据集上的实验,我们识别出这些方法间独特的功能特性。我们发现ExMATE是MLE的优越替代品,且将DPO与ExMATE而非MLE结合,可进一步提升统计性能(5-7%)和生成性能(+18%胜率)。

英文摘要:

Beyond maximum likelihood estimation (MLE), the standard objective of a language model (LM) that optimizes good examples probabilities, many studies have explored ways that also penalize bad examples for enhancing the quality of output distribution, including unlikelihood training, exponential maximizing average treatment effect (ExMATE), and direct preference optimization (DPO). To systematically compare these methods and further provide a unified recipe for LM optimization, in this paper, we present a unique angle of gradient analysis of loss functions that simultaneously reward good examples and penalize bad ones in LMs. Through both mathematical results and experiments on CausalDialogue and Anthropic HH-RLHF datasets, we identify distinct functional characteristics among these methods. We find that ExMATE serves as a superior surrogate for MLE, and that combining DPO with ExMATE instead of MLE further enhances both the statistical (5-7%) and generative (+18% win rate) performance.

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

↑