paper-with-me

홈 › Papers

Approaching I/O-optimality for Approximate Attention

2026-05-22 · Pál András Papp, Aleksandros Sobczyk, Anastasios Zouzias arxiv

We revisit the I/O complexity of attention in large language models. Given query-key-value matrices $Q,K,V\in\mathbb{R}^{n\times d}$, and a machine with fast memory size $M$, the goal is to compute the "attention matrix" $A=\text{softmax}(Q K ^{\top}/\sqrt{d}) V$ with the minimal number of data transfers between fast and slow memory. Existing methods in the literature, most notably FlashAttention and its variants, incur an I/O cost that depends quadratically on $n$, while a trivial lower bound only requires $Ω(nd)$ I/O's to read the inputs and write the output. In this work, we present a technique for computing attention where the I/O cost only depends almost-linearly on $n$ in most parameter regimes. This is achieved by developing I/O-efficient algorithms inspired by the recent approximate attention framework of Alman and Song. We also prove corresponding lower bounds in each parameter regime to show that our algorithms are indeed close to I/O-optimal.

📄 PDF Abstract BibTeX arXiv:2605.23751

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Online Reinforcement Learning Control by Direct Heuristic Dynamic Programming: from Time-Driven to Event-Driven

2020-06-16 · Qingtao Zhao, Jennie Si, Jian Sun

In this paper time-driven learning refers to the machine learning method that updates parameters in a prediction model continuously as new data arrives. Among existing approximate dynamic programming (ADP) and reinforcem…

Reinforcement Learning (RL)

AR-DAE: Towards Unbiased Neural Entropy Gradient Estimation

2020-06-09 · ICML 2020 1 · Jae Hyun Lim, Aaron Courville, Christopher Pal, Chin-wei Huang

Entropy is ubiquitous in machine learning, but it is in general intractable to compute the entropy of the distribution of an arbitrary continuous random variable. In this paper, we propose the amortized residual denoisin…

continuous-controlContinuous ControlDenoisingDensity Estimation

Siamese Object Tracking for Vision-Based UAM Approaching with Pairwise Scale-Channel Attention

2022-11-26 · Guangze Zheng, Changhong Fu, Junjie Ye, Bowen Li 외

Although the manipulating of the unmanned aerial manipulator (UAM) has been widely studied, vision-based UAM approaching, which is crucial to the subsequent manipulating, generally lacks effective design. The key to the …

ObjectObject Tracking

Expectation Consistent Approximate Inference: Generalizations and Convergence

2016-02-25 · Alyson K. Fletcher, Mojtaba Sahraee-Ardakan, Sundeep Rangan, Philip Schniter

Approximations of loopy belief propagation, including expectation propagation and approximate message passing, have attracted considerable attention for probabilistic inference problems. This paper proposes and analyzes …

Capacity Optimality of OAMP in Coded Large Unitarily Invariant Systems

2022-06-23 · Lei Liu, Shansuo Liang, Li Ping

This paper investigates a large unitarily invariant system (LUIS) involving a unitarily invariant sensing matrix, an arbitrary fixed signal distribution, and forward error control (FEC) coding. Several area properties ar…