AI Agents Teach Themselves to Write Record-Breaking GPU Code from Scratch
Original paper: CompoundingKernel: Self-Improving from Zero to First
"Imagine a massive hive of master clockmakers working in parallel, where each artisan takes a successful gear train and modifies a single escapement wheel based on past failures. They pass these blueprints down a generational archive, allowing the collective workshop to iteratively build the ultimate timekeeping machine."
As AI models grow increasingly massive, the hardware executing them becomes a major bottleneck for energy and cost. Systems that automatically invent ultra-fast GPU code can drastically slash cloud computing expenses and accelerate breakthroughs across science and industry.
- AI agents wrote top-ranking GPU kernels starting from zero.
- Generated code runs 4.40x faster than standard benchmarks.
- System performance is limited by testing speed, not agent count.
📑 Original arXiv Technical Abstract
We present CompoundingKernel, a self-improving agent system that writes GPU kernels by search. As of 2026-11-11, its generated kernels rank #1 on the public L1, L2 and Quantization boards of SOL-ExecBench (NVIDIA B200). They have held #1 on L1 since 2026-10-27, albeit a short loss on 2026-11-07. All 235 problems have a site-verified correct kernel; on the 209 public-board problems they are 4.40x faster than the benchmark's reference baseline. The search starts from zero: agents get each problem's PyTorch definition but no reference kernels or official scores. A per-problem archive outside the model holds every correct kernel and its lineage. An LLM controller reads it, picks a parent or a new design, and gives each parallel child agent one direction. Checks outside the model decide correctness. At equal wall time, it beat a coded UCB style tree on 35 of 38 problems by making 2.4x as many correct attempts. Over a thousand agents ran at once, and one warm restart fix raised their evaluation rate 3.6x. We find that the rate of reliable measurements, not the number of agents, limits how far such a search scales. Our code and kernels are available on URL.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.