Skip to main content
QUICK REVIEW

[论文解读] Adaptive Machine Translation with Large Language Models

Yasmin Moslem, Rejwanul Haque|arXiv (Cornell University)|Jan 30, 2023
Natural Language Processing TechniquesComputer Science被引用 42
一句话总结

本文研究使用大语言模型的上下文内学习进行实时自适应机器翻译,以匹配领域术语和风格,包括模糊匹配和术语约束的翻译,在五对语言之间。

ABSTRACT

Consistency is a key requirement of high-quality translation. It is especially important to adhere to pre-approved terminology and adapt to corrected translations in domain-specific projects. Machine translation (MT) has achieved significant progress in the area of domain adaptation. However, real-time adaptation remains challenging. Large-scale language models (LLMs) have recently shown interesting capabilities of in-context learning, where they learn to replicate certain input-output text generation patterns, without further fine-tuning. By feeding an LLM at inference time with a prompt that consists of a list of translation pairs, it can then simulate the domain and style characteristics. This work aims to investigate how we can utilize in-context learning to improve real-time adaptive MT. Our extensive experiments show promising results at translation time. For example, LLMs can adapt to a set of in-domain sentence pairs and/or terminology while translating a new sentence. We observe that the translation quality with few-shot in-context learning can surpass that of strong encoder-decoder MT systems, especially for high-resource languages. Moreover, we investigate whether we can combine MT from strong encoder-decoder models with fuzzy matches, which can further improve translation quality, especially for less supported languages. We conduct our experiments across five diverse language pairs, namely English-to-Arabic (EN-AR), English-to-Chinese (EN-ZH), English-to-French (EN-FR), English-to-Kinyarwanda (EN-RW), and English-to-Spanish (EN-ES).

研究动机与目标

  • 评估在不进行微调的情况下,使用上下文内学习的大语言模型是否能够将翻译适应到领域术语和风格。
  • 评估基于LLM的自适应MT在多种语言上相对于编码器-解码器MT系统的表现。
  • 研究模糊匹配(翻译记忆)在少样本提示中对翻译质量的影响。
  • 考察术语提取和术语约束的MT在指引LLM翻译方面的有效性。

提出的方法

  • 通过API使用 GPT-3.5 text-davinci-003,翻译任务设定 top-p=1、低温度,术语提取设定为零温度。
  • 构建提示,融入来自领域专用翻译记忆数据集(TICO-19)的上下文,并将不同数量的模糊匹配(1–10)作为少样本示例。
  • 通过基于嵌入的最近邻搜索检索模糊匹配,使用 Sentence-Transformers 的 all-MiniLM-L6-v2。
  • 将基于 GPT-3.5 的自适应 MT 与开源和商业的编码器-解码器 MT 系统(OPUS, NLLB, Google, DeepL)在 EN-AR, EN-ZH, EN-FR, EN-RW, EN-ES 进行比较。
  • 尝试将编码器-解码器模型的 MT 输出与 GPT-3.5 提示相结合,以及对模糊匹配本身进行翻译。
  • 探索使用 GPT-3.5 进行术语提取,并通过将术语表术语嵌入提示中来实现术语约束的 MT。
Figure 1: Evaluation results for GPT-3.5 zero-shot, and few-shot translation with random context or fuzzy matches. Average scores across EN-AR, EN-ES, EN-FR, and EN-ZH language pairs. While using a random context outperforms zero-shot translation, using fuzzy matches reveals the best results.
Figure 1: Evaluation results for GPT-3.5 zero-shot, and few-shot translation with random context or fuzzy matches. Average scores across EN-AR, EN-ES, EN-FR, and EN-ZH language pairs. While using a random context outperforms zero-shot translation, using fuzzy matches reveals the best results.

实验结果

研究问题

  • RQ1以上下文内学习的方式,LLMs 能否在不进一步微调的情况下重复域内特定的翻译模式?
  • RQ2在提供模糊匹配时,GPT-3.5/4 和 BLOOM 变体在域内翻译上是否优于强大的编码器–解码器 MT 系统?
  • RQ3增加模糊匹配数量对跨语言翻译质量有何影响?
  • RQ4将编码器-解码器模型的 MT 输出并入提示是否能改善 GPT-3.5 的翻译?
  • RQ5在提示中进行术语提取和术语表整合是否能提高一致性和翻译质量?

主要发现

  • 在多个语言对上,使用模糊匹配的少样本上下文内学习比零样本和随机上下文提示在翻译质量方面有所提升。
  • 在 EN-AR、EN-ES、EN-FR、EN-ZH 的范围内,GPT-3.5 使用 5–10 个模糊匹配在若干高资源对中可以超越强大的编码器–解码器 MT 系统,且某些语言从更多匹配中受益。
  • 将 GPT-3.5 翻译与编码器-解码器模型的 MT 输出相结合,在某些语言对(例如 EN-AR、EN-ZH、EN-FR、EN-ES)上产生显著提升,但并非普遍适用。
  • 在提示中使用术语表术语的术语约束 MT 提高对领域术语的遵循度,并可能提升整体翻译质量,人工评估显示术语传递增加且衡量质量提升。
  • 零样本术语约束提示在某些情况下可实现与少样本提示相当的增益,但可能在语法准确性上存在权衡。
Figure 2: Evaluation results for GPT-3.5 few-shot translation with 5 or 10 fuzzy matches compared to encoder-decoder MT models (DeepL, Google, OPUS, and NLLB). Specifically, for EN-ES, EN-FR, and EN-ZH language pairs, few-shot translation with GPT-3.5 outperforms conventional systems.
Figure 2: Evaluation results for GPT-3.5 few-shot translation with 5 or 10 fuzzy matches compared to encoder-decoder MT models (DeepL, Google, OPUS, and NLLB). Specifically, for EN-ES, EN-FR, and EN-ZH language pairs, few-shot translation with GPT-3.5 outperforms conventional systems.

阅读本论文

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

在 Nubint 中阅读本论文

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