Abstract
Neural Machine Translation (NMT) models are notoriously data-intensive, often underperforming in low-resource scenarios where parallel corpora are scarce. While Curriculum Learning (CL) typically addresses this by ordering training samples from simple to complex at the sentence level, this approach often fails in data-scarce environments due to a lack of diverse "easy" examples. We propose Token-wise Curriculum Learning (TC), a strategy that focuses on mastering sentence prefixes before progressing to full sequences. This method aligns training with the autoregressive nature of NMT and maintains high data diversity throughout the learning process. Our results demonstrate significant improvements in BLEU scores across multiple low-resource benchmarks and language modeling tasks.
Introduction
In high-resource settings, NMT models achieve state-of-the-art performance. However, for many of the world's languages, available training data is insufficient to train robust models from scratch. Traditional Curriculum Learning (CL) attempts to mitigate this by starting with short, simple sentences. In low-resource settings, however, filtering for "easy" sentences severely limits the diversity of the training set, leading to early overfitting or stalled convergence. Furthermore, NMT models generate text from left to right; errors made at the beginning of a sentence propagate through the sequence. Sentence-level CL ignores this internal difficulty gradient, treating the entire sequence as a single unit of difficulty.
Methodology: Token-wise Curriculum Learning
To address these limitations, we introduce Token-wise Curriculum Learning (TC). Rather than filtering entire sentences, TC modifies the model's objective during the early stages of training to focus on the beginning of every sentence in the dataset. This ensures the model is exposed to the full breadth of the vocabulary and source-side structures from the outset.
We propose two primary implementations of TC:
- Hard Curriculum: The model calculates loss only for a prefix of length $\ell_i$ at iteration $i$. This window expands linearly until it encompasses the full target sentence.
- Soft Curriculum: The model processes the entire sentence but applies a decaying weight to the loss of later tokens. Early tokens receive high weights, which gradually equalize over time. This "soft" approach allows the model to prioritize prefixes while maintaining exposure to sentence-ending markers like
<EOS>.
Data Diversity and Inference Alignment
A key insight of this work is that diversity is often more critical than simplicity in low-resource AI. By utilizing prefixes of all available sentences rather than a subset of short sentences, TC provides the model with a significantly higher number of unique n-grams (trigrams) early in training. This prevents the model from being bottlenecked by a lack of linguistic variety.
Additionally, TC aligns training with the inherent structural reality of autoregressive inference. Since the beginning of a sentence is naturally easier to predict (as there is no accumulated error from previous steps), focusing on these tokens first allows the model to build a stable foundation before tackling the more complex task of long-range dependency generation.
Experimental Results
We evaluated TC across several low-resource benchmarks, including IWSLT14 (German-English) and IWSLT15 (English-Vietnamese).
- Performance Gains: TC consistently outperformed both standard training and sentence-level CL, yielding improvements of 0.5 to 0.8 BLEU points.
- Extreme Scarcity: In scenarios using only 1% of available data, TC showed a dramatic improvement of over 3 BLEU points in transfer learning contexts.
- High-Resource Synergy: In high-resource tasks (WMT16 English-German), combining TC with sentence-level CL produced the best results, suggesting that the two methods are complementary.
- Generalizability: Beyond NMT, the method reduced perplexity in language modeling tasks on the Penn Treebank and WikiText-2 datasets, confirming its utility for general sequence generation.
Conclusion and Future Work
Token-wise Curriculum Learning offers a robust alternative to traditional CL for NMT, particularly when data is scarce. By focusing on the "easy" parts of every sentence rather than a few "easy" sentences, models achieve better generalization and higher performance. Future research will explore adaptive scheduling—where the prefix window expands based on real-time model competence—and the application of TC to non-autoregressive translation models.
Summary updated