CHAI: Clustered Head Attention for Efficient LLM Inference
Saurabh Agarwal, Bilge Acun, Basil Hosmer, Mostafa Elhoushi, Yejin, Lee, Shivaram Venkataraman, Dimitris Papailiopoulos, Carole-Jean Wu

TL;DR
This paper introduces CHAI, a method that reduces memory and computation in large language models by clustering similar attention heads, achieving significant efficiency gains with minimal accuracy loss.
Contribution
The paper proposes Clustered Head Attention (CHAI), a novel approach that groups similar attention heads to improve inference efficiency in LLMs without fine-tuning.
Findings
Memory for K,V cache reduced by up to 21.4%
Inference latency decreased by up to 1.73x
Accuracy deviation limited to 3.2% across models
Abstract
Large Language Models (LLMs) with hundreds of billions of parameters have transformed the field of machine learning. However, serving these models at inference time is both compute and memory intensive, where a single request can require multiple GPUs and tens of Gigabytes of memory. Multi-Head Attention is one of the key components of LLMs, which can account for over 50% of LLMs memory and compute requirement. We observe that there is a high amount of redundancy across heads on which tokens they pay attention to. Based on this insight, we propose Clustered Head Attention (CHAI). CHAI combines heads with a high amount of correlation for self-attention at runtime, thus reducing both memory and compute. In our experiments, we show that CHAI is able to reduce the memory requirements for storing K,V cache by up to 21.4% and inference time latency by up to 1.73x without any fine-tuning…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSpeech Recognition and Synthesis · Natural Language Processing Techniques
MethodsAttention Is All You Need · Softmax · Linear Layer · Multi-Head Attention
