A Case Study of a Multi-Agent Kernel-Optimization Loop That Learns a New AI Accelerator
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Frontier large language models write correct CUDA kernels for most single-operator benchmark tasks, yet their accuracy collapses on accelerators whose architecture and programming language they have rarely seen. We present a case study of an LLM agent loop built for such accelerators. Our example is the FuriosaAI RNGD NPU, programmed in a recent, sparsely documented Rust DSL, where the loop optimized three Gemma-4-12B decode kernels over 12 days on a shared, scarce device. The loop builds its own target knowledge: it writes and checks a summary of the DSL documentation, measures the chip with microbenchmarks, records compiler-derived legality rules, and revisits this knowledge when the toolchain changes, rechecking rules and measurements where it can. A role-based search over per-kernel Design Trees explores whole-kernel designs and accumulates small accepted changes in the best version of each kernel. Because device time is scarce and readings are noisy, cheap checks screen new designs before any device run, and late in the run a change was accepted only after repeated comparisons with the best kernel on the device. The final kernels reach a 9.293x geomean speedup over the official baseline, each within 1.25x of the cycles needed just to move its weights. Our prompts, profiler and acceptance test are available at https://github.com/bgchun-fs/multi-agent-kernel-gen-loop.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 17 of its 25 references that are in the map. Submitted 28 Oct 2026.
Builds on
17 of 25 references.
Closest ancestors · 4
Same direction, newest first
- 2025AccelOpt: A Self-Improving LLM Agentic System for AI Accelerator Kernel Optimization19 Nov
- 2025Towards Robust Agentic CUDA Kernel Benchmarking, Verification, and Optimization16 Sep
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discovery16 Jun
- 2023ChatDev: Communicative Agents for Software Development16 Jul
Other references · 13
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,902
- 2016Hyperband: A Novel Bandit-Based Approach to Hyperparameter Optimizationcited by 727
- 2026Gemma 4 Technical Reportcited by 464
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 279
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 219
- 2022Tensor Program Optimization with Probabilistic Programscited by 37
- 2025Autocomp: A Powerful and Portable Code Optimizer for Tensor Acceleratorscited by 17
- 2026KernelBench-Verified: Do LLM-Generated Kernels Actually Beat PyTorch?cited by 12
- 2026Towards Cold-Start Drafting and Continual Refining: A Value-Driven Memory Approach with Application to NPU Kernel Synthesiscited by 6
- 2026JAXBench: Benchmarking Autonomous TPU Kernel Optimizationcited by 6
- 2020Duet Benchmarking: Improving Measurement Accuracy in the Cloudcited by 2
- 2026AutoTuneBench: Trustworthy Measurement for Agent Auto-Tuning of LLM Serving Enginescited by 2
1 more
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026KernelCraft: Benchmarking for Agentic Close-to-Metal Kernel Generation on Emerging Hardware
- 2025CudaForge: An Agent Framework with Hardware Feedback for CUDA Kernel Optimization
- 2026KernelGenBench: Can LLMs and Agents Write Efficient Kernels Across Operator Sources and Hardware Platforms?
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2026KernelShift: Benchmarking Kernel Optimization Across Evolving Hardware
- 2026Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
- 2026Beyond Experience: Knowledge-Guided Evolution for NPU Kernel Generation