Competence-based Curriculum Learning for Neural Machine Translation

Emmanouil Antonios Platanios, Otilia Stretcu, Graham Neubig, Barnabás Póczos, Tom M. Mitchell

Training state-of-the-art Neural Machine Translation (NMT) models, particularly the self-attentional Transformer architecture, is notoriously slow and often requires a "black art" of hyperparameter tuning. Modern NMT systems require massive batch sizes and complex, manually tuned learning rate schedules, such as "warm-up" periods, to avoid poor local optima early in training. This paper introduces a competence-based curriculum learning framework that addresses these instabilities by presenting "easy" examples to the model first, gradually increasing difficulty as the model’s "competence" grows.

The Curriculum Learning Framework

The proposed framework is built upon two core concepts: Difficulty and Competence. Much like a human student progresses from simple phrases to complex literature, the machine is guided through a structured data presentation.

The high-level curriculum learning framework, illustrating the interaction between data difficulty, model competence, and the trainer.

1. Difficulty ($d$)

A score is assigned to each training sample based on simple, intuitive heuristics:

  • Sentence Length: Shorter sentences are generally easier to translate.
  • Word Rarity: Sentences containing frequent words are easier than those with rare "long-tail" vocabulary.

2. Competence ($c(t)$)

A function representing the model's progress over time ($t$). It defines the proportion of the training set (ranked by difficulty) the model is allowed to "see" at any given step. At each training step, the model calculates its current competence (e.g., "I am ready for the easiest 20% of the data") and samples a training batch uniformly from only that "allowed" portion. As training progresses, competence increases until it reaches 1.0, at which point the model trains on the full dataset.

Comparison of different competence functions over time. The square root schedule (c_sqrt) was found to be the most effective.

Experimental Results

The framework was evaluated on three standard NMT benchmarks: IWSLT-15 (English → Vietnamese), IWSLT-16 (French → English), and WMT-16 (English → German). The authors tested several competence functions, finding that a "square root" schedule—where the model quickly gains competence initially and then slows down as it reaches the hardest examples—performed best.

Key Insights

  • Speedup: On the large-scale WMT-16 task, the curriculum-based Transformer reached the baseline's final accuracy in 70% less time.
  • Accuracy: The method consistently improved translation quality. The English-Vietnamese Transformer model saw a jump of 2.2 BLEU points over the non-curriculum baseline.
  • Heuristic-Free Training: Remarkably, this curriculum approach can replace complex learning rate schedules. Models trained with a curriculum and a simple, constant learning rate outperformed models trained with the standard, highly-tuned "Transformer schedule."
  • Robustness: Curriculum learning acts as a powerful regularizer, making Transformers less sensitive to the volatile "warm-up" phase of training.

Conclusion and Future Work

Competence-based curriculum learning provides a simple yet powerful way to accelerate NMT training while improving final model quality. Because difficulty scores are calculated once during preprocessing, the method adds negligible overhead. While current metrics like length and rarity are effective, future work may explore "dynamic" difficulty, where the model's own current loss on a sample determines its difficulty in real-time. This framework is generic and holds promise for other natural language processing tasks and computer vision.

Summary updated

BibTeX
@inproceedings{platanios2019competence,
  author = {Emmanouil Antonios Platanios and Otilia Stretcu and Graham Neubig and Barnabás Póczos and Tom M. Mitchell},
  title = {{Competence-based Curriculum Learning for Neural Machine Translation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1119},
}
Figure