> For the complete documentation index, see [llms.txt](https://sliu583.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sliu583.gitbook.io/blog/specific-work/seminar-and-talk/wisconsin-seminar/the-lottery-ticket-hypothesis.md).

# The Lottery Ticket Hypothesis

![](/files/-MXEEwt7RpPToTN5v-vn)

### Background: Neural Network Pruning

* Neural networks are large&#x20;
* Prune: to reduce the extent of a neural network by removing unwanted parts&#x20;
* Goal: reduce the cost of inference&#x20;

![](/files/-MXEFfIB-ehsP827PKsC)

* Structure
  * Neurons, attention heads, weights, blocks?&#x20;
  * Focus on pruning weights&#x20;
* Superfluous
  * Magnitudes? Gradients? Activations?&#x20;
* Fine-tuned&#x20;
  * Retrain

![](/files/-MXEG8WFm5ikCbcZokN6)

### Contribution&#x20;

![](/files/-MXEGFxRgOhuvyNk5t7v)

### Training is expensive&#x20;

* Cost&#x20;
  * Financial cost&#x20;
  * Environmental cost (CO2)&#x20;
* Computationally&#x20;

### Research Question&#x20;

* Prune models after training, can we train smaller models?
  * Capacity for representation vs. optimization&#x20;
* Yes&#x20;
  * Early in training&#x20;

![](/files/-MXEH6pa9CNnyQvUbbCq)

### Lottery Ticket Hypothesis&#x20;

* &#x20;Hindsight&#x20;

![](/files/-MXEHG5N8t59G5iFQENz)

* Does not reach full accuracy&#x20;

![](/files/-MXEHQk-yNHv4fII98m3)

* Contribution: you need to keep the original initializations&#x20;

### Iterative Magnitude Pruning (IMP)

![](/files/-MXEI5hiy0B9HKkxRtX7)

### Result&#x20;

![](/files/-MXEISnStQqZbYtFHV2C)

![](/files/-MXEIVYam4B5Yq32jRBn)

![](/files/-MXEIy2IAi-s7Pq-ERF0)

* IMP finds subnetworks that can train from the start to full accuracy at non-trivial sparsities&#x20;
  * Random subnetwroks cannot train to full accuracy&#x20;

![](/files/-MXEJWvaZ5Qay25T69VH)
