Researchers from Columbia University and CertiK have introduced TensorLean, a Lean-based framework for formally verifying GPU kernels at the PTX level, MarkTechPost reports. A developer writes a tensor-level specification in Lean; TensorLean then tries to prove that the compiled kernel matches that spec, including the absence of data races, termination, correct output within a stated tolerance, and that other memory is left untouched. The team says it checked 149 kernel instances, including kernels from FlashAttention-2, -3, and -4, plus DeepGEMM and others, and proved 83 correct. The remaining 66 led to 38 correctness bugs, all reported upstream, according to the project.
The project’s site says those 38 bugs had slipped past the kernels’ own tests, including a FlashAttention-4 data race that, in their account, never appeared in 17,760 test runs. CertiK’s write-up also says two bugs in DeepSeek kernels were confirmed by DeepSeek. These are the researchers’ own results, and TensorLean is a new tool, not a claim that every GPU kernel in production has now been proved safe. I have not run the verifier.
My take
A proof that catches a race tests missed is the kind of result formal methods are supposed to deliver. I will treat the 83-of-149 figure as the team’s own tally, and I will start from the project page if I look closer, not from a marketing summary.
God Bless, and Use the Source!