Model Efficiency & Scaling2019intermediate12 min read
The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks
فرضية تذكرة اليانصيب: إيجاد شبكات عصبية مُبعثرة قابلة للتدريب
Frankle, J. · Carlin, M. — ICLR
The problem
Neural networks are heavily over-parameterized: they have far more weights than they need. Techniques like can remove 90% of a trained network's parameters without hurting — but only after the expensive is done. The pruned network cannot be trained from scratch with random new weights; it seems to need the full training run first. This means we always pay the cost of training the big model, even though most of its parameters turn out to be unnecessary.
The contribution
The Lottery Ticket Hypothesis: a randomly-initialized dense network contains a sparse subnetwork that — when trained in isolation with its original initialization — can match the test accuracy of the full network in at most the same number of training iterations. The authors propose iterative magnitude pruning (IMP) to find these "winning tickets": train, prune the smallest weights, reset survivors to their initial values, and repeat. On MNIST (LeNet) and CIFAR-10 (Conv-2/4/6, VGG, ResNet), they consistently find winning tickets at 10–20% of the original size that train faster and sometimes reach higher accuracy.
The impact
This paper reshaped our understanding of training. It showed that the value of over-parameterization is not in having many parameters during inference, but in having many chances to "win the initialization lottery." It launched an entire research program — stabilizing lottery tickets at scale, finding tickets without training, the strong lottery ticket hypothesis, and pruning-at-initialization methods. It also challenged the assumption that architecture and are the only things that matter, placing initialization as a first-class research topic.
Imagine a company that hires 1,000 employees for a project, but only 100 of them actually do meaningful work. After the project succeeds, a manager discovers which 100 made the difference. The twist: if you could go back and hire only those 100 from day one — giving them the exact same desks, tools, and starting conditions — they would deliver the same result without the other 900 ever showing up.
That is the lottery ticket hypothesis for neural networks: the large network is the company that over-hires, and hidden inside it is a tiny subnetwork that can do the full job, provided it starts with its original "lucky" initialization.
The paradox: networks are too big, yet pruning alone is not enough
By 2018, deep networks were routinely over-parameterized. Research by Han et al. (2015) showed that 90% or more of trained weights could be pruned away using without hurting accuracy. The remaining 10% was enough to represent everything the network had learned.
But there was a catch. If you took that pruned architecture and tried to retrain it from scratch with new random weights, performance collapsed. The pruned structure alone was not enough — it apparently needed the specific values that emerged from training the full, unpruned network. Pruning was therefore only a post-training compression trick, not a way to reduce the cost of training itself.
This created a frustrating paradox: we know 90% of parameters are unnecessary after training, but we seem to need them during training. The expensive training run appears to be essential for figuring out which 10% to keep — and then those parameters cannot even be reused from scratch.
The hypothesis: winning tickets exist inside every network
Frankle and Carlin asked a different question: what if the pruned network can train from scratch — but only if we give it back its original initial weights, not new random ones?
Their answer is the Lottery Ticket Hypothesis:
A randomly-initialized, dense neural network contains a subnetwork that is initialized such that — when trained in isolation — it can match the test accuracy of the original network after training for at most the same number of iterations.
The intuition comes from lottery tickets. A large network is like buying thousands of tickets: most connections are losers, but some are winners. The winners are connections whose initial weights happen to be positioned in the loss landscape such that can carry them to a good solution. The full network succeeds because it contains enough winning tickets. The winning subnetwork, when retrained with those same lucky initial values, still wins.
The algorithm: iterative magnitude pruning
How do we find winning tickets? The authors propose a four-step process. Start with a dense network with random initial weights . First, train it to completion, arriving at final weights . Second, prune the of weights with the smallest magnitudes — these are the least important connections. Third, create a binary mask that marks which weights survived. Fourth, and this is the critical step, reset the surviving weights to their original values , not the trained values. The result is the winning ticket: .
For one-shot pruning, this is done once. But the authors found better results with iterative pruning: instead of pruning all at once, prune a small fraction (e.g. 20%) per round, retrain, prune again, retrain, and repeat. Each round removes the lowest-magnitude weights from what remains. This gradual approach finds sparser winning tickets than one-shot pruning.
What makes a winning ticket win?
The critical experiment is the comparison between three conditions. First, the winning ticket: the pruned structure retrained with its original initialization . Second, a random ticket: the same pruned structure but with new random weights. Third, the full unpruned network as a baseline.
The results are striking. Winning tickets at 10–20% of original size match or exceed the full network's accuracy. They also often converge faster — needing fewer training iterations. Random tickets, by contrast, perform substantially worse, especially at higher sparsity levels. This proves that the structure alone is insufficient — the original initialization is essential.
Think of it like a jigsaw puzzle. The pruned structure tells you which pieces you need, but the original initialization tells you which orientation each piece starts in. Without the right starting orientation, even the right pieces cannot be assembled into the correct picture through descent.
One-shot vs iterative pruning: patience pays off
One-shot pruning trains the full network once, prunes of weights, and resets. Iterative pruning repeats the cycle in small steps: for example, to reach 90% sparsity with 20% pruning per round, it runs about 10 rounds of train-prune-reset.
Iterative pruning is far more expensive computationally — it requires training the full network many times. But it consistently finds better winning tickets: sparser subnetworks that still match or exceed the original's accuracy. The reason is that each round makes finer-grained decisions about which weights to keep, informed by how the remaining weights interact during training.
This is like sculpting in layers: removing thin shavings each time produces a finer result than hacking away large chunks in a single cut. The sculptor can see the emerging form and adjust each stroke accordingly.
Results: sparse networks that learn faster
The experiments span fully-connected networks (LeNet on MNIST) and convolutional networks (Conv-2, Conv-4, Conv-6 on CIFAR-10), as well as deeper architectures like VGG-19 and ResNet-18.
On LeNet/MNIST, winning tickets at 21% of original size (79% pruned) matched the full network's 98.5% test accuracy. Even at 3.6% of original size (96.4% pruned), winning tickets reached 98.2% accuracy. The full network converged in about 24,000 iterations; the 21% winning ticket converged in about 17,000 — 30% faster.
On the convolutional architectures for CIFAR-10, winning tickets at 10-20% of original size matched the full network. Deeper networks like Conv-6 showed even more room for pruning, with winning tickets at just 5% of the original size still performing well.
A consistent pattern emerged: winning tickets not only match the full network's final accuracy but often converge in fewer iterations, suggesting they sit on a more favorable region of the loss landscape from the start.
Why does initialization matter so much?
The authors provide an intuitive explanation: winning tickets start in a favorable region of the loss landscape. Their initial weights happen to point in a direction where gradient descent can make rapid progress. Random reinitialization places the weights in an arbitrary position — far from the favorable region — and the sparse network does not have enough redundancy to "find its way" from a poor starting position.
Think of it as navigating a mountain range. The full network (1,000 hikers spread across the mountains) is almost guaranteed to have at least a few hikers near a good path. The winning ticket is those specific hikers starting from their lucky positions. If you moved those same hikers to random new positions, they would likely end up on the wrong side of a ridge with no way across.
The dense network's redundancy serves as an insurance policy during training: even though most parameters end up contributing little, their presence during training helps gradient flow and provides alternative paths through the loss landscape.
Why this matters: rethinking over-parameterization
The lottery ticket hypothesis reframes over-parameterization as a feature, not a bug. Large networks are not successful despite being over-parameterized — they are successful because they are over-parameterized. More parameters mean more lottery tickets, and more lottery tickets mean a higher chance of containing a winning one.
This also explains why small networks are hard to train from scratch: they have fewer lottery tickets, so the chance of a winning initialization is lower. It is not that small networks cannot learn — it is that they rarely start in a position where gradient descent can find a good solution.
The practical implication is a paradigm shift in how we think about efficiency. Instead of training a big network and then compressing it (train big, prune later), the vision is to identify winning tickets early and train only the sparse subnetwork. The paper shows this is possible in principle, though finding the tickets still requires training the full network first — a limitation that sparked a wave of follow-up research.
Limitations: what the paper left open
The original paper has important limitations. The experiments were limited to small-scale benchmarks — MNIST and CIFAR-10 — with relatively shallow architectures. Later work by Frankle et al. (2019) showed that the hypothesis does not hold as cleanly for deeper networks on ImageNet: winning tickets require "rewinding" to early training weights (not initialization) to succeed, which weakened the original claim.
The cost of finding winning tickets is also a practical barrier. Iterative pruning requires training the full network many times, making it far more expensive than a single training run. The hypothesis tells us winning tickets exist but does not give us an efficient way to find them without the expensive search.
Finally, the paper uses unstructured pruning, which removes individual weights scattered throughout the network. While this achieves high sparsity ratios, unstructured sparsity is difficult to exploit for actual speedups on modern hardware, which prefers regular, structured memory access patterns.
Pseudocode: iterative magnitude pruning
Simplified to show the idea — not the real implementation.
# Iterative Magnitude Pruning (IMP)
def find_winning_ticket(model, data, prune_rate=0.2, rounds=10):
# Step 1: Save the original random initialization
theta_0 = copy(model.parameters())
mask = ones_like(theta_0) # all weights active
for round in range(rounds):
# Step 2: Train the masked network to completion
model.load(mask * theta_0)
train(model, data)
# Step 3: Prune lowest-magnitude weights
threshold = percentile(abs(model.parameters()), prune_rate * 100)
mask[abs(model.parameters()) < threshold] = 0
# Step 4: Reset surviving weights to original init
# (This is what makes it a "winning ticket")
model.load(mask * theta_0)
return mask, theta_0 # The winning ticketLegacy: the pruning revolution
1990
Optimal Brain Damage (LeCun et al.)
First principled pruning method using second-derivative information to identify and remove unimportant weights. Showed that small networks can maintain performance.
2015
Deep Compression (Han et al.)
Showed that 90%+ of trained weights can be pruned via magnitude pruning, then applied quantization and Huffman coding for extreme compression. But pruned nets could not retrain from scratch.
2019
This paper — The Lottery Ticket Hypothesis (Frankle & Carlin)
Discovered that pruned networks *can* retrain from scratch if the surviving weights keep their original initialization. Introduced iterative magnitude pruning to find winning tickets at 10-20% of original size.
2019
Stabilizing the LTH at Scale (Frankle et al.)
Showed that for deeper networks on ImageNet, "rewinding" to early training weights (not initialization) is needed. Introduced the practical variant that enabled the hypothesis to work beyond small benchmarks.
2020
Proving the LTH — "Pruning is All You Need" (Malach et al.)
Proved a stronger version: a sufficiently over-parameterized random network contains a subnetwork that approximates any target network *without any training at all* — just by pruning.
2020
Strong LTH — "Hidden Networks" (Ramanujan et al.)
Found that randomly initialized networks contain subnetworks that achieve near-state-of-the-art accuracy without *any weight training* — only the mask is learned. This is the "strong" lottery ticket hypothesis.
CitationFrankle, J. and Carlin, M.. The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networks. ICLR, 2019.
Terms in this paper
- Pruningتشذيب الشبكات العصبية
- Sparse Structureالبنية المتناثرة
- Weight initializationتهيئة الأوزان
- Magnitude-Based Pruningالتقليم القائم على المقدار
- Overfittingفرط التخصيص
- Generalizationالتعميم
- Model Compressionضغط النماذج
- Neural Networkالشبكة العصبية
- Trainingالتدريب
- Weightالوزن البنيوي
- Optimizationالأمثَلَة
- Learning Rateمعدل التعلم
- Backpropagationالتحديث التراجعي
- Gradientالتدرج التفاضلي
- Accuracyنسبة الدقة الإجمالية