AI RESEARCH
Streaming Attention Approximation via Discrepancy Theory
arXiv CS.AI
•
ArXi:2502.07861v3 Announce Type: replace-cross Large language models (LLMs) have achieved impressive success, but their high memory requirements present challenges for long-context token generation. In this paper we study the streaming complexity of attention approximation, a key computational primitive underlying token generation. Our main contribution is BalanceKV, a streaming algorithm for $\epsilon$-approximating attention computations based on geometric process for selecting a balanced collection of Key and Value tokens as per Banaszczyk's vector balancing theory.