Twilight: Adaptive Attention Sparsity with Hierarchical Top-p Pruning
Not on the map. Why?
Cited by 23 in Efficient LLM inference and serving, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Leveraging attention sparsity to accelerate long-context large language models (LLMs) has been a hot research topic. However, current algorithms such as sparse attention or key-value (KV) cache compression tend to use a fixed budget, which presents a significant challenge during deployment because it fails to account for the dynamic nature of real-world scenarios, where the optimal balance between accuracy and efficiency can vary greatly. In this paper, we find that borrowing top-p sampling (nucleus sampling) to sparse attention can surprisingly achieve adaptive budgeting. Based on this, we propose Twilight, a framework to bring adaptive sparsity to any existing sparse attention algorithm without sacrificing their accuracy. Empirical results show that Twilight can adaptively prune at most 98% of redundant tokens, leading to 15.4× acceleration in self-attention operations and 3.9× acceleration in end-to-end per token latency in long context LLM decoding.
Key facts. Cited by 48 papers in the map (data through 7 Oct 2026). Builds on 51 of its 64 references that are in the map. First posted on arXiv 4 Feb 2025.
Builds on
51 of 64 references.
References · 51
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
38 more
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,193
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2018CoQA: A Conversational Question Answering Challengecited by 674
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 420
- 2021Efficient Attentions for Long Document Summarizationcited by 342
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
- 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2024Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inferencecited by 230
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
- 2024QServe: W4A8KV4 Quantization and System Co-design for Efficient LLM Servingcited by 200
- 2024SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Accelerationcited by 158
- 2025Qwen2.5-1M Technical Reportcited by 158
- 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLMcited by 155
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inferencecited by 148
- 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
- 2024Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inferencecited by 115
- 2024RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrievalcited by 114
- 2024SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantizationcited by 113
- 2024MagicPIG: LSH Sampling for Efficient LLM Generationcited by 112
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 110
- 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Headscited by 99
- 2024Parrot: Efficient Serving of LLM-based Applications with Semantic Variablecited by 96
- 2024PQCache: Product Quantization-based KVCache for Long Context LLM Inferencecited by 93
- 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partitioncited by 81
- 2024Post-Training Sparse Attention with Double Sparsitycited by 45
- 2024DynamicKV: Task-Aware Adaptive KV Cache Compression for Long Context LLMscited by 42
- 2024SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attentioncited by 39
- 2024TidalDecode: Fast and Accurate LLM Decoding with Position Persistent Sparse Attentioncited by 28
- 2022Who Says Elephants Can't Run: Bringing Large Scale MoE Models into Cloud Scale Productioncited by 24
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2025: 13; 2026: 35.
48 papers.
Sort:
By area:
- 2025Sparse VideoGen2: Accelerate Video Generation with Sparse Attention via Semantic-Aware Permutationcited by 100
- 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMscited by 28
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
- 2026SLA2: Sparse-Linear Attention with Learnable Routing and QATcited by 21
- 2026SpargeAttention2: Trainable Sparse Attention via Hybrid Top-k+Top-p Masking and Distillation Fine-Tuningcited by 16
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 14
- 2025Kinetics: Rethinking Test-Time Scaling Lawscited by 11
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
- 2025Accelerating Large-Scale Reasoning Model Inference with Sparse Self-Speculative Decodingcited by 9
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsificationcited by 6
- 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMscited by 5
- 2026Vegas: Self-Speculative Decoding with Verification-Guided Sparse Attentioncited by 5
36 more
- 2026Runtime-Certified Bounded-Error Quantized Attentioncited by 4
- 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformerscited by 4
- 2026Faster Than Flash: Exploiting Attention Sparsity for Efficient Long-Context Decodingcited by 4
- 2025Sparsity Forcing: Reinforcing Token Sparsity of MLLMscited by 3
- 2025A Preliminary Study on the Promises and Challenges of Native Top-k Sparse Attentioncited by 3
- 2025Focus: A Streaming Concentration Architecture for Efficient Vision-Language Modelscited by 3
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 3
- 2026SPLA: Block Sparse Plus Linear Attention for Long Context Modelingcited by 3
- 2026RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inferencecited by 3
- 2026ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMscited by 2
- 2026RAT+: Train Dense, Infer Sparse -- Recurrence Augmented Attention for Dilated Inferencecited by 2
- 2026VecAttention: Vector-wise Sparse Attention for Accelerating Long Context Inferencecited by 2
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compressioncited by 2
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compressioncited by 2
- 2025ReFreeKV: Towards Threshold-Free KV Cache Compressioncited by 1
- 2025SpecAttn: Speculating Sparse Attentioncited by 1
- 2025OmniSparse: Training-Aware Fine-Grained Sparse Attention for Long-Video MLLMscited by 1
- 2026MAGE: All-[MASK] Block Already Knows Where to Look in Block Diffusion LLMcited by 1
- 2026ART: Adaptive Relational Transformer for Pedestrian Trajectory Prediction with Temporal-Aware Relationscited by 1
- 2026AsyncTLS: Efficient Generative LLM Inference with Asynchronous Two-level Sparse Attentioncited by 1
- 2026KV Cache Offloading for Context-Intensive Taskscited by 1
- 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cachecited by 1
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agentscited by 1
- 2026LOCKS: Page-Local Compact Key Summaries for Efficient Long-Context Decodingcited by 1
- 2026Trust the Mass: Forced Weights in KV-Cache Evictioncited by 1
- 2026LoGo: Token-Level Dynamic Local-Global Attentioncited by 1
- 2026SparseBalance: Load-Balanced Long Context Training with Dynamic Sparse Attentioncited by 0
- 2026Long Context Pre-Training with Lighthouse Attentioncited by 0
- 2026EntmaxKV: Support-Aware Decoding for Entmax Attentioncited by 0
- 2026Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsitycited by 0
- 2026Evidence-Driven Dynamic Visual Selector for Efficient Long Video Understandingcited by 0
- 2026CRISP: Cliff-awaRe Input-adaptive Sparse Prefilling with Structural-Mass-Motivated Routingcited by 0
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Rankingcited by 0
- 2026MassAlloc Attention: Let Attention Allocate Its Own Computecited by 0
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generationcited by 0
- 2026MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decodingcited by 0
- 2026MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decoding3 Oct 2026
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generation1 Oct 2026
- 2026MassAlloc Attention: Let Attention Allocate Its Own Compute26 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026CRISP: Cliff-awaRe Input-adaptive Sparse Prefilling with Structural-Mass-Motivated Routing1 Sep 2026
- 2026Faster Than Flash: Exploiting Attention Sparsity for Efficient Long-Context Decoding31 Aug 2026
- 2026LoGo: Token-Level Dynamic Local-Global Attention30 Aug 2026
- 2026Trust the Mass: Forced Weights in KV-Cache Eviction25 Aug 2026
- 2026Evidence-Driven Dynamic Visual Selector for Efficient Long Video Understanding6 Aug 2026
- 2026LOCKS: Page-Local Compact Key Summaries for Efficient Long-Context Decoding27 Jul 2026
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsification27 Jul 2026
- 2026RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inference30 Jun 2026
36 more
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compression27 Jun 2026
- 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformers22 Jun 2026
- 2026Vortex: Efficient and Programmable Sparse Attention Serving for AI Agents4 Jun 2026
- 2026Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsity27 May 2026
- 2026EntmaxKV: Support-Aware Decoding for Entmax Attention20 May 2026
- 2026Runtime-Certified Bounded-Error Quantized Attention20 May 2026
- 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cache7 May 2026
- 2026Long Context Pre-Training with Lighthouse Attention7 May 2026
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compression1 May 2026
- 2026SparseBalance: Load-Balanced Long Context Training with Dynamic Sparse Attention15 Apr 2026
- 2026KV Cache Offloading for Context-Intensive Tasks9 Apr 2026
- 2026AsyncTLS: Efficient Generative LLM Inference with Asynchronous Two-level Sparse Attention9 Apr 2026
- 2026ART: Adaptive Relational Transformer for Pedestrian Trajectory Prediction with Temporal-Aware Relations4 Apr 2026
- 2026VecAttention: Vector-wise Sparse Attention for Accelerating Long Context Inference31 Mar 2026
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention30 Mar 2026
- 2026RAT+: Train Dense, Infer Sparse -- Recurrence Augmented Attention for Dilated Inference20 Feb 2026
- 2026MAGE: All-[MASK] Block Already Knows Where to Look in Block Diffusion LLM15 Feb 2026
- 2026SpargeAttention2: Trainable Sparse Attention via Hybrid Top-k+Top-p Masking and Distillation Fine-Tuning13 Feb 2026
- 2026SLA2: Sparse-Linear Attention with Learnable Routing and QAT13 Feb 2026
- 2026ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMs7 Feb 2026
- 2026Vegas: Self-Speculative Decoding with Verification-Guided Sparse Attention6 Feb 2026
- 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMs5 Feb 2026
- 2026SPLA: Block Sparse Plus Linear Attention for Long Context Modeling29 Jan 2026
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inference19 Dec 2025
- 2025Focus: A Streaming Concentration Architecture for Efficient Vision-Language Models16 Dec 2025
- 2025A Preliminary Study on the Promises and Challenges of Native Top-k Sparse Attention3 Dec 2025
- 2025Accelerating Large-Scale Reasoning Model Inference with Sparse Self-Speculative Decoding1 Dec 2025
- 2025OmniSparse: Training-Aware Fine-Grained Sparse Attention for Long-Video MLLMs15 Nov 2025
- 2025SpecAttn: Speculating Sparse Attention31 Oct 2025
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoning10 Jun 2025
- 2025Kinetics: Rethinking Test-Time Scaling Laws5 Jun 2025
- 2025Sparse VideoGen2: Accelerate Video Generation with Sparse Attention via Semantic-Aware Permutation24 May 2025
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inference19 May 2025
- 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMs24 Apr 2025
- 2025Sparsity Forcing: Reinforcing Token Sparsity of MLLMs23 Apr 2025
- 2025ReFreeKV: Towards Threshold-Free KV Cache Compression24 Feb 2025
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 14
- 2026Double-P: Hierarchical Top-P Sparse Attention for Long-Context LLMscited by 5
- 2026Vegas: Self-Speculative Decoding with Verification-Guided Sparse Attentioncited by 5
- 2026Runtime-Certified Bounded-Error Quantized Attentioncited by 4
- 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformerscited by 4
- 2025Sparsity Forcing: Reinforcing Token Sparsity of MLLMscited by 3
- 2025Focus: A Streaming Concentration Architecture for Efficient Vision-Language Modelscited by 3
- 2026RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inferencecited by 3
- 2026ParisKV: Fast and Drift-Robust KV-Cache Retrieval for Long-Context LLMscited by 2
- 2026RAT+: Train Dense, Infer Sparse -- Recurrence Augmented Attention for Dilated Inferencecited by 2
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compressioncited by 2
- 2025ReFreeKV: Towards Threshold-Free KV Cache Compressioncited by 1
12 most cited of 21 All 21 (JSON)
- 2026MOIRA: Mass-Oriented Indexing with Ragged Attention for Long-Context Decoding3 Oct 2026
- 2026Trust the Mass: Forced Weights in KV-Cache Eviction25 Aug 2026
- 2026RaBitQCache: Rotated Binary Quantization for KVCache in Long Context LLM Inference30 Jun 2026
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compression27 Jun 2026
- 2026SpotAttention: Plug-In Block-Sparse Routing for Pretrained Long-Context Transformers22 Jun 2026
- 2026Augmenting Attention with Exponentially Decaying Memory Improves Query-Aware KV Sparsity27 May 2026
- 2026EntmaxKV: Support-Aware Decoding for Entmax Attention20 May 2026
- 2026Runtime-Certified Bounded-Error Quantized Attention20 May 2026
- 2026Sparse Attention as a Range Searching Problem: Towards an Inference-Efficient Index for KV Cache7 May 2026
- 2026KV Cache Offloading for Context-Intensive Tasks9 Apr 2026
- 2026AsyncTLS: Efficient Generative LLM Inference with Asynchronous Two-level Sparse Attention9 Apr 2026
- 2026RAT+: Train Dense, Infer Sparse -- Recurrence Augmented Attention for Dilated Inference20 Feb 2026
12 newest of 21 All 21 (JSON)
- 2025Sparse VideoGen2: Accelerate Video Generation with Sparse Attention via Semantic-Aware Permutationcited by 100
- 2026SLA2: Sparse-Linear Attention with Learnable Routing and QATcited by 21
- 2026SpargeAttention2: Trainable Sparse Attention via Hybrid Top-k+Top-p Masking and Distillation Fine-Tuningcited by 16
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsificationcited by 6
- 2026Sol-Attn: Accelerating Video Generation Inference via On-the-Fly Attention Sparsification27 Jul 2026
- 2026SpargeAttention2: Trainable Sparse Attention via Hybrid Top-k+Top-p Masking and Distillation Fine-Tuning13 Feb 2026
- 2026SLA2: Sparse-Linear Attention with Learnable Routing and QAT13 Feb 2026
- 2025Sparse VideoGen2: Accelerate Video Generation with Sparse Attention via Semantic-Aware Permutation24 May 2025
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoningcited by 28
- 2025Kinetics: Rethinking Test-Time Scaling Lawscited by 11
- 2025Accelerating Large-Scale Reasoning Model Inference with Sparse Self-Speculative Decodingcited by 9
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compressioncited by 2
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compression1 May 2026
- 2025Accelerating Large-Scale Reasoning Model Inference with Sparse Self-Speculative Decoding1 Dec 2025
- 2025SeerAttention-R: Sparse Attention Adaptation for Long Reasoning10 Jun 2025
- 2025Kinetics: Rethinking Test-Time Scaling Laws5 Jun 2025
- 2025The Sparse Frontier: Sparse Attention Trade-offs in Transformer LLMscited by 28
- 2026HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attentioncited by 10
- 2026Faster Than Flash: Exploiting Attention Sparsity for Efficient Long-Context Decodingcited by 4
- 2025A Preliminary Study on the Promises and Challenges of Native Top-k Sparse Attentioncited by 3
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 3
- 2026SPLA: Block Sparse Plus Linear Attention for Long Context Modelingcited by 3
- 2026VecAttention: Vector-wise Sparse Attention for Accelerating Long Context Inferencecited by 2
- 2026MAGE: All-[MASK] Block Already Knows Where to Look in Block Diffusion LLMcited by 1
- 2026ART: Adaptive Relational Transformer for Pedestrian Trajectory Prediction with Temporal-Aware Relationscited by 1
- 2026LOCKS: Page-Local Compact Key Summaries for Efficient Long-Context Decodingcited by 1
- 2026LoGo: Token-Level Dynamic Local-Global Attentioncited by 1
- 2026SparseBalance: Load-Balanced Long Context Training with Dynamic Sparse Attentioncited by 0
12 most cited of 18 All 18 (JSON)
- 2026HHR: Hierarchical Hash Retrieval for Efficient LLM Generation1 Oct 2026
- 2026MassAlloc Attention: Let Attention Allocate Its Own Compute26 Sep 2026
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking11 Sep 2026
- 2026CRISP: Cliff-awaRe Input-adaptive Sparse Prefilling with Structural-Mass-Motivated Routing1 Sep 2026
- 2026Faster Than Flash: Exploiting Attention Sparsity for Efficient Long-Context Decoding31 Aug 2026
- 2026LoGo: Token-Level Dynamic Local-Global Attention30 Aug 2026
- 2026Evidence-Driven Dynamic Visual Selector for Efficient Long Video Understanding6 Aug 2026
- 2026LOCKS: Page-Local Compact Key Summaries for Efficient Long-Context Decoding27 Jul 2026
- 2026Long Context Pre-Training with Lighthouse Attention7 May 2026
- 2026SparseBalance: Load-Balanced Long Context Training with Dynamic Sparse Attention15 Apr 2026
- 2026ART: Adaptive Relational Transformer for Pedestrian Trajectory Prediction with Temporal-Aware Relations4 Apr 2026
- 2026VecAttention: Vector-wise Sparse Attention for Accelerating Long Context Inference31 Mar 2026
12 newest of 18 All 18 (JSON)