TensorLean formally verifies production GPU kernels at PTX level
Start here
Researchers from Columbia University and CertiK introduced TensorLean, a Lean-based framework that formally verifies production GPU kernels at the PTX assembly level against tensor-level math specifications. Across 149 real-world kernel instances, including all kernels of FlashAttention-2, -3 and -4 plus DeepGEMM and Liger Kernel, it proved 83 correct and surfaced 38 bugs across 6 projects that the kernels' own tests had missed; 23 of those bugs, in FlashAttention, were previously unknown and were reported to the developers. The team says it caught a FlashAttention-4 data race that never appeared in 17,760 test runs. The framework decouples tensor-level math from memory layout, reaching roughly a 15:1 code-to-spec ratio, with specifications totaling 10,278 lines against 151,285 lines of kernel source. The authors say the paper and an open-source release, including PTX semantics and the specifications and proofs of the verified kernels, are coming soon.
Generated from reports · updated 10 d ago
Report timeline
Follow the reports to see the event from different sides.
- MarkTechPostColumbia and CertiK researchers introduce TensorLean for PTX-level formal verification of GPU kernels
Researchers from Columbia University and CertiK introduced TensorLean, a Lean-based framework that formally verifies GPU kernels at the PTX level against tensor-level math specs. Across 149 kernel instances, including all kernels of FlashAttention-2, -3 and -4 plus DeepGEMM, it proved 83 correct and surfaced 38 bugs across 6 projects, 23 of them in FlashAttention. The team says it caught a FlashAttention-4 data race that never appeared in 17,760 test runs, with specs totaling 10,278 lines against 151,285 lines of kernel source.
- Hacker News · AITensorLean verifies production GPU kernels at PTX level, finding 38 bugs
TensorLean is presented as the first framework to formally verify production GPU kernels at the PTX assembly level, checking 149 real-world kernel instances including all 37 FlashAttention-2 to -4 kernels plus DeepGEMM and Liger Kernel, and proving 83 of them correct. Verification surfaced 38 bugs that the kernels' own tests had missed, among them 23 previously unknown bugs in FlashAttention-2 to -4 that were reported to the developers. The framework decouples tensor-level math from memory layout to reach roughly a 15:1 code-to-spec ratio, and the authors say the paper and open-source release are coming soon.