Foundations to Frontier
Tests
B. Statistical Learning Theory › B4 Theory of deep learning

The Lottery Ticket Hypothesis

Trained networks can usually lose most of their weights, removed by magnitude pruning plus a short fine-tune, with little loss in accuracy. The lottery ticket hypothesis (Frankle and Carbin, 2019) claims more: a dense randomly initialized network contains a sparse 'winning ticket' that, trained in isolation from its original initialization, matches the full network. This topic covers magnitude and iterative pruning, the ticket protocol (rewind to θ₀, or to an early iterate θ_k as 'late rewinding'), the controls that test it (random reinitialization, random masks), and the debates (Liu et al., 2019; Frankle et al., 2020; strong tickets and supermasks). The exercises measure pruning and fine-tuning, and run the full lottery protocol at small scale, with an honest result.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Most of the network is spare

After a big network is trained, you can often delete 80–90% of its connections, the ones with the smallest weights, and after a little re-training it works almost as well. So why train the big one at all? The lottery ticket hypothesis offers an intriguing answer: the big random network is like buying millions of lottery tickets at once. Somewhere inside is a small sub-network that happened to start with “lucky” initial weights. Training the big network is how you find the winning ticket.

Prune the small weights, then fine-tune
30 of 60 weights kept · MSE dense 0.0001 · pruned 0.2697 · pruned + fine-tuned 0.0032
Orange: the pruned network with no retraining; blue: after 300 Adam steps on the surviving weights only (mask fixed). Big networks are heavily redundant: removing half the weights hurts, but a short fine-tune recovers. The lottery-ticket hypothesis goes further, claiming the sparse subnetwork could have been trained from the start if you knew its mask and its original initial weights. Prune too far and nothing recovers.
Why engineers care

Pruning is how large models fit onto flight computers, drones and rovers with tight power and memory budgets. Understanding when sparse networks train well also guides efficient architectures and sparse training methods.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Magnitude pruning removes…
  2. 2. After pruning, accuracy is usually restored by…
  3. 3. The lottery ticket is…

Level 1: Beginner

★★☆☆☆ Basic⏱ 25 minSecondary-school mathematics: arithmetic and elementary algebra.

Pruning vocabulary

  • Mask m∈{0,1}Pm\in\{0, 1\}^P: which weights survive. The network uses m⊙θm\odot\theta.
  • Sparsity: the fraction of weights removed, 1−∥m∥0/P1 - \|m\|_0/P.
  • Magnitude pruning: keep the largest |θ| (globally or per layer).
  • Iterative magnitude pruning (IMP): train, prune 20%, retrain, repeat. After k rounds, a fraction 0.8k0.8^k remains.

The ticket protocol

  1. Initialize θ0\theta_0 and train to θT\theta_T.
  2. Prune by magnitude of θT\theta_T to get mask m.
  3. Rewind the survivors to their initial values, m⊙θ0m\odot\theta_0, and train again.
  4. Compare with the controls: random reinit (m⊙θ0′m\odot\theta_0' with fresh θ0′\theta_0') and a random mask of equal sparsity.

The hypothesis predicts that the ticket matches the dense net’s accuracy and beats both controls.

📝 Quick check (Level 1)
0/3 answered
  1. 1. Fraction left after 10 IMP rounds of 20%:
  2. 2. The key control for the ticket is…
  3. 3. Sparsity when 20 of 100 weights remain:

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 35 minUndergraduate students and practising engineers.

What was found

  • Small vision networks (LeNet, Conv-2/4/6): IMP tickets at 80–95% sparsity match or beat the dense network, while random reinit falls behind (Frankle and Carbin, 2019).
  • Larger networks (ResNet-50, VGG on ImageNet): rewinding to θ₀ fails. Late rewinding to an early iterate θk\theta_k (k ≈ 0.1–7% of training) works. The connection is to linear mode connectivity: tickets appear once training becomes stable to SGD noise (Frankle et al., 2020).
  • “Rethinking the value of pruning” (Liu et al., 2019): with careful training, random reinit of a pruned architecture often matches the ticket. What matters is the architecture (the mask), not the weights.
  • Strong tickets: a large enough random network contains a sub-network that is good without any training (Ramanujan et al., 2020; Malach et al., 2020).

Pruning without retraining

One-shot pruning of a small trained network without fine-tuning can be catastrophic: the remaining weights were co-adapted with the removed ones. Fine-tuning (or pruning gradually during training) is essential.

