Measuring the Checker: Mutation Analysis for GPU-Kernel Benchmark Oracles

Hugging Face Daily Papers Papers

Summary

This paper introduces mutation analysis as a metric to evaluate benchmark oracles for GPU kernels, revealing limitations in current testing methods and proposing optimizations for better fault detection in LLM-generated code.

Benchmarks for LLM-generated GPU kernels decide correctness with a few random inputs and a loose floating-point tolerance, and their verdicts now feed leaderboards and reinforcement-learning rewards. Recent work agrees these checkers are weak and patches them by hand---extra input distributions, fuzzing recipes, tighter tolerances---with no way to measure whether any patch suffices. We introduce mutation analysis as an adequacy metric for kernel-benchmark oracles: deterministic rules inject 10{,}303 compilable faults into verified CUDA implementations of 188 KernelBench problems, 7{,}384 of them with an independent kill witness; any test protocol is scored by the fraction it detects. The official check misses one in six witnessed faults (16.9%), deterministically, and the misses are skewed by family: 8.7% of arithmetic faults escape, but 78.6% of precision faults do. The metric explains why (a tolerance blind band growing with reduction size; a measured ceiling on input aggressiveness set by legitimate floating-point variance), audits the strongest existing patch (KernelBench-Verified's gain splits into +4.0 points from hidden inputs and +4.5 from tighter tolerance, a split its authors could not compute), and exposes a published fuzzing recipe that rejects correct kernels 107 times. Optimizing suites over the kill matrix reaches 98.0% detection with two inputs per problem (94.8% held-out), and the measurement's fault taxonomy teaches a test generator more than the raw faults themselves. Across 48 whole architectures, the blindness grows with scale, concentrating in deep homogeneous pipelines, and two problems prove unrefereeable: their official references violate the benchmark's own tolerance against fp64. We release everything as https://huggingface.co/datasets/Elfsong/KernelBench-M{KernelBench-M}.
Original Article
View Cached Full Text

Cached at: 09/22/26, 07:27 AM

Paper page - Measuring the Checker: Mutation Analysis for GPU-Kernel Benchmark Oracles

Source: https://huggingface.co/papers/2609.22220

Abstract

BenchmarksforLLM-generatedGPUkernelsdecidecorrectnesswithafewrandominputsandaloosefloating-pointtolerance,andtheirverdictsnowfeedleaderboardsandreinforcement-learningrewards.Recentworkagreesthesecheckersareweakandpatchesthembyhand---extrainputdistributions,fuzzingrecipes,tightertolerances---withnowaytomeasurewhetheranypatchsuffices.Weintroducemutationanalysisasanadequacymetricforkernel-benchmarkoracles:deterministicrulesinject10{,}303compilablefaultsintoverifiedCUDAimplementationsof188KernelBenchproblems,7{,}384ofthemwithanindependentkillwitness;anytestprotocolisscoredbythefractionitdetects.Theofficialcheckmissesoneinsixwitnessedfaults(16.9%),deterministically,andthemissesareskewedbyfamily:8.7%ofarithmeticfaultsescape,but78.6%ofprecisionfaultsdo.Themetricexplainswhy(atoleranceblindbandgrowingwithreductionsize;ameasuredceilingoninputaggressivenesssetbylegitimatefloating-pointvariance),auditsthestrongestexistingpatch(KernelBench-Verified’sgainsplitsinto+4.0pointsfromhiddeninputsand+4.5fromtightertolerance,asplititsauthorscouldnotcompute),andexposesapublishedfuzzingrecipethatrejectscorrectkernels107times.Optimizingsuitesoverthekillmatrixreaches98.0%detectionwithtwoinputsperproblem(94.8%held-out),andthemeasurement’sfaulttaxonomyteachesatestgeneratormorethantherawfaultsthemselves.Across48wholearchitectures,theblindnessgrowswithscale,concentratingindeephomogeneouspipelines,andtwoproblemsproveunrefereeable:theirofficialreferencesviolatethebenchmark’sowntoleranceagainstfp64.Wereleaseeverythingashttps://huggingface.co/datasets/Elfsong/KernelBench-M{KernelBench-M}.

View arXiv pageView PDFAdd to collection

Get this paper in your agent:

hf papers read 2609\.22220

Don’t have the latest CLI?curl \-LsSf https://hf\.co/cli/install\.sh \| bash

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2609.22220 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2609.22220 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2609.22220 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

MetaKernelBench: Measuring GPU Kernel Knowledge Transfer Beyond Code

Hugging Face Daily Papers

MetaKernelBench introduces a benchmark measuring whether experience distilled by GPU kernel optimization agents in one DSL (CuTeDSL) transfers to another (TIRx) on the same problem, finding mixed results with lift ranging from -19% to +29% across six models.

Claude Code sabotage: preliminary benchmarking

Hacker News Top

A benchmark study runs Claude Code on 100+ KernelBench GPU kernel optimization sessions under three instruction framings (whether output trains a model and whether anyone reviews it), finding a 25-point drop in correct-and-faster kernels and 40–60% higher session costs under sabotage-prone framing.