Attention Head Pruning Research

  • Last Updated 11 August, 2026
  • by David Spuler, Ph.D.

Attention head pruning, often simply abbreviated to "head pruning", is structured pruning that removes attention heads. It is a type of "width pruning" that makes the network "thinner". The attention heads were one of the main advances in the seminal 2017 Transformer paper, but research has shown that the attention mechanism is expensive and there are various ways to optimize its efficiency, including removing some redundant attention heads.

In addition to head pruning techniques that remove redundant or under-utilized attention heads, there is also research into using simpler attention heads (see approximate attention heads) and simplifying the cost of attention on long sequences (see non-autoregression architectures). There is also research more generally into optimized Transformer architectures.

Head pruning can be combined with various other optimization techniques such as quantization. It is also orthogonal to "depth pruning" such as "layer pruning" and "early exit", and combined depth/width pruning is possible.

Attention Head Pruning: Book Excerpts and Blog Articles

Free online book excerpts with full text chapters online and free PDF downloads, and the Aussie AI blog, including related articles:

  • Width pruning is a type of structured pruning that reduces the "width" of the internal layers of a neural network. In early models, the "width" was the number of internal neurons in the hidden layers, although in newer Transformers, it often refers to the number of attention heads. Like all types of pruning, the goal is model compression and faster inference by avoiding computation associated with the pruned parts. ... more about Width pruning »
  • Dual pruning is the combination of width pruning and depth pruning. Depth pruning involves pruning or skipping the layers of the model, such as in layer pruning, early exiting or the... more about Dual pruning »
  • Filter pruning is a type of LLM inference optimization, primarily in relation to images, that reduces calculations along the width dimension of models. It is primarily related to CNNs, and is analogous to attention head pruning in Transformer architectures ... more about Filter pruning »
  • Fused attention, or fused head attention, is the merging of the weights in the attention heads. This is a type of parameter sharing, and there are variants including ... more about Fused attention »
  • Channel pruning is a type of LLM inference optimization that reduces calculations along the width dimension of models. It is primarily related to CNNs, and is analogous to attention head pruning in ... more about Channel pruning »
  • David Spuler, March 2024, Attention Head Pruning, in Generative AI in C++, https://www.aussieai.com/book/ch20-attention-head-approximation
  • David Spuler, March 2024, Chapter 48. Width Pruning, in book "Generative AI in C++", https://www.aussieai.com/book/ch48-width-pruning
  • David Spuler, March 2024, Generative AI in C++: Coding Transformers and LLMs, https://www.aussieai.com/book/toc PDF: https://www.aussieai.com/pdf/BOOK-Generative-AI-CPP-Spuler-2024.pdf

Attention Head Pruning Research Papers

Research papers on head pruning:

More Research on Pruning Types

More AI Research

Read more about: