Papers › Rethinking Attention with Performers

Rethinking Attention with Performers

30 Sep 2020ICLR 2021 1arXiv:2009.14794archive 2025-07-28

Krzysztof Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Davis, Afroz Mohiuddin, Lukasz Kaiser, David Belanger, Lucy Colwell, Adrian Weller

We introduce Performers, Transformer architectures which can estimate regular (softmax) full-rank-attention Transformers with provable accuracy, but using only linear (as opposed to quadratic) space and time complexity, without relying on any priors such as sparsity or low-rankness. To approximate softmax attention-kernels, Performers use a novel Fast Attention Via positive Orthogonal Random features approach (FAVOR+), which may be of independent interest for scalable kernel methods. FAVOR+ can be also used to efficiently model kernelizable attention mechanisms beyond softmax. This representational power is crucial to accurately compare softmax with other kernels for the first time on large-scale tasks, beyond the reach of regular Transformers, and investigate optimal attention-kernels. Performers are linear architectures fully compatible with regular Transformers and with strong theoretical guarantees: unbiased or nearly-unbiased estimation of the attention matrix, uniform convergence and low estimation variance. We tested Performers on a rich set of tasks stretching from pixel-prediction through text models to protein sequence modeling. We demonstrate competitive results with other examined efficient sparse and dense attention methods, showcasing effectiveness of the novel attention-learning paradigm leveraged by Performers.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2009.14794")

Code

Syntology Ran 9 of 16 code samples harvested from 5 repositories linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 0 ran; community (archive-listed): 15 samples from 4 repositories, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

google-research/google-research officialmentioned in papertf report
facebookresearch/xformers mentioned on GitHubpytorch report
lucidrains/performer-pytorch mentioned on GitHubpytorch report
teddykoker/performer mentioned on GitHub report
xl402/performer mentioned on GitHubtfMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 9 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
6ran
7unverified

Licence: 6 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_fixed_sin_cos_encodings google-research/google-research/COSTAR/src/models/utils_transformer.py official repository unverified Apache-2.0 (permissive) · 5365366fdf3b6d3b · report
Favor idiap/fast-transformers/fast_transformers/feature_maps/fourier_features.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 6451bb5de4de0afc · report
FeatureMap idiap/fast-transformers/fast_transformers/feature_maps/fourier_features.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 7075608a1ad15a59 · report
RandomFourierFeatures idiap/fast-transformers/fast_transformers/feature_maps/fourier_features.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted no licence file found · pointer only · 080893f281eb2f9d · report
causal_linear_attention lucidrains/performer-pytorch/performer_pytorch/performer_pytorch.py community (archive-listed) ran MIT (permissive) · 0b9a5b455433ca64 · report
causal_linear_attention_noncuda lucidrains/performer-pytorch/performer_pytorch/performer_pytorch.py community (archive-listed) ran MIT (permissive) · d512c905ae6d1fb7 · report
gaussian_orthogonal_random_matrix lucidrains/performer-pytorch/performer_pytorch/performer_pytorch.py community (archive-listed) ran · honoured contract MIT (permissive) · 678cef9796271045 · report
null_context lucidrains/performer-pytorch/performer_pytorch/performer_pytorch.py community (archive-listed) ran MIT (permissive) · d859f1b3d3c7f242 · report
phi teddykoker/performer/performer.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · d10e6f7a10a8b0d9 · report
softmax_kernel lucidrains/performer-pytorch/performer_pytorch/performer_pytorch.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 829218b2f7e9682c · report
FastAttention lucidrains/performer-pytorch/performer_pytorch/performer_pytorch.py community (archive-listed) unverified MIT (permissive) · 03ed65c20de38e07 · report
att_hat teddykoker/performer/performer.py community (archive-listed) unverified no licence file found · pointer only · d8628e15a7dc6add · report
build_linear_attention_equation xl402/performer/performer/networks/build_attention.py community (archive-listed) unverified MIT (permissive) · 58f9da6e70d9e0ad · report
build_normalisation_equation xl402/performer/performer/networks/build_attention.py community (archive-listed) unverified MIT (permissive) · 26d17ff60efc0bc4 · report
build_quadratic_attention_equation xl402/performer/performer/networks/build_attention.py community (archive-listed) unverified MIT (permissive) · 5e7a65b62164cc36 · report
orthogonal_random_matrix_ idiap/fast-transformers/fast_transformers/feature_maps/fourier_features.py community (archive-listed) unverified no licence file found · pointer only · 39aea8b96624e6f3 · report

Tasks

D4RLImage GenerationLanguage ModellingOffline RL

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
D4RL D4RL Performer Average Reward 63.8 #9 of 9 Archive leaderboard report
Image Generation ImageNet 64x64 Performer (12 layers) Bits per dim 3.636 #51 of 65 Archive leaderboard report
Image Generation ImageNet 64x64 Performer (6 layers) Bits per dim 3.719 #57 of 65 Archive leaderboard report
Language Modelling WikiText-103 Performer 125M Test perplexity 26.8 #64 of 89 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: Performer

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutFAVOR+Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPerformerPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections