mlsanityData to 7 Oct 2026

ThunderKittens: Simple, Fast, and Adorable AI Kernels

arXiv 2410.20399 ↗First posted 27 Oct 2024cs.LG cs.AIcited by 34

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2016Layer Normalizationcited by 5,579
  4. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  7. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  8. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  9. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  10. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  11. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  12. 2016TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systemscited by 660
18 more
  1. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  2. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
  3. 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
  4. 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
  5. 2022On The Computational Complexity of Self-Attentioncited by 137
  6. 2022Liquid Structural State-Space Modelscited by 134
  7. 2020Fast Transformers with Clustered Attentioncited by 123
  8. 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 119
  9. 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
  10. 2018Glow: Graph Lowering Compiler Techniques for Neural Networkscited by 73
  11. 2023Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecturecited by 62
  12. 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
  13. 2023FlashFFTConv: Efficient Convolutions for Long Sequences with Tensor Corescited by 32
  14. 2024LoLCATs: On Low-Rank Linearizing of Large Language Modelscited by 25
  15. 2023Spectral State Space Modelscited by 20
  16. 2024Linear Transformers with Learnable Kernel Functions are Better In-Context Modelscited by 10
  17. 2023A Case Study in CUDA Kernel Fusion: Implementing FlashAttention-2 on NVIDIA Hopper Architecture using the CUTLASS Librarycited by 5
  18. 2017DLVM: A modern compiler infrastructure for deep learning systemscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 15; 2026: 18.

34 papers.

Sort:

By area:

  1. 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
  2. 2025One-Minute Video Generation with Test-Time Trainingcited by 100
  3. 2025VSA: Faster Video Diffusion with Trainable Sparse Attentioncited by 100
  4. 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 52
  5. 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
  6. 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
  7. 2025Adaptive Self-improvement LLM Agentic System for ML Library Developmentcited by 16
  8. 2025MPK: A Compiler and Runtime for Mega-Kernelizing Tensor Programscited by 14
  9. 2025Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernelscited by 12
  10. 2026Sparse Forcing: Native Trainable Sparse Attention for Real-time Autoregressive Diffusion Video Generationcited by 9
  11. 2026CuTeGen: An LLM-Based Agentic Framework for Generation and Optimization of High-Performance GPU Kernels using CuTecited by 6
  12. 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programscited by 5
22 more
  1. 2025Optimizing PyTorch Inference with LLM-Based Multi-Agent Systemscited by 4
  2. 2025Optimal Software Pipelining and Warp Specialization for Tensor Core GPUscited by 4
  3. 2025Neptune: Advanced ML Operator Fusion for Locality and Parallelism on GPUscited by 3
  4. 2025GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programscited by 3
  5. 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimizationcited by 3
  6. 2026Sliding-window beats linear attentioncited by 2
  7. 2024Flash3D: Super-scaling Point Transformers through Joint Hardware-Geometry Localitycited by 1
  8. 2025HipKittens: Fast and Furious AMD Kernelscited by 1
  9. 2026Veda: Scalable Video Diffusion via Distilled Sparse Attentioncited by 1
  10. 2026DeltaLog: Deferred Materialization of Recurrent States for Linear Attention Decodingcited by 1
  11. 2025Iris: First-Class Multi-GPU Programming Experience in Tritoncited by 0
  12. 2026PolyBlocks: A Compiler Infrastructure for AI Chips and Programming Frameworkscited by 0
  13. 2026Nautilus: An Auto-Scheduling Tensor Compiler for Efficient Tiled GPU Kernelscited by 0
  14. 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineagescited by 0
  15. 2026AutoMegaKernel: A Statically-Checked Agent Harness for Self-Retargeting Megakernel Synthesiscited by 0
  16. 2026SPADE: An Input-Adaptive Sparse Attention Engine for Fast Video Diffusion Models Inferencecited by 0
  17. 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimizationcited by 0
  18. 2026MonoMoE: An Efficient Fused Mega-kernel for Quantized MoE Decodingcited by 0
  19. 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimizationcited by 0
  20. 2026Improving Video Sparse Attention with Fine-grained Router and Sparse Rebasingcited by 0
  21. 2026Parameterized Stripe Attention for Efficient Video Generationcited by 0
  22. 2026Format-Aware Fusion for Fast FP4 Pretrainingcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
  2. 2026FastKernels: Benchmarking GPU Kernel Generation in Production
  3. 2026AgentKernelArena: Generalization-Aware Benchmarking of GPU Kernel Optimization Agents
  4. 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
  5. 2025STARK: Strategic Team of Agents for Refining Kernels
  6. 2026D2K-Bench: Can LLM Agents Turn Expert Designs into Efficient GPU Kernels?
  7. 2026SOL-ExecBench: Speed-of-Light Benchmarking for Real-World GPU Kernels Against Hardware Limits
  8. 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware