ThunderKittens: Simple, Fast, and Adorable AI Kernels
Not on the map. Why?
Abstract (arXiv)
The challenge of mapping AI architectures to GPU hardware is creating a critical bottleneck in AI progress. Despite substantial efforts, hand-written custom kernels fail to meet their theoretical performance thresholds, even on well-established operations like linear attention. The diverse hardware capabilities of GPUs might suggest that we need a wide variety of techniques to achieve high performance. However, our work explores whether a small number of key abstractions can drastically simplify the process. We present ThunderKittens (TK), a framework for writing performant AI kernels while remaining easy to use and maintain. Our abstractions map to the three levels of the GPU hierarchy: (1) at the warp-level, we provide 16x16 matrix tiles as basic data structures and PyTorch-like parallel compute operations over tiles, (2) at the thread-block level, we provide a template for overlapping asynchronous operations across parallel warps, and (3) at the grid-level, we provide support to help hide the block launch and tear-down, and memory costs. We show the value of TK by providing kernels that match or outperform prior kernels for a range of AI operations. We match CuBLAS and FlashAttention-3 on GEMM and attention inference performance and outperform the strongest baselines by 10-40% on attention backwards, 8× on state space models, and 14× on linear attention.
Key facts. Cited by 34 papers in the map (data through 7 Oct 2026). Builds on 30 of its 50 references that are in the map. First posted on arXiv 27 Oct 2024.
Builds on
30 of 50 references.
References · 30
- 2017Attention Is All You Needcited by 59,932
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2016Layer Normalizationcited by 5,579
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2016TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systemscited by 660
18 more
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2022On The Computational Complexity of Self-Attentioncited by 137
- 2022Liquid Structural State-Space Modelscited by 134
- 2020Fast Transformers with Clustered Attentioncited by 123
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
- 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
- 2018Glow: Graph Lowering Compiler Techniques for Neural Networkscited by 73
- 2023Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecturecited by 62
- 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
- 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 32
- 2024LoLCATs: On Low-Rank Linearizing of Large Language Modelscited by 25
- 2023Spectral State Space Modelscited by 20
- 2024Linear Transformers with Learnable Kernel Functions are Better In-Context Modelscited by 10
- 2023A Case Study in CUDA Kernel Fusion: Implementing FlashAttention-2 on NVIDIA Hopper Architecture using the CUTLASS Librarycited by 5
- 2017DLVM: A modern compiler infrastructure for deep learning systemscited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 15; 2026: 18.
34 papers.
Sort:
By area:
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2025One-Minute Video Generation with Test-Time Trainingcited by 100
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attentioncited by 100
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 52
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Developmentcited by 16
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programscited by 14
- 2025Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernelscited by 12
- 2026Sparse Forcing: Native Trainable Sparse Attention for Real-time Autoregressive Diffusion Video Generationcited by 9
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programscited by 5
22 more
- 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systemscited by 4
- 2025Optimal Software Pipelining and Warp Specialization for Tensor Core GPUscited by 4
- 2025Neptune: Advanced ML Operator Fusion for Locality and Parallelism on GPUscited by 3
- 2025GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programscited by 3
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimizationcited by 3
- 2026Sliding-window beats linear attentioncited by 2
- 2024Flash3D: Super-scaling Point Transformers through Joint Hardware-Geometry Localitycited by 1
- 2025HipKittens: Fast and Furious AMD Kernelscited by 1
- 2026Veda: Scalable Video Diffusion via Distilled Sparse Attentioncited by 1
- 2026DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decodingcited by 1
- 2025Iris: First-Class Multi-GPU Programming Experience in Tritoncited by 0
- 2026PolyBlocks: A Compiler Infrastructure for AI Chips and Programming Frameworkscited by 0
- 2026Nautilus: An Auto-Scheduling Tensor Compiler for Efficient Tiled GPU Kernelscited by 0
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineagescited by 0
- 2026AutoMegaKernel: A Statically-Checked Agent Harness for Self-Retargeting Megakernel Synthesiscited by 0
- 2026SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inferencecited by 0
- 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimizationcited by 0
- 2026MonoMoE: An Efficient Fused Mega-kernel for Quantized MoE Decodingcited by 0
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimizationcited by 0
- 2026Improving Video Sparse Attention with Fine-grained Router and Sparse Rebasingcited by 0
- 2026Parameterized Stripe Attention for Efficient Video Generationcited by 0
- 2026Format-Aware Fusion for Fast FP4 Pretrainingcited by 0
- 2026Parameterized Stripe Attention for Efficient Video Generation29 Sep 2026
- 2026Improving Video Sparse Attention with Fine-grained Router and Sparse Rebasing26 Sep 2026
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026Format-Aware Fusion for Fast FP4 Pretraining4 Sep 2026
- 2026Sliding-window beats linear attention28 Aug 2026
- 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimization21 Aug 2026
- 2026MonoMoE: An Efficient Fused Mega-kernel for Quantized MoE Decoding19 Aug 2026
- 2026DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decoding16 Aug 2026
- 2026SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inference4 Aug 2026
- 2026AutoMegaKernel: A Statically-Checked Agent Harness for Self-Retargeting Megakernel Synthesis8 Jun 2026
- 2026Veda: Scalable Video Diffusion via Distilled Sparse Attention28 May 2026
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineages27 May 2026
22 more
- 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs19 May 2026
- 2026Sparse Forcing: Native Trainable Sparse Attention for Real-time Autoregressive Diffusion Video Generation23 Apr 2026
- 2026Nautilus: An Auto-Scheduling Tensor Compiler for Efficient Tiled GPU Kernels16 Apr 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2026PolyBlocks: A Compiler Infrastructure for AI Chips and Programming Frameworks6 Mar 2026
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimization19 Jan 2026
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs22 Dec 2025
- 2025Optimal Software Pipelining and Warp Specialization for Tensor Core GPUs19 Dec 2025
- 2025GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programs15 Dec 2025
- 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systems21 Nov 2025
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov 2025
- 2025Iris: First-Class Multi-GPU Programming Experience in Triton16 Nov 2025
- 2025HipKittens: Fast and Furious AMD Kernels11 Nov 2025
- 2025Neptune: Advanced ML Operator Fusion for Locality and Parallelism on GPUs9 Oct 2025
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep 2025
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep 2025
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attention19 May 2025
- 2025One-Minute Video Generation with Test-Time Training7 Apr 2025
- 2025Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels18 Mar 2025
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?14 Feb 2025
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Development4 Feb 2025
- 2024Flash3D: Super-scaling Point Transformers through Joint Hardware-Geometry Locality21 Dec 2024
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Developmentcited by 16
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
- 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systemscited by 4
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineagescited by 0
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimizationcited by 0
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineages27 May 2026
- 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTe1 Apr 2026
- 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systems21 Nov 2025
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov 2025
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep 2025
- 2025Adaptive Self-improvement LLM Agentic System for ML Library Development4 Feb 2025
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attentioncited by 100
- 2026Sparse Forcing: Native Trainable Sparse Attention for Real-time Autoregressive Diffusion Video Generationcited by 9
- 2026Veda: Scalable Video Diffusion via Distilled Sparse Attentioncited by 1
- 2026SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inferencecited by 0
- 2026Parameterized Stripe Attention for Efficient Video Generationcited by 0
- 2026Parameterized Stripe Attention for Efficient Video Generation29 Sep 2026
- 2026SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inference4 Aug 2026
- 2026Veda: Scalable Video Diffusion via Distilled Sparse Attention28 May 2026
- 2026Sparse Forcing: Native Trainable Sparse Attention for Real-time Autoregressive Diffusion Video Generation23 Apr 2026
- 2025VSA: Faster Video Diffusion with Trainable Sparse Attention19 May 2025
- 2025One-Minute Video Generation with Test-Time Trainingcited by 100
- 2025One-Minute Video Generation with Test-Time Training7 Apr 2025
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programscited by 14
- 2025Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernelscited by 12
- 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programscited by 5
- 2025Optimal Software Pipelining and Warp Specialization for Tensor Core GPUscited by 4
- 2025Neptune: Advanced ML Operator Fusion for Locality and Parallelism on GPUscited by 3
- 2025GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programscited by 3
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimizationcited by 3
- 2024Flash3D: Super-scaling Point Transformers through Joint Hardware-Geometry Localitycited by 1
- 2025HipKittens: Fast and Furious AMD Kernelscited by 1
- 2025Iris: First-Class Multi-GPU Programming Experience in Tritoncited by 0
- 2026PolyBlocks: A Compiler Infrastructure for AI Chips and Programming Frameworkscited by 0
12 most cited of 17 All 17 (JSON)
- 2026Improving Video Sparse Attention with Fine-grained Router and Sparse Rebasing26 Sep 2026
- 2026Format-Aware Fusion for Fast FP4 Pretraining4 Sep 2026
- 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimization21 Aug 2026
- 2026AutoMegaKernel: A Statically-Checked Agent Harness for Self-Retargeting Megakernel Synthesis8 Jun 2026
- 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs19 May 2026
- 2026Nautilus: An Auto-Scheduling Tensor Compiler for Efficient Tiled GPU Kernels16 Apr 2026
- 2026PolyBlocks: A Compiler Infrastructure for AI Chips and Programming Frameworks6 Mar 2026
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimization19 Jan 2026
- 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programs22 Dec 2025
- 2025Optimal Software Pipelining and Warp Specialization for Tensor Core GPUs19 Dec 2025
- 2025GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programs15 Dec 2025
- 2025Iris: First-Class Multi-GPU Programming Experience in Triton16 Nov 2025
12 newest of 17 All 17 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
- 2026FastKernels: Benchmarking GPU Kernel Generation in Production
- 2026AgentKernelArena: Generalization-Aware Benchmarking of GPU Kernel Optimization Agents
- 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026D2K-Bench: Can LLM Agents Turn Expert Designs into Efficient GPU Kernels?
- 2026SOL-ExecBench: Speed-of-Light Benchmarking for Real-World GPU Kernels Against Hardware Limits
- 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware