# Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention

- **DOI:** [10.48550/arxiv.2006.16236](https://doi.org/10.48550/arxiv.2006.16236)
- **Rating:** Strong (3.8 out of 5)
- **Verdict:** Linear attention delivers a derived recurrent implementation and substantial efficiency gains, but headline speedups depend on an uncached throughput comparison.
- **Framework version:** v5.13
- **Pipeline version:** v0.4
- **Evaluation date:** 2026-11-27
- **Evaluation page:** https://www.nabu.science/paper/10.48550%2Farxiv.2006.16236

## Key claims

1. Our linear transformers achieve similar performance to vanilla transformers and they are up to 4000x faster on autoregressive prediction of very long sequences.
   - Support: Tentative
   - Type: Primary finding
   - Basis: uncached throughput comparisons and a speech accuracy deficit limit the general performance claim
   - Location: Abstract
2. any transformer layer with causal masking can be written as a model that, given an input, modifies an internal state and then predicts an output, namely a Recurrent Neural Network (RNN).
   - Support: Supported
   - Type: Secondary
   - Basis: the recurrence is derived explicitly, with exact softmax requiring an infinite-dimensional feature representation
   - Location: §3.4, eq. 16–20
3. [On WSJ automatic speech recognition] linear outperforms the recurrent network baseline and Reformer both in terms of performance and speed by a large margin
   - Support: Supported
   - Type: Secondary
   - Basis: a single benchmark reports lower phoneme error and shorter training time than both comparators without run-to-run uncertainty
   - Location: Section 4.3, Table 3
4. Our linear transformers achieve almost the same bits/dim as the full softmax attention [0.644 vs 0.621 on MNIST] but more than 300 times higher throughput in image generation [142.8 vs 0.45 images/sec].
   - Support: Tentative
   - Type: Secondary
   - Basis: the throughput comparison uses uncached softmax and memory-dependent batching rather than equal-batch prediction latency
   - Location: Section 4.2.1, Table 1
5. Our model generates images 4,000× faster than the baselines.
   - Support: Unsupported
   - Type: Secondary
   - Basis: the reported throughput advantage over LSH-1 is 1,190× rather than 4,000×
   - Location: Table 2 caption

## Strengths

- **Linear formulation establishes a computational advance** Kernel feature maps and matrix-product associativity yield attention with linear sequence-length scaling for fixed feature dimensions. The paper distinguishes this advance from sparse attention, Reformer and earlier kernel interpretations.
  - Dimension: contribution
  - Location: §§2.1–2.3, 3.2; Figure 1
- **Causal gradients and recurrence are explicit** The cumulative-sum derivation specifies forward and backward computations, while the recurrent formulation identifies the state updated during autoregressive generation.
  - Dimension: methodological rigour
  - Location: §§3.3–3.4; Algorithm 1; Appendix A
- **Supplementary controls expose practical speed tradeoffs** Cached-softmax throughput and batch-one CPU/GPU latency comparisons distinguish aggregate generation capacity from the time needed to produce one image.
  - Dimension: reporting
  - Location: Appendix C, Tables 4–5

## Limitations

- **Headline speedup obscures the operational comparison** The approximately 4,000× headline uses uncached softmax throughput. On CIFAR-10, the advantage over cached softmax is about 55.8× in throughput but only about 1.14× in batch-one GPU latency.
  - Dimension: reporting
  - Location: Abstract; Tables 2, 4(b), 5(b)
- **Quality parity has limited empirical coverage** Application results are single runs without uncertainty estimates, and quality is tested at modest sequence lengths. Speech recognition gives PER 8.08 for linear attention versus 5.12 for softmax, limiting a general equivalence claim.
  - Dimension: methodological rigour
  - Location: §§4.2–4.3; Tables 1–3
- **Reported speed ratios overstate two comparisons** Table 2's caption claims 4,000× faster generation than the baselines, but its LSH-1 comparison is 17.85/0.015 = 1,190×. Appendix C.2 also reports almost 6.6× faster single-image generation where Table 5(b) gives approximately 4.9× on GPU.
  - Dimension: reporting
  - Location: Table 2 caption and rows; Appendix C.2; Table 5(b)

## Reliability checks

Caveats (4 of 4 checks).

- **Results check:** Noted
  - "Our model generates images 4,000× faster than the baselines." (Table 2 caption) vs "LSH-1 3.39 0.015 (3.75×) LSH-4 3.51 0.005 (1.25×) Linear (ours) 3.40 17.85 (4,462×)" (Table 2, LSH-1 through Linear rows). Linear throughput divided by LSH-1 throughput is 17.85/0.015 = 1,190, not 4,000. The claim is not supported by the paper's own data.
  - Minor reporting notes (1):
    - "almost 6.6× faster than softmax transformers for generating an image on CIFAR-10." (Appendix C.2) vs "Softmax 8651.4 (191.8×) 300.1 (4.9×)" (Table 5(b), Softmax row). The stated GPU single-image speedup of almost 6.6× compares with 300.1/61.3 ≈ 4.90× from Table 5(b). The result itself is unaffected.
- **Reporting and transparency:** Clean. The experiments use public benchmark datasets and declare code availability at a named website. No reporting or transparency concern is established in the supplied text.
  - Code availability: declared
- **Reference integrity:** Noted. 28 of 36 checkable references verified
  - 39 references in manuscript
  - 3 are books, websites or datasets — counted, but not index-checkable
  - Could not be verified automatically — queued for manual review:
    - Clark, K., Luong, M.-T., Le, Q. V., and Manning, C. D. ELECTRA: Pre-training text encoders as discriminators rather than generators. In International Conference on Learning Representations, 2020. (Crossref bibliographic top candidate ratio 0.47 — no plausible match)
    - Cordonnier, J.-B., Loukas, A., and Jaggi, M. On the relationship between self-attention and convolutional layers. In International Conference on Learning Representations, 2020. (Ambiguous: title ratio 0.64 via crossref_bibliographic sits between the divergence (0.30) and match (0.70) thresholds; too close to call either way, so it is recorded as unresolved rather than judged.)
    - Lample, G., Sablayrolles, A., Ranzato, M. A., Denoyer, L., and Jegou, H. Large memory layers with product keys. In Wallach, H., Larochelle, H., Beygelzimer, A., d ́Alch ́e-Buc, F., Fox, E., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 32, pp. 8546–8557. Curran Associates, Inc., 2019. (Crossref bibliographic top candidate ratio 0.46 — no plausible match)
    - Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. RoBERTa: A robustly optimized BERT pretraining approach, 2020. (Ambiguous: title ratio 0.61 via crossref_bibliographic sits between the divergence (0.30) and match (0.70) thresholds; too close to call either way, so it is recorded as unresolved rather than judged.)
    - Mnih, A. and Hinton, G. E. A scalable hierarchical distributed language model. In Advances in neural information processing systems, pp. 1081–1088, 2009. (Crossref bibliographic top candidate ratio 0.46 — no plausible match)
    - Parmar, N., Ramachandran, P., Vaswani, A., Bello, I., Levskaya, A., and Shlens, J. Stand-alone self-attention in vision models. In Wallach, H., Larochelle, H., Beygelzimer, A., d’ Alch ́e-Buc, F., Fox, E., and Garnett, R. (eds.), Advances in Neural Information Processing Systems 32, pp. 68–80. Curran Associates, Inc., 2019. (Ambiguous: title ratio 0.60 via crossref_bibliographic sits between the divergence (0.30) and match (0.70) thresholds; too close to call either way, so it is recorded as unresolved rather than judged.)
    - Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. Pytorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, pp. 8024–8035, 2019. (Crossref bibliographic top candidate ratio 0.47 — no plausible match)
    - Sutskever, I., Vinyals, O., and Le, Q. V. Sequence to sequence learning with neural networks. In Advances in Neural Information Processing Systems 27, pp. 3104–3112. Curran Associates, Inc., 2014. (Ambiguous: title ratio 0.65 via crossref_bibliographic sits between the divergence (0.30) and match (0.70) thresholds; too close to call either way, so it is recorded as unresolved rather than judged.)
  - References not verified automatically are resolved manually within 24 hours.

## Post-publication record

- **Status:** Clean
- **Summary:** No retraction or expression of concern found in Crossref (includes Retraction Watch).
- **Last checked:** 2026-11-27
