Dynamic Data Selection for Neural Machine Translation

Marlies van der Wees, Arianna Bisazza, Christof Monz

Introduction

Neural Machine Translation (NMT) has revolutionized automated translation but remains constrained by its immense data requirements and lengthy training cycles. Traditionally, Phrase-Based Machine Translation (PBMT) employed static data selection to improve efficiency by training only on a highly relevant subset of a general corpus. However, applying this same logic to NMT often results in significant performance degradation. This paper explores why static selection fails for neural models and proposes dynamic data selection—specifically "gradual fine-tuning"—as a solution to achieve both higher translation quality and drastically reduced training times.

The Challenge: Static Selection in NMT

In PBMT, selecting the top 5% of a dataset based on domain relevance often yields models that are faster and nearly as accurate as those trained on the full set. In contrast, NMT models are notoriously "data-hungry"; they require broad exposure to language to learn robust word embeddings and handle rare vocabulary. Discarding a large portion of data at the outset leads to "brittle" models with poor coverage.

Comparison of static selection performance across domains for PBMT and NMT.

As shown in the figure above, while PBMT (purple lines) maintains performance even with small selection sizes, NMT (green lines) shows a steep decline. Even relevance-based selection (Axelrod) struggles to match the full-bitext baseline (light green horizontal line) when the selection size is small. This demonstrates that NMT requires a more sophisticated approach to data selection.

Proposed Methodology: Dynamic Selection

To overcome the limitations of static selection, the authors propose varying the training subset between epochs. This ensures the model eventually sees the entire corpus while prioritizing the most relevant data. The process involves two main components:

1. Relevance Ranking

Sentence pairs are ranked using a bilingual cross-entropy difference score. The authors found that using LSTMs for this ranking outperformed traditional n-gram models, providing a more nuanced measure of domain similarity.

2. Dynamic Sampling and Gradual Fine-tuning

Two primary strategies for dynamic selection were evaluated:

  • Dynamic Sampling: A new subset is selected for each epoch, with higher-relevance sentences having a higher probability of selection.
  • Gradual Fine-tuning: The training set size is reduced exponentially over time, starting from a large portion (or 100%) of the data and pruning less relevant sentences every few epochs.
Conceptual overview of dynamic sampling versus gradual fine-tuning.

Gradual fine-tuning acts as a curriculum, allowing the model to first learn general linguistic patterns before specializing in the target domain. This prevents the model from forgetting common words while focusing its capacity on domain-specific nuances.

Experimental Results

The methods were tested on German→English translation across four domains: Medical (EMEA), Movies, TED talks, and News (WMT).

  • Quality Improvements: Gradual fine-tuning significantly outperformed the full-bitext baseline, achieving a +3.1 BLEU gain on TED talks and +1.4 BLEU on Movie dialogues.
  • Efficiency Gains: The best-performing models reached peak performance in just 18–25% of the time required for the baseline. For example, a standard 106-hour training run was reduced to approximately 20 hours.
  • Domain Adaptation: The technique proved highly effective even when parallel in-domain data was unavailable, as ranking can be performed using monolingual in-domain text.
  • Domain Sensitivity: The benefits were less pronounced for the WMT news domain, likely because the general training data (Europarl/Commoncrawl) was already highly similar to the target domain, leaving less "irrelevant" data to prune.

Conclusion

Dynamic data selection, particularly gradual fine-tuning, bridges the gap between efficiency and performance in NMT. By treating data selection as a process rather than a one-time filter, researchers can train specialized models that are both more accurate and significantly faster to produce than those trained on massive, static datasets. Future work may explore incorporating diversity metrics into the selection process to ensure the pruned subsets maintain broad linguistic coverage.

Summary updated

BibTeX
@inproceedings{wees2017dynamic,
  author = {Marlies van der Wees and Arianna Bisazza and Christof Monz},
  title = {{Dynamic Data Selection for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1147},
}
Figure