arXiv AI

Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generation

arXiv:2607. 20908v1 Announce Type: cross Abstract: Reinforcement Learning with Verifiable Rewards (RLVR) has emerged as a powerful technique to enhance the reasoning capacity of LLMs for optimized code generation.

Hugging Face Trending Papers
Jul 23

Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generation

Reinforcement Learning with Verifiable Rewards (RLVR) has emerged as a powerful technique to enhance the reasoning capacity of LLMs for optimized code generation. However, existing RLVR approaches primarily rely on outcome-based signals such as correctness and speedup, overlooking performance-critical structural properties of programs that are essential for generating optimized code.

arXiv AI
Sep 2

CUDA-Harness: Harnessing Agentic CUDA Kernel Generation and Optimization from Natural Language

CUDA‑Harness is a framework that enables the generation and optimization of CUDA kernels directly from natural language. It introduces Intermediate‑Structured Generation to bridge high‑level semantics with low‑level kernel code, uses Synthesis‑Based Verification to mitigate reward hacking by providing isolated test data, and employs Feedback‑Adaptive Evolution to prioritize correctness while improving performance. Experiments show the approach generalizes across different large language models, hardware platforms, and even supports C‑to‑CUDA transpilation.

By Qi Fan, An Zou, Yehan Ma
arXiv Machine Learning
Nov 16

DRTriton: Large-Scale Synthetic Data Driven Reinforcement Learning for Triton Kernel Generation

DRTriton is a scalable learning framework that trains large language models to convert PyTorch programs into optimized Triton kernels, which are then compiled to CUDA kernels at runtime. It employs a synthetic data algorithm (CSP-DAG) for unbiased operator coverage, a curriculum reinforcement learning framework with decoupled rewards to balance conversion success and execution speed, and a test-time search algorithm to further boost performance. After a small supervised fine‑tuning warmup, DRTriton‑7B outperforms state‑of‑the‑art LLMs, achieving a 92% speedup over PyTorch on KernelBench Level 2 tasks versus 23% for GPT‑5.2 and 19% for Claude‑Sonnet‑4.5.

By Siqi Guo, Ming Lin, Tianbao Yang
arXiv AI
Nov 14

KernelMosaic: An Open Dataset and Agentic Framework for CUDA Kernel Generation

KernelMosaic is an open dataset and agentic framework that pairs diverse CUDA tasks with verified solutions and detailed implementation trajectories. The dataset includes natural‑language descriptions, reference programs, mathematical specifications, and curated diversity‑aware selections, while the framework guides a large language model through implementation, correctness repair, and performance optimization using CUDA‑specific feedback. Fine‑tuning on KernelMosaic dramatically improves correctness on KernelBench benchmarks and increases the proportion of kernels that outperform PyTorch eager execution.

By Ningyuan Xi, Yuhang Lai, Ning Miao
arXiv AI
Jul 29

Kernel Forge: An Agent Harness for LLM-based Generation and Optimization of CUDA Kernels

arXiv:2607. 24762v1 Announce Type: new Abstract: Machine learning models are increasingly embedded in everyday software, and most of their runtime is spent in a small set of compute kernels such as matrix multiplication, convolution, and normalization.

By Joshua Brodsky, Dhravid Kumar, Savini Kashmira, Jayanaka Danatanarayana, Jason Mars, Krisztian Flautner, Lingjia Tang
arXiv AI
Jun 9

CUA-Gym: Scaling Verifiable Training Environments and Tasks for Computer-Use Agents

arXiv:2605. 25624v2 Announce Type: replace Abstract: Reinforcement learning with verifiable rewards (RLVR) has driven breakthroughs in domains such as math, tool-use, and software engineering, yet its extension to computer-use agents (CUAs) has been bottlenecked by the scarcity of scalable training data with deterministic rewards.

By Bowen Wang, Dunjie Lu, Junli Wang, Tianyi Bai, Shixuan Liu, Zhipeng Zhang, Haiquan Wang, Hao Hu, Tianbao Xie, Shuai Bai, Dayiheng Liu, Que Shen, Junyang Lin, Tao Yu
arXiv AI
Oct 16

How to Train Your Little Dragon: Teaching a Small Language Model to Construct and Refine GPU Optimization Scripts

The paper introduces HOW TO TRAIN YOUR LITTLE DRAGON, a method for teaching a small language model to generate and refine GPU optimization scripts. Using a compact, lossless representation of compiler traces, the authors train the model on 108,594 examples derived from TVM MetaSchedule, first with supervised fine‑tuning and then with reinforcement learning that rewards correctness and performance. After training, an 8‑billion‑parameter model achieves over 91% correctness in both construction and refinement tasks and outperforms several much larger LLMs on kernel performance.

By Annabelle Sujun Tang, Wei Tang, Songyao Jiang, Tianhui Li, Shengzhe Xu, Jiin Woo, Kaan Ozkara, Youngsuk Park, Zhen Jia, Hadi Esmaeilzadeh