Researchers from CertiK and Columbia University discovered 38 distinct bugs across six software libraries used for fundamental AI calculations. The researchers examined 149 compiled GPU kernel instances. The researchers established that 83 instances met the mathematical specifications for those instances. DeepSeek's DeepGEMM library contained two of the bugs. FlashAttention, a widely used library that accelerates AI models, contained 23 bugs. The findings included 19 memory access errors and 13 numerical bugs.
CertiK and Columbia University announced TensorLean on November 20 as a framework for mathematically checking production GPU kernels. GPU kernels are small programs that perform much of the mathematical work behind AI chatbot responses. Developers accelerate calculations and lower computing costs by modifying kernels, including through simultaneous operations or lower-precision arithmetic. These changes can introduce errors that are difficult to detect. Some discovered bugs could crash software, while other bugs could produce incorrect calculations without an obvious failure.
The researchers found that some FlashAttention-4 operations could overwrite information before other operations finished reading that information. CertiK CEO and Columbia University computer science professor Ronghui Gu said the bug could effectively prevent an AI model from seeing portions of the context. The bug remained undetected across 17,760 relevant test runs. Specific combinations of input shapes and software features were necessary to trigger 19 of the 23 FlashAttention bugs. Gu said kernel behavior can vary with input sizes, sequence lengths, hardware architectures and execution configurations. However, CertiK has not established whether the specific bugs affected commercial AI training or real chatbot responses.
Some Claude users received unexpected Thai or Chinese characters in responses to English prompts in August 2025. Generated code also contained clear syntax errors. Anthropic's subsequent postmortem traced incorrect probability calculations during response generation to a performance optimization. Gu said no industry-wide estimate exists for how frequently such bugs escape detection, but TensorLean research showed that conventional testing cannot reliably catch silent errors. An incorrect response can look plausible to a reader, making computational mistakes harder to recognize.
Advanced AI training requires substantial spending on hardware, electricity and engineering. An unnoticed error could undermine costly computations before developers discover the problem. Gu said repeating 1% of the computation in a hypothetical training run costing $100 million would add $1 million in computing expenses alone. Gu said that estimate excludes engineering work, debugging and delays in developing models. Google DeepMind researchers identified two numerical bugs in commonly used mathematical operations in October 2026. The researchers' experiments showed that the errors could make a smaller AI model diverge from the larger model the smaller model was learning to imitate. Greater investor scrutiny of infrastructure spending could make computational accuracy increasingly important for controlling AI companies' costs. However, TensorLean's potential savings in commercial deployment have not been quantified.
Conventional testing checks results from selected scenarios, but even thousands of successful tests cannot cover every possible execution. TensorLean uses formal verification to examine compiled GPU code and construct mathematical proofs in Lean, a language supporting independent computer checks of mathematical reasoning. The advance enables researchers to assess complex, high-performance code under realistic execution conditions. Developers could potentially rerun verification after each software update. The guarantees cover particular calculations only within specified conditions and numerical tolerances. The guarantees cannot prevent AI hallucinations or establish that an entire model gives factually correct answers.
Gu said leading AI companies have approached CertiK about verifying GPU kernels, particularly for new models using newly designed kernels. The research creates a potential business opportunity for CertiK, which is mainly known for protecting blockchain infrastructure. CertiK plans to make TensorLean open source and publish the complete research paper in December 2026. Gu believes mathematical verification could become a standard development practice, allowing AI companies to check computational accuracy after performance improvements. Gu said CertiK aims to keep mathematical verification aligned with performance optimization so developers can improve efficiency without sacrificing computational correctness.
CertiK Discovers 38 AI Bugs in Key Libraries, Launches TensorLean Framework
BeInCryptoShare
CertiK and Columbia University researchers found 38 bugs in key AI libraries, including 23 in FlashAttention, affecting calculations and stability. On-chain news: CertiK launched TensorLean, a framework for verifying GPU kernels, on November 20. AI + crypto news: The bugs were hard to detect and could raise computational costs. CEO Ronghui Gu warned of risks in AI model training. The findings highlight the need for precision in AI development.
Source:Show original
Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information.
Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.
