The Unreasonable Effectiveness of Few-shot Learning for Machine Translation
Xavier Garcia, Yamini Bansal, Colin Cherry, George F. Foster, Maxim Krikun, Melvin Johnson, Orhan Firat
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Prompting PaLM for Translation: Assessing Strategies and Performance cites In-context Examples Selection for Machine Translation
- Prompting PaLM for Translation: Assessing Strategies and Performance cites Language Models are Few-Shot Learners
- Teaching Large Language Models to Translate with Comparison cites Language Models are Few-Shot Learners
- When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Method cites Language Models are Few-Shot Learners
- In-context Examples Selection for Machine Translation cites Language Models are Few-Shot Learners
- Transformers are Minimax Optimal Nonparametric In-Context Learners cites Language Models are Few-Shot Learners
Cited by top-tier papers23
- When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning MethodBiao Zhang, Zhongtao Liu, Colin Cherry, Orhan FiratICLR 2024 · 271 citations
- Encouraging Divergent Thinking in Large Language Models through Multi-Agent DebateTian Liang, Zhiwei He, Wenxiang Jiao, Xing Wang et al.EMNLP 2024 · 177 citations
- Teaching Large Language Models to Translate with ComparisonJiali Zeng, Fandong Meng, Yongjing Yin, Jie ZhouAAAI 2024 · 74 citations
- Prompting PaLM for Translation: Assessing Strategies and PerformanceDavid Vilar, Markus Freitag, Colin Cherry, Jiaming Luo et al.ACL 2023 · 70 citations
- Transformers are Minimax Optimal Nonparametric In-Context LearnersJuno Kim, Tai Nakamaki, Taiji SuzukiNeurIPS 2024 · 42 citations
Builds on12
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Unsupervised Cross-lingual Representation Learning at ScaleAlexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary et al.ACL 2020 · 539 citations
- ParaCrawl: Web-Scale Acquisition of Parallel CorporaMarta Bañón, Pinzhen Chen, Barry Haddow, Kenneth Heafield et al.ACL 2020 · 132 citations
- In-context Examples Selection for Machine TranslationSweta Agrawal, Chunting Zhou, Mike Lewis, Luke Zettlemoyer et al.ACL Findings 2023 · 78 citations
- Prompting PaLM for Translation: Assessing Strategies and PerformanceDavid Vilar, Markus Freitag, Colin Cherry, Jiaming Luo et al.ACL 2023 · 70 citations
Related papers
- Adaptive Few-shot Prompting for Machine Translation with Pre-trained Language ModelsLei Tang, Jinghui Qin, Wenxuan Ye, Hao Tan et al.AAAI 2025 · 9 citations
- Don't Stop Fine-Tuning: On Training Regimes for Few-Shot Cross-Lingual Transfer with Multilingual Language ModelsFabian David Schmidt, Ivan Vulic, Goran GlavasEMNLP 2022 · 12 citations
- From Zero to Hero: On the Limitations of Zero-Shot Language Transfer with Multilingual TransformersAnne Lauscher, Vinit Ravishankar, Ivan Vulic, Goran GlavasEMNLP 2020 · 235 citations
- Compositional Translation: A Novel LLM-based Approach for Low-resource Machine TranslationArmel Randy Zebaze, Benoît Sagot, Rachel BawdenEMNLP Findings 2025 · 4 citations
- How Far can 100 Samples Go? Unlocking Zero-Shot Translation with Tiny Multi-Parallel DataDi Wu, Shaomu Tan, Yan Meng, David Stap et al.ACL Findings 2024 · 1 citation
