Guardado en:
Detalles Bibliográficos
Autores principales: Li, Shangzhan, Wang, Zefan, He, Ye, Li, Yuxuan, Shi, Qi, Li, Jianling, Hu, Yonggang, Che, Wanxiang, Han, Xu, Liu, Zhiyuan, Sun, Maosong
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:https://arxiv.org/abs/2507.05687
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908440543100928
author Li, Shangzhan
Wang, Zefan
He, Ye
Li, Yuxuan
Shi, Qi
Li, Jianling
Hu, Yonggang
Che, Wanxiang
Han, Xu
Liu, Zhiyuan
Sun, Maosong
author_facet Li, Shangzhan
Wang, Zefan
He, Ye
Li, Yuxuan
Shi, Qi
Li, Jianling
Hu, Yonggang
Che, Wanxiang
Han, Xu
Liu, Zhiyuan
Sun, Maosong
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_05687
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AutoTriton: Automatic Triton Programming with Reinforcement Learning in LLMs
Li, Shangzhan
Wang, Zefan
He, Ye
Li, Yuxuan
Shi, Qi
Li, Jianling
Hu, Yonggang
Che, Wanxiang
Han, Xu
Liu, Zhiyuan
Sun, Maosong
Machine Learning
Computation and Language
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.
title AutoTriton: Automatic Triton Programming with Reinforcement Learning in LLMs
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2507.05687