KernelBench: Can LLMs Write Efficient GPU Kernels?
Not on the map. Why?
Cited by 73 in LLM agents and tool use, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Efficient GPU kernels are crucial for building performant machine learning architectures, but writing them is a time-consuming challenge that requires significant expertise; therefore, we explore using language models (LMs) to automate kernel generation. We introduce KernelBench, an open-source framework for evaluating LMs' ability to write fast and correct kernels on a suite of 250 carefully selected PyTorch ML workloads. KernelBench represents a real-world engineering environment and making progress on the introduced benchmark directly translates to faster practical kernels. We introduce a new evaluation metric fast_p, which measures the percentage of generated kernels that are functionally correct and offer a speedup greater than an adjustable threshold p over baseline. Our experiments across various state-of-the-art models and test-time methods show that frontier reasoning models perform the best out of the box but still fall short overall, matching the PyTorch baseline in less than 20% of the cases. While we show that results can improve by leveraging execution and profiling feedback during iterative refinement, KernelBench remains a challenging benchmark, with its difficulty increasing as we raise speedup threshold p.
Key facts. Cited by 206 papers in the map (data through 7 Oct 2026). Builds on 25 of its 48 references that are in the map. First posted on arXiv 14 Feb 2025.
Builds on
25 of 48 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 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
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
- 2020Efficient Transformers: A Surveycited by 784
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
13 more
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2023TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning with Hardware Support for Embeddingscited by 198
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 196
- 2024RE-Bench: Evaluating frontier AI R&D capabilities of language model agents against human expertscited by 153
- 2022Natural Language to Code Generation in Interactive Data Science Notebookscited by 86
- 2024Can Language Models Solve Olympiad Programming?cited by 70
- 2024ThunderKittens: Simple, Fast, and Adorable AI Kernelscited by 34
- 2023Comparing Llama-2 and GPT-3 LLMs for HPC kernels generationcited by 30
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 25
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
- 2024CodeRosetta: Pushing the Boundaries of Unsupervised Code Translation for Parallel Programmingcited by 19
- 2024Priority Sampling of Large Language Models for Compilerscited by 8
Built on by
Citing papers per year: 2025: 45; 2026: 161.
206 papers.
Sort:
By area:
- 2025Establishing Best Practices for Building Rigorous Agentic Benchmarkscited by 94
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 59
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 52
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
- 2026ProgramBench: Can Language Models Rebuild Programs From Scratch?cited by 47
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 41
- 2025AutoTriton: Automatic Triton Programming with Reinforcement Learning in LLMscited by 38
- 2026CORAL: Towards Autonomous Multi-Agent Evolution for Open-Ended Discoverycited by 38
- 2025CUDA-LLM: LLMs Can Write Efficient CUDA Kernelscited by 33
- 2026SpecBench: Measuring Reward Hacking in Long-Horizon Coding Agentscited by 25
38 more
- 2025AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?cited by 24
- 2025TritonRL: Training LLMs to Think and Code Triton Without Cheatingcited by 24
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 23
- 2025GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimizationcited by 22
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2026Dr. Kernel: Reinforcement Learning Done Right for Triton Kernel Generationscited by 21
- 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systemscited by 20
- 2025FrontierCS: Evolving Challenges for Evolving Intelligencecited by 19
- 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Modelcited by 17
- 2025QiMeng-Kernel: Macro-Thinking Micro-Coding Paradigm for LLM-Based High-Performance GPU Kernel Generationcited by 16
- 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 15
- 2026ResearchGym: Evaluating Language Model Agents on Real-World AI Researchcited by 15
- 2026AutoKernel: Autonomous GPU Kernel Optimization via Iterative Agent-Driven Searchcited by 14
- 2025EvoEngineer: Mastering Automated CUDA Kernel Code Evolution with Large Language Modelscited by 13
- 2025ConCuR: Conciseness Makes State-of-the-Art Kernel Generationcited by 13
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025CUDA-L2: Surpassing cuBLAS Performance for Matrix Multiplication through Reinforcement Learningcited by 13
- 2025Training Versatile Coding Agents in Synthetic Environmentscited by 13
- 2026SOL-ExecBench: Speed-of-Light Benchmarking for Real-World GPU Kernels Against Hardware Limitscited by 13
- 2026Do Androids Dream of Breaking the Game? Systematically Auditing AI Agent Benchmarks with BenchJackcited by 13
- 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 12
- 2025SwizzlePerf: Hardware-Aware LLMs for GPU Kernel Performance Optimizationcited by 11
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimizationcited by 11
- 2026KernelFoundry: Hardware-aware evolutionary GPU kernel optimizationcited by 11
- 2026AutoLab: Can Frontier Models Solve Long-Horizon Auto Research and Engineering Tasks?cited by 11
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 10
- 2026CUDABench: Benchmarking LLMs for Text-to-CUDA Generationcited by 10
- 2026KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernelscited by 10
- 2026Automated Benchmark Auditing for AI Agents and Large Language Modelscited by 10
- 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvementcited by 10
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 9
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimizationcited by 9
- 2026Dream-RSI: Recursive Self-Improvement through Evolving Worldscited by 9
- 2025LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuningcited by 8
- 2025ProofWright: Towards Agentic Formal Verification of CUDAcited by 8
- 2026Understanding the Challenges in Iterative Generative Optimization with LLMscited by 8
- 2026Hardening Agent Benchmarks with Adversarial Hacker-Fixer Loopscited by 8
- 2026Agentic Environment Engineering for Large Language Models: A Survey of Environment Modeling, Synthesis, Evaluation, and Applicationcited by 8
50 most cited of 206 All 206 (JSON)
- 2026AutoDataBench: A Data-centric Testbed for Accelerating Auto Research30 Sep 2026
- 2026Self-Evolving Algorithm-Design Agents: Escaping In-Context Evolutionary Stagnation via Population-Curated Policy Optimization30 Sep 2026
- 2026OptiCom : A Unified Framework for State-Conditioned Composition in LLM-Driven Optimization29 Sep 2026
- 2026AI as a Compiler: Compiling Triton kernels without the Triton compiler29 Sep 2026
- 2026GPUPhysBench: Benchmarking Coding Agents for Correct and Efficient GPU Physics Simulation28 Sep 2026
- 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesis28 Sep 2026
- 2026Self-Evolving Coding Agents: From Digital Programs to Physical-World Intelligence28 Sep 2026
- 2026Sol-H3: Recursive Self-Improvement for MiniMax-H3 Inference Acceleration on Sol-Engine across Cloud and Edge28 Sep 2026
- 2026CodeSkill: Latent Skill Abstraction for Long-Horizon Code Agents27 Sep 2026
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents22 Sep 2026
- 2026SWE-Serve: Benchmarking Agentic Engineering For Production Inference Serving22 Sep 2026
38 more
- 2026Recursive self-improvement of AI research agents22 Sep 2026
- 2026How Much of a Real Workload Can LLM-Generated GPU Kernels Actually Reach?17 Sep 2026
- 2026The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programs17 Sep 2026
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Engines16 Sep 2026
- 2026FlashVector: Agent for Hierarchical Model Serving Stack Optimization15 Sep 2026
- 2026When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysis14 Sep 2026
- 2026Dream-RSI: Recursive Self-Improvement through Evolving Worlds14 Sep 2026
- 2026RoofLang: Enabling AI-Driven Architecting of LLM Inference Systems11 Sep 2026
- 2026AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimization11 Sep 2026
- 2026Phi-Bench: Can Large Language Models Engineer the Infrastructure That Powers Them?9 Sep 2026
- 2026Environments as Scaffold: Enriching Feedback to Bootstrap Self-Evolving Agents in Long-Horizon Tasks8 Sep 2026
- 2026PerfReasoning: How Well Do LLMs Reason on Hardware Performance?3 Sep 2026
- 2026EvoHarnessBench: Can Your Agents Keep Pace with an Evolving Harness?3 Sep 2026
- 2026Measuring the Checker: Mutation Analysis for GPU-Kernel Benchmark Oracles2 Sep 2026
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language30 Aug 2026
- 2026iCoder-27B: Recursive AI-Led Development of Frontier Industrial Coding Model28 Aug 2026
- 2026Beyond Scaling: Self-Evolving LLM Agents for Hardware Kernel Optimization via an Experience-Driven Workflow and Experience Graph Memory26 Aug 2026
- 2026DataKernelBench: Can LLMs Optimize Database Queries on GPUs?25 Aug 2026
- 2026LLM4LLM: Bridging Kernel Benchmarks and Real Deployment via Closed-Loop Agentic Optimization22 Aug 2026
- 2026HIERA: Workload-Aware Planning Across Implementation Spaces for GPU Kernel Optimization21 Aug 2026
- 2026AsmEvo: Agentic Assembly-Level Optimization of AMD GPU Kernels with Functional Equivalence Verification21 Aug 2026
- 2026AI4AI-Bench: Benchmarking LLM Agents in Algorithmic Design for Recursive Self-Improvement20 Aug 2026
- 2026PTXBench: Benchmarking and Adapting LLMs for GPU Kernel Optimization with Architecture-specific PTX18 Aug 2026
- 2026KernelArc: A Multi-Agent Framework for GPU Kernel Optimization17 Aug 2026
- 2026Anatomy of a Quantized Agent: VRAM Stability and Forecasting in Code-Synthesis Agentic Workloads15 Aug 2026
- 2026A Contract-Grade Verifier for LLM-Generated GPU Kernels, and a Native Blackwell Backward for the Gated-Linear-Recurrence Family13 Aug 2026
- 2026EvoMem: Memory-Augmented Evolution for Code Optimization11 Aug 2026
- 2026HarnessOpt-Bench: Evaluating LLMs at Harness Optimization6 Aug 2026
- 2026SparseDitto: An Agentic Sparse Compilation Framework through Architecture-Aware Synthesis on GPUs5 Aug 2026
- 2026Can Large Language Models Recover Semantic Optimization Opportunities That Compilers Miss?4 Aug 2026
- 2026LEAP: Lean Environment-Feedback via Adaptive Pruning for Code RL in GPU Kernel Generation3 Aug 2026
- 2026Automated Transcript Analysis for Detecting Flaws in Agentic Benchmarks29 Jul 2026
- 2026RLPF: Reinforcement Learning from Performance Feedback for Code Generation29 Jul 2026
- 2026AgenticCANN: Automated Ascend C Operator Generation via Knowledge-Augmented Agentic Evolution29 Jul 2026
- 2026Matryoshka Agent: Unfolding Sub-Agents for Long-Horizon Machine Learning Engineering27 Jul 2026
- 2026Efficiency Matters in Autonomous Research27 Jul 2026
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithms26 Jul 2026
- 2026Compiler-Grounded Hierarchical Diagnosis for LLM-Based Triton Kernel Optimization25 Jul 2026
50 newest of 206 All 206 (JSON)
- 2025Establishing Best Practices for Building Rigorous Agentic Benchmarkscited by 94
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimizationcited by 46
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimizationcited by 42
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generationcited by 41
- 2026CORAL: Towards Autonomous Multi-Agent Evolution for Open-Ended Discoverycited by 38
- 2026SpecBench: Measuring Reward Hacking in Long-Horizon Coding Agentscited by 25
- 2025STARK: Strategic Team of Agents for Refining Kernelscited by 23
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimizationcited by 21
- 2026ResearchGym: Evaluating Language Model Agents on Real-World AI Researchcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 13
- 2025Training Versatile Coding Agents in Synthetic Environmentscited by 13
- 2026SOL-ExecBench: Speed-of-Light Benchmarking for Real-World GPU Kernels Against Hardware Limitscited by 13
12 most cited of 69 All 69 (JSON)
- 2026Self-Evolving Algorithm-Design Agents: Escaping In-Context Evolutionary Stagnation via Population-Curated Policy Optimization30 Sep 2026
- 2026CodeSkill: Latent Skill Abstraction for Long-Horizon Code Agents27 Sep 2026
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization24 Sep 2026
- 2026CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents22 Sep 2026
- 2026SWE-Serve: Benchmarking Agentic Engineering For Production Inference Serving22 Sep 2026
- 2026Recursive self-improvement of AI research agents22 Sep 2026
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Engines16 Sep 2026
- 2026AMDKernelVault: Large-Scale Datasets and Agentic Training for AMD GPU Kernel Optimization11 Sep 2026
- 2026Environments as Scaffold: Enriching Feedback to Bootstrap Self-Evolving Agents in Long-Horizon Tasks8 Sep 2026
- 2026EvoHarnessBench: Can Your Agents Keep Pace with an Evolving Harness?3 Sep 2026
- 2026CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language30 Aug 2026
- 2026Beyond Scaling: Self-Evolving LLM Agents for Hardware Kernel Optimization via an Experience-Driven Workflow and Experience Graph Memory26 Aug 2026
12 newest of 69 All 69 (JSON)
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimizationcited by 52
- 2025TritonRL: Training LLMs to Think and Code Triton Without Cheatingcited by 24
- 2025QiMeng-Kernel: Macro-Thinking Micro-Coding Paradigm for LLM-Based High-Performance GPU Kernel Generationcited by 16
- 2025ConCuR: Conciseness Makes State-of-the-Art Kernel Generationcited by 13
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimizationcited by 11
- 2026InCoder-32B-Thinking: Industrial Code World Model for Thinkingcited by 4
- 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexitycited by 2
- 2025Integrating Performance Tools in Model Reasoning for GPU Kernel Optimizationcited by 1
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
- 2026Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generationcited by 0
- 2026PerfReasoning: How Well Do LLMs Reason on Hardware Performance?cited by 0
- 2026When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysiscited by 0
- 2026When Agents Slow Down: Understanding LLM Agents' Test-Time Strategies via Elo-per-token Analysis14 Sep 2026
- 2026PerfReasoning: How Well Do LLMs Reason on Hardware Performance?3 Sep 2026
- 2026Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generation23 Jul 2026
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modes9 Jun 2026
- 2026InCoder-32B-Thinking: Industrial Code World Model for Thinking3 Apr 2026
- 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexity4 Dec 2025
- 2025QiMeng-Kernel: Macro-Thinking Micro-Coding Paradigm for LLM-Based High-Performance GPU Kernel Generation25 Nov 2025
- 2025PRAGMA: A Profiling-Reasoned Multi-Agent Framework for Automatic Kernel Optimization9 Nov 2025
- 2025Integrating Performance Tools in Model Reasoning for GPU Kernel Optimization20 Oct 2025
- 2025TritonRL: Training LLMs to Think and Code Triton Without Cheating18 Oct 2025
- 2025ConCuR: Conciseness Makes State-of-the-Art Kernel Generation8 Oct 2025
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep 2025
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 59
- 2025Barbarians at the Gate: How AI is Upending Systems Researchcited by 48
- 2026ProgramBench: Can Language Models Rebuild Programs From Scratch?cited by 47
- 2025AutoTriton: Automatic Triton Programming with Reinforcement Learning in LLMscited by 38
- 2025CUDA-LLM: LLMs Can Write Efficient CUDA Kernelscited by 33
- 2025AlgoTune: Can Language Models Speed Up General-Purpose Numerical Programs?cited by 24
- 2025GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimizationcited by 22
- 2026Dr. Kernel: Reinforcement Learning Done Right for Triton Kernel Generationscited by 21
- 2026FlashInfer-Bench: Building the Virtuous Cycle for AI-driven LLM Systemscited by 20
- 2025FrontierCS: Evolving Challenges for Evolving Intelligencecited by 19
- 2025SWE-fficiency: Can Language Models Optimize Real-World Repositories on Real Workloads?cited by 15
- 2026AutoKernel: Autonomous GPU Kernel Optimization via Iterative Agent-Driven Searchcited by 14
12 most cited of 116 All 116 (JSON)
- 2026AutoDataBench: A Data-centric Testbed for Accelerating Auto Research30 Sep 2026
- 2026OptiCom : A Unified Framework for State-Conditioned Composition in LLM-Driven Optimization29 Sep 2026
- 2026AI as a Compiler: Compiling Triton kernels without the Triton compiler29 Sep 2026
- 2026GPUPhysBench: Benchmarking Coding Agents for Correct and Efficient GPU Physics Simulation28 Sep 2026
- 2026From Experience to Expertise: Adoption-Aware Memory Learning for Data-Scarce NPU Kernel Synthesis28 Sep 2026
- 2026How Much of a Real Workload Can LLM-Generated GPU Kernels Actually Reach?17 Sep 2026
- 2026The Output-Space Hypothesis: Enumerative Equivalence Checking for Tensor Programs17 Sep 2026
- 2026FlashVector: Agent for Hierarchical Model Serving Stack Optimization15 Sep 2026
- 2026Dream-RSI: Recursive Self-Improvement through Evolving Worlds14 Sep 2026
- 2026Phi-Bench: Can Large Language Models Engineer the Infrastructure That Powers Them?9 Sep 2026
- 2026Measuring the Checker: Mutation Analysis for GPU-Kernel Benchmark Oracles2 Sep 2026
- 2026iCoder-27B: Recursive AI-Led Development of Frontier Industrial Coding Model28 Aug 2026
12 newest of 116 All 116 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026KernelZero: Co-Evolving Proposer and Coder for Continuously Improved GPU Kernel Generation
- 2026KernelSight-LM: A Kernel-Level LLM Inference Simulator
- 2026GPU Forecasters: Language Models as Selective Surrogates for Kernel Runtime Optimization
- 2025Can Large Language Models Predict Parallel Code Performance?
- 2026AscendKernelGen: A Systematic Study of LLM-Based Kernel Generation for Neural Processing Units
- 2026D2K-Bench: Can LLM Agents Turn Expert Designs into Efficient GPU Kernels?
- 2023Efficient LLM inference solution on Intel GPU
- 2025Breaking the Boundaries of Long-Context LLM Inference: Adaptive KV Management on a Single Commodity GPU