[Paper Review] Guiding Neural Machine Translation with Retrieved Translation Pieces
This paper proposes a simple, efficient method to improve neural machine translation (NMT) by retrieving similar source sentences and extracting reusable translation pieces—n-grams aligned with overlapping words—then boosting NMT outputs that include these pieces. The approach improves BLEU scores by up to 6 points on narrow-domain tasks with minimal inference time overhead, outperforming a strong retrieval-based baseline in accuracy, speed, and simplicity.
One of the difficulties of neural machine translation (NMT) is the recall and appropriate translation of low-frequency words or phrases. In this paper, we propose a simple, fast, and effective method for recalling previously seen translation examples and incorporating them into the NMT decoding process. Specifically, for an input sentence, we use a search engine to retrieve sentence pairs whose source sides are similar with the input sentence, and then collect $n$-grams that are both in the retrieved target sentences and aligned with words that match in the source sentences, which we call "translation pieces". We compute pseudo-probabilities for each retrieved sentence based on similarities between the input sentence and the retrieved source sentences, and use these to weight the retrieved translation pieces. Finally, an existing NMT model is used to translate the input sentence, with an additional bonus given to outputs that contain the collected translation pieces. We show our method improves NMT translation results up to 6 BLEU points on three narrow domain translation tasks where repetitiveness of the target sentences is particularly salient. It also causes little increase in the translation time, and compares favorably to another alternative retrieval-based method with respect to accuracy, speed, and simplicity of implementation.
Motivation & Objective
- To address the challenge of low-frequency word and phrase translation in neural machine translation (NMT).
- To improve NMT performance in narrow-domain translation tasks where target sentence repetitiveness is prominent.
- To develop a retrieval-based method that enhances NMT at test time without modifying the model or retraining.
- To achieve higher translation accuracy than existing retrieval-augmented NMT methods while maintaining low computational cost and simple implementation.
Proposed method
- A search engine retrieves source-target sentence pairs from the training corpus that are similar to the input sentence based on lexical overlap.
- For each retrieved pair, word-level alignment is used to identify overlapping source words and their corresponding target n-grams, forming 'translation pieces'.
- Pseudo-probability scores are computed for each retrieved sentence based on edit distance similarity between the input and retrieved source sentences.
- Translation pieces are weighted by their pseudo-probability scores to prioritize high-similarity, high-relevance examples.
- The NMT model is used to decode the input sentence, with an additional bonus applied to outputs that contain the collected translation pieces.
- The method requires no model fine-tuning or structural changes, enabling efficient test-time application on pre-trained NMT models.
Experimental results
Research questions
- RQ1Can retrieval of similar source sentences improve NMT performance for low-frequency or domain-specific phrases?
- RQ2How can retrieved translation examples be effectively integrated into NMT decoding without altering the model architecture?
- RQ3What is the trade-off between retrieval-based accuracy gains and computational cost in NMT inference?
- RQ4How does the proposed method compare in speed, simplicity, and accuracy to existing retrieval-augmented NMT approaches?
Key findings
- The method improved NMT translation performance by up to 6 BLEU points on three narrow-domain translation tasks (en-de, en-fr, en-es).
- On the development set, the method achieved 50.61 BLEU on en-de, 65.03 on en-fr, and 57.49 on en-es, outperforming both the baseline NMT and the SGNMT model.
- On the test set, the method achieved 50.36 BLEU on en-de, 65.69 on en-fr, and 57.11 on en-es, showing consistent gains over the baseline and SGNMT.
- Translation piece collection was the most time-consuming step, but total translation time increased only slightly, with 10 retrieved sentences being an optimal retrieval size.
- The method achieved comparable or better accuracy than SGNMT while being significantly simpler to implement and faster at test time.
- The approach caused negligible increase in NMT training time, as it does not require retraining or parameter updates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.