The unreasonable effectiveness of few-shot learning for machine translation

Xavier García, Yamini Bansal, Colin Cherry, George F. Foster, M. Krikun +3 more
2/12/2026

No confident code implementation found for this paper.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{garca2026unreasonable,
  title  = {The unreasonable effectiveness of few-shot learning for machine translation},
  author = {Xavier García and Yamini Bansal and Colin Cherry and George F. Foster and M. Krikun and Fan Feng and Melvin Johnson and Orhan Firat},
  year   = {2026},
  eprint = {2302.01398},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2302.01398},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.01398.svg)](https://codeofpaper.com/paper/2302.01398)

Discussion