首页 > AI前沿 > A Shared Future-Attention Direction in Key Space for KV Cache Eviction

A Shared Future-Attention Direction in Key Space for KV Cache Eviction

arXiv自然语言 2026-11-30 13:35 6 阅读 查看原文

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.