Unsupervised Neural Machine Translation with Generative Language Models Only

Jesse Michael Han, Igor Babuschkin, Harrison Edwards, Arvind Neelakantan, Tao Xu, Stanislas Polu, Alex Ray, Pranav Shyam, Aditya Ramesh, Alec Radford, Ilya Sutskever

TL;DR

Can a standard autoregressive language model perform unsupervised machine translation without specialized encoder-decoder architectures, bilingual dictionaries, or cross-lingual masked pretraining? This paper shows that a single generative model (from the GPT-3 family) can bootstrap itself into a state-of-the-art unsupervised translator through a three-step recipe: few-shot amplification, distillation, and iterative backtranslation, reaching 42.1 BLEU on the WMT14 English-French benchmark.

What Problem Does This Paper Address?

Traditional unsupervised neural machine translation (UNMT) typically relies on complex setups: shared bilingual encoder-decoder models, denoising autoencoding, masked cross-lingual objectives (like XLM), or latent-space adversarial alignment to bridge languages without parallel corpora.

Conversely, large generative language models (LLMs) like GPT-3 can translate zero-shot or few-shot using in-context prompting. However, few-shot prompting has significant drawbacks: it requires massive models to work well, consumes valuable context window space at inference time, incurs high computational costs, and doesn't readily allow fine-tuning while retaining prompt-based task formatting. The authors ask: Can we collapse the entire UNMT pipeline into fine-tuning a single autoregressive decoder-only language model using only monolingual data?

Methods

The authors cast machine translation as a unified language modeling completion task formatted as: [L1] <seq1> [[TRANSLATE]] [L2] <seq2>

The proposed framework consists of three stages:

[Zero-shot Prompts] ──> [Few-Shot Amplification] ──> [Distillation] ──> [Iterative Backtranslation]
   (from LM/GPT-3)          (Sample 4M synthetic       (Fine-tune LM       (Joint forward/backward
                               bitext pairs)            without prompts)       semi-online training)
  1. Few-Shot Amplification: Generate a small pool of zero-shot translations using instruction prompts (either from the model itself or an external LLM like GPT-3 175B). Then, use small subsets of these translations as in-context demonstrations ($k=3$) to prompt the model to translate a large monolingual corpus, yielding millions of synthetic translation pairs.
  2. Distillation: Strip away the in-context few-shot prompts and fine-tune the causal LM directly on the generated synthetic pairs using standard autoregressive language modeling. This aligns the model to translate in a zero-shot format ([L1] ... [[TRANSLATE]] [L2] ...).
  3. Iterative Backtranslation: Synchronously sample batches of translations in both directions ($L_1 \to L_2$ and $L_2 \to L_1$) from monolingual text, swap the synthetic inputs and outputs to ensure cycle consistency, and fine-tune a single LM jointly on both translation directions.

Datasets

  • WMT14 English-French: To enforce an unsupervised setup, the 40M-sentence parallel training set was split in half: 20M English sentences were taken from one half and 20M French sentences from the other, ensuring zero parallel alignment. Evaluation was performed on the standard WMT14 En-Fr test set using both sacreBLEU and tokenized multi-bleu.perl.
  • CC100: Monolingual English and French web crawl corpora, mixed in (50/50 with WMT monotext) during backtranslation to reduce overfitting.

Key Insights and Ideas

  • Data-Driven Architecture Engineering: The structural inductive bias traditionally provided by encoder-decoder architectures can be completely simulated with formatting prompts in a decoder-only model. Specialized cross-lingual pretraining objectives (like denoising autoencoders) turn out to be unnecessary.
  • Few-Shot Self-Amplification: Prompting an LM with its own zero-shot outputs consistently outperforms pure zero-shot generation across all model scales (125M to 175B parameters).
  • Surfacing Latent Cross-Lingual Knowledge: Due to English-heavy pretraining, GPT-3 models initially translate far better into English than out of English. Remarkably, just two epochs of backtranslation on synthetic data reverse this disparity. The model was not deficient in French knowledge—it was simply misaligned.
  • Extreme Data Efficiency: When testing semi-supervised bootstrapping with real examples, performance saturated at only $N = 3$ seed pairs. Increasing the seed set to 2,048 examples offered no meaningful gain after backtranslation.

Key Results

  • New Unsupervised State of the Art: The 1.3B parameter model (xl), distilled from self-amplified 175B GPT-3 generations and augmented with CC100 monolingual text during backtranslation, achieved 42.1 BLEU (En-Fr) and 37.09 BLEU (Fr-En) on WMT14.
  • Beating Prior Architectures: On comparable tokenized BLEU metrics (Table 3), the approach reached 41.7 BLEU, surpassing previous unsupervised state-of-the-art models including XLM+ (40.2), CUNMT (37.6), and MASS (37.5), as well as 175B GPT-3 few-shot prompting (32.6).
  • Self-Distillation Works: Even without the 175B model, an xl model self-distilling its own generations achieved 39.12 BLEU (En-Fr) after backtranslation, beating most prior specialized UNMT systems.

Limitations and Future Work

  • Compute Constraints: Due to hardware limitations, the full 175B parameter GPT-3 model was not fine-tuned through the iterative backtranslation pipeline—it was only used as a data generator for smaller models (up to 1.3B parameters).
  • Language Coverage: The study focused exclusively on the high-resource English-French pair. Performance on distant or low-resource language pairs where pretraining data is scarce remains unvalidated.
  • Beyond Translation: The authors note that backtranslation is simply bidirectional self-training. Future work includes expanding this paradigm to other paired sequence-to-sequence tasks (e.g., text simplification, semantic parsing, or style transfer) where inverse directions naturally exist.

Summary updated

BibTeX
@inproceedings{han2022unsupervised,
  author = {Jesse Michael Han and Igor Babuschkin and Harrison Edwards and Arvind Neelakantan and Tao Xu and Stanislas Polu and Alex Ray and Pranav Shyam and Aditya Ramesh and Alec Radford and Ilya Sutskever},
  title = {{Unsupervised Neural Machine Translation with Generative Language Models Only}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=SVwbKmEg7M},
}
Figure