atlas

Research map / Architectures and efficiency / Attention and transformers

Fast attention mechanisms: a tale of parallelism

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces Approximate Nearest Neighbor Attention (ANNA), a sub-quadratic LSH-based attention, and proves it matches MPC simulation power of standard transformers with far fewer machines, simulates low-rank transformers, and solves Match2 and k-hop with near-optimal depth.

Problem

Standard attention has quadratic cost, and prior MPC-transformer equivalences require up to N^2 machines, leaving a gap; it is unclear whether efficient sub-quadratic attention alternatives preserve transformers' representational advantages.

Approach

Define ANNA, a class of attention mechanisms whose weights are supported on approximate nearest neighbors, with an LSH-based sub-quadratic implementation; use MPC to show ANNA-transformers simulate MPC with near-linear machine count and can simulate low-rank attention transformers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use more hash tablesTwo-layer ANNA-transformer · Induction heads (k=1, N=100, |Σ|=4)error rateHelped

Surprising findings

Limitations

Experimental setup

Datasets: Match2 synthetic dataset induction heads dataset

Benchmarks: Match2 induction heads

Metrics: error rate

Baselines: standard softmax attention low-rank attention Reformer KDEformer HyperAttention

Builds on: MPC transformer equivalence (Sanford et al.) locality-sensitive hashing Reformer low-rank attention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy