CUDA Agent: Large-Scale Agentic RL for High-Performance CUDA Kernel Generation
Weinan Dai, Hanlin Wu, Qiying Yu, Huan-ang Gao, Jiahao Li, Chengquan Jiang et al. · 2026 · 74 citationsRead the paper
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.
What the full text shows
Working prototype- Faster rate compared to torch.compile on KernelBench Level-1 and Level-2 splits — 100% (KernelBench Level-1 and Level-2)
- Faster rate compared to torch.compile on KernelBench Level-3 split — 92% (KernelBench Level-3)
- Performance improvement over Claude Opus 4.5 and Gemini 3 Pro on the hardest setting — 40% higher (KernelBench Level-3)
- Speed-up over torch.compile for operator sequences — 2.80x (KernelBench Level-2 tasks)
- Overall Pass Rate and Faster Rate — 98.8% Pass Rate, 96.8% faster rate (Evaluated on KernelBench)
- Setup
- Base model Seed1.6 (23B active/230B total parameters), trained on 6,000 synthesized operator samples using 128 NVIDIA H20 GPUs.
- How
- The system uses agentic reinforcement learning (PPO) with a scalable data synthesis pipeline and a skill-augmented development environment. It employs a CPU-GPU decoupled sandbox for automated verification and profiling to provide reward signals.
- Limitations
- Training requires a large-scale GPU pool (128 H20s) for profiling and verification · Maximum interaction turns are capped at 200 during evaluation
Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it