Phrase-level Active Learning for Neural Machine Translation

Junjie Hu, Graham Neubig

Abstract

Neural Machine Translation (NMT) models frequently suffer from performance degradation when applied to specialized domains, a phenomenon known as domain shift. Standard adaptation techniques rely on costly human-annotated in-domain data. Active Learning (AL) mitigates these costs by identifying the most informative data points for translation. While traditional NMT AL focuses exclusively on full sentences, this work introduces a hybrid strategy that incorporates phrase-level selection. By combining structural sentence-level information with cost-efficient, domain-specific phrases, the proposed method achieves up to a 1.2 BLEU score improvement over sentence-only baselines, particularly under tight annotation budgets.

Introduction

The "brittleness" of NMT models under domain shift—moving from general news to technical medical or IT documentation—remains a significant hurdle. While professional translation can bridge this gap, the expense is often prohibitive. Active Learning offers a solution by identifying high-utility data points. However, selecting only full sentences is often inefficient; a long sentence may contain only a single novel technical term, wasting the remainder of the translation budget. This paper explores the integration of phrase-level selection into the NMT active learning pipeline to maximize the value of every annotated word.

Methodology: Hybrid Selection and Mixed Fine-tuning

The core of the proposed approach is a Hybrid Selection Strategy that balances vocabulary acquisition with structural learning.

The proposed hybrid active learning workflow for NMT domain adaptation, illustrating the four-step process from base training to mixed fine-tuning.

The strategy employs two distinct selection mechanisms:

  1. Sentence Selection (CSSE): Utilizing mBERT embeddings, the system identifies in-domain sentences that are most distinct (distant) from the existing out-of-domain training set.
  2. Phrase Selection (NGF-SMP): The system identifies frequent, domain-specific n-grams. To maximize efficiency and avoid redundancy, a Semi-Maximal Phrase (SMP) algorithm is used to select non-overlapping, highly informative segments.

To integrate these standalone phrases into the sequence-dependent NMT architecture, the authors utilize Mixed Fine-tuning. This involves data augmentation techniques such as "Switch Phrases"—replacing known phrases in out-of-domain sentences with new in-domain translations—and "Contextualized Phrases," which append new phrases to existing sentences to provide necessary linguistic context.

Experimental Setup

The method was evaluated on German-to-English translation tasks across two specialized domains: Medicine (MED) and Information Technology (IT). The base model was trained on the WMT14 parallel corpus (4.4M sentences). Performance was measured using BLEU scores and word-level translation accuracy for previously unseen in-domain terminology across various annotation budgets (measured in word counts).

Key Results and Discussion

The hybrid approach consistently outperformed both pure sentence-based and pure phrase-based selection across various annotation budgets in both domains.

Average BLEU score improvements across Medicine (left) and IT (right) domains, comparing the hybrid NGF-SMP+CSSE method against various baselines.

The Budget Sweet Spot

A critical finding is the relationship between budget size and selection strategy. At very low budgets (under 20k words), phrase-based selection is highly effective as it rapidly populates the model's vocabulary with essential domain terms. As the budget increases, sentence-level selection becomes more valuable, allowing the model to learn the specific syntax and stylistic nuances of the target domain. The hybrid model (NGF-SMP+CSSE) effectively captures both benefits, maintaining a lead across the entire budget spectrum.

Vocabulary Mastery

Beyond aggregate BLEU scores, the phrase-level approach significantly improved the accuracy of translating "unseen" technical terms. In the medical domain, the NGF-SMP method showed a marked advantage in terminology acquisition compared to random or sentence-only selection at lower word counts. This suggests that the method is particularly well-suited for terminology-heavy fields where specific word choice is paramount.

Conclusion

By moving beyond the sentence-level paradigm, this research demonstrates that phrase-level active learning is a powerful tool for NMT domain adaptation. The hybrid strategy provides a more granular and cost-effective way to utilize human translation effort. Future work may involve dynamic budget allocation between phrases and sentences and testing the approach on morphologically diverse languages.

Summary updated

BibTeX
@inproceedings{hu2021phrase,
  author = {Junjie Hu and Graham Neubig},
  title = {{Phrase-level Active Learning for Neural Machine Translation}},
  booktitle = {WMT @ EMNLP},
  year = {2021},
  url = {https://openreview.net/forum?id=DLXK4Nbg-a},
}
Figure