When BERT Plays the Lottery, All Tickets Are Winning
Preprint
Abstract
Much of the recent success in NLP is due to the large Transformer-based models such as BERT (Devlin et al, 2019). However, these models have been shown to be reducible to a smaller number of self-attention heads and layers. We consider this phenomenon from the perspective of the lottery ticket hypothesis. For fine-tuned BERT, we show that (a) it is possible to find a subnetwork of elements that achieves performance comparable with that of the full model, and (b) similarly-sized subnetworks sampled from the rest of the model perform worse. However, the "bad" subnetworks can be fine-tuned separately to achieve only slightly worse performance than the "good" ones, indicating that most weights in the pre-trained BERT are potentially useful. We also show that the "good" subnetworks vary considerably across GLUE tasks, opening up the possibilities to learn what knowledge BERT actually uses at inference time.Keywords
All Related Versions
This publication has 15 references indexed in Scilit:
- A Primer in BERTology: What We Know About How BERT WorksTransactions of the Association for Computational Linguistics, 2020
- Getting Closer to AI Complete Question Answering: A Set of Prerequisite Real TasksProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and EntailmentProceedings of the AAAI Conference on Artificial Intelligence, 2020
- TinyBERT: Distilling BERT for Natural Language Understanding2020
- Neural Network Acceptability JudgmentsTransactions of the Association for Computational Linguistics, 2019
- Revealing the Dark Secrets of BERT2019
- Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inference2019
- A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference2018
- Annotation Artifacts in Natural Language Inference Data2018
- SQuAD: 100,000+ Questions for Machine Comprehension of Text2016