TensorLean formally verifies production GPU kernels in Lean — defects found in 44.3% of tested instances
机器之心 · wechat · 2026-11-23
CertiK and Columbia researchers unveiled TensorLean, the first effort to formally verify production-grade AI operators at the compiled PTX level, jointly reasoning about dynamic work distribution, async data transfer, and floating-point error.
- Results: Of 149 compiled kernel instances evaluated, 83 passed their Lean specs on first verification; 66 (44.3%) had defects. Across 6 libraries including DeepSeek's DeepGEMM and FlashAttention, they found 38 correctness issues (2 in DeepGEMM, 23 in FlashAttention) spanning eight categories: algorithm errors, numerical defects, uninitialized memory, data races, deadlocks, compiler-introduced bugs, and more. All have been reported and fixed.
- Key techniques: a full PTX semantic model in Lean (1,800-line parser); role-based thread grouping that automatically proves absence of data conflicts and deadlocks; loop invariants to cover arbitrary runtime parameters; a two-step method proving exact-real execution matches the math spec, then bounding accumulated rounding error; specs split into math/machine/layout/constraints so 151K lines of kernel source needed only 10K lines of spec (15:1).
- Context: framed by Anthropic's 2025 Claude API incident where a runtime optimization corrupted outputs, and a Michigan-documented thousand-GPU training failure from a PyTorch data race found only after five days.
The work extends CertiKOS → smart contracts → AI infra, suggesting an era of "provable" AI infrastructure.
More from Infra
- 404 Media: Apple Pay, banks, flights — everything is breaking at once — jonerp · 2026-11-23
- NVIDIA details 8 co-design rules for sparse attention as indexing eats 47% of a 128K prefill layer — dl_weekly · 2026-11-23
- DeepSeek pretraining lags leaders; Kimi K3 estimated at 35-50T tokens — teortaxesTex · 2026-11-23
- Open inference is winning: Modal event on vLLM, SGLang and open-weight economics — charles_irl · 2026-11-23
- HunyuanVideo 1.5 on a 12GB RTX 5070: 214s turbo draft + 187s finish pass — jiung_aifilm · 2026-11-23
- Full GLM-5.3 at 753B params runs on four DGX Sparks with 30% software-only speedup — AIFlow_ML · 2026-11-23