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.
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.
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