mlsanityData to 7 Oct 2026

PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels

arXiv 2310.01655 ↗First posted 2 Oct 2023cs.LGcited by 33

Not on the map. Why?

Abstract (arXiv)

The quadratic time and memory complexity inherent to self-attention mechanisms, with respect to sequence length, presents a critical computational bottleneck in the training and deployment of large-scale Transformer-based language models. Recent theoretical results indicate the intractability of sub-quadratic softmax attention approximation under reasonable complexity assumptions. This paper addresses this challenge by first demonstrating that polynomial attention with high degree can effectively replace softmax without sacrificing model quality. Next, we develop polynomial sketching techniques from numerical linear algebra to achieve linear-time polynomial attention with approximation guarantees. Crucially, our approach achieves this speedup without requiring the sparsification of attention matrices. We also present a block-based algorithm to apply causal masking efficiently. Combining these techniques, we provide PolySketchFormer, a practical linear-time Transformer architecture for language modeling that offers provable guarantees. We validate PolySketchFormer empirically by training language models capable of handling long contexts. These experiments utilize both synthetic and real-world datasets (PG19, Wikipedia and C4) on Google Cloud TPUs. For context lengths of 32k and GPT-2 style models, our model achieves a 2.5-4x speedup in training compared to FlashAttention, with no observed degradation in quality across our experiments.

Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). Builds on 34 of its 51 references that are in the map. First posted on arXiv 2 Oct 2023.

Builds on

34 of 51 references.

References · 34

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2016Layer Normalizationcited by 5,579
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  10. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  11. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  12. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
22 more
  1. 2020GLU Variants Improve Transformercited by 1,724
  2. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  3. 2020Reformer: The Efficient Transformercited by 1,658
  4. 2020Rethinking Attention with Performerscited by 1,584
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  6. 2023PaLM 2 Technical Reportcited by 1,154
  7. 2022In-context Learning and Induction Headscited by 930
  8. 2020Efficient Transformers: A Surveycited by 784
  9. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  10. 2016Language Modeling with Gated Convolutional Networkscited by 688
  11. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  12. 2021Random Feature Attentioncited by 350
  13. 2014Sketching as a Tool for Numerical Linear Algebracited by 285
  14. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  15. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
  16. 2022Transformer Quality in Linear Timecited by 189
  17. 2023Fast Attention Requires Bounded Entriescited by 102
  18. 2021Finetuning Pretrained Transformers into RNNscited by 94
  19. 2022Hydra Attention: Efficient Attention with Many Headscited by 55
  20. 2021Fast Sketching of Polynomial Kernels of Polynomial Degreecited by 33
  21. 2019(Learned) Frequency Estimation Algorithms under Zipfian Distributioncited by 10
  22. 2019Polynomial Tensor Sketch for Element-wise Function of Low-Rank Matrixcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 12; 2025: 10; 2026: 9.

33 papers.

Sort:

By area:

  1. 2024Titans: Learning to Memorize at Test Timecited by 303
  2. 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
  3. 2024Transformers, parallel computation, and logarithmic depthcited by 75
  4. 2025Nested Learning: The Illusion of Deep Learning Architecturescited by 69
  5. 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 57
  6. 2025Log-Linear Attentioncited by 39
  7. 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 34
  8. 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
  9. 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformerscited by 30
  10. 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
  11. 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Modelscited by 21
  12. 2025Lattice: Learning to Efficiently Compress the Memorycited by 18
21 more
  1. 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
  2. 2026VGG-T3: Offline Feed-Forward 3D Reconstruction at Scalecited by 14
  3. 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
  4. 2024Towards Infinite-Long Prefix in Transformercited by 10
  5. 2025Selective Rotary Position Embeddingcited by 8
  6. 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
  7. 2024Best of Both Worlds: Advantages of Hybrid Graph Sequence Modelscited by 6
  8. 2025Subquadratic Algorithms and Hardness for Attention with Any Temperaturecited by 4
  9. 2026Auto-Regressive Masked Diffusion Modelscited by 4
  10. 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentionscited by 3
  11. 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networkscited by 3
  12. 2025Trellis: Learning to Compress Key-Value Memory in Attention Modelscited by 3
  13. 2025Fast attention mechanisms: a tale of parallelismcited by 2
  14. 2025Two Heads Are Better than One: Simulating Large Transformers with Small Onescited by 1
  15. 2026Sublinear Time Quantum Algorithm for Attention Approximationcited by 1
  16. 2026SMat-Attention: Structured Long-Context Sequence Modelingcited by 1
  17. 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 0
  18. 2026Data-Aware Random Feature Kernel for Transformerscited by 0
  19. 2026On the Computational Hardness of Transformerscited by 0
  20. 2026ELiTeFormer: An Efficient Transformer for FPGAscited by 0
  21. 2026Online Neural Space Time Memory for Dynamic Novel View Synthesiscited by 0