Abstract
Pretraining sentence encoders with language modeling and related unsupervised tasks has recently been shown to be very effective for language understanding tasks. By supplementing language model-style pretraining with further training on data-rich supervised tasks, such as natural language inference, we obtain additional performance improvements on the GLUE benchmark. Applying supplementary training on BERT (Devlin et al., 2018), we attain a GLUE score of 81.8—the state of the art (as of 02/24/2019) and a 1.4 point improvement over BERT. We also observe reduced variance across random restarts in this setting. Our approach yields similar improvements when applied to ELMo (Peters et al., 2018a) and Radford et al. (2018)'s model. In addition, the benefits of supplementary training are particularly pronounced in data-constrained regimes, as we show in experiments with artificially limited training data.
Introduction
The "pretrain-then-fine-tune" paradigm has become the standard for achieving high performance in Natural Language Processing (NLP). Models like BERT, GPT, and ELMo are first pretrained on massive unlabeled text corpora to learn general linguistic representations and then fine-tuned on specific target tasks. However, this process can be highly unstable when the target task has limited training data, often resulting in high variance across runs or "degenerate" models that fail to perform better than random guessing.
This paper introduces STILTs (Supplementary Training on Intermediate Labeled-data Tasks), a method designed to bridge the gap between unsupervised pretraining and data-scarce target tasks by inserting a data-rich supervised training phase.
Methodology
The STILTs pipeline follows a sequential transfer learning approach:
- Unsupervised Pretraining: Utilizing standard pretrained models (BERT, GPT, or ELMo).
- Intermediate Fine-Tuning: Training the model on a data-rich supervised task, such as Natural Language Inference (MNLI/SNLI) or question paraphrase detection (QQP).
- Target Fine-Tuning: Final fine-tuning on the specific, often data-scarce, target task.
To evaluate the robustness of this approach, the authors tested it on the GLUE benchmark and created artificially constrained datasets (limiting training sets to 1k or 5k examples) to simulate extreme data scarcity.
Results and Analysis
State-of-the-Art Performance
STILTs consistently improves performance across different base architectures. Most notably, BERT on STILTs achieved an overall GLUE score of 81.8, setting a new state-of-the-art at the time of publication. GPT also saw significant gains, with its GLUE score rising from 74.1 to 76.9, effectively closing the gap with larger models.
Stability in Data-Constrained Regimes
One of the most significant advantages of STILTs is the stabilization of the fine-tuning process. In low-data regimes (1k or 5k examples), standard fine-tuning is prone to failure. STILTs acts as a powerful anchor, drastically reducing the number of degenerate runs and lowering variance across random restarts. For example, on the SST task with 5k examples, STILTs reduced the number of failed runs from five to just one.
Discussion
The effectiveness of STILTs depends heavily on task alignment. Structural similarity between the intermediate and target tasks—such as both being sentence-pair classification tasks—yields the greatest benefits. For instance, using MNLI as an intermediate task for the RTE target task resulted in a massive performance boost. Conversely, mismatched tasks can occasionally lead to negative transfer, particularly on single-sentence tasks like CoLA.
Furthermore, the authors found that the sequential STILTs approach outperformed simultaneous multitask learning, suggesting that focusing the model's optimization on a single data-rich task before moving to the target task is a superior strategy for transfer learning.
Conclusion
STILTs offers a straightforward and effective method for improving both the performance and reliability of large-scale sentence encoders. By leveraging intermediate supervised data, researchers can achieve state-of-the-art results and more stable training, particularly when faced with limited target-task data. Future work will focus on systematically mapping task relationships to optimize the selection of intermediate tasks.
Summary updated