Near-Oracle KV Selection via Pre-hoc Sparsity for Long-Context Inference
Not on the map. Why?
Abstract (arXiv)
A core bottleneck in large language model (LLM) inference is the cost of attending over the ever-growing key-value (KV) cache. Although near-oracle top-k KV selection can preserve the quality of dense attention while sharply reducing computation and bandwidth, existing sparse methods generally rely on posterior heuristics, i.e., selectors conditioned on observed attention or proxy scores. Such conditioning introduces posterior bias: it tends to distort true token importance and miss salient tokens, thereby impairing long-range reasoning. To tackle this problem, we propose Pre-hoc Sparsity (PrHS), which selects KV entries before attention scoring and provides explicit accuracy control. Let the attention mass of discarded entries be delta (the dropped mass). Through a marginal-to-mutual-information analysis, we derive an upper bound on the mutual-information loss that depends only on the dropped mass. This relation explains failure modes of posterior heuristics and enables verifiable guarantees by controlling the dropped mass in advance. Within PrHS, we instantiate three orthogonal pre-hoc selectors along the axes of time, depth, and layer. Extensive experiments on LLaMA and Mistral families validate PrHS. Across GSM8K and CoQA, PrHS reduces retrieval overhead by over 90%, achieving 3x higher retrieval sparsity than HShare at matched or better accuracy. It incurs under 1% average degradation on LongBench, lowers attention FLOPs by about 15% versus prior sparse baselines, and yields a 9.9x speedup in attention-operator latency and 2.8x higher throughput on NVIDIA A100-80GB GPUs than the dense baseline.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 47 of its 58 references that are in the map. First posted on arXiv 9 Feb 2026.
Builds on
47 of 58 references.
References · 47
- 2017Attention Is All You Needcited by 59,932
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Visual Instruction Tuningcited by 7,792
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2024GPT-4o System Cardcited by 4,467
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Mistral 7Bcited by 3,065
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2025Qwen3-VL Technical Reportcited by 2,534
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
35 more
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2023Video-LLaVA: Learning United Visual Representation by Alignment Before Projectioncited by 1,385
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 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
- 2018CoQA: A Conversational Question Answering Challengecited by 674
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2025GLM-4.5: Agentic, Reasoning, and Coding (ARC) Foundation Modelscited by 446
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 420
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2024A Survey on Recent Advances in LLM-Based Multi-turn Dialogue Systemscited by 170
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inferencecited by 132
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 122
- 2024ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identificationcited by 86
- 2023On Learning to Summarize with Large Language Models as Referencescited by 80
- 2024Post-Training Sparse Attention with Double Sparsitycited by 45
- 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selectioncited by 38
- 2024D2O: Dynamic Discriminative Operations for Efficient Long-Context Inference of Large Language Modelscited by 30
- 2025VORTA: Efficient Video Diffusion via Routing Sparse Attentioncited by 23
- 2023Prophet: Prompting Large Language Models with Complementary Answer Heuristics for Knowledge-based Visual Question Answeringcited by 21
- 2024The Synergy between Data and Multi-Modal Large Language Models: A Survey from Co-Development Perspectivecited by 14
- 2025FreeKV: Boosting KV Cache Retrieval for Efficient LLM Inferencecited by 14
- 2024Automatic Evaluation for Text-to-image Generation: Task-decomposed Framework, Distilled Training, and Meta-evaluation Benchmarkcited by 13
- 2023Global and Local Semantic Completion Learning for Vision-Language Pre-trainingcited by 12
- 2025A Causality-aware Paradigm for Evaluating Creativity of Multimodal Large Language Modelscited by 10
- 2024Multi-modal Retrieval Augmented Multi-modal Generation: Datasets, Evaluation Metrics and Strong Baselinescited by 9
- 2025Multimodal Reasoning Agent for Zero-Shot Composed Image Retrievalcited by 7
- 2024HashEvict: A Pre-Attention KV Cache Eviction Strategy using Locality-Sensitive Hashingcited by 6
- 2022Unsupervised Hashing with Semantic Concept Miningcited by 5
- 2025MLLM-Guided VLM Fine-Tuning with Joint Inference for Zero-Shot Composed Image Retrievalcited by 5
- 2024Enabling Energy-Efficient Deployment of Large Language Models on Memristor Crossbar: A Synergy of Large and Smallcited by 4
- 2025A Survey of Automatic Evaluation Methods on Text, Visual and Speech Generationscited by 4
Built on by
Not cited yet.