structured pruning removes: entire filters or attention heads, not individual weights

Why do we sometimes remove parts of a neural network to improve its performance?

Image: Hokanson, John R., Public domain, via Wikimedia Commons

structured pruning removes: entire filters or attention heads, not individual weights

Why do we sometimes remove parts of a neural network to improve its performance?

Imagine you're organizing a cluttered room. You can't throw away every single item; instead, you decide to remove some boxes or shelves to make the space more efficient.

In a neural network, instead of deleting individual weights, we remove entire filters or attention heads that aren't contributing much to the learning process, making the model more efficient.

Example

If you have 10 boxes (filters) and you find that 3 of them are empty, you might decide to remove those 3 boxes entirely.

Remember this

Pruning entire filters or attention heads can lead to a more efficient and faster neural network without significantly impacting its performance.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath