TIM:通过比较教大型语言模型进行翻译
TIM: Teaching Large Language Models to Translate with Comparison
AI总结:
本文提出 TIM 框架,通过正确与错误翻译对及偏好损失微调 LLM,在 WMT2022 上优于现有方法。
摘要:
开源大型语言模型(LLM)通过指令微调已在各种任务中展现出显著效果。然而,这些模型有时在翻译等需要更专业知识的任务上表现吃力。造成这种不足的一个可能原因是,指令微调旨在生成流畅且连贯的文本,使其延续给定指令,而不受任何任务特定要求的约束。此外,对于使用较低质量训练数据来微调较小的 LLM 而言,这可能更具挑战性。为解决该问题,我们提出了一种使用比较样例来教 LLM 学习翻译的新颖框架。我们的方法包括向模型展示正确和错误翻译的样例,并使用偏好损失来指导模型学习。我们在 WMT2022 测试集上评估了该方法,结果表明其优于现有方法。我们的发现为微调 LLM 以完成翻译任务提供了新视角,并为生成高质量翻译提供了一种有前景的解决方案。更多细节请参阅 Github:https://github.com/lemon0830/TIM。
英文摘要:
Open-sourced large language models (LLMs) have demonstrated remarkable efficacy in various tasks with instruction tuning. However, these models can sometimes struggle with tasks that require more specialized knowledge such as translation. One possible reason for such deficiency is that instruction tuning aims to generate fluent and coherent text that continues from a given instruction without being constrained by any task-specific requirements. Moreover, it can be more challenging for tuning smaller LLMs with lower-quality training data. To address this issue, we propose a novel framework using examples in comparison to teach LLMs to learn translation. Our approach involves presenting the model with examples of correct and incorrect translations and using a preference loss to guide the model's learning. We evaluate our method on WMT2022 test sets and show that it outperforms existing methods. Our findings offer a new perspective on fine-tuning LLMs for translation tasks and provide a promising solution for generating high-quality translations. Please refer to Github for more details: https://github.com/lemon0830/TIM.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。