PAT: Accelerating LLM Decoding via Prefix-Aware Attention with Resource Efficient Multi-Tile Kernel
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
LLM serving is increasingly dominated by decode attention, which is a memory-bound operation due to massive KV cache loading from global memory. Meanwhile, real-world workloads exhibit substantial, hierarchical shared prefixes across requests (e.g., system prompts, tools/templates, RAG). Existing attention implementations fail to fully exploit prefix sharing: one-query-per-CTA execution repeatedly loads shared prefix KV cache, while one-size-fits-all tiling leaves on-chip resources idle and exacerbates bubbles for uneven KV lengths. These choices amplify memory bandwidth pressure and stall memory-bound decode attention. This paper introduces PAT, a prefix-aware attention kernel implementation for LLM decoding that organizes execution with a pack-forward-merge paradigm. PAT packs queries by shared prefix to reduce repeated memory accesses, runs a customized multi-tile kernel to achieve high resource efficiency. It further applies practical multi-stream forwarding and KV splitting to reduce resource bubbles. The final merge performs online softmax with negligible overhead. We implement PAT as an off-the-shelf plugin for vLLM. Evaluation on both real-world and synthetic workloads shows that PAT reduces attention latency by 53.5% on average and TPOT by 17.0-93.1% under the same configurations against state-of-the-art attention kernels. PAT's source code is publicly available at https://github.com/flashserve/PAT.
Key facts. Cited by 5 papers 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 8 of its 10 references that are in the map. First posted on arXiv 27 Nov 2025.
Builds on
8 of 10 references.
Closest ancestors · 3
Same direction, newest first
- 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusion26 May
- 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition23 Feb
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep
Other references · 5
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
- 2022Mixture-of-Experts with Expert Choice Routingcited by 611
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 397
- 2024RelayAttention for Efficient Large Language Model Serving with Long System Promptscited by 13
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Characterization of Multi-Model Agentic AI Systems on General Tasks via Trace-Driven Simulationcited by 3
- 2026Bole: Efficient Tree Speculation for Hybrid-Attention Language Modelscited by 3
- 2026Mosaic: Unlocking Long-Context Inference for Diffusion LLMs via Global Memory Planning and Dynamic Peak Tamingcited by 2
- 2026Requests of a Feather Must Flock Together: Batch Size vs. Prefix Homogeneity in LLM Inferencecited by 0
- 2026FoldAttention: Declared-Reference Softmax for Fast Decode and Deterministic Backwardcited by 0
- 2026FoldAttention: Declared-Reference Softmax for Fast Decode and Deterministic Backward27 Sep 2026
- 2026Bole: Efficient Tree Speculation for Hybrid-Attention Language Models3 Aug 2026
- 2026Characterization of Multi-Model Agentic AI Systems on General Tasks via Trace-Driven Simulation1 Jun 2026
- 2026Requests of a Feather Must Flock Together: Batch Size vs. Prefix Homogeneity in LLM Inference7 May 2026
- 2026Mosaic: Unlocking Long-Context Inference for Diffusion LLMs via Global Memory Planning and Dynamic Peak Taming10 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2025CoDec: Prefix-Shared Decoding Kernel for LLMs
- 2026Unifying Sparse Attention with Hierarchical Memory for Scalable Long-Context LLM Serving
- 2025Hardware-Efficient Attention for Fast Decoding
- 2026SwiftKV: An Edge-Oriented Attention Algorithm and Multi-Head Accelerator for Fast, Efficient LLM Decoding
- 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inference
- 2026PulseInfer: I/O-Centric Sparse KV Cache Offloading for Efficient Long-Context LLM Decoding
- 2025Helix Parallelism: Rethinking Sharding Strategies for Interactive Multi-Million-Token LLM Decoding
- 2026HiKV: Hierarchical Importance-Aware KV Cache with Hardware Acceleration for LLM Decoding