TL;DR
This paper introduces a novel fragment-based reasoning framework for LLM-based machine translation that mimics how professional translators use Translation Memories (TMs). By instructing a model to explicitly extract parallel source-target fragments from similar translation examples before generating the final output, the researchers significantly improve translation quality over standard prompting and drafting methods.
What Problem Does This Paper Address?
While Large Language Models (LLMs) excel at machine translation (MT), they often struggle to optimally leverage in-context examples (exemplars) retrieved from Translation Memories—databases of trusted, previously translated sentences.
Typical Chain-of-Thought (CoT) approaches for translation prompt models to generate a rough draft or perform error correction before outputting the final text. However, generating full intermediate drafts can introduce noise, propagate errors, and degrade final translation quality. The authors address this gap by shifting the reasoning focus from drafting to matching: forcing the model to explicitly identify and align useful, high-quality translation fragments from retrieved exemplars before translating.
Methods
The authors propose a teacher-student distillation pipeline to teach a smaller model how to reason about translation fragments:
- Exemplar Retrieval: For a given source sentence, similar sentence pairs (exemplars) are retrieved from a TM using a combination of BM25 and Levenshtein distance.
- Silver Fragment Generation (Teacher): A large teacher model (Qwen3-32B) is prompted to perform Fragment Extraction (FE). It breaks down the source sentence into minimal semantic units, matches them to the retrieved exemplars, and outputs a list of parallel source-target fragments.
- Supervised Fine-Tuning (Student): A smaller student model (Qwen3-8B) is trained to replicate this behavior. It learns to generate these parallel fragments as intermediate "thinking" tokens before producing the final translation.
The training pipeline is illustrated below:
The authors experimented with different reasoning traces, comparing models that generated fragments only (F), drafts only (D), fragments and drafts (F+D), and a baseline (B) with no reasoning tokens.
Datasets
The models were trained and evaluated on a multilingual dataset compiled from the public OPUS repository, covering 5 European languages (French, German, Polish, Spanish, Ukrainian) paired with English.
- Training Set: 160k high-quality samples across 16 distinct domains (10k per domain), including legal (JRC), finance (ECB), medical (EMEA), politics (Europarl), TED talks, Wikipedia, and subtitles.
- In-Domain Evaluation: A multi-domain test set of 16k samples.
- Out-of-Domain Evaluation: A "surprise" English-French test set from the GNOME project to evaluate generalization.
Key Insights and Ideas
- Matching Beats Drafting: Generating an intermediate full-sentence draft actually hurts translation performance in most cases because the draft introduces noise. In contrast, isolating exact segment matches (fragments) provides a clean, robust signal that the model can reliably recombine.
- Filtering out the Noise: Fragment extraction acts as an effective information filter. When the retrieved exemplars have low coverage (meaning they contain a lot of irrelevant text), the fragment-based reasoning step shows its highest performance gains by helping the model extract only the golden nuggets of relevant terminology.
- Student Surpasses Teacher in Recall: Interestingly, after supervised fine-tuning, the student model achieved a higher source-side recall of fragments (~89%) than the teacher's original silver fragments (~81%), showing that the fine-tuning process successfully smoothed out extraction gaps.
An example of how these fragments are extracted and visualized can be seen here:
Key Results
The fragment-only reasoning model (F with thinking enabled) consistently outperformed standard k-shot baselines across BLEU, COMET, and MetricX metrics.
As shown in the multi-domain results table, the fragment method scales robustly regardless of whether $k=1, 2,$ or $3$ exemplars are retrieved:
- On the multi-domain test set with 3 exemplars ($k=3$), the fragment model achieved a BLEU score of 46.7 and a COMET score of 86.7, outperforming the baseline (46.3 BLEU / 86.5 COMET).
- The framework generalized remarkably well to the unseen GNOME domain, where the fragment-based approach yielded significant improvements (e.g., jumping from 89.8 to 90.1 COMET at $k=2$).
Limitations and Future Work
- Resource Dependency: The approach assumes the availability of a high-quality Translation Memory or bilingual corpus, which might not exist for low-resource or highly specialized emerging domains.
- Teacher Bottleneck: The student's reasoning capability is strictly bounded by the quality of the silver fragments generated by the teacher LLM, which can occasionally include hallucinations or malformed alignments.
- Future Directions: The authors suggest exploring Reinforcement Learning (RL) techniques (similar to DeepSeek-R1 strategies) to let the model discover better intermediate translation reasoning steps autonomously, as well as scaling the number of exemplars ($k > 3$) to test the model's noise-handling limits.
Summary updated