mlsanityData to 14 Oct 2026

Beyond KV Caching: Shared Attention for Efficient LLMs

arXiv 2407.12866 ↗First posted 13 Jul 2024cs.CL cs.AI cs.LGcited by 10

Not on the map. Why?

Abstract (arXiv)

The efficiency of large language models (LLMs) remains a critical challenge, particularly in contexts where computational resources are limited. Traditional attention mechanisms in these models, while powerful, require significant computational and memory resources due to the necessity of recalculating and storing attention weights across different layers. This paper introduces a novel Shared Attention (SA) mechanism, designed to enhance the efficiency of LLMs by directly sharing computed attention weights across multiple layers. Unlike previous methods that focus on sharing intermediate Key-Value (KV) caches, our approach utilizes the isotropic tendencies of attention distributions observed in advanced LLMs post-pretraining to reduce both the computational flops and the size of the KV cache required during inference. We empirically demonstrate that implementing SA across various LLMs results in minimal accuracy loss on standard benchmarks. Our findings suggest that SA not only conserves computational resources but also maintains robust model performance, thereby facilitating the deployment of more efficient LLMs in resource-constrained environments.

Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 20 of its 27 references that are in the map. First posted on arXiv 13 Jul 2024.

Builds on

20 of 27 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  3. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  6. 2023Qwen Technical Reportcited by 3,344
  7. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  8. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  9. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  10. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  11. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
  12. 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
8 more
  1. 2023Baichuan 2: Open Large-scale Language Modelscited by 670
  2. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
  3. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
  4. 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 449
  5. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
  6. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
  7. 2023Efficient Large Language Models: A Surveycited by 186
  8. 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 131

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 6; 2026: 1.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
  2. 2025Task-KV: Task-aware KV Cache Optimization via Semantic Differentiation of Attention Heads
  3. 2025MoSKA: Mixture of Shared KV Attention for Efficient Long-Sequence LLM Inference
  4. 2024In-context KV-Cache Eviction for LLMs via Attention-Gate
  5. 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
  6. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference
  7. 2024Cross-layer Attention Sharing for Pre-trained Large Language Models
  8. 2024CHAI: Clustered Head Attention for Efficient LLM Inference