Pretrained Transformers Improve Out-of-Distribution Robustness
Preprint
Abstract
Although pretrained Transformers such as BERT achieve high accuracy on in-distribution examples, do they generalize to new distributions? We systematically measure out-of-distribution (OOD) generalization for seven NLP datasets by constructing a new robustness benchmark with realistic distribution shifts. We measure the generalization of previous models including bag-of-words models, ConvNets, and LSTMs, and we show that pretrained Transformers' performance declines are substantially smaller. Pretrained transformers are also more effective at detecting anomalous or OOD examples, while many previous models are frequently worse than chance. We examine which factors affect robustness, finding that larger models are not necessarily more robust, distillation can be harmful, and more diverse pretraining data can enhance robustness. Finally, we show where future work can improve OOD robustness.Keywords
All Related Versions
This publication has 23 references indexed in Scilit:
- Compressing Large-Scale Transformer-Based Models: A Case Study on BERTTransactions of the Association for Computational Linguistics, 2021
- Natural Adversarial Examples2021
- Self-Training With Noisy Student Improves ImageNet Classification2020
- Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Deep Weighted Averaging Classifiers2019
- Adversarial Examples for Evaluating Reading Comprehension Systems2017
- Image-Based Recommendations on Styles and Substitutes2015
- Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank2013
- Unbiased look at dataset bias2011
- NewsWeeder: Learning to Filter Netnews1995