Skip to main content
QUICK REVIEW

[论文解读] Eliciting the Translation Ability of Large Language Models via Multilingual Finetuning with Translation Instructions

Jiahuan Li, Hao Zhou|arXiv (Cornell University)|May 24, 2023
Topic ModelingComputer Science被引用 14
一句话总结

论文通过翻译指令提示(mFTI)对多语言 LLM(XGLM-7B)进行微调,以更好地激发翻译能力,分析影响性能的因素,并展示通过中介语言和扩展多语言数据对未见语言对的泛化能力。

ABSTRACT

Large-scale Pretrained Language Models (LLMs), such as ChatGPT and GPT4, have shown strong abilities in multilingual translations, without being explicitly trained on parallel corpora. It is interesting how the LLMs obtain their ability to carry out translation instructions for different languages. In this paper, we present a detailed analysis by finetuning a multilingual pretrained language model, XGLM-7B, to perform multilingual translation following given instructions. Firstly, we show that multilingual LLMs have stronger translation abilities than previously demonstrated. For a certain language, the performance depends on its similarity to English and the amount of data used in the pretraining phase. Secondly, we find that LLMs' ability to carry out translation instructions relies on the understanding of translation instructions and the alignment among different languages. With multilingual finetuning, LLMs could learn to perform the translation task well even for those language pairs unseen during the instruction tuning phase.

研究动机与目标

  • 通过遵循指令的微调,激发对大型语言模型在上下文学习之外的翻译能力的研究。
  • 研究带翻译指令的多语言微调如何影响跨语言对的翻译性能。
  • 探索影响 mFTI 质量的因素,例如语料质量、数据量、模型规模和训练数据的多样性。
  • 考察对未见语言对的泛化以及枢轴语言在对齐中的作用。
  • 评估随着更多语言对和单语生成指令的增加,指令微调的扩展性。

提出的方法

  • 将翻译表示为一个遵循指令的任务,使用模板:Translation: [l_s]: x [l_t]: y。
  • 在一个包含语言对实例的指令数据集 D 构建的多语言并行语料上微调 XGLM-7B。
  • 在 D 上使用标准交叉熵目标优化下一个 token 预测。
  • 在 13 种语言中为每个语言对使用 1000 条并行句子用于 mFTI,并与 8-shot in-context learning (ICL) 进行比较。
  • 在 FLORES-101 上进行评估,并分析与预训练数据规模及语言与英语的相似性之间的相关性。
  • 研究语料质量(高 LASER 相似度 vs 低 LASER 相似度)、语言对数量以及是否包含单语生成指令对性能的影响。
Figure 1: Translation performance of 8-shot ICL and mFTI using 1000 sentences per language pair. Languages are ordered by the data amount in the pretraining corpus.
Figure 1: Translation performance of 8-shot ICL and mFTI using 1000 sentences per language pair. Languages are ordered by the data amount in the pretraining corpus.

实验结果

研究问题

  • RQ1带翻译指令的多语言微调是否能够超越少样本上下文学习在多语言翻译中的表现?
  • RQ2诸如语料质量、数据量、模型大小和语言对覆盖范围等因素如何影响 mFTI 的性能?
  • RQ3mFTI 在未见语言对上的泛化程度到何种程度,包括源语言和目标语言都未在训练中出现的情况?
  • RQ4引入单语生成指令或枢轴语言是否能改善对齐并在零-shot 设置中减少翻译错误?

主要发现

  • mFTI 在跨语言对中的平均 BLEU 提升约 3 点,优于 8-shot ICL。
  • 翻译性能与语言与英语的相似性相关性高于原始预训练数据规模,尽管两者都重要。
  • 通过英语作为枢轴在 ICL 中带来巨大提升,而 mFTI 降低了对枢轴的依赖并改善了直接语言对齐。
  • 高质量微调数据(高 LASER 相似度)使 BLEU 比低质量数据提升约 2 点。
  • 在 mFTI 过程中增加语言对数量通常会提升翻译与指令遵循性能,尤其是未见方向。
  • 为未见语言添加单语生成指令有助于缓解离题和振荡性错误,将与完全监督的 mFTI 的差距缩小。
Figure 2: Changes of BLEU score after pivoting through English for 8-shot ICL and mFTI.
Figure 2: Changes of BLEU score after pivoting through English for 8-shot ICL and mFTI.

阅读本论文

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

在 Nubint 中阅读本论文

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