In-context Examples Selection for Machine Translation
Not on the map. Why?
Abstract (arXiv)
Large-scale generative models show an impressive ability to perform a wide range of Natural Language Processing (NLP) tasks using in-context learning, where a few examples are used to describe a task to the model. For Machine Translation (MT), these examples are typically randomly sampled from the development dataset with a similar distribution as the evaluation set. However, it is unclear how the choice of these in-context examples and their ordering impacts the output translation quality. In this work, we aim to understand the properties of good in-context examples for MT in both in-domain and out-of-domain settings. We show that the translation quality and the domain of the in-context examples matter and that 1-shot noisy unrelated example can have a catastrophic impact on output quality. While concatenating multiple random examples reduces the effect of noise, a single good prompt optimized to maximize translation quality on the development dataset can elicit learned information from the pre-trained language model. Adding similar examples based on an n-gram overlap with the test source significantly and consistently improves the translation quality of the outputs, outperforming a strong kNN-MT baseline in 2 out of 4 out-of-domain datasets.
Key facts. Cited by 172 papers in the map (data through 7 Oct 2026). Builds on 33 of its 49 references that are in the map. First posted on arXiv 5 Dec 2022.
Builds on
33 of 49 references.
References · 33
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 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
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,024
- 2019How Can We Know What Language Models Know?cited by 953
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
21 more
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2021The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translationcited by 556
- 2017Six Challenges for Neural Machine Translationcited by 334
- 2021Quality at a Glance: An Audit of Web-Crawled Multilingual Datasetscited by 241
- 2020Nearest Neighbor Machine Translationcited by 209
- 2019Facebook FAIR's WMT19 News Translation Task Submissioncited by 179
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
- 2022mGPT: Few-Shot Learners Go Multilingualcited by 141
- 2020Automatic Machine Translation Evaluation in Many Languages via Zero-Shot Paraphrasingcited by 114
- 2022Training Data is More Valuable than You Think: A Simple and Effective Method by Retrieving from Training Datacited by 61
- 2022AlexaTM 20B: Few-Shot Learning Using a Large-Scale Multilingual Seq2Seq Modelcited by 57
- 2016Fast Domain Adaptation for Neural Machine Translationcited by 28
- 2022Using natural language prompts for machine translationcited by 27
- 2021Non-Parametric Unsupervised Domain Adaptation for Neural Machine Translationcited by 20
- 2020Detecting Fine-Grained Cross-Lingual Semantic Divergences without Supervision by Learning to Rankcited by 18
- 2022Generate-and-Retrieve: use your predictions to improve retrieval for semantic parsingcited by 15
- 2022Towards Robust k-Nearest-Neighbor Machine Translationcited by 15
- 2022PRBoost: Prompt-Based Rule Discovery and Boosting for Interactive Weakly-Supervised Learningcited by 14
- 2018Identifying Semantic Divergences in Parallel Text without Annotationscited by 9
- 2021Assessing Reference-Free Peer Evaluation for Machine Translationcited by 8
- 2020CoRT: Complementary Rankings from Transformerscited by 2
Built on by
Citing papers per year: 2022: 1; 2023: 54; 2024: 73; 2025: 29; 2026: 15.
172 papers.
Sort:
By area:
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
- 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2023Is ChatGPT A Good Translator? Yes With GPT-4 As The Enginecited by 172
- 2023A Survey of Large Language Models for Healthcare: from Data, Technology, and Applications to Accountability and Ethicscited by 162
- 2023Multilingual Machine Translation with Large Language Models: Empirical Results and Analysiscited by 156
- 2023Can ChatGPT Understand Too? A Comparative Study on ChatGPT and Fine-tuned BERTcited by 155
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
- 2024Assisting in Writing Wikipedia-like Articles From Scratch with Large Language Modelscited by 150
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2023Unified Demonstration Retriever for In-Context Learningcited by 141
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
38 more
- 2023The unreasonable effectiveness of few-shot learning for machine translationcited by 91
- 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 84
- 2023Dictionary-based Phrase-level Prompting of Large Language Models for Machine Translationcited by 74
- 2023Multilingual LLMs are Better Cross-lingual In-context Learners with Alignmentcited by 71
- 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 69
- 2023Adaptive Machine Translation with Large Language Modelscited by 58
- 2023Coverage-based Example Selection for In-Context Learningcited by 58
- 2023Eliciting the Translation Ability of Large Language Models via Multilingual Finetuning with Translation Instructionscited by 55
- 2023Active Learning Principles for In-Context Learning with Large Language Modelscited by 53
- 2023OpenICL: An Open-Source Framework for In-context Learningcited by 51
- 2023TIM: Teaching Large Language Models to Translate with Comparisoncited by 50
- 2024Multilingual Large Language Model: A Survey of Resources, Taxonomy and Frontierscited by 49
- 2023In-Context Learning Learns Label Relationships but Is Not Conventional Learningcited by 48
- 2023Exploring Human-Like Translation Strategy with Large Language Modelscited by 44
- 2024Why Larger Language Models Do In-context Learning Differently?cited by 44
- 2024Fine-tuning Large Language Models for Domain-specific Machine Translationcited by 43
- 2023Small Models are Valuable Plug-ins for Large Language Modelscited by 42
- 2023Using In-Context Learning to Improve Dialogue Safetycited by 41
- 2025Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Studycited by 38
- 2023MoT: Memory-of-Thought Enables ChatGPT to Self-Improvecited by 37
- 2023Decomposing the Enigma: Subgoal-based Demonstration Learning for Formal Theorem Provingcited by 37
- 2024TEaR: Improving LLM-based Machine Translation with Systematic Self-Refinementcited by 37
- 2023ParroT: Translating during Chat using Large Language Models tuned with Human Translation and Feedbackcited by 34
- 2023BLESS: Benchmarking Large Language Models on Sentence Simplificationcited by 34
- 2024What Factors Affect Multi-Modal In-Context Learning? An In-Depth Explorationcited by 31
- 2024Teaching Large Language Models an Unseen Language on the Flycited by 29
- 2024G-DIG: Towards Gradient-based Diverse and High-quality Instruction Data Selection for Machine Translationcited by 29
- 2023Iterative Translation Refinement with Large Language Modelscited by 27
- 2024TasTe: Teaching Large Language Models to Translate through Self-Reflectioncited by 27
- 2024Efficiently Exploring Large Language Models for Document-Level Machine Translation with In-context Learningcited by 23
- 2024The Fine-Tuning Paradox: Boosting Translation Quality Without Sacrificing LLM Abilitiescited by 22
- 2023Augmenting Large Language Model Translators via Translation Memoriescited by 21
- 2023Fine-tuning Large Language Models for Adaptive Machine Translationcited by 21
- 2024In-Context Example Selection via Similarity Search Improves Low-Resource Machine Translationcited by 21
- 2024Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descentcited by 21
- 2023ScatterShot: Interactive In-context Example Curation for Text Transformationcited by 20
- 2023Supervised Knowledge Makes Large Language Models Better In-context Learnerscited by 20
- 2025DualRAG: A Dual-Process Approach to Integrate Reasoning and Retrieval for Multi-Hop Question Answeringcited by 20
50 most cited of 172 All 172 (JSON)
- 2026BM25-Augmented Many-Shot Translation for Low-Resource North-Eastern Indian Languages13 Aug 2026
- 2026When Reranking Hurts: Uncertainty-Based Gating for Few-Shot Reranking30 Jun 2026
- 2026MLLP-VRAIN UPV system for the IWSLT 2026 Simultaneous Speech Translation task15 Jun 2026
- 2026The Effect of Training Task Diversity on In-Context Learning through the Lens of Low-Dimensional Subspaces5 Jun 2026
- 2026G^2C-MT: Graph-Guided Context Selection for Document-Level Machine Translation2 Jun 2026
- 2026Agentic AI Translate: An Agentic Translator Prototype for Translation as Communication Design16 May 2026
- 2026SCRuB: Social Concept Reasoning under Rubric-Based Evaluation7 May 2026
- 2026Membership Inference Attacks for Retrieval Based In-Context Learning for Document Question Answering5 May 2026
- 2026Incentivizing Parametric Knowledge via Reinforcement Learning with Verifiable Rewards for Cross-Cultural Entity Translation18 Apr 2026
- 2026Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval13 Apr 2026
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026An Empirical Study of Many-Shot In-Context Learning for Machine Translation of Low-Resource Languages3 Apr 2026
38 more
- 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
- 2026Query Suggestion for Retrieval-Augmented Generation via Dynamic In-Context Learning13 Jan 2026
- 2025LLMs for Low-Resource Dialect Translation Using Context-Aware Prompting: A Case Study on Sylheti24 Nov 2025
- 2025Differentially Private In-Context Learning with Nearest Neighbor Search6 Nov 2025
- 2025Fine-Grained Emotion Recognition via In-Context Learning8 Oct 2025
- 2025Benchmarking Foundation Models with Retrieval-Augmented Generation in Olympic-Level Physics Problem Solving1 Oct 2025
- 2025STARE at the Structure: Steering ICL Exemplar Selection with Structural Alignment28 Aug 2025
- 2025Failures Are the Stepping Stones to Success: Enhancing Few-Shot In-Context Learning by Leveraging Negative Samples31 Jul 2025
- 2025SLoW: Select Low-frequency Words! Automatic Dictionary Selection for Translation on Large Language Models25 Jul 2025
- 2025Towards Style Alignment in Cross-Cultural Translation30 Jun 2025
- 2025An Interdisciplinary Approach to Human-Centered Machine Translation16 Jun 2025
- 2025Leveraging In-Context Learning for Language Model Agents16 Jun 2025
- 2025Exploring In-context Example Generation for Machine Translation31 May 2025
- 2025Compensating for Data with Reasoning: Low-Resource Machine Translation with LLMs28 May 2025
- 2025Mutarjim: Advancing Bidirectional Arabic-English Translation with a Small Language Model23 May 2025
- 2025MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learning22 May 2025
- 2025Out-of-Distribution Generalization of In-Context Learning: A Low-Dimensional Subspace Perspective20 May 2025
- 2025Rethinking Invariance in In-context Learning8 May 2025
- 2025Improving Retrieval-Augmented Neural Machine Translation with Monolingual Data30 Apr 2025
- 2025DMDTEval: An Evaluation and Analysis of LLMs on Disambiguation in Multi-domain Translation29 Apr 2025
- 2025DualRAG: A Dual-Process Approach to Integrate Reasoning and Retrieval for Multi-Hop Question Answering25 Apr 2025
- 2025Redefining Machine Translation on Social Network Services with Large Language Models10 Apr 2025
- 2025Bridging the Linguistic Divide: A Survey on Leveraging Large Language Models for Machine Translation2 Apr 2025
- 2025Post-Incorporating Code Structural Knowledge into Pretrained Models via ICL for Code Translation28 Mar 2025
- 2025Leveraging Domain Knowledge at Inference Time for LLM Translation: Retrieval versus Generation6 Mar 2025
- 2025Compositional Translation: A Novel LLM-based Approach for Low-resource Machine Translation6 Mar 2025
- 2025Add-One-In: Incremental Sample Selection for Large Language Models via a Choice-Based Greedy Paradigm4 Mar 2025
- 2025Explanation based In-Context Demonstrations Retrieval for Multilingual Grammatical Error Correction12 Feb 2025
- 2025Multilingual Machine Translation with Open Large Language Models at Practical Scale: An Empirical Study4 Feb 2025
- 2025Leveraging In-Context Learning and Retrieval-Augmented Generation for Automatic Question Generation in Educational Domains29 Jan 2025
- 2025Investigating Numerical Translation with Large Language Models9 Jan 2025
- 2024Domain-Specific Translation with Open-Source Large Language Models: Resource-Oriented Analysis8 Dec 2024
- 2024A Context-aware Framework for Translation-mediated Conversations5 Dec 2024
- 2024RuAG: Learned-rule-augmented Generation for Large Language Models4 Nov 2024
- 2024Dictionary Insertion Prompting for Multilingual Reasoning on Multilingual Large Language Models2 Nov 2024
- 2024What Factors Affect Multi-Modal In-Context Learning? An In-Depth Exploration27 Oct 2024
- 2024VipAct: Visual-Perception Enhancement via Specialized VLM Agent Collaboration and Tool-use21 Oct 2024
50 newest of 172 All 172 (JSON)
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Modelscited by 450
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
- 2024Low-Resource Machine Translation through Retrieval-Augmented LLM Prompting: A Study on the Mambai Languagecited by 12
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparisoncited by 7
- 2024RAGSys: Item-Cold-Start Recommender as RAG Systemcited by 4
- 2025Leveraging In-Context Learning and Retrieval-Augmented Generation for Automatic Question Generation in Educational Domainscited by 1
- 2024Enhancing E-commerce Product Title Translation with Retrieval-Augmented Generation and Large Language Modelscited by 0
- 2025Improving Retrieval-Augmented Neural Machine Translation with Monolingual Datacited by 0
- 2025Benchmarking Foundation Models with Retrieval-Augmented Generation in Olympic-Level Physics Problem Solvingcited by 0
- 2026Query Suggestion for Retrieval-Augmented Generation via Dynamic In-Context Learningcited by 0
- 2026Query Suggestion for Retrieval-Augmented Generation via Dynamic In-Context Learning13 Jan 2026
- 2025Benchmarking Foundation Models with Retrieval-Augmented Generation in Olympic-Level Physics Problem Solving1 Oct 2025
- 2025Improving Retrieval-Augmented Neural Machine Translation with Monolingual Data30 Apr 2025
- 2025Leveraging In-Context Learning and Retrieval-Augmented Generation for Automatic Question Generation in Educational Domains29 Jan 2025
- 2024Enhancing E-commerce Product Title Translation with Retrieval-Augmented Generation and Large Language Models19 Sep 2024
- 2024RAGSys: Item-Cold-Start Recommender as RAG System27 May 2024
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models10 May 2024
- 2024Low-Resource Machine Translation through Retrieval-Augmented LLM Prompting: A Study on the Mambai Language7 Apr 2024
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparison3 Apr 2024
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memory3 May 2023
- 2023The unreasonable effectiveness of few-shot learning for machine translationcited by 91
- 2024Multilingual Large Language Model: A Survey of Resources, Taxonomy and Frontierscited by 49
- 2023MoT: Memory-of-Thought Enables ChatGPT to Self-Improvecited by 37
- 2024What Factors Affect Multi-Modal In-Context Learning? An In-Depth Explorationcited by 31
- 2025Rethinking Invariance in In-context Learningcited by 8
- 2024RuAG: Learned-rule-augmented Generation for Large Language Modelscited by 4
- 2024Dictionary Insertion Prompting for Multilingual Reasoning on Multilingual Large Language Modelscited by 3
- 2025Compensating for Data with Reasoning: Low-Resource Machine Translation with LLMscited by 2
- 2026SCRuB: Social Concept Reasoning under Rubric-Based Evaluationcited by 1
- 2026SCRuB: Social Concept Reasoning under Rubric-Based Evaluation7 May 2026
- 2025Compensating for Data with Reasoning: Low-Resource Machine Translation with LLMs28 May 2025
- 2025Rethinking Invariance in In-context Learning8 May 2025
- 2024RuAG: Learned-rule-augmented Generation for Large Language Models4 Nov 2024
- 2024Dictionary Insertion Prompting for Multilingual Reasoning on Multilingual Large Language Models2 Nov 2024
- 2024What Factors Affect Multi-Modal In-Context Learning? An In-Depth Exploration27 Oct 2024
- 2024Multilingual Large Language Model: A Survey of Resources, Taxonomy and Frontiers7 Apr 2024
- 2023MoT: Memory-of-Thought Enables ChatGPT to Self-Improve9 May 2023
- 2023The unreasonable effectiveness of few-shot learning for machine translation2 Feb 2023
- 2024A Human-Computer Collaborative Tool for Training a Single Large Language Model Agent into a Network through Few Examplescited by 5
- 2025Leveraging In-Context Learning for Language Model Agentscited by 4
- 2026Agentic AI Translate: An Agentic Translator Prototype for Translation as Communication Designcited by 0
- 2026Agentic AI Translate: An Agentic Translator Prototype for Translation as Communication Design16 May 2026
- 2025Leveraging In-Context Learning for Language Model Agents16 Jun 2025
- 2024A Human-Computer Collaborative Tool for Training a Single Large Language Model Agent into a Network through Few Examples24 Apr 2024
- 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 344
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2023Is ChatGPT A Good Translator? Yes With GPT-4 As The Enginecited by 172
- 2023A Survey of Large Language Models for Healthcare: from Data, Technology, and Applications to Accountability and Ethicscited by 162
- 2023Multilingual Machine Translation with Large Language Models: Empirical Results and Analysiscited by 156
- 2023Can ChatGPT Understand Too? A Comparative Study on ChatGPT and Fine-tuned BERTcited by 155
- 2023What Makes Good Examples for Visual In-Context Learning?cited by 150
- 2024Assisting in Writing Wikipedia-like Articles From Scratch with Large Language Modelscited by 150
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2023Unified Demonstration Retriever for In-Context Learningcited by 141
- 2023Batch Prompting: Efficient Inference with Large Language Model APIscited by 84
- 2023Dictionary-based Phrase-level Prompting of Large Language Models for Machine Translationcited by 74
12 most cited of 147 All 147 (JSON)
- 2026BM25-Augmented Many-Shot Translation for Low-Resource North-Eastern Indian Languages13 Aug 2026
- 2026When Reranking Hurts: Uncertainty-Based Gating for Few-Shot Reranking30 Jun 2026
- 2026MLLP-VRAIN UPV system for the IWSLT 2026 Simultaneous Speech Translation task15 Jun 2026
- 2026The Effect of Training Task Diversity on In-Context Learning through the Lens of Low-Dimensional Subspaces5 Jun 2026
- 2026G^2C-MT: Graph-Guided Context Selection for Document-Level Machine Translation2 Jun 2026
- 2026Incentivizing Parametric Knowledge via Reinforcement Learning with Verifiable Rewards for Cross-Cultural Entity Translation18 Apr 2026
- 2026Toward Robust In-Context Learning: Leveraging Out-of-distribution Proxies for Target Inaccessible Demonstration Retrieval13 Apr 2026
- 2026UCS: Estimating Unseen Coverage for Improved In-Context Learning13 Apr 2026
- 2026An Empirical Study of Many-Shot In-Context Learning for Machine Translation of Low-Resource Languages3 Apr 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
- 2025LLMs for Low-Resource Dialect Translation Using Context-Aware Prompting: A Case Study on Sylheti24 Nov 2025
12 newest of 147 All 147 (JSON)