Shallow Prefill, Deep Decoding: Efficient Long-Context Inference via Layer-Asymmetric KV Visibility
Not on the map. Why?
Abstract (arXiv)
Long-context inference in decoder-only language models is costly because long prompts are processed during Prefill, cached at every layer, and repeatedly attended to during autoregressive Decode. We introduce Shallow Prefill, dEEp Decode (SPEED), a phase-asymmetric KV-visibility policy that materializes non-anchor prompt-token KV states only in lower layers while keeping Decode-phase tokens full-depth. Unlike previous approaches that make upper-layer prompt KV states cheaper to store or construct, SPEED removes prefill tokens from the upper-layer Decode visibility set altogether. With a minimal BoS anchor, this simple change preserves broad benchmark quality while reducing long-context cost. In a controlled Llama-3.1-8B instruction-tuning study, SPEED using only 75% of layers for prefill tokens reaches 51.2 average score on OLMES-style benchmarks, compared with 51.4 for the full-depth baseline, while improving TTFT by 33%, TPOT by 22%, and reducing active KV memory by 25.0% at 128K context. Layer-wise diagnostics suggest that this cutoff retains the main prompt-selection and representation-stabilization regions of the full-depth model. These results show that long-context prompt tokens need not always persist as full-depth KV-cache objects when Decode-phase tokens remain full-depth.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 36 of its 37 references that are in the map. First posted on arXiv 7 May 2026.
Builds on
36 of 37 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 558
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 501
24 more
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 432
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2023Adapting Language Models to Compress Contextscited by 356
- 2022Confident Adaptive Language Modelingcited by 310
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 307
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 288
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 199
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 144
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 131
- 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 125
- 2024OLMES: A Standard for Language Model Evaluationscited by 106
- 2024vAttention: Dynamic Memory Management for Serving LLMs without PagedAttentioncited by 98
- 2024What Matters in Transformers? Not All Attention is Neededcited by 84
- 2024Layer-Condensed KV Cache for Efficient Inference of Large Language Modelscited by 59
- 2023Large language models implicitly learn to straighten neural sentence trajectories to construct a predictive representation of natural languagecited by 32
- 2024Attend First, Consolidate Later: On the Importance of Attention in Different LLM Layerscited by 25
- 2024SwiftKV: Fast Prefill-Optimized Inference with Knowledge-Preserving Model Transformationcited by 19
- 2025KV Admission: Learning What to Write for Efficient Long-Context LLM Inferencecited by 4
- 2026DepthKV: Layer-Dependent KV Cache Pruning for Long-Context LLM Inferencecited by 3
- 2025Data-Free Pruning of Self-Attention Layers in LLMscited by 2
- 2026POP: Prefill-Only Pruning for Efficient Large Model Inferencecited by 2
- 2025High-Layer Attention Pruning with Rescalingcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026UniPrefill: Universal Long-Context Prefill Acceleration via Block-wise Dynamic Sparsification
- 2026A Sparse Glimpse of the Whole: Train-Free Self-Speculative Decoding
- 2025FastKV: Decoupling of Context Reduction and KV Cache Compression for Prefill-Decoding Acceleration
- 2026Lynx: Progressive Speculative Quantization for accelerating KV Transfer in Long-Context Inference
- 2025Efficient Pretraining Length Scaling
- 2026DualDecoder: Accelerate Long Context LLM Inference by Predictive Prefetch
- 2025KV Pareto: Systems-Level Optimization of KV Cache and Model Compression for Long Context Inference
- 2024Accelerating Large Language Model Inference with Self-Supervised Early Exits