Exploring In-context Example Generation for Machine Translation
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have demonstrated strong performance across various tasks, leveraging their exceptional in-context learning ability with only a few examples. Accordingly, the selection of optimal in-context examples has been actively studied in the field of machine translation. However, these studies presuppose the presence of a demonstration pool with human-annotated pairs, making them less applicable to low-resource languages where such an assumption is challenging to meet. To overcome this limitation, this paper explores the research direction of in-context example generation for machine translation. Specifically, we propose Demonstration Augmentation for Translation (DAT), a simple yet effective approach that generates example pairs without relying on any external resources. This method builds upon two prior criteria, relevance and diversity, which have been highlighted in previous work as key factors for in-context example selection. Through experiments and analysis on low-resource languages where human-annotated pairs are scarce, we show that DAT achieves superior translation quality compared to the baselines. Furthermore, we investigate the potential of progressively accumulating generated pairs during test time to build and reuse a demonstration pool. Our implementation is publicly available at https://github.com/aiclaudev/DAT.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 39 of its 45 references that are in the map. First posted on arXiv 31 May 2025.
Builds on
39 of 45 references.
References · 39
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,312
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2021The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translationcited by 560
- 2023How Good Are GPT Models at Machine Translation? A Comprehensive Evaluationcited by 348
27 more
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 309
- 2021Few-shot Learning with Multilingual Language Modelscited by 278
- 2022Prompting GPT-3 To Be Reliablecited by 260
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 250
- 2022Active Example Selection for In-Context Learningcited by 196
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2022Prompting PaLM for Translation: Assessing Strategies and Performancecited by 145
- 2023Few-shot Fine-tuning vs. In-context Learning: A Fair Comparison and Evaluationcited by 136
- 2022On the Effect of Pretraining Corpora on In-context Learning by a Large-scale Language Modelcited by 81
- 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
- 2022Z-ICL: Zero-Shot In-Context Learning with Pseudo-Demonstrationscited by 70
- 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
- 2023Leveraging GPT-4 for Automatic Translation Post-Editingcited by 56
- 2019compare-mt: A Tool for Holistic Comparison of Language Generation Systemscited by 43
- 2023Self-ICL: Zero-Shot In-Context Learning with Self-Generated Demonstrationscited by 42
- 2023Do GPTs Produce Less Literal Translations?cited by 30
- 2023AfriMTE and AfriCOMET: Enhancing COMET to Embrace Under-resourced African Languagescited by 24
- 2024In-Context Example Selection via Similarity Search Improves Low-Resource Machine Translationcited by 22
- 2023Contextual Refinement of Translations: Large Language Models for Sentence and Document-Level Post-Editingcited by 21
- 2023Domain Terminology Integration into Machine Translation: Leveraging Large Language Modelscited by 17
- 2022Domain-Specific Text Generation for Machine Translationcited by 12
- 2022Neural Machine Translation with Contrastive Translation Memoriescited by 12
- 2023CTQScorer: Combining Multiple Features for In-context Example Selection for Machine Translationcited by 12
- 2023Are Human-generated Demonstrations Necessary for In-context Learning?cited by 11
- 2024Demonstration Augmentation for Zero-shot In-context Learningcited by 11
- 2024Retrieving Examples from Memory for Retrieval Augmented Neural Machine Translation: A Systematic Comparisoncited by 7
- 2024Effective Self-Mining of In-Context Examples for Unsupervised Machine Translation with LLMscited by 1
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2026Benchmarking Machine Translation on Chinese Social Media Textscited by 2
- 2026Benchmarking Machine Translation on Chinese Social Media Texts30 Jan 2026
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025