Skip to content
Hacker News · AI·· 11 d agoAI score71

TensorLean verifies production GPU kernels at PTX level, finding 38 bugs

TensorLean: Formal verification framework for GPU kernels at the PTX level

AI summary

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.

Source:Hacker News · AI · tensorlean.ai

ReasoningOpen sourceDeployment engineeringPapers & research