Introduction
Deep learning models, particularly Transformer-based architectures, have revolutionized Natural Language Understanding (NLU). However, these models often exhibit a lack of robustness when encountering out-of-distribution (OOD) data or when tasked with zero-shot (ZS) cross-lingual transfer. Traditional training regimes treat all data points equally, regardless of their complexity or the model's current state of learning.
Curriculum Learning (CL) offers a more nuanced approach, inspired by the human educational process of mastering simple concepts before progressing to complex ones. The primary challenge in CL is defining "difficulty" in a way that aligns with a model's internal learning process. This paper introduces TD-CL, a framework that leverages a model's own "training dynamics" to rank example difficulty, leading to significant improvements in generalization and training efficiency.
Methodology: Training Dynamics as Difficulty Metrics
The core innovation of TD-CL lies in using statistics collected during a "teacher" model's training to guide a "student" model. These Training Dynamics (TD) include:
- Confidence: The mean probability assigned to the gold label across training epochs.
- Correctness: The frequency with which the model predicts the correct label.
- Variability: The standard deviation of the predicted probability for the gold label, serving as a proxy for the ambiguity of an example.
The framework operates in a two-stage Transfer Teacher CL setup. First, a teacher model is trained on the target dataset to record these dynamics. Second, a student model—typically of the same architecture—is trained using a pacing function that introduces examples in an "easy-to-hard" order based on the teacher's recorded metrics.
Notably, the researchers introduced modifications to standard schedulers by incorporating Variability. They hypothesized that once a model masters the "easy" (high confidence) data, it should focus on "ambiguous" examples (high variability) to sharpen its decision boundaries before finally tackling the truly "hard" (low confidence) examples.
Experimental Setup
The researchers evaluated TD-CL across a diverse set of NLU tasks and benchmarks:
- Natural Language Inference (NLI): MNLI, RTE, QNLI, and XNLI (for cross-lingual).
- Paraphrase Identification: PAWS and PAWS-X.
- Commonsense Causal Reasoning: SIQA and XCOPA.
- Document Classification: MLDoc.
- Generalization Benchmarks: To test OOD performance, the study utilized HANS (for RTE), NLI Diagnostics (for MNLI), Adversarial SQuAD (for QNLI), and TwitterPPDB (for PAWS).
The experiments primarily utilized RoBERTa-base for monolingual tasks and XLM-R-base for cross-lingual evaluations.
Key Insights and Results
The study yielded several critical findings regarding the efficacy of model-centric curricula:
1. Superiority of Model-Centric Metrics
TD-CL consistently outperformed human-centric heuristics, such as sentence length or vocabulary rarity. This suggests that what a human perceives as "simple" does not always align with the numerical difficulty a Transformer faces when representing a specific linguistic pattern. Furthermore, TD-CL resulted in smoother training curves compared to other model-based metrics like "Cross-Review," which often cause performance dips when introducing hard examples.
2. Enhanced Out-of-Distribution Generalization
The most significant impact of TD-CL was observed in OOD scenarios. The framework achieved up to an 8.5% improvement on the TwitterPPDB dataset compared to standard random-order training. This indicates that a structured learning path helps the model develop more robust features that generalize beyond the specific biases of the training set.
3. Efficiency and Convergence
TD-CL demonstrated a substantial reduction in training time. On average, models reached peak performance 20% faster than baselines, with some tasks experiencing speedups as high as 51%. Furthermore, the "teacher" model does not require full convergence; dynamics collected from just 3 epochs were sufficient to effectively guide the student through a full training cycle.
4. Cross-Lingual Transfer
In zero-shot cross-lingual settings, where a model is trained in English and tested on other languages, TD-CL provided a performance boost of up to 1.2% on XNLI. This suggests that the curriculum helps the model learn language-agnostic representations more effectively.
Discussion and Limitations
While TD-CL shows clear benefits for generalization and efficiency, its impact on "in-distribution" performance was minimal. This suggests that curriculum learning's primary value lies in enhancing robustness rather than increasing raw accuracy on familiar data.
Several areas remain for future exploration:
- Model Scale: Experiments were conducted on "base" sized models; it remains to be seen how these dynamics scale for Large Language Models (LLMs).
- Offline Bottleneck: The current method requires training a teacher first. Transitioning to "online" or dynamic curricula could further reduce computational overhead.
- Task Variety: The study focused on classification; future work could explore generative tasks like summarization or dialogue.
Conclusion
TD-CL provides a robust, model-centric framework for curriculum learning that significantly improves NLU model performance on OOD and cross-lingual tasks. By leveraging internal training dynamics like confidence and variability, researchers can create more efficient and resilient language models.
Summary updated