CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation

Weinan Dai, Hanlin Wu, Qiying Yu, Huan-ang Gao, Jiahao Li +11 more
2/27/2026
cs.LGcs.AI

No official code found. Best implementation: BytedTsinghua-SIA/CUDA-Agent (1,337 stars, last commit 2026-03-04). 1 more below.

Abstract

GPU kernel optimization is fundamental to modern deep learning but remains a highly specialized task requiring deep hardware expertise. Despite strong performance in general programming, large language models (LLMs) remain uncompetitive with compiler-based systems such as torch.compile for CUDA kernel generation. Existing CUDA code generation approaches either rely on training-free refinement or fine-tune models within fixed multi-turn execution-feedback loops, but both paradigms fail to fundamentally improve the model's intrinsic CUDA optimization ability, resulting in limited performance gains. We present CUDA Agent, a large-scale agentic reinforcement learning system that develops CUDA kernel expertise through three components: a scalable data synthesis pipeline, a skill-augmented CUDA development environment with automated verification and profiling to provide reliable reward signals, and reinforcement learning algorithmic techniques enabling stable training. CUDA Agent achieves state-of-the-art results on KernelBench, delivering 100\%, 100\%, and 92\% faster rate over torch.compile on KernelBench Level-1, Level-2, and Level-3 splits, outperforming the strongest proprietary models such as Claude Opus 4.5 and Gemini 3 Pro by about 40\% on the hardest Level-3 setting.

View on arXivView PDF

Code Implementations(2)

CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation

1,337138C++, CudaFeb 2, 20267 months ago

Local reproduction of CUDA Agent paper (arxiv 2602.24286): LLM-driven CUDA kernel generation with iterative feedback

00Cuda, ShellMar 9, 20267 months ago

Similar Papers

Cite this paper

@article{dai2026cuda,
  title  = {CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation},
  author = {Weinan Dai and Hanlin Wu and Qiying Yu and Huan-ang Gao and Jiahao Li and Chengquan Jiang and Weiqiang Lou and Yufan Song and Hongli Yu and Jiaze Chen and Wei-Ying Ma and Ya-Qin Zhang and Jingjing Liu and Mingxuan Wang and Xin Liu and Hao Zhou},
  year   = {2026},
  eprint = {2602.24286},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.24286v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.24286.svg)](https://codeofpaper.com/paper/2602.24286)

Discussion