Racer: Hunting GPU Kernel Bugs with Symbolic Equivalence Checking
Not on the map. Why?
Abstract (arXiv)
GPU kernels are critical to the performance of today's AI services, yet the same operators are rewritten repeatedly: for each GPU generation, numeric format, serving regime, and kernel language. Every rewrite must preserve the function computed by the implementation it replaces. Today, this obligation depends almost entirely on differential testing: run the new kernel and a trusted reference on randomly sampled tensors, then compare their outputs within a tolerance. This approach has blind spots that additional test cases cannot eliminate. For example, a logical bug may produce an error smaller than the tolerance required to accommodate a correct optimized kernel. We propose symbolic equivalence checking, which executes a kernel and its reference on symbolic inputs, turning each output cell into an exact algebraic expression, and then checks whether the paired expressions agree for all inputs. Because these expressions are exact, symbolic equivalence checking distinguishes floating-point error from logical bugs, while a single check covers the entire input space. We implement Racer, a PTX-level symbolic equivalence checking engine, with three techniques that make this approach practical for production kernels: (1) Shape Reduction to control checking cost, (2) a lockstep CTA scheduler to handle concurrency, and (3) idiom templates with exact numeric refutation for otherwise inconclusive results. Across 2,408 production kernels from 41 collection targets, Racer found 82 real bugs in 23 libraries, including 76 previously unknown bugs and 41 confirmed so far.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 22 of its 61 references that are in the map. Submitted 20 Oct 2026.
Builds on
22 of 61 references.
References · 22
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,787
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,893
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2022FP8 Formats for Deep Learningcited by 244
- 2024Liger Kernel: Efficient Triton Kernels for LLM Trainingcited by 146
- 2024Mirage: A Multi-Level Superoptimizer for Tensor Programscited by 47
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 38
- 2025Triton-distributed: Programming Overlapping Kernels on Distributed AI Systems with the Triton Compilercited by 28
- 2026Towards Automated Kernel Generation in the Era of LLMscited by 19
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 14
10 more
- 2025ProofWright: Towards Agentic Formal Verification of CUDAcited by 13
- 2025Equivalence Checking of ML GPU Kernelscited by 10
- 2025A Systematic Characterization of LLM Inference on GPUscited by 10
- 2023NeuRI: Diversifying DNN Generation via Inductive Rule Inferencecited by 9
- 2025Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous Referencescited by 7
- 2023A Case Study in CUDA Kernel Fusion: Implementing FlashAttention-2 on NVIDIA Hopper Architecture using the CUTLASS Librarycited by 6
- 2025TrainVerify: Equivalence-Based Verification for Distributed LLM Trainingcited by 5
- 2026Ave: Guiding Agentic GPU Optimization Using Data-Flow Invariantscited by 3
- 2026Hunting CUDA Bugs at Scale with cuFuzzcited by 2
- 2026M2K: Making the Model-Kernel Interface Explicit for Reliable CUDA Kernel Verificationcited by 1
Built on by
Not cited yet.