

Researchers at CertiK and Columbia University have introduced TensorLean, a formal verification framework that uncovered 38 computational bugs across six artificial intelligence software libraries. The team examined 149 compiled graphics processing unit (GPU) kernel instances and mathematically proved that 83 satisfied their specified requirements.
The researchers described the achievement as the world's first formal verification of production AI kernels. Their investigation identified 23 bugs in FlashAttention and another two in DeepSeek's DeepGEMM library.
The findings address concerns about computational errors that conventional software testing may overlook. Such defects can affect AI training and inference without producing obvious signs of software failure.
AI developers frequently optimize GPU code to accelerate model training and reduce inference costs. Although these improvements increase processing efficiency, they can also introduce calculation errors that remain difficult to detect through traditional testing methods.
TensorLean addresses this challenge by examining PTX code that compilers generate during software compilation. The framework checks whether the resulting instructions satisfy predefined mathematical specifications while accounting for numerical tolerances and complex performance optimizations.
These optimizations include lower-precision arithmetic and the simultaneous execution of data transfers and computational tasks. Researchers develop the mathematical proofs in Lean, which allows machines to check their validity independently.
Furthermore, developers can reuse mathematical specifications when different versions of a kernel perform the same calculation. This approach allows teams to verify computational accuracy repeatedly as they introduce performance improvements.
Ronghui Gu, CertiK co-founder and computer science professor at Columbia University, explained that identifying software defects represents only part of the verification process. Developers must also demonstrate that repaired programs satisfy their intended requirements under defined conditions.
What financial consequences could undetected computational errors create as AI systems handle increasingly sensitive operations?
Autonomous blockchain-based AI agents can manage digital assets, while decentralized physical infrastructure networks (DePIN) provide distributed computing resources. Errors within the underlying calculations could expose these systems to financial and operational risks.
Previous incidents demonstrate how computational defects can affect AI services. CertiK referenced an August 2025 Claude outage that followed changes intended to accelerate processing on tensor processing units (TPUs).
The defect caused unexpected behavior, including Thai characters appearing in responses to English-language questions. Separately, Google DeepMind researchers reported a numerical calculation defect in October 2026 involving a basic operation that supports AI model training.
Neither incident involved the bugs that TensorLean uncovered during its investigation. Instead, CertiK cited both cases to illustrate the potential consequences of computational errors.
The company also presented a hypothetical financial example involving an AI model with a training budget of USD 100 million. Repeating just 1% of its computational workload because of an error could generate USD 1 million in additional expenses.
CertiK clarified that this estimate illustrates potential costs rather than an actual financial loss.
Read More: Remittix Favoured Over XRP After Topping CertiK Pre-Launch Coin List
Before developing TensorLean, CertiK applied formal verification to several blockchain and secure computing systems. Its previous work included TON's Masterchain contracts and components of HyperEnclave, a trusted execution environment that Ant Group developed.
TensorLean extends these mathematical verification methods to the GPU computations that support AI infrastructure. The framework could also enable developers to incorporate continuous verification into software development rather than depend exclusively on individual security audits.
Meanwhile, CertiK provides blockchain infrastructure assessments, smart contract audits, penetration testing and custody architecture reviews. Its services also cover system performance evaluations and regulatory compliance support.
The company reports serving more than 5,500 clients across over 150 countries and regions. It has also contributed to the development of digital asset regulatory frameworks across multiple jurisdictions.
CertiK and Columbia University's TensorLean framework uncovered 38 computational defects while mathematically verifying 83 GPU kernel instances against defined specifications. The research introduces a method for repeatedly checking AI computations as software evolves, potentially reducing financial risks and strengthening the reliability of blockchain and artificial intelligence infrastructure.