KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernels

Han Wang, Jintao Zhang, Kai Jiang, Haoxu Wang, Jianfei Chen +1 more
5/6/2026
18 citations
cs.LGcs.PF
benchmark-dataset

Official code: BonnieW05/KernelBenchX (54 stars, Apache-2.0, last commit 2026-06-01).

Abstract

LLM-based Triton kernel generation has attracted significant interest, yet a fundamental empirical question remains unanswered: where does this capability break down, and why? We present KernelBenchX, a benchmark designed to answer this question through category-aware evaluation of correctness and hardware efficiency across 176 tasks in 15 categories.

Show full abstract

Our systematic comparison of five representative methods yields three main findings. First, task structure determines correctness more than method design. Category explains nearly three times more variance in semantic correctness than method (9.4% vs 3.3% explained deviance), and 72% of Fusion tasks fail across all five methods while Math tasks are solved consistently. Second, iterative refinement improves correctness, but not performance. Across GEAK iterations, compile rate rises from 52.3% to 68.8% while average speedup declines from $1.58\times$ to $1.44\times$; newly rescued kernels consistently underperform persistently correct ones ($1.16\times$ vs $1.58\times$ speedup in round~0$\to$1). Third, correctness does not imply efficiency. 46.6% of correct kernels are slower than the PyTorch eager baseline, and cross-hardware speedup variance reaches $21.4\times$. Besides, quantization remains completely unsolved (0/30 successes) despite non-trivial compilation rates, revealing systematic misunderstanding of numerical computation contracts rather than surface-level syntax errors. These findings suggest that future progress depends on handling global coordination, explicitly modeling numerical precision, and incorporating hardware efficiency into generation. The code is available at https://github.com/BonnieW05/KernelBenchX

View on arXivView PDF

Code Implementations(1)

Apache-2.0

KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernels

541May 6, 20266 months agoApache-2.0

Similar Papers

Cite this paper

@article{wang2026kernelbenchx,
  title  = {KernelBenchX: A Comprehensive Benchmark for Evaluating LLM-Generated GPU Kernels},
  author = {Han Wang and Jintao Zhang and Kai Jiang and Haoxu Wang and Jianfei Chen and Jun Zhu},
  year   = {2026},
  eprint = {2605.04956},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.04956v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.04956.svg)](https://codeofpaper.com/paper/2605.04956)

Discussion