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.
翻译:暂无翻译