Teaching LLMs to Write System Kernels for AI Accelerators: Post-Training, Reasoning, and Agentic Optimization

Writing high-performance system kernels for AI accelerators requires deep hardware expertise and low-level programming skill—a significant barrier for many researchers and engineers. This tutorial presents emerging methods that leverage large language models (LLMs) to automate kernel generation for GPUs and custom accelerators such as AWS Trainium. We cover the full pipeline: supervised fine-tuning on kernel corpora, reinforcement learning-based post-training (PPO, GRPO) with hardware-aware rewards, inference-time scaling for code reasoning, and multi-turn agentic systems for iterative kernel refinement. We also discuss key challenges unique to this domain, including reward hacking in compilation metrics, designing effective evaluation benchmarks for generated kernels, and strategies for data curation across heterogeneous hardware targets. The tutorial bridges the gap between LLM post-training research and systems programming, offering both foundational understanding and practical experience. We demonstrate how recent advances in reinforcement learning and inference-time compute scaling can be adapted to produce correct and performant kernels across diverse hardware backends. Attendees will gain hands-on experience generating Triton and NKI kernels using agentic LLM systems. Tutorial materials are available at https://neuron-science.github.io/llm_kernel_writing.

Link
https://www.semanticscholar.org/paper/2e2250a7047144ff9d300da2d3d5c913289db0b2
Found by
Semantic Scholar
Authors
Youngsuk Park, R. Saha, Kaan Ozkara, Shaowei Zhu, Jiin Woo, Lingfan Yu, Wei Tang, Ziyang Xu, Zhen Jia, Emily Webber, Yida Wang
Categories
benchmark, evaluation, dataset
Published
2026-08-08
Last seen by the radar
2026-08-08
Citations
0
Influential citations
0
Radar score
56.04 / 100 (how it is scored)
Why it scored so
Matched: benchmark, corpora$, evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3770855.3816468
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar