The Lottery Ticket Hypothesis for Pre-trained BERT Networks
About
In natural language processing (NLP), enormous pre-trained models like BERT have become the standard starting point for training on a range of downstream tasks, and similar trends are emerging in other areas of deep learning. In parallel, work on the lottery ticket hypothesis has shown that models for NLP and computer vision contain smaller matching subnetworks capable of training in isolation to full accuracy and transferring to other tasks. In this work, we combine these observations to assess whether such trainable, transferrable subnetworks exist in pre-trained BERT models. For a range of downstream tasks, we indeed find matching subnetworks at 40% to 90% sparsity. We find these subnetworks at (pre-trained) initialization, a deviation from prior NLP research where they emerge only after some amount of training. Subnetworks found on the masked language modeling task (the same task used to pre-train the model) transfer universally; those found on other tasks transfer in a limited fashion if at all. As large-scale pre-training becomes an increasingly central paradigm in deep learning, our results demonstrate that the main lottery ticket observations remain relevant in this context. Codes available at https://github.com/VITA-Group/BERT-Tickets.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image Classification | CIFAR-10 (test) | Accuracy94.77 | 3381 | |
| Natural Language Understanding | GLUE (dev) | SST-2 (Acc)91.86 | 504 | |
| Natural Language Understanding | GLUE (test) | SST-2 Accuracy91.9 | 416 | |
| Question Answering | SQuAD v1.1 (dev) | F1 Score86.54 | 375 | |
| Text Classification | AGNews | Clean Accuracy93.7 | 118 | |
| Text Classification | IMDB | Clean Accuracy94 | 32 | |
| Image Classification | ImageNet (test) | Accuracy76.05 | 29 | |
| Text Classification | SST-2 | Clean Accuracy92.1 | 6 | |
| Image Classification | CIFAR-100 (test) | Sparsity87 | 5 |