An Empirical Exploration of Curriculum Learning for Neural Machine Translation

Xuan Zhang, Gaurav Kumar, Huda Khayrallah, Kenton Murray, Jeremy Gwinnup, Marianna J. Martindale, Paul McNamee, Kevin Duh, Marine CarpuatarXiv 2018

Introduction

Neural Machine Translation (NMT) models are computationally intensive, requiring large datasets and long training times to achieve convergence. Curriculum learning (CL)—the strategy of presenting training examples in a structured order, typically from simple to complex—has been proposed as a method to accelerate this process. However, implementing CL in NMT is challenging due to the difficulty of quantifying "complexity" and the potential conflict between deterministic ordering and standard optimization techniques like mini-batch shuffling. This paper investigates a flexible, probabilistic framework for CL in NMT to address these challenges.

Methodology: A Probabilistic Approach

To maintain the benefits of random shuffling while imposing a curriculum, the authors propose a probabilistic framework. The training dataset is partitioned into five "shards" based on a chosen difficulty metric. Instead of a strict deterministic sequence, each shard is assigned a sampling probability that evolves over a series of training phases.

Probabilistic sampling phases showing the transition from easy-heavy to uniform distributions over time.

Difficulty Criteria

The study explores several metrics to categorize translation pairs by difficulty:

  1. Model-based: Utilizing the "one-best score" (model confidence) from an auxiliary NMT model.
  2. Linguistic: Using sentence length and word frequency rank (maximum and average) as proxies for complexity.
Distribution of training samples across shards for different difficulty criteria, including one-Best Score, Source Sentence Length, and Source Max Word Frequency Rank.

The authors also tested various schedules, including "Easy-to-hard" (default), "Hard-to-easy" (reverse), and "Boost" (re-emphasizing hard examples).

Key Insights

The empirical results challenge several intuitive assumptions about curriculum learning:

  • Non-Linearity of Difficulty: The traditional "easy-to-hard" approach is not universally optimal. In many cases, starting with difficult examples (reverse schedule) or boosting the presence of hard shards outperformed the standard curriculum.
  • Effectiveness of Simple Metrics: Linguistic criteria, particularly average word frequency rank, proved as effective as more computationally expensive model-based scores. Conversely, sentence length—a common heuristic—was found to be a relatively weak signal for long-term convergence.
  • Hyperparameter Sensitivity: The success of a curriculum strategy is highly sensitive to the initial learning rate and the frequency of schedule updates. A strategy that succeeds under one set of hyperparameters may fail under another.

Results and Performance

The study evaluated 100 different curriculum strategies on the German-English Multi-target TED Talks Task (MTTT) corpus. Key findings include:

  • Convergence Speed: 20% of the tested strategies achieved faster convergence than the baseline without degrading translation quality (BLEU score).
  • Efficiency Gains: The most successful configurations, such as using average source word frequency with a reverse schedule, reduced training time by 19% to 30%.
  • Trade-offs: Some aggressive schedules achieved up to a 38% speedup but resulted in a significant drop in BLEU score (e.g., -1.65 points), highlighting the need for careful tuning.

Conclusion

Curriculum learning offers a viable path toward more efficient NMT training, potentially saving significant computational resources. However, its effectiveness is not guaranteed and depends heavily on the choice of difficulty metric, schedule, and hyperparameters. Future research should focus on identifying more generalizable curriculum strategies across diverse language pairs and larger domains.

Summary updated

BibTeX
@misc{zhang2018empirical,
  author = {Xuan Zhang and Gaurav Kumar and Huda Khayrallah and Kenton Murray and Jeremy Gwinnup and Marianna J. Martindale and Paul McNamee and Kevin Duh and Marine Carpuat},
  title = {{An Empirical Exploration of Curriculum Learning for Neural Machine Translation}},
  year = {2018},
  eprint = {1811.00739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.00739},
}
Figure