Introduction
Modern Neural Machine Translation (NMT) systems, particularly those based on the Transformer architecture, present significant training challenges. These models often require massive datasets and a complex array of optimization heuristics—such as specialized learning rate warm-up schedules and large batch sizes—to ensure convergence and avoid poor local optima. This paper addresses the inefficiency of uniform sampling, where models are exposed to random training examples regardless of their complexity. Drawing an analogy to human education, the authors propose that a neural network should master basic syntax and common vocabulary before being introduced to highly complex or technical sentences.
The Competence-based Framework
The proposed framework introduces a "competence-based" curriculum that presents training examples in an "easy-to-hard" order. This system is governed by two primary components: Difficulty and Competence.
Difficulty and Competence Metrics
- Difficulty ($d$): Each training sample is assigned a score based on intuitive heuristics. The study primarily explores Sentence Length (shorter is easier) and Word Rarity (sentences with common words are easier).
- Competence ($c(t)$): This function represents the proportion of the training data the model is prepared to process at training step $t$. The competence starts near zero and monotonically increases to 1 (the full dataset) over a predefined number of steps $T$. The authors found that a Square Root competence function—which slows the introduction of harder examples as the dataset grows—outperforms a simple linear progression.
The Sampling Algorithm
At each training step, the model determines its current competence level. It then samples exclusively from the "easiest" portion of the dataset, defined by the current competence value. As training progresses and competence increases, the sampling pool expands to include more difficult examples until the entire dataset is available.
Experimental Evaluation
The framework was evaluated across three standard NMT benchmarks: IWSLT-15 (English-Vietnamese), IWSLT-16 (French-English), and WMT-16 (English-German).
Key Results
- Accelerated Training: The curriculum approach achieved up to a 70% reduction in training time for Transformers. Models often reached baseline peak performance in less than half the time.
- Improved Translation Quality: Beyond speed, the models demonstrated superior accuracy, with gains of up to 2.2 BLEU points on IWSLT and 1.45 BLEU on the large-scale WMT dataset.
- Heuristic Replacement: A significant finding is that this curriculum can replace finicky learning rate schedules (like the "Noam" scheduler). The gradual introduction of difficulty naturally guides the model through unstable early training phases.
Conclusion
Competence-based curriculum learning provides a principled alternative to traditional optimization "tricks" in NMT. By building a strong foundational representation using easy examples, the model avoids early local optima and converges faster to better solutions. While current metrics like length and rarity are effective, future work may explore more sophisticated difficulty measures based on model loss or alignment quality to further enhance performance across diverse machine learning domains.
Summary updated