DEEP: DEnoising Entity Pre-training for Neural Machine Translation

Junjie Hu, Hiroaki Hayashi, Kyunghyun Cho, Graham Neubig

Abstract

Translating rare named entities remains a significant challenge for Neural Machine Translation (NMT) models. Standard pre-training methods often fail to explicitly model the relationship between entities across languages. We introduce DEEP (DEnoising Entity Pre-training), a novel approach that integrates external knowledge bases into the NMT pipeline. By pre-training on "code-switched" sentences where entities are replaced with their translations and using a multi-task finetuning strategy, DEEP significantly improves entity translation accuracy and overall BLEU scores across high, medium, and low-resource language pairs.

Introduction

The translation of named entities—such as specific people, locations, or organizations—is a classic "long-tail" problem. While common entities like "London" are well-represented in parallel corpora, rarer entities like "Krasnodar" often lack sufficient training examples. Traditional solutions like phonetic transliteration often ignore context, while modern denoising auto-encoders (e.g., mBART) treat all tokens equally, missing the opportunity to specifically learn entity mappings.

Methodology

The DEEP approach consists of three integrated stages designed to embed entity knowledge directly into the NMT model.

The DEEP pipeline: Entity recognition, denoising pre-training, and multi-task finetuning.

1. Entity Recognition and Linking

First, entity mentions are identified in target-language monolingual data (e.g., Russian Wikipedia) using tools like SLING. These mentions are then linked to a knowledge base, specifically Wikidata, to retrieve their corresponding translations in the source language.

2. Entity-based Data Augmentation

Instead of random masking, DEEP creates "noised" sentences by replacing target-language entities with their source-language equivalents found in the knowledge base. This results in a "code-switched" sentence. The model is then pre-trained to reconstruct the original, pure target-language sentence from this noised input, forcing it to learn the explicit mapping between entity names.

3. Multi-task Finetuning

To prevent "catastrophic forgetting" of entity knowledge during the transition to the primary translation task, a multi-task strategy is employed. The model is finetuned simultaneously on standard parallel data and the entity-denoising task. This dual objective acts as a regularizer, ensuring the model retains its ability to translate rare entities while learning general translation fluency.

Experimental Setup

The effectiveness of DEEP was evaluated across three language pairs representing different resource levels:

  • High-resource: English-Russian (En-Ru) using WMT18 news data.
  • Medium-resource: English-Ukrainian (En-Uk) using TED Talk transcripts.
  • Low-resource: English-Nepali (En-Ne) using the FLORES dataset.

Monolingual Wikipedia corpora provided the data for the pre-training phase, while Wikidata served as the source for multilingual entity mappings.

Results and Discussion

DEEP consistently outperformed strong baselines, including mBART, across all resource levels.

  • Entity Accuracy: In English-Russian translation, DEEP improved entity accuracy by up to 9.2 points over standard denoising methods.
  • Translation Quality: The method yielded gains of up to 1.3 BLEU points for En-Ru and 3.5 BLEU points for the low-resource En-Ne pair.
  • Efficiency: The model demonstrated rapid learning, achieving high entity accuracy in as few as 25,000 pre-training steps.

Qualitative analysis showed that DEEP was often the only model capable of correctly translating specific location names that were absent from the parallel training data but present in the knowledge base.

Conclusion and Future Work

DEEP demonstrates that explicit entity-based denoising is a powerful tool for improving NMT performance on the long tail of named entities. However, its performance is currently limited by the quality of entity linkers and the coverage of the underlying knowledge base. Future research may focus on improving linker robustness in low-resource settings and leveraging richer knowledge base features, such as entity descriptions, to further resolve ambiguities.

Summary updated

BibTeX
@inproceedings{hu2022deep,
  author = {Junjie Hu and Hiroaki Hayashi and Kyunghyun Cho and Graham Neubig},
  title = {{DEEP: DEnoising Entity Pre-training for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.123},
}
Figure