Manuscript Offprint

arXiv:2610.19528

Retrieve What Helps, Only When It Helps: Agentic Reinforcement Learning for Selective Retrieval-Augmented Machine Translation

Shijun Li, Yang Liu, Najmeh Sadoughi, Dongmei Wang, Xinjie Li, Zhu Liu, Rohith Mysore Vijaya Kumar, Yuzong Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Retrieving external knowledge can improve large language model (LLM) translation by providing supplementary information such as idiom interpretations and terminology. However, existing retrieval-augmented machine translation systems typically apply predefined retrieval strategies uniformly across all inputs. We argue that translation operates in a partial-evidence regime: LLM's parametric knowledge suffices for many inputs, while external evidence benefits a subset and usually supports rather than directly provides the desired translation. This creates two challenges: deciding when to retrieve and what evidence to acquire. We introduce Selective Retrieval-Augmented Translation (SRAT), an agentic reinforcement learning framework that learns when to translate directly or retrieve, what to retrieve, and how to integrate these decisions by optimizing final translation quality. To align evidence retrieval with downstream translation quality rather than simple semantic similarity, we further develop joint Plackett–Luce optimization and translation-quality contrastive training for retriever-training. Experiments on idiom, knowledge-intensive, and document-level translation with offline or online retrieval show that SRAT consistently outperforms never- and always-retrieve baselines, and quality-aligned retriever training provides further gains when similarity-based retrieval is insufficient. The results demonstrate the benefit of treating retrieval as a learnable translation action rather than fixed preprocessing.

1 Introduction

Large language models (LLMs) have become strong general-purpose machine translation (MT) systems, particularly after multilingual instruction tuning and translation-specific adaptation (Jiao et al., 2023; Xu et al., 2024). In particular, recent LLMs demonstrate strong ability to inter-

Figure

Figure 1: SRAT’s workflow by integrating reasoning, retrieval, and translation for LLM-based translation.

pret contextual cues and leverage external knowledge. These capabilities have motivated retrieval-augmented MT systems that provide bilingual examples, idiom definitions, terminology, or supporting documents to further support and improve translation quality (Li et al., 2024; Wang et al., 2025b).

However, recent studies (Sun et al., 2026; Wang et al., 2023) have shown that retrieval is not uniformly beneficial for translation. Existing retrieval-augmented MT pipelines typically apply a predefined retrieval strategy: retrieve for every input with a heuristic, similarity-based matching rule. This overlooks a fundamental gap in LLM-based translation: for some inputs, the model's parametric knowledge is already sufficient, while for others, external evidence such as idiom interpretations, canonical entities, technical terms, or background knowledge can be crucial. Moreover, heuristic, similarity-based retrieval can provide no help and even introduce noisy or misleading context that distracts the model and degrades an otherwise correct translation (Sun et al., 2026). For example, a semantically close document may merely repeat query terms without providing actionable knowledge, while a more distant one may contain exactly the idiom interpretation, entity convention, or background knowledge the translation requires. Translation therefore differs from answer-oriented

∗^{*}Work was done while Shijun was interning at Amazon.

retrieval settings, in which a relevant document often directly contains the evidence needed to produce the final response.

We refer to this setting as the partial-evidence regime, which captures two properties of retrieval in MT. First, external evidence is beneficial for only a subset of inputs where the model's parametric knowledge doesn't suffices. Second, when evidence is needed, retrieval based solely on semantic similarity may fail to surface the most useful evidence. This raises two learning problems. The first is retrieval adaptivity: the model must determine when additional evidence is useful instead of retrieving by default. The second is retrieval quality alignment: once retrieval is invoked, the system must determine what evidence actually improves the final translation quality.

To address them, we propose Selective Retrieval-Augmented Translation (SRAT), an agentic reinforcement-learning framework that treats reasoning, retrieval, and translation as actions in a unified policy. Given a source input, the model's action space at each step includes reasoning about the translation, generating a retrieval query and incorporating the returned evidence, or terminating with the final translation. Rather than supervising which examples should retrieve, we optimize complete trajectories using final translation quality. Group Relative Policy Optimization (GRPO) (Shao et al., 2024) allows trajectories with different retrieval decisions and queries to compete for the same input, thereby learning when retrieval is worthwhile and what to retrieve to improve final translation quality.

Moreover, we develop two approaches for further aligning the retriever with downstream translation quality rather than simple semantic similarity. First, a natural and principled approach is to jointly optimize the LLM translator and retriever end-to-end. To achieve it, we replace deterministic top-k selection during training with a Plackett–Luce ranking policy (Plackett, 1975), whose selection log-probability allows trajectory-level translation reward to update the retriever through a score-function gradient. However, this joint signal can be noisy: a trajectory contains many LLM policy decisions but only a few retrieval actions, making credit assignment to the retriever inherently high-variance. To address this, we further introduce translation-quality contrastive training, which fixes the translator, evaluates candidate retrieval evidence by their measured effect on translation quality, and converts these into direct contrastive supervision. This isolates the effect of retrieval from other policy decisions, providing the retriever with substantially more targeted training signals.

