NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Efficient Agentic GPU Kernel Optimization with a Compact Domain-Specific Language and Speed-of-Light Guidance

Siva Kumar Sastry Hari, Vignesh Balaji, Sana Damani, Qijing Huang, Christos Kozyrakis

NeurIPS page · Open on the map

Category: LLM Agents, Evals & Benchmarks › GPU Kernel Optimization and Benchmarking · Type: new method · Keywords: GPU kernel optimization, LLM code generation, domain-specific language, performance guidance, efficiency, KernelBench

Areas: Code & Coding Agents › Code Generation and Optimization › GPU Kernel Optimization; AI Agents › Agentic Decision Making › Agentic Optimization and Evaluation

Summary

The paper introduces μCUTLASS, a compact in-context learnable DSL that exposes high-impact CUTLASS optimization choices, and pairs it with Speed-of-Light (SOL) guidance to provide a first-principles performance signal for search steering, budget allocation, and integrity checking, thereby reducing the number of expensive attempts needed for LLM agents to generate correct and fast GPU kernels and achieving up to 1.56× speedup over PyTorch baselines.

Explained to a 5-year-old

Some smart computer programs try to write little pieces of code that make graphics cards run faster. Writing these codes is hard because each try needs to be checked for correctness and speed. The researchers made a simpler way to write the code that hides the tricky parts. They also added a quick check that tells the program how much faster it could still get. This helps the programs find good codes faster, saving time and effort.

Explained to a 5-year-old, longer

A computer program that can write code for graphics cards is called an LLM agent. It tries to guess the best code to make the card work quickly. Each guess has to be checked to make sure it does what it should and that it is fast. Checking each guess takes a lot of time and computer power. The researchers wanted to make this guessing game easier and faster. They created a new way to write the code that is simpler and hides the hard parts. This new way only shows the most important choices for making the code fast. They also added a special guide that estimates how much faster the code could still become. This guide helps the program know where to look for the best solutions. It also checks that the code is truly fast and not just pretending. With these two improvements, the program needs fewer tries to find a good code. This saves a lot of time and computer resources while still getting fast results.

For a technical reader

The paper addresses the inefficiency of using large language models to generate GPU kernel code, which currently requires many expensive compile-and-profile cycles. It proposes a compact domain-specific language that abstracts away boilerplate and highlights only the key optimization knobs for CUTLASS kernels. A first-principles performance estimator is introduced to predict remaining headroom, enabling the system to steer the search, allocate budget, and filter out invalid or gaming solutions. Experiments on 59 KernelBench problems show speedups of up to 1.56× over raw PyTorch code and token savings of 19-43% while preserving most of the performance. The approach allows weaker models to match or beat stronger baselines, making high-quality kernel optimization accessible on modest hardware.

Problem

Optimizing GPU kernels with LLM agents is costly because each candidate must be generated, compiled, correctness-tested, and profiled, leading to many expensive trial-and-error iterations. There is a need for more efficient search methods that reduce these attempts while ensuring both correctness and performance.

Method

The approach changes the representation that the agent writes by using a compact in-context learnable DSL that highlights key optimization choices, and adds a first-principles performance signal to estimate remaining headroom. This signal guides search steering, budget allocation, and integrity checking, reducing the number of expensive attempts needed.

Results

Switching from low-level code generation to the new representation yields a 1.27× speedup, and adding the performance signal raises it to 1.56×. SOL-guided scheduling saves 19-43% of tokens while retaining at least 95% of the speedup, and integrity checks prevent up to 1.9× inflation of reported speedups.

Contributions

It proposes a compact DSL that exposes high-impact optimization choices and a first-principles performance signal that guides search and integrity checking, enabling efficient kernel optimization with fewer attempts. The work also demonstrates substantial speedups and token savings across multiple model tiers.

Practical relevance

This work enables smaller teams and models to produce high-performance GPU kernels efficiently, reducing computational waste and accelerating the deployment of optimized code.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction