ATP: Enabling Fast LLM Serving via Attention on Top Principal Keys
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
We propose a new attention mechanism with linear complexity, ATP, that fixates Attention on Top Principal keys, rather than on each individual token. Particularly, ATP is driven by an important observation that input sequences are typically low-rank, i.e., input sequences can be represented by a few principal bases. Therefore, instead of directly iterating over all the input tokens, ATP transforms inputs into an orthogonal space and computes attention only on the top principal bases (keys). Owing to the observed low-rank structure in input sequences, ATP is able to capture semantic relationships in input sequences with a few principal keys. Furthermore, the attention complexity is reduced from quadratic to linear without incurring a noticeable performance drop. ATP further reduces complexity for other linear layers with low-rank inputs, leading to more speedup compared to prior works that solely target the attention module. Our evaluations on various models (e.g., BERT and Llama) demonstrate that ATP achieves comparable accuracy with much lower computation and memory complexity than the standard attention mechanism. In particular, ATP barely loses accuracy with only 1/2 principal keys, and only incurs around 2% accuracy drops with 1/4 principal keys.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 21 of its 34 references that are in the map. First posted on arXiv 1 Mar 2024.
Builds on
21 of 34 references.
References · 21
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2020Rethinking Attention with Performerscited by 1,601
9 more
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 170
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2023Sharpness-Aware Minimization Leads to Low-Rank Featurescited by 38
- 2021FMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field Attentioncited by 26
- 20213LegRace: Privacy-Preserving DNN Training over TEEs and GPUscited by 9
Built on by
Citing papers per year: 2024: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024Loki: Low-rank Keys for Efficient Sparse Attention
- 2025LServe: Efficient Long-sequence LLM Serving with Unified Sparse Attention
- 2025Element-wise Attention Is All You Need
- 2024Star Attention: Efficient LLM Inference over Long Sequences
- 2025Progressive Sparse Attention: Algorithm and System Co-design for Efficient Attention in LLM Serving
- 2025Log-Linear Attention
- 2026TileMix: Tile-Centric Mixed-Precision Attention for LLM Inference Acceleration
- 2025Tensor Product Attention Is All You Need