When BERT Plays the Lottery, All Tickets Are Winning
Preprint
Abstract
Large Transformer-based models were 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, using both structured and magnitude pruning. For fine-tuned BERT, we show that (a) it is possible to find subnetworks achieving performance that is comparable with that of the full model, and (b) similarly-sized subnetworks sampled from the rest of the model perform worse. Strikingly, with structured pruning even the worst possible subnetworks remain highly trainable, indicating that most pre-trained BERT weights are potentially useful. We also study the "good" subnetworks to see if their success can be attributed to superior linguistic knowledge, but find them unstable, and not explained by meaningful self-attention patterns.Keywords
All Related Versions
This publication has 21 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
- Attention is Not Only a Weight: Analyzing Transformers with Vector Norms2020
- Learning Music Helps You Read: Using Transfer to Study Linguistic Structure in Language Models2020
- Information-Theoretic Probing with Minimum Description Length2020
- Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learning2020
- Neural Network Acceptability JudgmentsTransactions of the Association for Computational Linguistics, 2019
- Country-level social cost of carbonNature Climate Change, 2018