Quick Take
  • Researchers at CertiK and Columbia University have discovered 38 bugs in software that performs some of the most fundamental calculations behind modern AI.
  • Among them are two bugs in DeepSeek’s DeepGEMM library and 23 in FlashAttention, a widely used technology that makes AI models run faster.
  • One of these bugs went undetected through 17,760 runs of relevant software tests.
  • Under certain conditions, it could cause an AI model to overlook information it was supposed to process.

What Happened

These optimizations can introduce errors that are exceptionally difficult to notice.

On November 20, CertiK and Columbia University announced TensorLean, a framework for mathematically verifying the correctness of production GPU kernels.

Market Context

The bug escaped 17,760 runs of relevant tests.

Why It Matters

One of these bugs went undetected through 17,760 runs of relevant software tests. Under certain conditions, it could cause an AI model to overlook information it was supposed to process.

In an interview with BeInCrypto, CertiK CEO and Columbia University computer science professor Ronghui Gu explained the discovery, its potential economic consequences, and how a mathematical breakthrough could change the way AI models are developed.

In August 2025, some Claude users began receiving strange responses. English prompts occasionally produced unexpected Thai or Chinese characters. Generated computer code contained obvious syntax errors.

“What makes these errors particularly concerning is that the software may continue running normally while producing incorrect computational results,” Gu explained.

Sometimes, an incorrect response may appear perfectly reasonable to the person reading it. That makes computational errors particularly difficult to identify.

The researchers found that some computing operations could overwrite information before others had finished reading it.

Details

Researchers at CertiK and Columbia University have discovered 38 bugs in software that performs some of the most fundamental calculations behind modern AI.

Among them are two bugs in DeepSeek’s DeepGEMM library and 23 in FlashAttention, a widely used technology that makes AI models run faster.

The findings raise an uncomfortable question for an industry spending billions of dollars on computing power: how much confidence do AI companies have in the calculations their machines perform?

“Right now, the AI industry is racing to make models faster and more sophisticated. Our work is a reminder that raw speed means very little if we can’t trust the underlying math,” Gu said.

The Hidden Problem Inside Modern AI Models

Every time someone asks an AI chatbot a question, an enormous number of mathematical calculations take place. Much of this work is performed by small programs called GPU kernels.

Developers constantly modify these programs to make calculations faster and reduce computing costs. Some changes involve running several operations simultaneously or using less precise arithmetic.

In its subsequent postmortem, Anthropic identified a performance optimization that caused incorrect probability calculations when Claude was generating responses.

“While there is no industry-wide estimate of how often these bugs go unnoticed, what we saw in our TensorLean research shows that silent errors are a real blind spot—one that conventional testing alone can’t reliably catch.”

Inside the 38 Bugs CertiK Discovered

The researchers evaluated 149 compiled kernel instances. They proved that 83 satisfied their mathematical specifications and discovered 38 distinct bugs across six software libraries.

Among the findings were 19 memory access errors and 13 numerical bugs.

One particularly revealing discovery involved FlashAttention-4, part of a library that helps AI models process information more efficiently.

Gu described the consequences as “essentially making the AI ‘blind’ to parts of the context it is supposed to be reading.”

Furthermore, 19 of the 23 FlashAttention bugs appeared only under specific combinations of input shapes and software features.