LGCLJul 8, 2025

AutoTriton: Automatic Triton Programming with Reinforcement Learning in LLMs

arXiv:2507.05687v128 citationsh-index: 31Has Code
Originality Highly original
AI Analysis

This work addresses the barrier to optimal performance and adoption in deep learning kernel development for developers, though it appears incremental as it builds on existing Triton programming with a novel RL-based automation approach.

The paper tackles the problem of manually tuning parameters for GPU kernel development in deep learning by introducing AutoTriton, a model that uses reinforcement learning to automatically generate Triton code, achieving performance comparable to mainstream large models like Claude-4-Sonnet and DeepSeek-R1-0528 on benchmarks such as TritonBench and KernelBench.

Kernel development in deep learning requires optimizing computational units across hardware while balancing memory management, parallelism, and hardware-specific optimizations through extensive empirical tuning. Although domain-specific languages like Triton simplify GPU programming by abstracting low-level details, developers must still manually tune critical parameters such as tile sizes and memory access patterns through iterative experimentation, creating substantial barriers to optimal performance and wider adoption. In this work, we introduce AutoTriton, the first model dedicated to Triton programming powered by reinforcement learning (RL). AutoTriton performs supervised fine-tuning (SFT) to be equipped with essential Triton programming expertise using a high-quality data gathering pipeline, and conducts RL with Group Relative Policy Optimization (GRPO) algorithm, combining a rule-based reward and an execution-based reward to further improve Triton programming ability, sequentially. Experiments across five evaluation channels of TritonBench and KernelBench illustrate that our 8B model AutoTriton achieves performance comparable to mainstream large models, including Claude-4-Sonnet and DeepSeek-R1-0528. Further experimental analysis demonstrates the crucial role of each module within AutoTriton, including the SFT stage, the RL stage, and the reward design strategy. These findings underscore the promise of RL for automatically generating high-performance kernels, and since high-performance kernels are core components of AI systems, this breakthrough establishes an important foundation for building more efficient AI systems. The model and code will be available at https://github.com/AI9Stars/AutoTriton.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes