The unreasonable effectiveness of few-shot learning for machine translation
Authors:
- Xavier GarciaXGXavier Garcia
- Yamini BansalYBYamini Bansal
- Colin CherryCCColin Cherry
- George FosterGFGeorge Foster
- Maxim KrikunMKMaxim Krikun
- Fangxiaoyu FengFFFangxiaoyu Feng
- Melvin JohnsonMJMelvin Johnson
- Orhan FiratOFOrhan Firat
Preprint
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.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- FRMT: A Benchmark for Few-Shot Region-Aware Machine TranslationTransactions of the Association for Computational Linguistics, 2023
- High Quality Rather than High Model Probability: Minimum Bayes Risk Decoding with Neural MetricsTransactions of the Association for Computational Linguistics, 2022
- The Flores-101 Evaluation Benchmark for Low-Resource and Multilingual Machine TranslationTransactions of the Association for Computational Linguistics, 2022
- Experts, Errors, and Context: A Large-Scale Study of Human Evaluation for Machine TranslationTransactions of the Association for Computational Linguistics, 2021
- Machine Translation into Low-resource Language Varieties2021
- When Does Unsupervised Machine Translation Work?2020
- Is MAP Decoding All You Need? The Inadequacy of the Mode in Neural Machine Translation2020
- A Multilingual View of Unsupervised Machine Translation2020
- Unsupervised Cross-lingual Representation Learning at Scale2020
- BLEURT: Learning Robust Metrics for Text Generation2020