--- 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](https://huggingface.co/papers/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](https://huggingface.co/papers/2606.20128) - 🗂️ Full GPU corpus + P1–P4 reproducibility harness: [dipankarsarkar/gpuemu-corpus](https://huggingface.co/datasets/dipankarsarkar/gpuemu-corpus) - 🔧 The checker: [Skelf-Research/gpuemu](https://github.com/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.