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

Han Wang, Jintao Zhang, Kai Jiang, Haoxu Wang, Jianfei Chen, Jun ZhuarXiv 2026

TL;DR

KernelBenchX is a new, rigorous benchmark for evaluating LLM-generated Triton GPU kernels across 176 tasks. It reveals a sobering reality: while LLMs are increasingly capable of writing code that compiles, they struggle with complex task structures, often produce kernels slower than standard PyTorch eager mode, and fail completely at implementing manual quantization logic.

What Problem Does This Paper Address?

As large-scale machine learning workloads grow, GPU kernel efficiency has become a critical bottleneck. While Large Language Models (LLMs) show promise in automating the generation of high-performance kernels using languages like Triton, we lack a clear understanding of their "capability boundary."

Existing benchmarks often fail to distinguish between code that simply runs and code that is actually efficient. Furthermore, they don't explain why models fail on certain tasks. Researchers and engineers need to know: Do iterative refinement strategies actually improve performance, or just fix bugs? Why do models excel at simple math but fail at operator fusion? KernelBenchX aims to answer these questions by providing a category-aware evaluation of both correctness and hardware efficiency.

Methods

The authors developed a unified evaluation pipeline that tests five representative methods: specialized models (AutoTriton), agentic frameworks (GEAK, KernelAgent), and general-purpose models (Claude, DeepSeek-Coder).

Figure 1: Multiple methods generate Triton kernels from a shared task specification, and are evaluated under a unified pipeline measuring correctness, efficiency, and code quality.

Key methodological innovations include:

  • Two-Stage Correctness Protocol: Beyond simple output matching, the benchmark uses a "Call Accuracy" check (compilation and interface validation) followed by an "Execution Accuracy" check that tests kernels against standard distributions and amplified outliers to catch edge-case failures.
  • Hardware Efficiency Metrics: Instead of just measuring raw runtime, the authors use IOU (memory bandwidth utilization) and MFU (compute utilization) to determine how close a kernel is to the theoretical hardware limit.
  • 15-Category Taxonomy: Tasks are grouped by computational structure (e.g., Fusion, Reduction, SpatialOps) rather than just operator type, allowing for a more granular analysis of failure modes.

Datasets

The paper introduces KernelBenchX, which contains 176 tasks across 15 categories. It builds upon and extends the existing TritonBench-T in three ways:

  1. Unified Taxonomy: A 15-category system for structural analysis.
  2. Multi-Precision Variants: Testing kernels under fp16, bf16, and int8 constraints.
  3. Quantization Tasks: Six specific tasks (like W8A8 and W4A16) that require manual implementation of scaling, casting, and dequantization logic without high-level APIs.

Key Insights and Ideas

  • Task Structure > Method Design: The specific category of a task explains nearly three times more variance in correctness than the LLM method used. Some categories, like "Math," are solved consistently, while "Fusion" tasks see a 72% failure rate across all methods.
  • The Refinement Trap: Iterative refinement (like that used in the GEAK framework) is excellent at fixing compilation errors and basic bugs, but it often degrades performance. As models "rescue" failing kernels, they tend to converge on safe but slow implementations.
  • Correctness $\neq$ Efficiency: A staggering 46.6% of semantically correct kernels are slower than the PyTorch eager baseline. LLMs currently lack the "hardware grounding" to make plan-level decisions about tiling or memory layout that drive real-world speedups.
  • The Quantization Wall: Models achieved a 0% success rate on quantization tasks. This isn't due to syntax errors but a fundamental misunderstanding of numerical computation contracts (e.g., how to handle scaling factors across global reductions).
Figure 2: Category-Wise Correctness Across Methods.

Key Results

  • Overall Performance: GEAK achieved the highest overall correctness (30.7%) but a relatively low average speedup (1.15x). In contrast, KernelAgent produced faster kernels (1.41x) but was correct only 10.8% of the time.
  • Iteration Trajectory: In GEAK, while the compile rate rose from 52.3% to 68.8% over three rounds, the average speedup declined from 1.58x to 1.44x.
  • Hardware Portability: Performance is highly hardware-dependent. The variance in speedup across different GPUs (e.g., A100 vs. L20) reached up to 21.4x for the same kernel.
GEAK Iteration Trajectory showing improvement in correctness but decline in speedup

Limitations and Future Work

The authors identify that current LLMs treat kernel code as "semantic text" rather than a "description of hardware behavior." Because prompts and training data lack hardware context (like shared memory limits or warp scheduling), models target a "prototypical" average GPU, leading to unpredictable performance.

Future Directions: * Hardware-Aware Training: Incorporating hardware specifications and performance outcomes into the training loop. * Profile-Guided Search: Using real-time profiling signals (like roofline analysis) as feedback for iterative refinement rather than just error logs. * Global Reasoning: Moving beyond local code edits to help models reason about global tensor contracts and parallel reduction semantics.

Summary updated

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