Ask what should change when the equation is manipulated, then let the visualization test that expectation.
Foundation Lab
Pruning: Removing Unnecessary Weights
Lottery ticket hypothesis changed how we think about overparameterization
W_{pruned} = W \odot M, \quad M_{ij} = \mathbf{1}[|W_{ij}| > \theta]Selected Foundation Object
Keep the equation fixed; move through the evidence.
Small weights ≠ unimportant; magnitude pruning is a heuristic, not optimal
W_{pruned} = W \odot M, \quad M_{ij} = \mathbf{1}[|W_{ij}| > \theta]Use the runnable panel, the key equation, and canonical papers as separate forms of evidence for the same object.
The useful learning product is the reusable mechanism you can carry into another model, paper, or engineering tradeoff.
This atlas page keeps the working demo; the domain notebook carries the fuller Intuition -> Math -> Code -> Demo sequence.
Why It Matters for Modern Models
- Lottery ticket hypothesis changed how we think about overparameterization
- SparseGPT can prune 50% of GPT-175B weights with minimal quality loss
- Structured pruning enables actual speedups; unstructured sparsity needs special hardware
What Tutorials Skip
What is still poorly explained in textbooks and papers:
- Small weights ≠ unimportant; magnitude pruning is a heuristic, not optimal
- Unstructured 90% sparsity sounds great but doesn't speed up standard GPUs
- Iterative pruning (prune, retrain, repeat) works much better than one-shot
Interactive Visualization
Core Math (Optional Deep Dive)
If you want intuition first, start with the key equation and the visualization. Come back here for the full walkthrough.
Magnitude pruning: Remove weights with smallest :
Structured pruning: Remove entire neurons/attention heads:
Lottery Ticket: There exist sparse subnetworks that train as well as dense:
OBS/OBD criterion (second-order): Prune weight that minimizes loss increase: