AI Newsway

Audit Finds 39.5% of AI-Written GPU Kernels Are Broken Despite Passing Tests

A new twelve-gate verifier says the field's standard correctness check is systematically too permissive

|3 min read0
AI Summary
An arXiv preprint (2608.12700) re-examined 2,638 GPU kernels generated by language models and accepted by their own test harnesses, finding 39.5 percent broken beyond any tolerance argument and contract violations in 62.1 percent. The authors blame the standard single-shape random-input check, which misses NaN suppression, nondeterminism and shape-specific failures that their twelve adversarial gates catch. Expect pressure on kernel benchmarks to adopt stricter, tolerance-free correctness tests.
Server racks in a data center, the environment where AI-generated GPU kernels run training workloads at scale
Server racks in a data center, the environment where AI-generated GPU kernels run training workloads at scale

A new audit of machine-generated GPU code suggests the field has been grading its own homework with a broken answer key. Researchers built a verification instrument that re-examined 2,638 GPU kernels produced by language models, all of which had already been accepted as correct by the generating system's own test harness. The verifier judged 39.5% of them broken in ways no tolerance setting could excuse, and found at least one contract violation in 62.1%.

The paper, posted to arXiv as preprint 2608.12700 by Rishi Shah and a co-author, argues the problem is not that models write bad code but that the standard test is too permissive to notice. Current practice runs a candidate kernel on a handful of random inputs at one fixed tensor shape, compares the output against a reference implementation, and accepts anything numerically close.

How a Kernel Passes and Still Fails

That single check leaves several failure modes invisible. A kernel can return an ordinary floating-point number where the correct answer is NaN or infinity. It can produce different results on repeated runs of identical input. It can work at the tested shape and break at every other one. It can quietly accumulate in fp16 while the reference maintains an fp32 running total.

The most common defect the audit found was non-finite non-propagation, the silent substitution of a normal number for a NaN or an infinity. The authors stress this is a correctness failure rather than a rounding artifact, since no threshold choice makes a suppressed NaN acceptable.

Their answer is a set of twelve adversarial gates, each encoding a property any correct kernel must satisfy. Several gates are tolerance-free by design, which removes the usual escape hatch of blaming a failure on a badly chosen threshold.

Defending the Number

A 39.5% failure rate is a large claim, and the paper anticipates the pushback with four independent defenses. The verifier was run against a kernel the authors could vouch for and cleared it 7 out of 7. A threshold-calibration sweep tested whether the result was an artifact of tuning. The tool agreed with the reference benchmark's own correctness code 98.5% of the time. A stratified hand-audit then examined disputed cases individually.

The disagreement between the two testing regimes is lopsided. The field's standard check accepts 1,487 kernels the verifier rejects, while only 14 go the other way. The loose test is not merely noisier, it is systematically permissive in one direction.

Turning the Instrument Inward

The team also pointed the verifier at their own work: what they describe as the first native Blackwell tcgen05 training backward pass for the gated-linear-recurrence family, covering the reverse-state stage that the field still runs on a fallback path. They validated it against a double-precision oracle and trained five family members through it.

The work lands alongside related efforts including KernelBench-Verified and a paper titled The Correctness Illusion in LLM-Generated GPU Kernels, pointing to a growing recognition that kernel generation benchmarks need stricter instrumentation.

Why It Matters

AI-assisted kernel authoring has become a real efficiency lever for teams training large models, where hand-tuned CUDA expertise remains scarce and expensive. If nearly two in five accepted kernels carry defects, reported progress in the area reflects the weakness of the measuring stick as much as the strength of the models.

The authors' conclusion is pointed but constructive. The correctness signal behind headline results in kernel generation is far weaker than the numbers imply, and adopting a set of tolerance-free contracts would close most of that gap without waiting for better models.

How do you feel about this article?

SJ

Discussion

Sign in to post
Loading...

Related articles

A 25-Turn Pressure Test Shows LLMs Fold While Their Reasoning Holds
AI & Machine Learning

A 25-Turn Pressure Test Shows LLMs Fold While Their Reasoning Holds

A new arXiv benchmark called SPINE argues with models for up to 25 turns and finds collapse rates rise with conversation length for all seven systems tested.

Seung Jung4 days ago
An AI Cracked a 373-Year-Old Cipher. Then Someone Checked the Microfilm.
AI & Machine Learning

An AI Cracked a 373-Year-Old Cipher. Then Someone Checked the Microfilm.

Vals AI reported Claude Fable 5.1 solved a 373-year-old cipher in 44 minutes. An independent replication reports 8 of 64 letters match — chance level.

Seung Jung4 days ago
A Researcher Quit Anthropic Over Extinction Risk. His Safety Lead Agreed in Public.
AI & Machine Learning

A Researcher Quit Anthropic Over Extinction Risk. His Safety Lead Agreed in Public.

Jacob Coxon resigned from Anthropic over extinction risk. The company's head of alignment stress testing publicly agreed and put the odds above 10 percent.

Seung Jung8 days ago
OpenAI Says It Hit Its Automated Research Intern Goal. The Caveats Are in the Data
AI & Machine Learning

OpenAI Says It Hit Its Automated Research Intern Goal. The Caveats Are in the Data

OpenAI says agents now run 3.1 workdays of effort per human workday in its research org, but most long successful tasks still need human intervention.

Seung Jung6 days ago
The 200GB Question: Which Model Weights Actually Need to Sit on a GPU
AI & Machine Learning

The 200GB Question: Which Model Weights Actually Need to Sit on a GPU

DeepSeek V4.1 Flash needs 567GB of GPU memory rather than 763GB because 196 billion of its weights are built to run from system RAM instead.

Seung Jung7 days ago
OpenAI's 10,000-Agent Navier-Stokes Proof Lands With an Asterisk
AI & Machine Learning

OpenAI's 10,000-Agent Navier-Stokes Proof Lands With an Asterisk

OpenAI says 10,000 agents found a singularity in the Navier-Stokes equations, verified in Lean. It won't claim the Clay prize, and a credit fight has erupted.

Seung Jung7 days ago