Skip to main content
QUICK REVIEW

[Paper Review] When BERT Plays the Lottery, All Tickets Are Winning

Sai Prasanna, Anna Rogers|arXiv (Cornell University)|May 1, 2020
Topic ModelingComputer Science56 references36 citations
TL;DR

The paper investigates the lottery ticket hypothesis for fine-tuned BERT, showing that good subnetworks can match full-model performance under pruning, while many subnetworks remain surprisingly trainable even when pruned. It also finds that good subnetworks are not stable and may not reflect clear linguistic specialization.

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.

Motivation & Objective

  • Assess whether BERT fine-tuning contains trainable subnetworks (winning tickets) under magnitude pruning.
  • Compare magnitude-based pruning and structured pruning on BERT self-attention heads and MLPs across GLUE tasks.
  • Determine if the best subnetworks correspond to linguistically meaningful patterns or are task-specific and unstable.
  • Evaluate whether “bad” subnetworks can be retrained to achieve strong performance.

Proposed method

  • Fine-tune BERT-base lowercase on 9 GLUE tasks.
  • Apply iterative magnitude pruning removing 10% of lowest-magnitude weights until dev performance falls below 90% of full model.
  • Apply structured pruning by masking attention heads and MLP blocks using importance scores derived from backward passes.
  • Measure performance of pruned subnetworks after pruning and after re-initializing with pre-trained weights and re-fine-tuning.
  • Compare pruned subnetworks to random subnetworks of equal size and to baseline architectures.
  • Analyze stability of “good” subnetworks across random seeds and examine attention-pattern distributions of surviving heads.

Experimental results

Research questions

  • RQ1Can subnetworks (winning tickets) within BERT reach comparable performance to the full model after pruning?
  • RQ2How do magnitude-based pruning and structured pruning compare in retaining performance and achieving compression?
  • RQ3Are the best subnetworks associated with interpretable linguistic knowledge or with task-specific heuristics?
  • RQ4Are the identified good subnetworks stable across different random initializations during fine-tuning?

Key findings

  • Good subnetworks (from both pruning methods) can reach about 90% of full-model performance on GLUE tasks.
  • Structured pruning often yields larger compression than magnitude pruning, yet both methods retain substantial performance.
  • Even the worst subnetworks (under structured pruning) can be fine-tuned to strong performance, suggesting many pre-trained weights are broadly useful.
  • Good subnetworks are not stable across random seeds; their selection does not consistently align with distinct linguistic roles of individual attention heads.
  • Randomly selected s-pruned subnetworks can perform nearly as well as good subnetworks on several tasks, indicating many weights carry transferable usefulness beyond clearly interpretable linguistic patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.