paper-with-me

홈 › Papers

Streaming Attention Approximation via Discrepancy Theory

2025-02-11 · Insu Han, Michael Kapralov, Ekaterina Kochetkova, Kshiteej Sheth, Amir Zandieh

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. We complement our algorithm with space lower bounds for streaming attention computation. Besides strong theoretical guarantees, BalanceKV exhibits empirically validated performance improvements over existing methods, both for attention approximation and end-to-end performance on various long context benchmarks.

📄 PDF Abstract BibTeX arXiv:2502.07861

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Towards Tight Bounds for Streaming Attention

2026-06-05 · Justin Y. Chen, Ying Feng, Piotr Indyk, Michael Kapralov 외 arxiv

The attention mechanism is a cornerstone of modern transformer architectures. However, its expressive power comes at the cost of quadratic runtime and linear space usage. In particular, the classical transformer architec…

Density Estimation

Discrepancy, Coresets, and Sketches in Machine Learning

2019-06-11 · Zohar Karnin, Edo Liberty

This paper defines the notion of class discrepancy for families of functions. It shows that low discrepancy classes admit small offline and streaming coresets. We provide general techniques for bounding the class discrep…

BIG-bench Machine LearningDensity Estimation

Learning with Feature and Distribution Evolvable Streams

2020-01-01 · ICML 2020 1 · Zhen-Yu Zhang, Peng Zhao, Yuan Jiang, Zhi-Hua Zhou

In many real-world applications, data are often collected in the form of a stream, and thus the feature space of streaming data can evolve over time. For example, in the environmental monitoring task, features can be dyn…

LLM as Effective Streaming Processor: Bridging Streaming-Batch Mismatches with Group Position Encoding

2025-05-22 · Junlong Tong, Jinlan Fu, Zixuan Lin, Yingqi Fan 외

Large Language Models (LLMs) are primarily designed for batch processing. Existing methods for adapting LLMs to streaming rely either on expensive re-encoding or specialized architectures with limited scalability. This w…

Position

A low discrepancy sequence on graphs

2020-10-08 · A. Cloninger, H. N. Mhaskar

Many applications such as election forecasting, environmental monitoring, health policy, and graph based machine learning require taking expectation of functions defined on the vertices of a graph. We describe a construc…