Leveraging Domain Knowledge at Inference Time for LLM Translation: Retrieval versus Generation
Not on the map. Why?
Abstract (arXiv)
While large language models (LLMs) have been increasingly adopted for machine translation (MT), their performance for specialist domains such as medicine and law remains an open challenge. Prior work has shown that LLMs can be domain-adapted at test-time by retrieving targeted few-shot demonstrations or terminologies for inclusion in the prompt. Meanwhile, for general-purpose LLM MT, recent studies have found some success in generating similarly useful domain knowledge from an LLM itself, prior to translation. Our work studies domain-adapted MT with LLMs through a careful prompting setup, finding that demonstrations consistently outperform terminology, and retrieval consistently outperforms generation. We find that generating demonstrations with weaker models can close the gap with larger model's zero-shot performance. Given the effectiveness of demonstrations, we perform detailed analyses to understand their value. We find that domain-specificity is particularly important, and that the popular multi-domain benchmark is testing adaptation to a particular writing style more so than to a specific domain.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 15 of its 33 references that are in the map. First posted on arXiv 6 Mar 2025.
Builds on
15 of 33 references.
References · 15
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Prompting Large Language Model for Machine Translation: A Case Studycited by 247
- 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
- 2020Nearest Neighbor Machine Translationcited by 209
- 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 181
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2021To Ship or Not to Ship: An Extensive Evaluation of Automatic Metrics for Machine Translationcited by 161
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
- 2022Prompting PaLM for Translation: Assessing Strategies and Performancecited by 144
- 2023Dictionary-based Phrase-level Prompting of Large Language Models for Machine Translationcited by 74
- 2022Bidirectional Language Models Are Also Few-shot Learnerscited by 48
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026RASST: Retrieval-Augmented Simultaneous Speech Translationcited by 0
- 2026Consensus-Aligned Neuron Efficient Fine-Tuning Large Language Models for Multi-Domain Machine Translationcited by 0
- 2026Worlds Within Words: Translating Culture in Ancient Chinese Texts with Multi-Agent Coordinationcited by 0
- 2026LLMs in the Real World: Evaluating "AI" in Emergency Contextscited by 0
- 2026Worlds Within Words: Translating Culture in Ancient Chinese Texts with Multi-Agent Coordination31 May 2026
- 2026LLMs in the Real World: Evaluating "AI" in Emergency Contexts29 May 2026
- 2026Consensus-Aligned Neuron Efficient Fine-Tuning Large Language Models for Multi-Domain Machine Translation5 Feb 2026
- 2026RASST: Retrieval-Augmented Simultaneous Speech Translation30 Jan 2026