Lune

ACL Findings2024

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

Pranjal A. Chitale, Jay P. Gala, Raj Dabre

Abstract

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 instructiondriven. 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.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 1 top-tier paper that cites it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers1

  1. AdaDPI: Document-level Translation Adaptive Agent via Dynamic Parametric InternalizationHong Ren, Liting Deng, Shaolin Zhu, Deyi XiongACL 2026

Builds on19

  1. BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
  2. Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingMelanie Sclar, Yejin Choi, Yulia Tsvetkov, Alane SuhrICLR 2024 · 682 citations
  3. Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe et al.EMNLP 2022 · 634 citations
  4. Data Distributional Properties Drive Emergent In-Context Learning in TransformersStephanie C. Y. Chan, Adam Santoro, Andrew K. Lampinen, Jane X. Wang et al.NeurIPS 2022 · 407 citations
  5. Crosslingual Generalization through Multitask FinetuningNiklas Muennighoff, Thomas Wang, Lintang Sutawika, Adam Roberts et al.ACL 2023 · 319 citations

Related papers

  1. In-context Examples Selection for Machine TranslationSweta Agrawal, Chunting Zhou, Mike Lewis, Luke Zettlemoyer et al.ACL Findings 2023 · 78 citations
  2. Dissecting In-Context Learning of Translations in GPT-3Vikas Raunak, Arul Menezes, Hany Hassan AwadallaEMNLP Findings 2023 · 2 citations
  3. Exploring In-context Example Generation for Machine TranslationDohyun Lee, Seungil Chad Lee, Chanwoo Yang, Yujin Baek et al.ACL Findings 2025 · 1 citation
  4. CTQScorer: Combining Multiple Features for In-context Example Selection for Machine TranslationAswanth M., Ratish Puduppully, Raj Dabre, Anoop KunchukuttanEMNLP Findings 2023 · 4 citations
  5. The Impact of Demonstrations on Multilingual In-Context Learning: A Multidimensional AnalysisMiaoran Zhang, Vagrant Gautam, Mingyang Wang, Jesujoba Alabi et al.ACL Findings 2024 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines