Improving Efficiency of GPU Kernel Optimization Agents using a Domain-Specific Language and Speed-of-Light Guidance
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Optimizing GPU kernels with LLM agents is an iterative process over a large design space. Every candidate must be generated, compiled, validated, and profiled, so fewer trials will save both runtime and cost. We make two key observations. First, the abstraction level that agents operate at is important. If it is too low, the LLM wastes reasoning on low-impact details. If it is too high, it may miss important optimization choices. Second, agents cannot easily tell when they reach the point of diminishing returns, wasting resources as they continue searching. These observations motivate two design principles to improve efficiency: (1) a compact domain-specific language (DSL) that can be learned in context and lets the model reason at a higher level while preserving important optimization levers, and (2) Speed-of-Light (SOL) guidance that uses first-principles performance bounds to steer and budget search. We implement these principles in μCUTLASS, a DSL with a compiler for CUTLASS-backed GPU kernels that covers kernel configuration, epilogue fusion, and multi-stage pipelines. We use SOL guidance to estimate headroom and guide optimization trials, deprioritize problems that are near SOL, and flag kernels that game the benchmark. On 59 KernelBench problems with the same iteration budgets, switching from generating low-level code to DSL code using GPT-5-mini turns a 0.40x geomean regression into a 1.27x speedup over PyTorch. Adding SOL-guided steering raises this to 1.56x. Across model tiers, μCUTLASS + SOL-guidance lets weaker models outperform stronger baseline agents at lower token cost. SOL-guided budgeting saves 19-43% of tokens while retaining at least 95% of geomean speedup, with the best policy reaching a 1.68x efficiency gain. Lastly, SOL analysis helps detect benchmark-gaming cases, where kernels may appear fast while failing to perform the intended computation.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 28 of its 49 references that are in the map. First posted on arXiv 30 Mar 2026.
Builds on
28 of 49 references.
Closest ancestors · 5
Same direction, newest first
- 2026CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation27 Feb
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning15 Feb
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization9 Sep
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
Other references · 23
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,800
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 349
- 2024TextGrad: Automatic "Differentiation" via Textcited by 250
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 206
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
- 2024LLM Inference Unveiled: Survey and Roofline Model Insightscited by 147
11 more
- 2024Can large language models explore in-context?cited by 75
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 73
- 2020MLIR: A Compiler Infrastructure for the End of Moore's Lawcited by 64
- 2025CUDA-L1: Improving CUDA Optimization via Contrastive Reinforcement Learningcited by 59
- 2025A Survey of In-Context Reinforcement Learningcited by 35
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2024LLMs Are In-Context Bandit Reinforcement Learnerscited by 27
- 2025GPU Kernel Scientist: An LLM-Driven Framework for Iterative Kernel Optimizationcited by 22
- 2026K-Search: LLM Kernel Generation via Co-Evolving Intrinsic World Modelcited by 17
- 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 12
- 2025GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programscited by 3
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariantscited by 0
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineagescited by 0
- 2026GPU Forecasters: Language Models as Selective Surrogates for Kernel Runtime Optimizationcited by 0
- 2026SOLAR: AI-Powered Speed-of-Light Performance Analysiscited by 0
- 2026SOLAR: AI-Powered Speed-of-Light Performance Analysis24 Jun 2026
- 2026GPU Forecasters: Language Models as Selective Surrogates for Kernel Runtime Optimization29 May 2026
- 2026Learning When to Optimize: Verified Optimization Skills from Expert GPU-Kernel Lineages27 May 2026
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariants16 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026D2K-Bench: Can LLM Agents Turn Expert Designs into Efficient GPU Kernels?
- 2026KernelOPT: Dispatch-Aware Agentic Search for GPU Kernel Optimization
- 2026FastKernels: Benchmarking GPU Kernel Generation in Production
- 2026Agentic Kernel Optimization: Generating State-of-the-Art GPU Kernels Without Hand-Written CUDA
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimization
- 2026KernelBrain: Coarse-to-Fine, Budget-Aware Search for Agentic GPU Kernel Optimization