Download README.md from dipankarsarkar/the-correctness-illusion: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/spaces/dipankarsarkar/the-correctness-illusion/resolve/main/README.md
- Command line
-
hf download hf://spaces/dipankarsarkar/the-correctness-illusion/README.md
-
curl -L -o README.md https://huggingface.co/spaces/dipankarsarkar/the-correctness-illusion/resolve/main/README.md
A newer version of the Gradio SDK is available: 6.32.0
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.
- 📄 Paper: arXiv:2606.20128
- 🗂️ Full GPU corpus + P1–P4 reproducibility harness: dipankarsarkar/gpuemu-corpus
- 🔧 The checker: Skelf-Research/gpuemu
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.