Skip to main content
QUICK REVIEW

[Paper Review] Adaptive Machine Translation with Large Language Models

Yasmin Moslem, Rejwanul Haque|arXiv (Cornell University)|Jan 30, 2023
Natural Language Processing TechniquesComputer Science42 citations
TL;DR

The paper investigates real-time adaptive MT using in-context learning with LLMs (GPT-3.5, GPT-4, BLOOM) to match domain terminology and styles, including fuzzy matches and terminology-constrained MT, across five language pairs.

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).

Motivation & Objective

  • Assess whether in-context learning with LLMs can adapt translations to in-domain terminology and style without fine-tuning.
  • Evaluate the performance of LLM-based adaptive MT against encoder-decoder MT systems across diverse languages.
  • Investigate the impact of fuzzy matches (translation memories) on translation quality in few-shot prompts.
  • Examine the effectiveness of terminology extraction and terminology-constrained MT in guiding LLM translations.

Proposed method

  • Use GPT-3.5 text-davinci-003 via API with top-p=1 and low temperature for translation tasks and zero temperature for terminology extraction.
  • Construct prompts incorporating context from a domain-specific TM dataset (TICO-19) and varying numbers of fuzzy matches (1–10) as few-shot examples.
  • Retrieve fuzzy matches via embedding-based nearest-neighbor search using all-MiniLM-L6-v2 from Sentence-Transformers.
  • Compare GPT-3.5-based adaptive MT to open-source and commercial encoder-decoder MT systems (OPUS, NLLB, Google, DeepL) across EN-AR, EN-ZH, EN-FR, EN-RW, EN-ES.
  • Experiment with combining MT outputs from encoder-decoder models with GPT-3.5 prompts and with translating the fuzzy matches themselves.
  • Explore terminology extraction with GPT-3.5 and implement terminology-constrained MT by embedding glossary terms into prompts.
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.

Experimental results

Research questions

  • RQ1Can in-context learning with LLMs replicate domain-specific translation patterns without further fine-tuning?
  • RQ2Do GPT-3.5/4 and BLOOM variants outperform strong encoder–decoder MT systems on in-domain translations when provided with fuzzy matches?
  • RQ3What is the effect of increasing the number of fuzzy matches on translation quality across languages?
  • RQ4Does incorporating MT outputs from encoder-decoder models into the prompts improve GPT-3.5 translations?
  • RQ5Can terminology extraction and glossary integration in prompts improve consistency and translation quality?

Key findings

  • Few-shot in-context learning with fuzzy matches improves translation quality over zero-shot and random-context prompts across multiple language pairs.
  • Across EN-AR, EN-ES, EN-FR, EN-ZH, GPT-3.5 with 5–10 fuzzy matches can surpass strong encoder–decoder MT systems for several high-resource pairs, with some languages benefiting from more matches.
  • Combining GPT-3.5 translations with MT outputs from encoder-decoder models yields substantial gains for some language pairs (e.g., EN-AR, EN-ZH, EN-FR, EN-ES) but not universally.
  • Terminology-constrained MT using glossary terms in prompts improves adherence to domain terms and can boost overall translation quality, with human evaluation showing increased term transfer and measured quality.
  • Zero-shot terminology-constrained prompts can achieve gains comparable to few-shot prompts in some cases, though there can be trade-offs with grammatical accuracy.
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.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.