mlsanityData to 7 Oct 2026

Training-free Context-adaptive Attention for Efficient Long Context Modeling

arXiv 2512.09238 ↗First posted 10 Dec 2025cs.CLcited by 1

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated remarkable capabilities across a wide range of natural language processing tasks. These capabilities stem primarily from the self-attention mechanism, which enables modeling of long-range dependencies. However, the quadratic complexity of self-attention with respect to sequence length poses significant computational and memory challenges, especially as sequence length extends to extremes. While various sparse attention and KV cache compression methods have been proposed to improve efficiency, they often suffer from limitations such as reliance on fixed patterns, inability to handle both prefilling and decoding stages, or the requirement for additional training. In this paper, we propose Training-free Context-adaptive Attention (TCA-Attention), a training-free sparse attention mechanism that selectively attends to only the informative tokens for efficient long-context inference. Our method consists of two lightweight phases: i) an offline calibration phase that determines head-specific sparsity budgets via a single forward pass, and ii) an online token selection phase that adaptively retains core context tokens using a lightweight redundancy metric. TCA-Attention provides a unified solution that accelerates both prefilling and decoding while reducing KV cache memory footprint, without requiring parameter updates or architectural changes. Theoretical analysis shows that our approach maintains bounded approximation error. Extensive experiments demonstrate that TCA-Attention achieves a 2.8× speedup and reduces KV cache by 61% at 128K context length while maintaining performance comparable to full attention across various benchmarks, offering a practical plug-and-play solution for efficient long-context inference.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 48 of its 61 references that are in the map. First posted on arXiv 10 Dec 2025.

Builds on

48 of 61 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferences16 Mar
  2. 2025LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention20 Feb
  3. 2025ChunkKV: Semantic-Preserving KV Cache Compression for Efficient Long-Context LLM Inference1 Feb
  4. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
  5. 2024SnapKV: LLM Knows What You are Looking for Before Generation22 Apr

Other references · 43

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2024The Llama 3 Herd of Modelscited by 14,192
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  7. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  8. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  9. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  10. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
  11. 2024Qwen2.5 Technical Reportcited by 4,713
  12. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
31 more
  1. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  4. 2020Longformer: The Long-Document Transformercited by 3,362
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  6. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  8. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  9. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  10. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  11. 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,099
  12. 2023Vision-Language Models for Vision Tasks: A Surveycited by 834
  13. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
  14. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  15. 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
  16. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 375
  17. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 329
  18. 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 188
  19. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
  20. 2025XAttention: Block Sparse Attention with Antidiagonal Scoringcited by 131
  21. 2025FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inferencecited by 121
  22. 2024Make Your LLM Fully Utilize the Contextcited by 118
  23. 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
  24. 2021Long-Span Summarization via Local Attention and Content Selectioncited by 24
  25. 2021Data Augmentation for Abstractive Query-Focused Multi-Document Summarizationcited by 18
  26. 2024Correctable Landmark Discovery via Large Models for Vision-Language Navigationcited by 16
  27. 2024Long Context is Not Long at All: A Prospector of Long-Dependency Data for Large Language Modelscited by 15
  28. 2024LongWanjuan: Towards Systematic Measurement for Long Text Qualitycited by 11
  29. 2024Core Context Aware Transformers for Long Context Language Modelingcited by 11
  30. 2025Curse of High Dimensionality Issue in Transformer for Long-context Modelingcited by 5
  31. 2024Enabling Energy-Efficient Deployment of Large Language Models on Memristor Crossbar: A Synergy of Large and Smallcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps
  2. 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
  3. 2026AB-Sparse: Sparse Attention with Adaptive Block Size for Accurate and Efficient Long-Context Inference
  4. 2026CateKV: On Sequential Consistency for Long-Context LLM Inference Acceleration
  5. 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMs
  6. 2025Lag-Relative Sparse Attention In Long Context Training
  7. 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection
  8. 2025Rectified Sparse Attention