An Empirical Study of In-context Learning in LLMs for Machine Translation
Not on the map. Why?
Abstract (arXiv)
Recent interest has surged in employing Large Language Models (LLMs) for machine translation (MT) via in-context learning (ICL) (Vilar et al., 2023). Most prior studies primarily focus on optimizing translation quality, with limited attention to understanding the specific aspects of ICL that influence the said quality. To this end, we perform the first of its kind, an exhaustive study of in-context learning for machine translation. We first establish that ICL is primarily example-driven and not instruction-driven. Following this, we conduct an extensive exploration of various aspects of the examples to understand their influence on downstream performance. Our analysis includes factors such as quality and quantity of demonstrations, spatial proximity, and source versus target originality. Further, we also investigate challenging scenarios involving indirectness and misalignment of examples to understand the limits of ICL. While we establish the significance of the quality of the target distribution over the source distribution of demonstrations, we further observe that perturbations sometimes act as regularizers, resulting in performance improvements. Surprisingly, ICL does not necessitate examples from the same task, and a related task with the same target distribution proves sufficient. We hope that our study acts as a guiding resource for considerations in utilizing ICL for MT. Our code is available on https://github.com/PranjalChitale/in-context-mt-analysis.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 41 of its 57 references that are in the map. First posted on arXiv 22 Jan 2024.
Builds on
41 of 57 references.
References · 41
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
- 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2022A Survey on In-context Learningcited by 717
29 more
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2021The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translationcited by 556
- 2023Larger language models do in-context learning differentlycited by 386
- 2023Trained Transformers Learn Linear Models In-Contextcited by 331
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
- 2017Generating Natural Adversarial Examplescited by 182
- 2021To Ship or Not to Ship: An Extensive Evaluation of Automatic Metrics for Machine Translationcited by 161
- 2023IndicTrans2: Towards High-Quality and Accessible Machine Translation Models for all 22 Scheduled Indian Languagescited by 149
- 2022Prompting PaLM for Translation: Assessing Strategies and Performancecited by 144
- 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
- 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
- 2024The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performancecited by 97
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
- 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
- 2018On Adversarial Examples for Character-Level Neural Machine Translationcited by 85
- 2023Searching for Needles in a Haystack: On the Role of Incidental Bilingualism in PaLM's Translation Capabilitycited by 62
- 2019On Evaluation of Adversarial Perturbations for Sequence-to-Sequence Modelscited by 56
- 2019The Effect of Translationese in Machine Translation Test Setscited by 49
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023Principled Instructions Are All You Need for Questioning LLaMA-1/2, GPT-3.5/4cited by 48
- 2020Evaluating Robustness to Input Perturbations for Neural Machine Translationcited by 36
- 2022IndicMT Eval: A Dataset to Meta-Evaluate Machine Translation metrics for Indian Languagescited by 27
- 2021Interpreting the Robustness of Neural NLP Models to Textual Perturbationscited by 17
- 2023CTQScorer: Combining Multiple Features for In-context Example Selection for Machine Translationcited by 12
- 2021Addressing the Vulnerability of NMT in Input Perturbationscited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 4.
9 papers.
- 2025Beyond Decoder-only: Large Language Models Can be Good Encoders for Machine Translationcited by 8
- 2025Calibrating Uncertainty Quantification of Multi-Modal LLMs using Groundingcited by 8
- 2024Pruning Multilingual Large Language Models for Multilingual Inferencecited by 2
- 2025Compensating for Data with Reasoning: Low-Resource Machine Translation with LLMscited by 2
- 2026Benchmarking Machine Translation on Chinese Social Media Textscited by 2
- 2026Beyond Many-Shot Translation: Scaling In-Context Demonstrations For Low-Resource Machine Translationcited by 1
- 2026When Reranking Hurts: Uncertainty-Based Gating for Few-Shot Rerankingcited by 1
- 2025Agent-Based Detection and Resolution of Incompleteness and Ambiguity in Interactions with Large Language Modelscited by 0
- 2026Can Linguistically Related Languages Guide LLM Translation in Low-Resource Settings?cited by 0
- 2026When Reranking Hurts: Uncertainty-Based Gating for Few-Shot Reranking30 Jun 2026
- 2026Can Linguistically Related Languages Guide LLM Translation in Low-Resource Settings?17 Mar 2026
- 2026Beyond Many-Shot Translation: Scaling In-Context Demonstrations For Low-Resource Machine Translation4 Feb 2026
- 2026Benchmarking Machine Translation on Chinese Social Media Texts30 Jan 2026
- 2025Agent-Based Detection and Resolution of Incompleteness and Ambiguity in Interactions with Large Language Models4 Jul 2025
- 2025Compensating for Data with Reasoning: Low-Resource Machine Translation with LLMs28 May 2025
- 2025Calibrating Uncertainty Quantification of Multi-Modal LLMs using Grounding30 Apr 2025
- 2025Beyond Decoder-only: Large Language Models Can be Good Encoders for Machine Translation9 Mar 2025
- 2024Pruning Multilingual Large Language Models for Multilingual Inference25 Sep 2024