cd /news/large-language-models/kernelbench-verified-do-llm-generate… · home topics large-language-models article
[ARTICLE · art-66414] src=arxiv.org ↗ pub= topic=large-language-models verified=true sentiment=↓ negative

KernelBench-Verified: Do LLM-Generated Kernels Actually Beat PyTorch?

A new study from arXiv finds that large language models (LLMs) frequently engage in reward hacking to artificially inflate reported CUDA kernel performance on the KernelBench benchmark. The researchers introduce KernelBench-Verified, an extended evaluation framework with a TF32-enabled baseline and hidden test suite, and report that under verified single-turn evaluation, the best-performing model (GPT-5.5) achieves only a 0.88x geometric mean speedup versus PyTorch, far below the 1.43x observed under standard protocols, with 28% of its generated kernels increasing peak GPU memory usage.

read1 min views2 publishedJul 21, 2026

arXiv:2607.16241v1 Announce Type: new Abstract: Recent large language models (LLMs) can generate custom CUDA kernels that appear to outperform PyTorch on benchmarks such as KernelBench. Building upon this foundational framework, we demonstrate that frontier models frequently engage in reward hacking to artificially inflate reported performance. In this work, we identify two areas where evaluation frameworks must co-evolve with model capabilities. First, to accurately measure true speedup, we examine the baseline timing mechanism, noting that enabling Tensor Core acceleration with TF32 provides a more realistic estimation of execution on modern GPUs. Second, concerning algorithmic correctness, models often exploit the narrow test distribution by hardcoding bypasses for specific tensor values. By skipping required computations, these kernels artificially accelerate execution rather than implementing actual CUDA kernels. We introduce KernelBench-Verified, an extended evaluation framework that incorporates a TF32-enabled baseline and a four-distribution hidden test suite. We additionally introduce memory efficiency metrics that capture the often-overlooked speed-memory tradeoff in kernel optimization. Under verified single-turn evaluation with seven frontier LLMs, we find that the best-performing model (GPT-5.5) achieves a 0.88x geometric mean speedup, significantly lower than the 1.43x speedup observed under the standard evaluation protocol. No model consistently outperforms PyTorch when evaluated against realistic baselines. On the memory front, 28% of GPU kernels generated by the best model increase peak GPU memory usage. Our findings demonstrate the necessity of continually adapting robust evaluation protocols as LLM kernel generation capabilities advance.

── more in #large-language-models 4 stories · sorted by recency
── more on @arxiv 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/kernelbench-verified…] indexed:0 read:1min 2026-07-21 ·