Beyond KV Caching: Shared Attention for Efficient LLMs
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
- 2017Attention Is All You Needcited by 60,361
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023Qwen Technical Reportcited by 3,344
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
8 more
- 2023Baichuan 2: Open Large-scale Language Modelscited by 670
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
- 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 449
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 243
- 2023Efficient Large Language Models: A Surveycited by 186
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 131
Built on by
Citing papers per year: 2024: 3; 2025: 6; 2026: 1.
10 papers.
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 131
- 2025Cognitive Memory in Large Language Modelscited by 29
- 2024A Systematic Study of Cross-Layer KV Sharing for Efficient LLM Inferencecited by 17
- 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformerscited by 6
- 2025Share Your Attention: Transformer Weight Sharing via Matrix-based Dictionary Learningcited by 5
- 2025ECHO-LLaMA: Efficient Caching for High-Performance LLaMA Trainingcited by 3
- 2025HCAttention: Extreme KV Cache Compression via Heterogeneous Attention Computing for LLMscited by 3
- 2024EchoAtt: Attend, Copy, then Adjust for More Efficient Large Language Modelscited by 2
- 2025AttnCache: Accelerating Self-Attention Inference for LLM Prefill via Attention Cachecited by 2
- 2026EPAS: Efficient Training with Progressive Activation Sharingcited by 0
- 2026EPAS: Efficient Training with Progressive Activation Sharing27 Jan 2026
- 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformers3 Dec 2025
- 2025AttnCache: Accelerating Self-Attention Inference for LLM Prefill via Attention Cache29 Oct 2025
- 2025Share Your Attention: Transformer Weight Sharing via Matrix-based Dictionary Learning6 Aug 2025
- 2025HCAttention: Extreme KV Cache Compression via Heterogeneous Attention Computing for LLMs26 Jul 2025
- 2025ECHO-LLaMA: Efficient Caching for High-Performance LLaMA Training22 May 2025
- 2025Cognitive Memory in Large Language Models3 Apr 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024A Systematic Study of Cross-Layer KV Sharing for Efficient LLM Inference18 Oct 2024
- 2024EchoAtt: Attend, Copy, then Adjust for More Efficient Large Language Models22 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2025Task-KV: Task-aware KV Cache Optimization via Semantic Differentiation of Attention Heads
- 2025MoSKA: Mixture of Shared KV Attention for Efficient Long-Sequence LLM Inference
- 2024In-context KV-Cache Eviction for LLMs via Attention-Gate
- 2025LLMs Know What to Drop: Self-Attention Guided KV Cache Eviction for Efficient Long-Context Inference
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference
- 2024Cross-layer Attention Sharing for Pre-trained Large Language Models
- 2024CHAI: Clustered Head Attention for Efficient LLM Inference