A Shared Future-Attention Direction in Key Space for KV Cache Eviction
Abstract
Long-context inference is increasingly constrained by the memory and computation of the key-value (KV) cache. We show that cumulative future attention can be accurately approximated by a single linear direction in key space. After correcting for RoPE-induced rotations, this direction exhibits a dominant component shared across inputs within each model, layer, and KV head. Based on this finding, we propose FAS-KV, which learns a shared future-attention direction offline and scores cached tokens using a single key-space projection at runtime. At inference time, the method requires neither future queries nor access to attention matrices, making it lightweight and compatible with FlashAttention. Across LongBench, RULER, and Needle-in-a-Haystack, FAS-KV achieves the best or near-best performance among eviction methods, while maintaining low scoring overhead.
Create a lesson
Metadata
- Comments
- Accepted to EACL 2027 (Main Conference)
Related papers
Breaking the KV Cache Bottleneck in Looped Transformers with Shared Token Latents
Shared title terminologycs.CLDehong Zheng, Tong Zhu, Yunkai Chai et al.
DLA: Decomposed Latent Attention for Looped Language Models
Shared title terminologycs.CLZhenhe Wu, Weihua He, Xinlai Kang et al.
What Gets Lost in the Mix: Revisiting the Universal Refusal Direction under Multilingual Blending
Shared title terminologycs.CLJunior Cedric Tonga, Fajri Koto, Eugene Belilovsky et al.
Investigating Soft Evasive Refusal in LLMs: Distractors Push Models Toward a Steerable Direction
Shared title terminologycs.CLJiaojiao Han, Sheldon Yu, Mingyu Jin et al.
Understanding the Impact of Label Space Design in Named Entity Recognition
Shared title terminologycs.CLRafael Oleques Nunes, Dennis Giovani Balreira, Joel Luís Carbonera
SkillVec: Extracting Composable Skills via Weight-Space Editing
Shared title terminologycs.CLRituraj Sharma, Noah Provenzano, Tu Vu