We evaluate SRAT across three translation settings: idiom translation, knowledge-intensive translation, and document-level translation. The first two use offline retrieval corpora, while the document-level setting additionally evaluates SRAT with online retrieval. Across these settings, SRAT consistently outperforms never-retrieve and always-retrieve baselines, demonstrating the benefit of learning when to retrieve and what evidence to seek. Ablations show that quality-aligned retriever training provides further significant gains when similarity-based retrieval is insufficient. We also find that the retrieval policy can be optimized with a frontier black-box translator, outperforming its direct translation and indicating that the adaptive retrieval decision training can be decoupled from the translator and optimized as a modular component for external generation models.

Our main contributions are threefold:

• Selective retrieval as a translation decision. We characterize LLM-based RAG translation as a partial-evidence regime in which external knowledge is useful only conditionally. We formulate machine translation by LLM as a sequential policy over reasoning, retrieval, and final translation, enabling the model to learn when and what to retrieve from translation outcomes rather than fixed routing rules.

• Quality-aligned evidence retrieval. We propose two retriever-training strategies. Joint Plackett–Luce policy-gradient training propagates trajectory-level translation reward to evidence retrieval, while translation-quality contrastive training derives direct retriever supervision from controlled retrieval evidence interventions. Both align the retriever toward the downstream effect of retrieved evidence on translation quality rather than semantic similarity alone.

• Evaluation across retrieval regimes. Experiments on idiom, knowledge-intensive, and document-level translation with offline and online retrieval consistently outperform fixed never-and always-retrieve strategies. The results further show that quality-aligned retrieval is significantly beneficial when similarity-based retrieval is insufficient, and that adaptive retrieval policy learning can be decoupled from the translator to improve frontier black-box models beyond their direct translation performance.

