Newsroom Wire

US11-22 09:51⏱ 3 min read

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

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.

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.

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 GitHub README lists 38 bugs, all reported upstream. FlashAttention accounts for 23. Liger Kernel has 7, TileOPs 3, TileLang 2, DeepGEMM 2 and Triton 1.

By category, the site reports 19 memory access errors and 13 numerical bugs. It also counts 7 data races, 5 uninitialized memory reads and 5 undefined behaviors. There are 3 algorithm errors, 2 miscompilations and 1 deadlock. One bug can sit in several categories.

Of 102 FlashAttention instances, 56 passed all 4 properties. The other 46 each failed a proof goal on a source bug.

The key gap versus Volta is configuration coverage. TensorLean says equivalence checkers unroll loops for one concrete setup at a time. It uses symbolic parameters instead.

Check out the project page, GitHub repo and announcement on X. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.

Wait! are you on telegram? now you can join us on telegram as well.

Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us

Michal Sutter is a data science professional with a Master of Science in Data Science from the University of Padova. With a solid foundation in statistical analysis, machine learning, and data engineering, Michal excels at transforming complex datasets into actionable insights.

What 70,000+ AI engineers read before standup

Get the AI releases that matter, before they trend.

Model releases, open weights, agents and papers with code — the 5 that matter, in 1 email. Free.

Get the stories that didn’t make it on the homepage.

Last issue: ▲ what's inside: gpt-live-1.1, inkling 2 mini, nemotron sigma, bison-1

The newsletter 70,000+ AI builders read

Model releases, open weights and papers with code — in 1 email. Free.

▲ AI DEV SIGNALS · FREE NEWSLETTER

Get the AI releases that matter, before they trend.

70,000+ AI builders · Past issues →

The newsletter 70,000+ AI builders read. Model releases, tools and research, without the hype.

Practitioner-first AI/ML news and analysis, read by 1M+ developers and researchers every month.

The self-improving layer for AI agents is here

AI agents look great in demos. Until real users break them. Plurai built a world where your agent can fail, learn, and get fixed before your users ever see it.

Snapshot for aggregated reading; content from the public web, © the original publishers.

AI NewsCove

Opening article…