[Paper Review] The unreasonable effectiveness of few-shot learning for machine translation
Few-shot translation with an 8B decoder-only model trained on self-supervised data matches or exceeds specialized supervised baselines on high-resource language pairs using only five in-context demonstrations, and extends to low-resource settings with controllable outputs.
We demonstrate the potential of few-shot translation systems, trained with unpaired language data, for both high and low-resource language pairs. We show that with only 5 examples of high-quality translation data shown at inference, a transformer decoder-only model trained solely with self-supervised learning, is able to match specialized supervised state-of-the-art models as well as more general commercial translation systems. In particular, we outperform the best performing system on the WMT'21 English - Chinese news translation task by only using five examples of English - Chinese parallel data at inference. Moreover, our approach in building these models does not necessitate joint multilingual training or back-translation, is conceptually simple and shows the potential to extend to the multilingual setting. Furthermore, the resulting models are two orders of magnitude smaller than state-of-the-art language models. We then analyze the factors which impact the performance of few-shot translation systems, and highlight that the quality of the few-shot demonstrations heavily determines the quality of the translations generated by our models. Finally, we show that the few-shot paradigm also provides a way to control certain attributes of the translation -- we show that we are able to control for regional varieties and formality using only a five examples at inference, paving the way towards controllable machine translation systems.
Motivation & Objective
- Motivate the use of few-shot learning to build translation models without large parallel corpora or back-translation.
- Demonstrate that an 8B decoder-only model can outperform commercial baselines and approach WMT-style baselines on English-German and English-Chinese translation.
- Show that the approach extends to a low-resource language (Icelandic) and enables controllable outputs via demonstration selection (regional variety and formality).
- Analyze factors affecting few-shot translation performance, with emphasis on demonstration quality and stylistic control effects.
Proposed method
- Use a decoder-only Transformer with 32 layers, 16 heads, hidden size 4096, and multi-query attention.
- Train with a variant of the UL2 objective for decoder-only models, combining two span-corruption instances, prefix language modeling, and causal language modeling objectives.
- Perform few-shot translation at inference by sampling five demonstrations from the development set and using a template prompt with MBR decoding and learned BLEURT-based utility.
- Evaluate primarily with BLEURT-20, reporting BLEU in appendices for completeness, and compare against WMT baselines, Google Translate, PaLM, and multilingual/bilingual LMs.
- Explore multilingual extensions (bilingual vs. trilingual) under fixed per-language data constraints, and assess the effect of training data size and epochs on Icelandic.
Experimental results
Research questions
- RQ1Can an 8B decoder-only model, trained with self-supervised data, achieve competitive translation quality in a few-shot setting without back-translation or large-scale parallel corpora?
- RQ2How do demonstration quality and style influence translation quality and controllability in few-shot translation?
- RQ3Does the few-shot approach extend to low-resource languages, and can it support controllability in regional variety and formality?
- RQ4What is the impact of using MBR decoding versus beam search for this setup, and what are the trade-offs in serving cost?
- RQ5How does multilingual or multilingual-within-constraints training affect per-language performance in few-shot translation?
Key findings
- The 8B decoder-only few-shot model can outperform commercial translation baselines and approach or surpass some WMT’21 baselines on English-German and English-Chinese directions when using five in-context demonstrations.
- In low-resource Icelandic translations, the approach is competitive with WMT baselines and can surpass some commercial baselines in at least one direction, despite far less data.
- The quality of the demonstrations strongly predicts translation quality; higher-quality demonstrations yield better BLEURT scores, while mismatched demonstrations for regional variety or formality reduce performance.
- Demonstration style enables controllable output; using demonstrations reflecting a target regional variety or formality level yields higher FRMT-score and formality-accuracy, showing potential for controllable MT without fine-tuning.
- MB R decoding consistently improves BLEURT scores over beam search across evaluated settings, though it is more computationally intensive.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.