🐍 Exercise 1: prune, then fine-tune
Train a 2→40→40→1 ReLU network with Adam, prune each hidden layer by magnitude to 50%, 20%, 10% and 5% of its weights, and measure test MSE with no retraining and after fine-tuning the surviving weights with the mask fixed.
📝 Quick check (Level 2)
0/3 answered
  1. 1. For large networks, tickets need…
  2. 2. Liu et al. (2019) argued that what matters most is…
  3. 3. A 'strong' lottery ticket performs well…

Level 3: Advanced

★★★★☆ Advanced⏱ 35 minGraduate level, with full derivations and proofs.

Stability and linear mode connectivity

Train two copies from the same θk\theta_k with different SGD noise to θT(1),θT(2)\theta_T^{(1)}, \theta_T^{(2)}. If the loss along the segment (1−t)θT(1)+tθT(2)(1 - t)\theta_T^{(1)} + t\theta_T^{(2)} has no barrier, training is stable from θk\theta_k. Frankle et al. (2020) found that IMP subnetworks reach full accuracy exactly when they are stable in this sense. At k = 0 that holds only for small networks, which explains why late rewinding is needed at scale.

Why strong tickets exist (idea)

A target network’s weight w can be approximated by a sub-selection of random weights: with enough random candidates, some subset sums to within ε of w (a subset-sum argument). Pruning a random network about polylog(1/ε) times wider than the target therefore approximates any target network without training (Pensia et al., 2020).

Caveats

  • Unstructured sparsity saves memory but often not time on standard hardware. Structured pruning (whole neurons or channels) speeds inference.
  • Ticket results are sensitive to learning-rate schedules, scale and the choice of controls. Always run the reinit and random-mask baselines.
📝 Quick check (Level 3)
0/3 answered
  1. 1. Training is 'stable' from θ_k if two noisy runs from θ_k are…
  2. 2. Strong-ticket existence proofs use…
  3. 3. Unstructured sparsity mainly saves…

Level 4: Expert

★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.

Pruning and tickets, measured

Exercise 1 (2→40→40→1, dense test MSE 0.0014; target variance ≈ 0.24). Kept fraction → (no fine-tune, fine-tuned):

kept no fine-tune fine-tuned
50% 0.414 0.0028
20% 0.211 0.0073
10% 0.229 0.135
5% 0.259 0.145

Without retraining, even 50% pruning is catastrophic, worse than predicting the mean. A 300-step fine-tune recovers almost everything down to 20% of the weights, then fails.

Exercise 2: the lottery protocol (2→24→24→1, 30% of hidden weights kept, mean of 3 seeds). Test MSE: dense 0.0017, ticket (rewind to θ₀) 0.0090, late rewind (θ₅₀) 0.0053, random reinit 0.0046, random mask 0.0051. At this scale, with Adam and a smooth regression task, the rewound ticket is worse than random reinitialization, and late rewinding only matches it. This agrees with Liu et al. (2019) and with the finding that tickets at θ₀ are fragile. The hypothesis is about a regime (specific architectures, optimizers and scales), not a universal law.

🐍 Exercise 2 (research): does the ticket win?
Run the full lottery-ticket protocol at 30% of hidden weights kept: dense training, magnitude mask, then retrain from the original init (ticket), from an early iterate (late rewind), from a fresh init (reinit), and with a random mask. Average over seeds and decide whether the ticket wins.

Pruning in AI, robotics and aerospace

  • Onboard inference: structured pruning plus quantization fits perception networks on radiation-tolerant flight processors.
  • Sparse training (RigL, dynamic sparsity) trains sparse from the start, saving compute.
  • Verification: sparser ReLU networks have fewer regions to verify.
  • Always test controls: a pruning gain that random masks also achieve is a statement about architecture, not about lucky weights.

References

  1. J. Frankle, M. Carbin (2019). “The lottery ticket hypothesis: finding sparse, trainable neural networks.” ICLR.
  2. J. Frankle, G. K. Dziugaite, D. M. Roy, M. Carbin (2020). “Linear mode connectivity and the lottery ticket hypothesis.” ICML.
  3. Z. Liu, M. Sun, T. Zhou, G. Huang, T. Darrell (2019). “Rethinking the value of network pruning.” ICLR.
  4. V. Ramanujan, M. Wortsman, A. Kembhavi, A. Farhadi, M. Rastegari (2020). “What’s hidden in a randomly weighted neural network?” CVPR.
  5. A. Pensia, S. Rajput, A. Nagle, H. Vishwakarma, D. Papailiopoulos (2020). “Optimal lottery tickets via SubsetSum.” NeurIPS.
  6. S. Han, J. Pool, J. Tran, W. J. Dally (2015). “Learning both weights and connections for efficient neural networks.” NeurIPS.