Abstract
Retrieval-augmented generation (RAG) introduces additional information to enhance large language models (LLMs). In machine translation (MT), previous work typically retrieves in-context examples from paired MT corpora, or domain-specific knowledge from knowledge graphs, to enhance MT models. However, a large amount of world knowledge is organized in unstructured documents and might not be fully paired across different languages. In this paper, we study retrieval-augmented MT using unstructured documents. Specifically, we build RAGtrans, the first benchmark to train and evaluate LLMs' retrieval-augmented MT ability. RAGtrans contains 169K MT samples collected via GPT-4o and human translators. Besides, documents from various languages are also provided to supply the knowledge to these samples. Based on RAGtrans, we further propose a multi-task training method to teach LLMs how to use information from multilingual documents during their translation. The method uses existing multilingual corpora to create auxiliary training objectives without additional labeling requirements. Extensive experiments show that the method improves LLMs by 1.6–3.1 BLEU and 1.0–2.0 COMET scores in En⇒Zh, and 1.7–2.9 BLEU and 2.1–2.7 COMET scores in En⇒De. We also conclude the critical difficulties that current LLMs face with this task.
Introduction
While Retrieval-Augmented Generation (RAG) has become a standard technique for enhancing Large Language Models (LLMs) in general tasks, its application in Machine Translation (MT) has remained relatively narrow. Traditional retrieval-augmented MT (RAMT) relies heavily on "translation memories"—finding similar previously translated sentence pairs—or structured knowledge graphs.
However, the vast majority of human knowledge is stored in unstructured documents, such as Wikipedia, which are often not perfectly aligned across languages. A translator may need to reference an English document to accurately translate a technical term into Chinese. Current LLMs often struggle to integrate this document-level context, sometimes performing worse when provided with extra information due to a lack of robustness. This paper introduces RAGtrans to bridge this gap.
The RAGtrans Benchmark
To facilitate research in this area, we developed RAGtrans, a benchmark specifically designed for RAMT using unstructured, multilingual documents. The dataset consists of 169K English sentences sourced from Wikipedia lead paragraphs, which are naturally knowledge-intensive.
As shown in Figure 1, the training data was curated using a sophisticated pipeline involving GPT-4o, which provides a judgment and relevance score for the context before generating the translation. To ensure the highest evaluation standards, the test set was translated by professional human translators.
Methodology: CSC Multi-Task Training
To teach models how to effectively leverage retrieved information, we propose the CSC multi-task training method. This approach utilizes three distinct objectives:
- Cross-lingual Information Completion: The model is tasked with expanding a truncated summary using a multilingual document, teaching it to synthesize information across different languages.
- Self-Knowledge-Enhanced Translation: The model is prompted to generate its own relevant knowledge about a topic before performing the translation, bridging internal weights with external context.
- Cross-lingual Relevance Discrimination: This acts as a robustness check where the model judges if two documents in different languages are topically aligned. This helps the model ignore "noisy" or irrelevant retrieved documents during the translation process.
Dataset Composition
The RAGtrans benchmark includes 79K English-to-Chinese (En⇒Zh) and 90K English-to-German (En⇒De) translation pairs. A key feature of this dataset is its multilingual context; for each source sentence, relevant documents are provided in English, Chinese, German, French, and Czech.
As detailed in the dataset statistics (Figure 5), the benchmark includes both "Relevant" and "Noisy" documents to train the model's ability to discriminate between useful and distracting information.
Key Results and Insights
Our experiments using Qwen2.5 and Llama-3 as backbones demonstrated significant performance gains:
- Performance Gains: We observed improvements of up to 3.1 BLEU points in En⇒Zh and 2.9 BLEU points in En⇒De. Human evaluations confirmed fewer word-level errors in technical and knowledge-heavy entities.
- The "Third Language" Advantage: A significant finding is that models can improve translation between a source and target language (e.g., En⇒Zh) by reading a document in a completely different "third" language (e.g., German). This suggests the model performs high-level semantic integration that transcends specific language pairs.
- Robustness to Noise: By training with irrelevant documents, the CSC method makes models resilient to the hallucinations often triggered by poor retrieval in standard RAG setups.
Conclusion
RAGtrans and the CSC training method represent a significant step forward for retrieval-augmented machine translation. By moving beyond simple translation memories to unstructured, multilingual documents, we enable LLMs to act more like human translators who consult external references. Future work will focus on expanding this to low-resource languages and exploring the integration of Chain-of-Thought reasoning within the translation pipeline.
Summary updated