Fine-Tuning GPT-5 for GPU Kernel Generation
Not on the map. Why?
Abstract (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.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 15 of its 26 references that are in the map. First posted on arXiv 11 Feb 2026.
Builds on
15 of 26 references.
References · 15
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Scaling Laws for Reward Model Overoptimizationcited by 1,095
- 2023Safe RLHF: Safe Reinforcement Learning from Human Feedbackcited by 656
- 2025Reinforcement Learning with Verifiable Rewards Implicitly Incentivizes Correct Reasoning in Base LLMscited by 289
- 2023A Survey of Reinforcement Learning from Human Feedbackcited by 264
- 2025KernelBench: Can LLMs Write Efficient GPU Kernels?cited by 225
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2025Kevin: Multi-Turn RL for Generating CUDA Kernelscited by 78
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimizationcited by 6
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithmscited by 0
- 2026PTXBench: Benchmarking and Adapting LLMs for GPU Kernel Optimization with Architecture-specific PTXcited by 0
- 2026Beyond Scaling: Self-Evolving LLM Agents for Hardware Kernel Optimization via an Experience-Driven Workflow and Experience Graph Memorycited by 0
- 2026Beyond Scaling: Self-Evolving LLM Agents for Hardware Kernel Optimization via an Experience-Driven Workflow and Experience Graph Memory26 Aug 2026
- 2026PTXBench: Benchmarking and Adapting LLMs for GPU Kernel Optimization with Architecture-specific PTX18 Aug 2026
- 2026Cross-Model Cross-Language AI Coding Agent Performance: Accuracy and Speed of Parallel CLRS Algorithms26 Jul 2026
- 2026Kernel-Smith: A Unified Recipe for Evolutionary Kernel Optimization30 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026From Tokens to Regions: CUDA-Sensitive Instruction Tuning for GPU Kernel Generation
- 2026GPU Forecasters: Language Models as Selective Surrogates for Kernel Runtime Optimization
- 2025STARK: Strategic Team of Agents for Refining Kernels
- 2025Astra: A Multi-Agent System for GPU Kernel Performance Optimization
- 2026MusaCoder: Native GPU Kernel Generation with Full-Stack Training on Moore Threads GPU
- 2026How to Train Your Little Dragon: Teaching a Small Language Model to Construct and Refine GPU Optimization Scripts
- 2026KernelSkill: A Multi-Agent Framework for GPU Kernel Optimization
- 2026A Two-Stage GPU Kernel Tuner Combining Semantic Refactoring and Search-Based Optimization