[论文解读] Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation
该论文提出对比偏好优化(CPO)以微调中等规模的 LLMs 用于机器翻译,利用对比偏好数据来超越 SFT 和 DPO,实现 GPT-4 与 WMT 级别的性能,使用 ALMA-13B-LoRA(ALMA-R)。
Moderate-sized large language models (LLMs) -- those with 7B or 13B parameters -- exhibit promising machine translation (MT) performance. However, even the top-performing 13B LLM-based translation models, like ALMA, does not match the performance of state-of-the-art conventional encoder-decoder translation models or larger-scale LLMs such as GPT-4. In this study, we bridge this performance gap. We first assess the shortcomings of supervised fine-tuning for LLMs in the MT task, emphasizing the quality issues present in the reference data, despite being human-generated. Then, in contrast to SFT which mimics reference translations, we introduce Contrastive Preference Optimization (CPO), a novel approach that trains models to avoid generating adequate but not perfect translations. Applying CPO to ALMA models with only 22K parallel sentences and 12M parameters yields significant improvements. The resulting model, called ALMA-R, can match or exceed the performance of the WMT competition winners and GPT-4 on WMT'21, WMT'22 and WMT'23 test datasets.
研究动机与目标
- 评估使用人类金标准参考的监督微调(SFT)在机器翻译中的局限性。
- 探究高质量的人类参考是否始终是机器翻译训练的最佳目标。
- 开发一种记忆与计算高效的替代 DPO 的基于偏好学习的方法。
- 证明对比偏好优化(CPO)能够将中等规模的 LLM 提升到最先进的机器翻译性能。
- 发布偏好数据并展示在多种评估指标上的鲁棒性。
提出的方法
- 基于 FLORES-200 和模型输出,为每个源构建三元组偏好数据:(y_ref, y_gpt-4, y_alma)。
- 使用无参考评估器(KIWI-XXL、XCOMET)对翻译进行评分,以选择偏好与非偏好翻译。
- 推导 CPO 目标 L(pi_theta; U) 作为对 DPO 的近似,采用统一参考以实现记忆/计算效率,并加上一个 BC 正则项(KL 约束)以使输出保持接近偏好数据。
- 将 L(pi_theta;U) 形式化为 L(pi_theta;U) = -E log sigma(beta log pi_theta(y_w|x) - beta log pi_theta(y_l|x)).
- 将偏好学习项 L_prefer 与负对数似然项 L_NLL 结合,以定义 CPO 损失函数(带 BC 正则的 L(pi_theta,U))。
实验结果
研究问题
- RQ1是否可以使用对比偏好数据缓解基于参考的 SFT 的瓶颈?
- RQ2高质量的参考翻译是否总能最大化机器翻译性能,还是系统生成的翻译可以成为更好的学习目标?
- RQ3在实际使用中 DPO 是否在内存和速度方面低效?统一参考近似是否能在不损害性能的前提下提升效率?
- RQ4在多语言方向和多种评估指标下,CPO 与 SFT 和 DPO 的表现有何差异?
主要发现
- ALMA-R(ALMA-13B-LoRA 使用 CPO 微调)在 WMT’21/’22 和 WMT’23 测试的多个方向上达到或超过 GPT-4 和 WMT 获胜者。
- 无参考评估器(KIWI-XXL、XCOMET)显示模型输出经常超越金标准参考,促使需要基于偏好的训练。
- CPO 在各方向上显著优于 SFT 和 DPO,结合 L_prefer 与 L_NLL 的组合达到最佳性能。
- 非偏好数据的质量重要:使用自然、质量高的非偏好翻译要比人工引入噪声的翻译更好。
- 消融研究证实,在不同翻译方向的三元组中,ALMA 生成的数据和 GPT-4 生成的数据同样重要。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。