Skip to main content
QUICK REVIEW

[论文解读] A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models

Haoran Xu, Young Jin Kim|arXiv (Cornell University)|Sep 20, 2023
Natural Language Processing TechniquesComputer Science被引用 27
一句话总结

该论文提出 ALMA,是一种用于解码器仅 LLM 的两阶段微调方案,在翻译方面显著提升,并且对并行数据的强依赖较小,在 10 个方向上平均 gains 超过 12 BLEU 和 12 COMET,超越前期工作,并与 NLLB-54B 和 GPT-3.5-D 相当。

ABSTRACT

Generative Large Language Models (LLMs) have achieved remarkable advancements in various NLP tasks. However, these advances have not been reflected in the translation task, especially those with moderate model sizes (i.e., 7B or 13B parameters), which still lag behind conventional supervised encoder-decoder translation models. Previous studies have attempted to improve the translation capabilities of these moderate LLMs, but their gains have been limited. In this study, we propose a novel fine-tuning approach for LLMs that is specifically designed for the translation task, eliminating the need for the abundant parallel data that traditional translation models usually depend on. Our approach consists of two fine-tuning stages: initial fine-tuning on monolingual data followed by subsequent fine-tuning on a small set of high-quality parallel data. We introduce the LLM developed through this strategy as Advanced Language Model-based trAnslator (ALMA). Based on LLaMA-2 as our underlying model, our results show that the model can achieve an average improvement of more than 12 BLEU and 12 COMET over its zero-shot performance across 10 translation directions from the WMT'21 (2 directions) and WMT'22 (8 directions) test datasets. The performance is significantly better than all prior work and even superior to the NLLB-54B model and GPT-3.5-text-davinci-003, with only 7B or 13B parameters. This method establishes the foundation for a novel training paradigm in machine translation.

研究动机与目标

  • 证明解码器仅 LLM 可以在没有大型并行数据集的情况下实现强翻译性能。
  • 开发一种结合非英语单语数据和高质量平行数据的两阶段微调方案。
  • 展示单语数据和数据质量对翻译性能至关重要。
  • 提供一种实用、计算高效的训练协议,优于以往基于 LLM 的翻译方法。

提出的方法

  • 以 LLaMA-2 作为骨干模型,并在 5 对语言之间双向进行零-shot 翻译评估。
  • 采用两阶段微调过程:(i) 非英语语言的单语数据微调(并保留英语以防止遗忘),(ii) 高质量平行数据微调。
  • 使用标准的因果语言模型损失,采用固定的翻译提示,在优化时不对提示或源句子计算损失。
  • 在第二阶段探索全权重微调和 Low-Rank Adaptation (LoRA) 以评估数据效率。
  • 表明仅需约 1B 的单语标记即可获得强劲性能,7B 模型在 16 MI200 GPU 上大约训练 18 小时。
  • 评估对象为 SoTA 模型(NLLB-54B、GPT-3.5-D/T、GPT-4)及现有研究。

实验结果

研究问题

  • RQ1解码器仅 LLM 是否能够在有限的并行数据下达到有竞争力的翻译性能?
  • RQ2利用单语数据和高质量平行数据的两阶段微调方案是否优于现有的基于 LLM 的翻译方法?
  • RQ3在 ALMA 中,单语数据量和数据质量如何影响翻译性能?
  • RQ4ALMA 的训练方案在计算成本和可行性方面表现如何?

主要发现

  • ALMA-7B 和 ALMA-13B 明显优于先前类似研究,并且与 SoTA 模型具有可比性。
  • ALMA-13B-LoRA 和 ALMA-7B 变体在 10 个方向上表现出色,平均超越 NLLB-54B 和 GPT-3.5-D。
  • LLaMA-2 的零-shot 表现通过 ALMA 方案显著提升,例如 ALMA-7B 对 en xx 方向的平均 BLEU 增益为 +16.12,COMET 增益为 +17.61。
  • 少量高质量平行数据(跨语言 58K 示例)结合单语数据即可带来显著增益,过多的平行数据可能稀释已有知识。
  • 在以单语数据加高质量平行数据进行训练时计算成本较低(约在 16 MI200 GPU 上,对 1B 单语标记约 18 小时)。
  • COMET 是一个关键评估指标,能够捕捉超出词汇重叠的翻译质量(当数据与领域匹配时,BLEU 可能具有误导性)。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。