Reproduce “GPU Kernel Optimization Beyond Full Builds: An LLM Framework with Minimal Executable Programs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ruifan Chu, Anbang Wang, Xiuxiu Bai, Shuai Liu, Xiaoshe Dong

Researchers from Xi'an Jiaotong University developed an LLM-based framework for GPU kernel optimization that eliminates the need for expensive full application builds during iterative tuning. This approach, centered on Minimal Executable Programs (MEPs), achieved average integrated speedups of 5.05x on NVIDIA and 7.77x on Haiguang DCU for PolyBench benchmarks, outperforming direct LLM optimization.

Key insights

  • Decoupling GPU kernel optimization from full application builds through MEPs is crucial for practical, efficient LLM-driven tuning in complex, large-scale HPC environments.
  • Integrating iterative performance feedback, automatic error repair (AER), and functional equivalence (FE) validation significantly enhances the LLM's ability to generate correct and performant kernel optimizations.
  • Identifying and reusing successful optimization patterns can accelerate convergence and improve the transferability of optimization knowledge across different kernel types and hardware.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.