Phrase-level Active Learning for Neural Machine Translation

Junjie Hu, Graham Neubig

Abstract

Neural Machine Translation (NMT) models often suffer from performance degradation when applied to domains outside their training data. While active learning (AL) can mitigate this by fine-tuning models on small amounts of human-translated in-domain data, traditional sentence-level selection is often inefficient and redundant. This paper proposes a hybrid active learning approach that selects both informative phrases and full sentences for human annotation. By integrating these phrases into NMT training through novel data augmentation and mixed fine-tuning techniques, the proposed method achieves superior translation performance at a lower annotation cost compared to standard sentence-level baselines.

Introduction

Machine translation models are highly sensitive to domain shifts; a model trained on general news corpora typically performs poorly on specialized domains like medicine or information technology. To adapt these models, practitioners employ active learning (AL), selecting a small, informative subset of unlabeled in-domain data for human translation to fine-tune the model.

Historically, AL for NMT has focused on selecting full sentences based on model uncertainty. However, this approach is often inefficient. A long sentence might contain only a few domain-specific terms, leading to redundant translation of common vocabulary. While phrase-level selection was common in older Phrase-Based Machine Translation (PBMT) systems, it is challenging to apply to NMT, which requires full sequences to learn structural and syntactic properties. This work addresses this gap by introducing a hybrid strategy that leverages the vocabulary-gathering efficiency of phrases and the structural context of sentences.

Methodology

The authors propose a hybrid selection strategy combined with specialized data mixing techniques to effectively utilize both phrases and sentences in NMT fine-tuning.

Workflow of the hybrid phrase/sentence active learning approach for NMT domain adaptation.

Selection Strategies

  1. Sentence Selection: Uses a Margin-based Ratio Score (MRS) with pre-trained mBERT embeddings to identify unlabeled sentences most distant from the out-of-domain training data.
  2. Phrase Selection: Employs a Semi-Maximal Phrases (NGF-SMP) strategy to extract frequent, non-redundant n-grams from the target domain.
  3. Hybrid Approach: Allocates the annotation budget (measured in total words) equally (50/50) between sentence and phrase selection.

Incorporating Phrases into NMT

To overcome NMT's requirement for full sequences, the authors use "Switch Phrases": they identify out-of-domain sentence pairs and replace existing phrases with newly translated in-domain phrases. The model is then fine-tuned using Mixed Fine-Tuning, which combines the new in-domain sentences, synthetic "switched" phrase sentences, and a subset of similar out-of-domain sentences retrieved from the base training set.

Key Results and Insights

The proposed hybrid strategy (NGF-SMP + MRS) consistently outperformed strong sentence-only baselines, showing gains of up to 1.2 BLEU points.

Average BLEU scores for different active learning strategies across Medicine and IT domains as a function of annotation budget.

Key findings include:

  • Efficiency at Low Budgets: Phrase selection is highly cost-effective early on, capturing core domain vocabulary (e.g., disease names) much faster than sentence selection. At a 10K word budget, the phrase strategy captured 1,076 unique in-domain words, compared to 721 for the sentence strategy.
  • Complementary Strengths: While phrases provide a rapid vocabulary boost, sentence selection is necessary at higher budgets to teach the model domain-specific grammar and syntax. The hybrid approach provides the "best of both worlds."
  • Data Augmentation: The "Switch Phrases" technique successfully bridges the gap between isolated phrases and sequence-level training, preventing the model from becoming biased toward generating unnaturally short outputs.

Conclusion and Future Work

This research demonstrates that targeted phrase-level annotation is a powerful tool for domain adaptation in NMT. Future work includes exploring dynamic budget allocation between phrases and sentences using multi-armed bandits and testing the approach on morphologically rich languages. Additionally, the authors note that the actual cognitive load for human translators working on isolated phrases versus full sentences warrants further investigation in real-world settings.

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