References (65)

  • Towards cross-cultural machine translation with retrieval-augmented generation from multilingual knowledge graphs
  • Amr Hendy, Mohamed Abdelrehim, Amr Sharaf, Vikas Raunak, Mohamed Gabr, Hitokazu Matsushita, Young Jin Kim, Mohamed Afify, and Hany Hassan Awadalla. 2023. How good are GPT models at machine translation? a comprehensive evaluation. arXiv preprint arXiv:2302.09210. (opens arXiv in a new tab)
  • Wenxiang Jiao, Wenxuan Wang, Jen-tse Huang, Xing Wang, and Zhaopeng Tu. 2023. Is ChatGPT a good translator? yes with GPT-4 as the engine. arXiv preprint arXiv:2301.08745. (opens arXiv in a new tab)
  • Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning
  • DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
  • Liang Wang, Nan Yang, Xiaolong Huang, Binxing Jiao, Linjun Yang, Daxin Jiang, Rangan Majumder, and Furu Wei. 2022. Text embeddings by weakly-supervised contrastive pre-training. arXiv preprint arXiv:2212.03533. (opens arXiv in a new tab)
  • Sglang: Efficient execution of structured language model programs
  • Unlike IdiomKB and RAGtrans, this setting has no predefined retrieval corpus
  • By default, we fine-tune Qwen2.5-7B-Instruct using GRPO (Shao et al., 2024)
  • We run each experiment with three random seeds and report the mean performance
  • The Oracle therefore represents an idealized per-instance choice between translating without retrieval and translating with retrieval, while keeping the underlying policies fixed
  • On IdiomKB Zh→En, for example, SRAT reaches 0.822 COMET and -2.74 MQM compared with 0.831 and -2.67 for the Oracle
  • >Model</td><td colspan=
  • J-F/J-B correspond to I5/I3 on IdiomKB and GRF/GRB on RAGtrans and Document-MT; Ret
  • This suggests that further gains may come not from increasing retrieval frequency, but from more accurately identifying the subset of inputs for which retrieved evidence improves the translation
  • Specifically, we measure multi-retrieval ratio, the fraction of examples for which more than one retrieval query is issued, and reasoning ratio, the fraction for which the model generates an explicit reasoning block before translation
  • Multi-retrieval is rare on IdiomKB (0.6–1.4%), increases on RAGtrans (1.9–2.1%), and is highest on Document-MT-LLM (3.1%), suggesting that harder or longer inputs occasionally require multiple queries to assemble sufficient context
  • >IdiomKB</td><td>Zh→En</td><td>30.6</td><td>0.6</td><td>0.0</td></tr><tr><td>En→Zh</td><td>77.0</td><td>1.4</td><td>0.1</td></tr><tr><td rowspan=
  • denote retrieval, multi-retrieval, and reasoning rates (%), respectively
  • We follow the same setup as Section 4.4: GLM performs direct translation, GLM-Ret prompts GLM itself to decide when and what to retrieve, and SRAT-GLM trains a separate Qwen-based retrieval policy using the quality of GLM's final translation as reward
  • $\mathrm{T}_{1} / \mathrm{T}_{2}$ denote translator RL updates and $\mathrm{R}_{1} / \mathrm{R}_{2}$ denote contrastive retriever updates
  • BLEU decreases slightly after RL, consistent with Section 4.2: the RL reward directly optimizes COMET and LLM-judged quality rather than reference n-gram overlap
  • >Top-k</td><td colspan=
  • Since another round requires both a full RL stage and retriever training for negligible improvement, we use a single round by default
  • More importantly, the relative system ordering is highly consistent with the Sonnet-based evaluation in the main experiments
  • On RAG-trans, MQM improves by 7.6% over CSC and 4.7% over SRAT-A; on IdiomKB, it improves MQM from -1.87 for CSC to -1.33
  • We further vary the number of returned documents to $k \in \{1, 3, 5\}$ to examine whether exposing the translator to more candidate evidence improves downstream translation
  • Scores are averaged across examples and annotators
  • Keeping the learned policy fixed, we replace the default DuckDuckGo backend with Google Search on Document-MT-LLM
  • We randomly select 32 test examples, with 16 each from IdiomKB and RAGtrans, and collect translations from four systems: Direct, CSC, SRAT-A, and SRAT. We recruit 20 native Chinese speakers with advanced English proficiency as annotators
  • Compared with Direct, SRAT reduces accuracy and terminology penalties by 53.2% and 85.1%, respectively, while also improving fluency and style
  • All 20 annotators were native Chinese speakers enrolled in master's or PhD programs at a U.S. university, with advanced English proficiency
  • Careful source selection and human review remain important, particularly for sensitive or high-stakes content
  • attractive
  • remarkable
  • attract attention; eye-catching
  • Please pass the mustard
  • presupposed meaning
  • implied meaning
  • 让-弗雷德里克·费利佩阿
  • Retrieval supplies both the canonical Chinese name and the correct noble rank
  • 【温彻斯特步枪】1848年,美国人沃尔特·亨特开发出一种采用两个杠杆和复杂的接驳装置运作、发射被称为“火箭球
  • The retrieved article provides the correct mechanism
  • a dog biting Lü Dongbin ... meaning to fail to recognize good intentions
  • The direct model already produces a natural English idiomatic equivalent
  • add fuel to the fire; worsen the situation
  • BLEU 10.37 COMET 0.732 15 5.0 MQM -3.0
  • to seek favor by attaching oneself to the influential and powerful
  • attaching oneself
  • 【自动体外心脏去颤器】自动体外心脏去颤器,于伤者脉搏停止时使用。然而它并不会对无心律,即心电图呈水平直线的伤者作出电击。简而言之,使用去颤器并非让伤患者恢复心跳,那是许多节目的误导,而是使正在处于颤抖或是不正常跳动的心脏经由电流刺激而归零停止,并于电击完后立刻配合CPR以使不正常心跳的情况恢复正常
  • 【詹姆斯五世(苏格兰)】1512年4月10日,詹姆斯五世在林利思哥宫出生。他的兄长罗撒西公爵詹姆斯·斯图亚特及亚瑟·斯图亚特皆早夭,所以詹姆斯五世是詹姆斯四世唯一的子嗣,出生后翌日即被封为罗撒西公爵及苏格兰王子
  • Conditioning on the wrong biography corrupts proper names that the model had translated correctly without retrieval
  • A narrow strip of similarly fertile land runs through the eastern seaboard Hamgyǒng provinces and Kangwǒn Province
  • However, it mainly explains the historical causes of North Korea’s food crisis rather than its agricultural geography
  • Equations of state are useful in describing the properties of fluids, mixtures of fluids, solids, and the interior of stars
  • The source instead defines the general thermodynamic concept across fluids, mixtures, solids, and stellar interiors
  • A translation can closely reproduce reference surface forms while mistranslating the central terminology
  • SRAT correctly uses “定式” while paraphrasing the surrounding sentence, reversing the ranking under GRF and MQM
  • 耶稣基督的仆人,雅各的弟兄犹大
  • These cases help explain why the gains of SRAT-GLM are smaller than those of SRAT-Claude in Appendix A.5
  • Claude largely ignores the off-topic evidence and preserves the canonical terminology
  • Formed in 1875 as Small Heath Alliance, it was renamed Small Heath in 1888, Birmingham in 1905, and Birmingham City in 1943
  • I3 follows the original IdiomKB evaluation (Li et al., 2024), while I5 extends it to a finer-grained five-level scale
  • no meaning preserved
  • Minor/Fluency/Punctuation:0.1