Domain Adaptation of Neural Machine Translation by Lexicon Induction

Junjie Hu, Mengzhou Xia, Graham Neubig, Jaime G. Carbonell

Abstract

Neural Machine Translation (NMT) models are highly effective in the domains they are trained on but often suffer significant performance degradation when applied to specialized fields. This "brittleness" is largely due to out-of-vocabulary (OOV) terms and the lack of parallel in-domain data for fine-tuning. We present DALI (Domain Adaptation by Lexicon Induction), a novel framework that bridges this gap by automatically inducing bilingual dictionaries from monolingual texts. By generating pseudo-parallel data through word-for-word translation, DALI provides direct supervision for domain-specific vocabulary. Our experiments across five diverse domains show that DALI consistently improves translation quality, achieving gains of up to 14 BLEU points and demonstrating strong complementarity with traditional back-translation methods.

Introduction

The challenge of domain adaptation in NMT is characterized by a dual effect of lexicalization. First, specialized domains introduce OOV words that the model has never encountered. Second, even familiar words may have domain-specific meanings that differ from their usage in general corpora. While unsupervised methods like back-translation (BT) help improve the fluency of the target language output, they often fail to provide the precise word-to-word supervision necessary to learn technical terminology.

Researchers at Carnegie Mellon University developed DALI to address these issues. DALI focuses on improving the model's lexical coverage by leveraging the abundance of monolingual data available in specialized domains, effectively teaching the model "what" to translate before focusing on "how" to phrase it fluently.

Methodology: The DALI Framework

The DALI framework operates in three distinct phases, designed to inject domain-specific lexical knowledge into a pre-trained NMT model.

1. Lexicon Induction

The first step involves learning a mapping between source and target language word embeddings using only monolingual data. The authors explored two approaches:

  • Supervised Induction: A seed lexicon is extracted from out-of-domain parallel data using alignment tools like GIZA++.
  • Unsupervised Induction: Adversarial training (GANs) is used to align embedding spaces without any initial dictionary, making the method applicable to truly low-resource scenarios.

2. Pseudo-Parallel Corpus Generation

Once a bilingual lexicon is induced, it is used to perform a simple, word-for-word back-translation of in-domain target sentences. While this results in ungrammatical source-side sentences, it creates a direct mapping for technical terms.

The DALI pipeline: from monolingual corpora to induced lexicons and the creation of pseudo-parallel training data.

3. Fine-tuning

The final step is fine-tuning the out-of-domain NMT model on a combination of this "messy" word-for-word data and the original high-quality parallel data. This allows the model to learn new vocabulary while maintaining its grasp of general grammar and syntax.

Experimental Setup and Results

The study evaluated German-to-English translation across five distinct domains: Medical (EMEA), IT (GNOME/KDE/Ubuntu), Law (JRC-Acquis), Subtitles (OpenSubtitles), and the Koran.

Performance Gains

DALI achieved consistent improvements across all twenty pairwise adaptation settings. In the most dramatic cases, it improved performance by up to 14 BLEU points over unadapted models. Notably, DALI outperformed strong back-translation baselines by up to 2 BLEU points.

BLEU score improvements across various domains. DALI-U (unsupervised) and DALI-S (supervised) both show significant gains over unadapted and back-translation (BT) baselines.

Key Insights

  • Orthogonality: DALI and BT are complementary. BT improves the fluency of the decoder, while DALI improves the accuracy of the encoder's lexical representations. Using them together (DALI+BT) consistently yielded the best results.
  • Robustness to Noise: It is surprising that training on ungrammatical sentences helps a Transformer model. The authors found that the attention mechanism effectively "anchors" onto the correct technical terms, ignoring the broken syntax of the pseudo-source sentences.
  • Model Agnostic: The method proved effective for both RNN-based (LSTM) architectures and modern Transformer models, suggesting a fundamental improvement in how models handle domain-specific lexical shifts.

Conclusion and Future Work

DALI provides a powerful, data-efficient way to adapt NMT models to new domains without requiring expensive parallel corpora. By focusing on lexicon induction, it solves the OOV problem that often plagues technical translation.

While highly effective, the method's reliance on word embedding quality suggests potential limitations in extremely low-resource settings or for languages with complex morphology. Future work may involve integrating induced lexicons more directly into the decoding process or exploring more sophisticated data augmentation techniques that preserve some level of syntactic structure.

Summary updated

BibTeX
@inproceedings{hu2019domain,
  author = {Junjie Hu and Mengzhou Xia and Graham Neubig and Jaime G. Carbonell},
  title = {{Domain Adaptation of Neural Machine Translation by Lexicon Induction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1286},
}
Figure