AlphaCu: A Transformation-Driven Synthesis Framework for LLM-Based GPU Kernel Generation
Open Access
- 7 October 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1728-1740
Abstract
Large language models show promise for code generation, yet their effectiveness in producing high-performance GPU kernels remains insufficiently understood. Recent agentic workflows improve over direct prompting through specialized generation roles and execution feedback, but our characterization of a representative workflow reveals failures in optimization-strategy selection, hardware-specific instruction realization, and shape-dependent parameter selection. We present AlphaCu, a transformation-driven synthesis framework for LLM-based GPU kernel generation. AlphaCu treats kernel generation as structured synthesis over explicit optimization decisions rather than end-to-end code emission. Specifically, AlphaCu represents these decisions as scoped transformation passes maintained across agent-coordinated synthesis stages, enabling compatibility checking and failure attribution. AlphaCu binds selected hardware-sensitive operations to pre-validated microkernels and uses target-device measurements to revise transformation choices and tune runtime configurations. We evaluate AlphaCu on 104 test cases covering single and fused operators across four GPU architectures: NVIDIA H100, A100, V100, and AMD MI210. Under comparable generation budgets, AlphaCu achieves 100% functional correctness on our benchmark suite and delivers an average speedup of 5.64× over prior LLM workflows, while remaining competitive with vendor libraries and tensor compilers.Keywords
Funding Information
- Frontier Science Center for Quantum Information of the Ministry of Education of China (JYB2025XDXM113)
- Frontier Science Center for Quantum Information of the Ministry of Education of China (62532006, 62572300)
- Shanghai Qi Zhi Institute Innovation Program (SQZ202316)
- the Minister of Education, Singapore (MOE-T2EP20124-0017, MOET32020-0004)
- Cyber Research Programme Office (A-8002767-00-00)
This publication has 46 references indexed in Scilit:
- FlashFuser: Expanding the Scale of Kernel Fusion for Compute-Intensive Operators via Inter-Core Connection2026
- Demystifying Tensor Cores to Optimize Half-Precision Matrix Multiply2020
- Triton: an intermediate language and compiler for tiled neural network computations2019
- Performance analysis of CNN frameworks for GPUs2017
- Understanding the GPU Microarchitecture to Achieve Bare-Metal Performance Tuning2017
- Deep Residual Learning for Image Recognition2016
- Singe2014
- HalideACM SIGPLAN Notices, 2013
- Exploiting graphical processing units for data‐parallel scientific applicationsConcurrency and Computation: Practice and Experience, 2009
- Benchmarking GPUs to tune dense linear algebra2008