作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2026, Vol. 52 ›› Issue (11): 412-422. doi: 10.19678/j.issn.1000-3428.0252213

• 大模型与生成式人工智能 • 上一篇    

基于局部偏好优化的大模型机器翻译方法研究

鲁凯文1,2,3, 杨雅婷1,2,3, 董瑞1,2,3, 马博1,2,3, 王磊1,2,3, 周喜1,2,3, 马荣1,2,3   

  1. 1. 中国科学院新疆理化技术研究所, 新疆 乌鲁木齐 830011;
    2. 中国科学院大学, 北京 100049;
    3. 新疆民族语音语言信息处理实验室, 新疆 乌鲁木齐 830011
  • 收稿日期:2025-03-10 修回日期:2025-07-20 发布日期:2025-09-18
  • 作者简介:鲁凯文,男,博士研究生,主研方向为机器翻译;杨雅婷(通信作者),研究员、博士生导师,E-mail:yangyt@ms.xjb.ac.cn;董瑞,研究员;马博、王磊、周喜,研究员、博士生导师;马荣,博士研究生。
  • 基金资助:
    新疆维吾尔自治区“天山英才”项目(2022TSYCCX0059,2023TSYCCX0041,2023TSYCCX0044,2022TSYCLJ0046);新疆维吾尔自治区自然科学基金(2022D01D04);中国科学院青年创新促进会项目(Y2021112,Y2023118,2021436);新疆维吾尔自治区上合组织科技伙伴计划及国际科技合作计划项目(2023E01019);国家自然科学基金(62406317)。

Research on Large Language Model Machine Translation Method Based on Local Preference Optimization

LU Kaiwen1,2,3, YANG Yating1,2,3, DONG Rui1,2,3, MA Bo1,2,3, WANG Lei1,2,3, ZHOU Xi1,2,3, MA Rong1,2,3   

  1. 1. Xinjiang Technical Institute of Physics and Chemistry, Chinese Academy of Sciences, Urumqi 830011, Xinjiang, China;
    2. University of Chinese Academy of Sciences, Beijing 100049, China;
    3. Xinjiang Laboratory of Minority Speech and Language Information Processing, Urumqi 830011, Xinjiang, China
  • Received:2025-03-10 Revised:2025-07-20 Published:2025-09-18

摘要: 基于直接偏好优化(DPO)的强化学习方法在大语言模型(LLM)的诸多下游任务中展现了良好的效果,然而该方法直接应用在机器翻译中时,常会因为全局奖励最大化策略而产生过度优化问题,具体表现为模型过度关注与参考译文的分布一致性,而丧失了局部翻译多样性和全局优化的潜力。为了解决上述问题,探究DPO方法在LLM机器翻译中表现劣化的根本原因,在此基础上提出一种基于局部偏好优化(LPO)的LLM机器翻译方法。该方法对LLM进行动态温度采样,并通过无参考评估找出翻译中的易错低频短语,提出一种结合全局差异和局部关键差异的偏好数据构造方法,在综合考虑模型全局翻译效果和局部多样性的前提下,设计token级的全局损失和局部损失函数,最后利用两阶段课程学习策略逐步调整模型对低频短语的输出偏好。在FLORES-200数据集上选取14种形态复杂的多语言翻译任务进行测试,实验结果表明,所提方法在XCOMET、COMET-22和BLEU上的得分结果分别为80.7、89.9和30.2。此外,与多个多语言机器翻译强基线进行对比,所提方法在所有翻译语向上均优于基线模型,验证了该方法的有效性。

关键词: 机器翻译, 大语言模型, 多语言, 强化学习, 直接偏好优化

Abstract: Reinforcement learning based on Direct Preference Optimization (DPO) has demonstrated excellent performance in numerous downstream tasks of Large Language Model (LLM). However, when directly applied to machine translation, this method often leads to over-optimization owing to the global reward maximization strategy. Specifically, the model focuses excessively on distribution consistency with reference translations, thus losing local translation diversity and the potential for global optimization. To address these problems and explore the root cause of performance degradation of the DPO method in LLM-based machine translation, this paper proposes an LLM machine translation method based on Local Preference Optimization (LPO). This method performs dynamic temperature sampling on the LLM, identifies error-prone low-frequency phrases in translation through a reference-free evaluation, and proposes a preference data construction method that combines global and local key differences. By comprehensively considering the model's global translation performance and local diversity, it designs token-level global and local loss functions and finally adopts a two-stage curriculum learning strategy to gradually adjust the model's output preference for low-frequency phrases. Fourteen multilingual translation tasks with complex morphologies are selected from the FLORES-200 dataset for testing. Experimental results show that the proposed method achieves scores of 80.7, 89.9 and 30.2 on XCOMET, COMET-22, and BLEU, respectively. In addition, compared with several strong baselines for multilingual machine translation, the proposed method outperforms the baseline models in all translation directions, thus validating its effectiveness.

Key words: machine translation, Large Language Model (LLM), multilingual, reinforcement learning, Direct Preference Optimization (DPO)

中图分类号: