mlsanityData to 7 Oct 2026

An Empirical Study of In-context Learning in LLMs for Machine Translation

arXiv 2401.12097 ↗First posted 22 Jan 2024cs.CLcited by 9

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  7. 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
  8. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  9. 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
  10. 2019SpanBERT: Improving Pre-training by Representing and Predicting Spanscited by 832
  11. 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
  12. 2022A Survey on In-context Learningcited by 717
29 more
  1. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
  2. 2021The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translationcited by 556
  3. 2023Larger language models do in-context learning differentlycited by 386
  4. 2023Trained Transformers Learn Linear Models In-Contextcited by 331
  5. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  6. 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 304
  7. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  8. 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
  9. 2023Transformers as Algorithms: Generalization and Stability in In-context Learningcited by 220
  10. 2017Generating Natural Adversarial Examplescited by 182
  11. 2021To Ship or Not to Ship: An Extensive Evaluation of Automatic Metrics for Machine Translationcited by 161
  12. 2023IndicTrans2: Towards High-Quality and Accessible Machine Translation Models for all 22 Scheduled Indian Languagescited by 149
  13. 2022Prompting PaLM for Translation: Assessing Strategies and Performancecited by 144
  14. 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
  15. 2023Are Emergent Abilities in Large Language Models just In-Context Learning?cited by 109
  16. 2024The Butterfly Effect of Altering Prompts: How Small Changes and Jailbreaks Affect Large Language Model Performancecited by 97
  17. 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
  18. 2021Evaluating the Robustness of Neural Language Models to Input Perturbationscited by 87
  19. 2018On Adversarial Examples for Character-Level Neural Machine Translationcited by 85
  20. 2023Searching for Needles in a Haystack: On the Role of Incidental Bilingualism in PaLM's Translation Capabilitycited by 62
  21. 2019On Evaluation of Adversarial Perturbations for Sequence-to-Sequence Modelscited by 56
  22. 2019The Effect of Translationese in Machine Translation Test Setscited by 49
  23. 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
  24. 2023Principled Instructions Are All You Need for Questioning LLaMA-1/2, GPT-3.5/4cited by 48
  25. 2020Evaluating Robustness to Input Perturbations for Neural Machine Translationcited by 36
  26. 2022IndicMT Eval: A Dataset to Meta-Evaluate Machine Translation metrics for Indian Languagescited by 27
  27. 2021Interpreting the Robustness of Neural NLP Models to Textual Perturbationscited by 17
  28. 2023CTQScorer: Combining Multiple Features for In-context Example Selection for Machine Translationcited by 12
  29. 2021Addressing the Vulnerability of NMT in Input Perturbationscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 4; 2026: 4.

9 papers.