PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
March 12, 20242 citationsOpen Access

CHAI: Clustered Head Attention for Efficient LLM Inference

View Full Paper
SASaurabh AgarwalYeungnam UniversityBABilge AcunIBM (United States)BHBasil Homer

Key Points

Key points are not available for this paper at this time.

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 required. CHAI achieves this with a maximum 3.2% deviation in accuracy across 3 different models (i.e. OPT-66B, LLAMA-7B, LLAMA-33B) and 5 different evaluation datasets.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Agarwal et al. (2024) studied this question.

synapsesocial.com/papers/68e745c5b6db6435876bf5dchttps://doi.org/10.48550/arxiv.2403.08058
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Cross-layer Attention Sharing for Pre-trained Large Language Models2026
  2. 2DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion2024
  3. 3LongHeads: Multi-Head Attention is Secretly a Long Context Processor2024 · 1 citations
  4. 4Anchor-based Large Language Models2024
  5. 5IAM: Efficient Inference through Attention Mapping between Different-scale LLMs2025