Papers › The Lottery Ticket Hypothesis for Pre-trained BERT Networks

The Lottery Ticket Hypothesis for Pre-trained BERT Networks

23 Jul 2020NeurIPS 2020 12arXiv:2007.12223archive 2025-07-28

Tianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu, Yang Zhang, Zhangyang Wang, Michael Carbin

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2007.12223")

Code

Syntology Ran 8 of 11 code samples harvested from 2 repositories linked to this paper; 3 have no recorded run. Of those that ran: 3 ran · honoured contract; 5 ran · our draft was wrong.

By repository: official repository: 11 samples from 2 repositories, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

TAMU-VITA/BERT-Tickets officialmentioned in papermentioned on GitHubpytorchMIT report
VITA-Group/BERT-Tickets officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 8 ran; 3 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
5ran · our draft was wrong
3unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

to_list TAMU-VITA/BERT-Tickets/LT_squad.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9df40357afea56cc · report
whitespace_tokenize TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/tokenization_bert.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · cf9ffa02a42184af · report
gelu TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/modeling_tf_bert.py official repository ran · honoured contract fingerprinted MIT (permissive) · 9bc31d06256e1691 · report
load_vocab TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/tokenization_bert.py official repository ran · our draft was wrong MIT (permissive) · e7fbc7a74a3457c7 · report
mish TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/modeling_bert.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 060527bb34794b59 · report
rewind VITA-Group/BERT-Tickets/LT_pretrain.py official repository ran · our draft was wrong MIT (permissive) · 654ccfd8e73d5328 · report
see_weight_rate VITA-Group/BERT-Tickets/LT_pretrain.py official repository ran · honoured contract MIT (permissive) · a6e4665d84898ce9 · report
swish TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/modeling_tf_bert.py official repository ran · honoured contract fingerprinted MIT (permissive) · 86d13b9f67274f19 · report
convert_pytorch_checkpoint_to_tf TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/convert_bert_pytorch_checkpoint_to_original_tf.py official repository unverified MIT (permissive) · d772ba25f4de22b0 · report
gelu_new TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/modeling_tf_bert.py official repository unverified MIT (permissive) · 83257a2b015273fa · report
load_tf_weights_in_bert TAMU-VITA/BERT-Tickets/transformers-master/src/transformers/modeling_bert.py official repository unverified MIT (permissive) · 0766f48ad6e01b56 · report

Tasks

Language ModelingLanguage ModellingMasked Language Modeling

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections