NewsCryptoCertiK and Columbia University Researchers Uncover 25 Bugs in Production AI GPU Kernels With TensorLean

CertiK and Columbia University Researchers Uncover 25 Bugs in Production AI GPU Kernels With TensorLean

Author: Hokanews·

Key Takeaways

  • •TensorLean, a formal verification framework built by CertiK and Columbia University researchers, identified 25 bugs across an analysis of more than 100 production GPU kernels used for AI workloads.
  • •The defects included two bugs in DeepSeek kernels and 23 in FlashAttention implementations, both of which are central to the performance of modern AI software.
  • •The framework checks compiled PTX instructions against predefined mathematical requirements and integrates the Lean proof assistant to produce independently verifiable evidence of correctness.
  • •Faulty kernels can generate incorrect results while continuing to run without visible failures, a failure mode that conventional test-based quality assurance struggles to detect because it depends on sampled cases.
  • •The researchers highlight the financial stakes of undetected errors, estimating that redoing just 1% of a $100 million AI training run would add $1 million in cost.
CertiK and Columbia University Researchers Uncover 25 Bugs in Production AI GPU Kernels With TensorLean

A formal verification framework developed by researchers at security firm CertiK and Columbia University has exposed 25 software bugs in production GPU kernels used for artificial intelligence workloads. The discovery points to computational errors in software that supports AI training and inference, underscoring concerns about the reliability of highly optimized GPU code.

GPU kernels are the small, heavily tuned programs that execute the core arithmetic of AI models on graphics hardware, which has become the default substrate for large-scale AI training and inference. Because these kernels are written and rewritten for speed, the framework applies formal verification — establishing through mathematical proof that code meets its specification rather than relying on sampled test cases — to check that optimizations have not broken the underlying math.

According to an announcement published on November 20, TensorLean uses mathematical proofs to check whether GPU kernels carry out their calculations correctly. The researchers characterize the project as the first formal verification effort aimed at production AI kernels, focusing on faults that conventional software testing may not catch.

25 Bugs Found in DeepSeek and FlashAttention Kernels

The team analyzed more than 100 production GPU kernels spanning several generations of graphics processing hardware. The review surfaced two bugs in DeepSeek kernels and 23 in FlashAttention implementations, for a total of 25.

FlashAttention accelerates calculations inside AI models, while DeepSeek depends on optimized computational systems to manage demanding workloads. Both are core to the performance of modern AI software. Faults in these operations can degrade calculation accuracy even while the affected software keeps running with no visible failure. That failure mode — wrong results instead of error messages or crashes — is precisely the kind of defect that test-based quality assurance struggles to surface, since it depends on which cases engineers happen to sample.

TensorLean inspects compiled Parallel Thread Execution (PTX) instructions to determine whether GPU operations meet predefined mathematical requirements. It also integrates the Lean proof assistant, which produces independently verifiable evidence that computations satisfy their stated correctness conditions.

CertiK co-founder Ronghui Gu stressed that identifying a software bug is only one part of verification. Developers must additionally show that a corrected program meets its original requirements under the specified conditions.

Undetected Errors Could Carry Significant Financial Costs

The study also draws attention to the financial stakes of computational errors that go unnoticed during large-scale AI training. Once incorrect calculations propagate into later operations, engineering teams may be forced to repeat portions of a costly training process.

For a training run priced at $100 million, redoing just 1% of the work would add a further $1 million in expense. The example shows how even modest computational inaccuracies can become substantial costs for organizations running large AI systems.

TensorLean addresses verification challenges tied to common GPU optimization techniques, among them reduced-precision arithmetic, overlapping data transfers and differing execution configurations. These methods can raise processing efficiency, but they may also introduce computational errors that conventional testing has difficulty detecting.

Formal Verification Built for Optimized GPU Software

The framework lets developers repeat verification after GPU kernels are modified, helping establish whether performance gains have come at the expense of computational correctness. It also supports reusable mathematical specifications, simplifying verification across related computational operations.

The researchers intend to embed these checks into software development workflows so engineering teams can weigh computational accuracy alongside performance optimization. TensorLean's machine-checkable mathematical proofs are designed to supply additional evidence that optimized GPU programs meet their required specifications.

The project confronts a widening engineering challenge in AI infrastructure: boosting processing performance without sacrificing the accuracy of the computations underneath. By bringing formal verification to production GPU kernels, the researchers hope to make correctness checks a routine part of large-scale AI software development. How quickly proof-based checks of this kind move from research prototypes into day-to-day engineering workflows — and whether coverage extends across more of the AI software stack — is an angle to watch, given the researchers' stated aim of embedding such checks where developers already balance accuracy against performance.

Writer: Emily Carter, Hokanews