Born Attention is Linear: Exact Sub-Quadratic Attention and Constant-State Inference from Quantum Measurement

Marcel Crasmaru

Published October 30, 2026 · on the feed December 3, 2026 · ▲ 2 · arXiv 2612.02459

The abstract

Softmax attention costs O(T^2) in sequence length because the exponential kernel has no finite feature map, so linear-time variants approximate it. We observe that Born-rule attention, whose weights are quantum-measurement probabilities |<Q_k,K_j>|^2 over complex queries and keys, is an exact finite kernel with the rank-one density-matrix feature map rho_x = x x^dagger, since |<Q_k,K_j>|^2 = tr(rho_Q rho_K). As the complex degree-two case of polynomial-kernel linear attention, it admits an exact O(T d^2) causal recurrence and constant-state decoding, independent of T, and keeps rotary positions exactly. On an A100, constant-state decoding uses 6.4 MB per layer at 0.12 ms per token at any length, against a 3.2 GB FlashAttention-2 cache at 2.26 ms per token at 1M tokens; a fused prefill overtakes FlashAttention-2 between 16k and 32k tokens (4x at 128k). Whether the operator matches softmax is a separate modeling question, answered here at small scale: bolted into a real-valued GPT it trails softmax by 0.12 nats at 1k context and 0.77 at 16k (attention dilution, which a decay kept exactly in the state repairs), while inside a fully complex residual stream it matches softmax at 1k; gated linear attention beats both. At 128k context on PG-19, Born with a fixed decay is 0.32 nats ahead of softmax and within 0.04 of gated linear attention, which is 1.8x faster. Streamed in constant state over the PG-19 test set in 5M-byte windows, 4M-complex-parameter byte models score 1.66 (Born with decay) and 1.70 (gated) bits per byte, where a 350M-parameter hierarchical model built for that window reports 2.45.

The Brief

3:22

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Born Attention is Linear. Exact Sub-Quadratic Attention and Constant-State Inference from Quantum Measurement. By Marcel Crasmaru. Published on the thirtieth of October.

Softmax attention costs time that grows with the square of the sequence length. The reason, as this paper puts it, is that the exponential kernel inside softmax has no finite feature map, and so the variants that run in linear time can only approximate it. The paper looks instead at a different weighting rule, Born-rule attention. Here queries and keys are complex vectors, and the weight between a query and a key is a quantum-measurement probability: the squared magnitude of their inner product.

The observation is that this rule is an exact finite kernel. Nothing is approximated. Because of that, Born attention admits an exact causal recurrence whose cost is linear in sequence length, it supports decoding with a constant-sized state that does not depend on sequence length, and it keeps rotary positions exactly. On an A100, constant-state decoding uses six point four megabytes per layer and zero point one two milliseconds per token, at any length. A FlashAttention-2 cache at a million tokens, by comparison, takes three point two gigabytes and two point two six milliseconds per token.

Prefill benefits too. A fused prefill overtakes FlashAttention-2 somewhere between sixteen thousand and thirty-two thousand tokens, and is four times faster at a hundred and twenty-eight thousand.

The argument is short, and it rests on one identity. Map each vector to a rank-one density matrix, the outer product of the vector with its own conjugate transpose. The squared magnitude of the inner product between a query and a key then equals the trace of the product of their two density matrices. That trace is itself an inner product between the two matrices, so the attention weight factors through a finite feature map: the density matrix. Seen this way, Born attention is the complex, degree-two case of polynomial-kernel linear attention, and the linear-time recurrence and constant-state decoding come with that membership.

Exactness is a claim about computation. Whether the operator models language as well as softmax is a separate question, and the paper answers it only at small scale. Bolted into a real-valued GPT, it trails softmax by zero point one two nats at one thousand tokens of context, and by zero point seven seven at sixteen thousand. That gap is put down to attention dilution, which a decay kept exactly in the state repairs. Inside a fully complex residual stream, it matches softmax at one thousand tokens. Gated linear attention beats both.

At longer context the picture shifts. At a hundred and twenty-eight thousand tokens on PG-19, Born attention with a fixed decay is zero point three two nats ahead of softmax, and within zero point zero four of gated linear attention, which is one point eight times faster.

One last test streams the PG-19 test set in constant state, in windows of five million bytes. Byte models with four million complex parameters score one point six six bits per byte for Born with decay, and one point seven zero for the gated version. A hierarchical model of three hundred and fifty million parameters, built for that window, reports two point four five.

The paper keeps two questions apart that are easy to blur. Is Born attention exactly linear? Yes, by an identity from quantum measurement, and the memory and speed figures follow. Is it as good a model as softmax? That is a modelling question, answered here only at small scale, where the answer depends on context length, on whether a decay is kept, and on what it is compared against.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.