paper-with-me

홈 › Papers

Fine-Tuning GPT-5 for GPU Kernel Generation

2026-02-11 · Ali Tehrani, Yahya Emara, Essam Wissam, Wojciech Paluch, Waleed Atallah, Łukasz Dudziak, Mohamed S. Abdelfattah arxiv

Developing efficient GPU kernels is essential for scaling modern AI systems, yet it remains a complex task due to intricate hardware architectures and the need for specialized optimization expertise. Although Large Language Models (LLMs) demonstrate strong capabilities in general sequential code generation, they face significant challenges in GPU code generation because of the scarcity of high-quality labeled training data, compiler biases when generating synthetic solutions, and limited generalization across hardware generations. This precludes supervised fine-tuning (SFT) as a scalable methodology for improving current LLMs. In contrast, reinforcement learning (RL) offers a data-efficient and adaptive alternative but requires access to relevant tools, careful selection of training problems, and a robust evaluation environment. We present Makora's environment and tools for reinforcement learning finetuning of frontier models and report our results from fine-tuning GPT-5 for Triton code generation. In the single-attempt setting, our fine-tuned model improves kernel correctness from 43.7% to 77.0% (+33.3 percentage points) and increases the fraction of problems outperforming TorchInductor from 14.8% to 21.8% (+7 percentage points) compared to baseline GPT-5, while exceeding prior state-of-the-art models on KernelBench. When integrated into a full coding agent, it is able to solve up to 97.4% of problems in an expanded KernelBench suite, outperforming the PyTorch TorchInductor compiler on 72.9% of problems with a geometric mean speedup of 2.12x. Our work demonstrates that targeted post-training with reinforcement learning can unlock LLM capabilities in highly specialized technical domains where traditional supervised learning is limited by data availability, opening new pathways for AI-assisted accelerator programming.

📄 PDF Abstract BibTeX arXiv:2602.11000

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningCode Generation

Similar Papers 제목 키워드 기반

NKI-Agent: Domain-Specific Fine-Tuning and Agentic Tool Use for Neuron Kernel Generation

2026-07-05 · Junjie Tang, Jun Huan, Hao Zhou, Yuhao Zhang 외 arxiv

Recent agentic approaches to LLM-based kernel generation have achieved impressive results on CUDA. For emerging AI accelerators such as AWS Trainium and Inferentia, automated kernel generation and optimization remain lar…

ConCuR: Conciseness Makes State-of-the-Art Kernel Generation

2025-10-08 · Lingcheng Kong, Jiateng Wei, Hanzhang Shen, Huan Wang arxiv

GPU kernel generation by LLMs has recently experienced rapid development, leveraging test-time scaling and reinforcement learning techniques. However, a key challenge for kernel generation is the scarcity of high-quality…

Reinforcement Learning

DICE: Diffusion Large Language Models Excel at Generating CUDA Kernels

2026-02-12 · Haolei Bai, Lingcheng Kong, Xueyi Chen, Jianmian Wang 외 arxiv

Diffusion large language models (dLLMs) have emerged as a compelling alternative to autoregressive (AR) LLMs, owing to their capacity for parallel token generation. This paradigm is particularly well-suited for code gene…

Reinforcement LearningCode Generation

EGG: An Expert-Guided Agent Framework for Kernel Generation

2026-06-25 · Yaochen Han, Ke Fan, Hongxu Jiang, Wanqi Xu 외 arxiv

High-performance GPU kernels are critical for reducing the exponentially growing computational costs of large language models (LLMs), but their development heavily relies on manual tuning by domain experts. While recent …

Inducer-tuning: Connecting Prefix-tuning and Adapter-tuning

2022-10-26 · Yifan Chen, Devamanyu Hazarika, Mahdi Namazifar, Yang Liu 외

Prefix-tuning, or more generally continuous prompt tuning, has become an essential paradigm of parameter-efficient transfer learning. Using a large pre-trained language model (PLM), prefix-tuning can obtain strong perfor…

Language ModelingLanguage ModellingNatural Language UnderstandingTransfer Learning