NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Approaching I/O-optimality for Approximate Attention

Pál András Papp, Aleksandros Sobczyk, Anastasios Zouzias

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › Efficient Attention Mechanisms · Type: new method · Keywords: I/O complexity, attention computation, memory efficiency, approximate attention, lower bound

Summary

The paper develops I/O-efficient algorithms for attention that achieve near-linear I/O complexity, approaching the theoretical lower bound.

Explained to a 5-year-old

We want to make a computer brain (a big language model) think faster. When it looks at many words, it moves a lot of information between fast and slow memory, like moving books between shelves. Usually it moves all the books, but we found a way to move only the needed books. This makes the brain use less memory and be more efficient. It helps big computers work better with less trouble.

Explained to a 5-year-old, longer

A big computer brain reads many words at once to understand language. It stores some words in fast memory and some in slower memory. Moving words between these memories uses a lot of energy and time. Existing ways of moving words are like moving all the books at once, which is wasteful. We discovered a new way to move only the most important words, like picking only the books you need. This new method uses almost the minimum amount of memory moves possible. It works well for most sizes of the brain. The idea comes from earlier work on approximate attention, which tried to be efficient. By using clever algorithms, we can keep the brain fast while using less memory. This helps when you want to run big language models on limited hardware. It also makes the theory match practice more closely. Overall, the method makes large language models more efficient and easier to run on smaller machines.

For a technical reader

The paper addresses the memory bandwidth bottleneck of attention computation in large language models. It shows that current implementations such as FlashAttention incur quadratic I/O cost, while a theoretical lower bound suggests linear cost is possible. The authors design I/O-efficient algorithms that achieve near-linear data movement by adapting ideas from approximate attention frameworks. They also provide matching lower-bound proofs, demonstrating that their algorithms are close to optimal. The result is a more memory-friendly attention implementation that can improve scalability on hardware with limited fast memory.

Problem

Computing attention in large language models efficiently with respect to data movement between fast and slow memory is challenging, as existing methods incur quadratic I/O cost while a lower bound suggests linear cost is possible.

Method

The approach designs I/O-efficient algorithms that reduce data transfers between fast and slow memory, leveraging ideas from approximate attention frameworks and proving lower bounds to validate near-optimality.

Results

The approach achieves near-linear I/O complexity in most regimes, approaching the theoretical lower bound.

Contributions

It provides I/O-efficient attention algorithms that nearly match the optimal I/O lower bound and includes corresponding lower bound proofs for each regime.

Practical relevance

Enabling more memory-efficient attention can reduce hardware costs and improve scalability of large language models.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction