PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels
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
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2016Layer Normalizationcited by 5,579
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
22 more
- 2020GLU Variants Improve Transformercited by 1,724
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023PaLM 2 Technical Reportcited by 1,154
- 2022In-context Learning and Induction Headscited by 930
- 2020Efficient Transformers: A Surveycited by 784
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2016Language Modeling with Gated Convolutional Networkscited by 688
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
- 2021Random Feature Attentioncited by 350
- 2014Sketching as a Tool for Numerical Linear Algebracited by 285
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2022Transformer Quality in Linear Timecited by 189
- 2023Fast Attention Requires Bounded Entriescited by 102
- 2021Finetuning Pretrained Transformers into RNNscited by 94
- 2022Hydra Attention: Efficient Attention with Many Headscited by 55
- 2021Fast Sketching of Polynomial Kernels of Polynomial Degreecited by 33
- 2019(Learned) Frequency Estimation Algorithms under Zipfian Distributioncited by 10
- 2019Polynomial Tensor Sketch for Element-wise Function of Low-Rank Matrixcited by 7
Built on by
Citing papers per year: 2023: 2; 2024: 12; 2025: 10; 2026: 9.
33 papers.
Sort:
By area:
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2024Transformers, parallel computation, and logarithmic depthcited by 75
- 2025Nested Learning: The Illusion of Deep Learning Architecturescited by 69
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 57
- 2025Log-Linear Attentioncited by 39
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 34
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
- 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformerscited by 30
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Modelscited by 21
- 2025Lattice: Learning to Efficiently Compress the Memorycited by 18
21 more
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyondcited by 15
- 2026VGG-T3: Offline Feed-Forward 3D Reconstruction at Scalecited by 14
- 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weightscited by 11
- 2024Towards Infinite-Long Prefix in Transformercited by 10
- 2025Selective Rotary Position Embeddingcited by 8
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
- 2024Best of Both Worlds: Advantages of Hybrid Graph Sequence Modelscited by 6
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperaturecited by 4
- 2026Auto-Regressive Masked Diffusion Modelscited by 4
- 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentionscited by 3
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networkscited by 3
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Modelscited by 3
- 2025Fast attention mechanisms: a tale of parallelismcited by 2
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Onescited by 1
- 2026Sublinear Time Quantum Algorithm for Attention Approximationcited by 1
- 2026SMat-Attention: Structured Long-Context Sequence Modelingcited by 1
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 0
- 2026Data-Aware Random Feature Kernel for Transformerscited by 0
- 2026On the Computational Hardness of Transformerscited by 0
- 2026ELiTeFormer: An Efficient Transformer for FPGAscited by 0
- 2026Online Neural Space Time Memory for Dynamic Novel View Synthesiscited by 0
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026Online Neural Space Time Memory for Dynamic Novel View Synthesis16 Jul 2026
- 2026ELiTeFormer: An Efficient Transformer for FPGAs4 Jul 2026
- 2026On the Computational Hardness of Transformers11 Mar 2026
- 2026Data-Aware Random Feature Kernel for Transformers4 Mar 2026
- 2026VGG-T3: Offline Feed-Forward 3D Reconstruction at Scale26 Feb 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2026Sublinear Time Quantum Algorithm for Attention Approximation31 Jan 2026
- 2026Auto-Regressive Masked Diffusion Models23 Jan 2026
- 2025Nested Learning: The Illusion of Deep Learning Architectures31 Dec 2025
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Models29 Dec 2025
- 2025Selective Rotary Position Embedding21 Nov 2025
21 more
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
- 2025Two Heads Are Better than One: Simulating Large Transformers with Small Ones13 Jun 2025
- 2025Log-Linear Attention5 Jun 2025
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Time29 May 2025
- 2025Subquadratic Algorithms and Hardness for Attention with Any Temperature20 May 2025
- 2025Lattice: Learning to Efficiently Compress the Memory8 Apr 2025
- 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformers25 Jan 2025
- 2024Titans: Learning to Memorize at Test Time31 Dec 2024
- 2024Best of Both Worlds: Advantages of Hybrid Graph Sequence Models23 Nov 2024
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networks3 Nov 2024
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernels27 Oct 2024
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Models8 Oct 2024
- 2024LevAttention: Time, Space, and Streaming Efficient Algorithm for Heavy Attentions7 Oct 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024Towards Infinite-Long Prefix in Transformer20 Jun 2024
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformers8 May 2024
- 2024Exploring the Frontiers of Softmax: Provable Optimization, Applications in Diffusion Model, and Beyond6 May 2024
- 2024Transformers, parallel computation, and logarithmic depth14 Feb 2024
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Models16 Jan 2024
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformer22 Nov 2023
- 2023Unmasking Transformers: A Theoretical Approach to Data Recovery via Attention Weights19 Oct 2023
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2024Titans: Learning to Memorize at Test Time31 Dec 2024
- 2024A Survey of Resource-efficient LLM and Multimodal Foundation Modelscited by 84
- 2024Transformers, parallel computation, and logarithmic depthcited by 75
- 2025Nested Learning: The Illusion of Deep Learning Architecturescited by 69
- 2025ATLAS: Learning to Optimally Memorize the Context at Test Timecited by 57
- 2025Log-Linear Attentioncited by 39
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 34
- 2024Conv-Basis: A New Paradigm for Efficient Attention Inference and Gradient Computation in Transformerscited by 32
- 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformerscited by 30
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Modelscited by 21
- 2025Lattice: Learning to Efficiently Compress the Memorycited by 18
- 2026VGG-T3: Offline Feed-Forward 3D Reconstruction at Scalecited by 14
12 most cited of 30 All 30 (JSON)
- 2026SMat-Attention: Structured Long-Context Sequence Modeling28 Sep 2026
- 2026Online Neural Space Time Memory for Dynamic Novel View Synthesis16 Jul 2026
- 2026ELiTeFormer: An Efficient Transformer for FPGAs4 Jul 2026
- 2026On the Computational Hardness of Transformers11 Mar 2026
- 2026Data-Aware Random Feature Kernel for Transformers4 Mar 2026
- 2026VGG-T3: Offline Feed-Forward 3D Reconstruction at Scale26 Feb 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2026Sublinear Time Quantum Algorithm for Attention Approximation31 Jan 2026
- 2025Nested Learning: The Illusion of Deep Learning Architectures31 Dec 2025
- 2025Trellis: Learning to Compress Key-Value Memory in Attention Models29 Dec 2025
- 2025Selective Rotary Position Embedding21 Nov 2025
- 2025Fast attention mechanisms: a tale of parallelism10 Sep 2025
12 newest of 30 All 30 (JSON)