GRID .LIVE
INGESTED:1,420
NODES:68/72
MarkTechPost

A Team of Researchers from Columbia and CertiK Introduce TensorLean for Formal Verification of GPU Kernels

MarkTechPost••By Michal Sutter
A Team of Researchers from Columbia and CertiK Introduce TensorLean for Formal Verification of GPU Kernels

TensorLean, from Columbia University and CertiK, formally verifies production GPU kernels at the PTX level using Lean. It checked 149 kernel instances, proved 83 correct, and found 38 bugs in FlashAttention, DeepGEMM and more. The post A Team of Researchers from Columbia and CertiK Introduce TensorLean for Formal Verification of GPU Kernels appeared first on MarkTechPost.

Researchers from Columbia University and CertiK have introduced TensorLean , a framework for formal verification of GPU kernels at the PTX level. TensorLean is a Lean-based verifier that proves compiled kernels match a tensor-level math spec. The research team checked 149 kernel instances , including every kernel of FlashAttention-2, -3 and -4 plus DeepGEMM. It proved 83 correct. The remaining 66 led to 38 correctness bugs. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension . TL;DR Size: 1.8K-line PTX parser. Specs total 10,278 lines against 151,285 lines of kernel source, a ratio near 15:1. Runs on: A 16-core workstation. It checks PTX compiled for A100, H100 and B200 kernels. Performance: 83 of 149 kernel instances proved correct, 38 bugs found across 6 projects. Best: Caught a FlashAttention-4 data race that never appeared in 17,760 test runs. What is TensorLean? TensorLean is a formal verification framework for GPU kernels at the PTX level. It starts from unmodified source code. A developer writes a tensor-level spec in Lean. TensorLean then proves 4 properties: no data races, termination, correct output within tolerance, and untouched memory elsewhere. How does TensorLean verify a GPU kernel? Specs build on Lean’s Mathlib. Tensor operators follow PyTorch names, so @ means torch.matmul . Each spec has 5 parts: spec_math , spec_mut , spec_layout , spec_tol and requires . The math stays separate from the memory layout. The pipeline runs in 7 steps: Start from unmodified source. Write the tensor-level spec. Compile to PTX and load a PTX semantics. Build a happens-before graph to check races and termination. Symbolically execute to get final memory, identical across schedules. Lower the spec to PTX-memory level. Discharge proofs with Lean’s kernel, Z3 and cvc5. Which techniques make it scale? Concurrency to sequential: Race-freedom proofs on the happens-before graph cover all CTAs, threads and loop iterati

Verified Source Intelligence

MarkTechPost

A Team of Researchers from Columbia and CertiK Introduce TensorLean for Formal Verification of GPU Kernels

Read on MarkTechPost
AI Broadcast Studio.LIVE
Browser Voice
A Team of Researchers from Columbia and CertiK Introduce TensorLean for Formal Verification of GPU Kernels — Newsverse.Live