dipankarsarkar's picture
Publish the-correctness-illusion from ds-hf
fc5e1a1 verified
|
Raw History Blame Contribute Delete
1.52 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
title: The Correctness Illusion
emoji: 🧮
colorFrom: indigo
colorTo: red
sdk: gradio
app_file: app.py
pinned: false
license: mit
tags:
  - gpu
  - triton
  - kernel-correctness
  - llm-code-generation
  - evaluation

The Correctness Illusion in LLM-Generated GPU Kernels

An interactive companion to arXiv:2606.20128.

The industry-standard correctness oracle for a GPU kernel is one line: torch.allclose(my_kernel(x), reference(x)) — one shape, one dtype, one seed. Every modern LLM-kernel benchmark uses it. It is blind to whole bug classes that LLM-generated CUDA/Triton code routinely contains.

This Space reproduces three real bug classes from the gpuemu corpus in pure numpy (so it runs on free CPU) and shows the gap directly: pick a kernel, and watch the standard oracle pass a buggy kernel at a benign shape while a gpuemu-style differential fuzz against an fp64 reference catches it.

The literal Triton kernels need a GPU; this demo reproduces the bug classes (accumulator overwrite, missing softmax scale, missing max-subtraction) in numpy so anyone can see the illusion without one. The real GPU corpus is in the dataset.