← Latest papers
💻 computer science

Hawkeye: Reproducing GPU-Level Non-Determinism

The paper introduces Hawkeye, a framework that enables the exact, lossless reproduction of GPU-accelerated matrix multiplication operations on a CPU by systematically analyzing and replicating hardware-specific non-deterministic behaviors like rounding and accumulation order, thereby facilitating efficient and trustworthy third-party auditing of machine learning workflows.

Original authors: Erez Badash, Dan Boneh, Ilan Komargodski, Megha Srivastava

Published 2026-03-24
📖 5 min read🧠 Deep dive

Original authors: Erez Badash, Dan Boneh, Ilan Komargodski, Megha Srivastava

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you hire a super-fast chef (an NVIDIA GPU) to cook a massive, complex meal (training a Machine Learning model). You pay them to follow a specific recipe. But here's the problem: you can't see the kitchen, and you don't trust them 100%. You want to know: Did they actually cook the meal exactly as I ordered, or did they sneak in shortcuts, use cheaper ingredients, or change the recipe to save time?

In the world of computers, this is called Verifiable Machine Learning. You want to re-run the cooking process yourself to check the work.

The Problem: The "Ghost in the Machine"

The trouble is that modern GPUs are so fast and specialized that they don't cook things exactly the same way every time, even with the same ingredients. This is called non-determinism.

Think of it like this:

  • The Math Problem: In normal math, (1+2)+3(1 + 2) + 3 is the same as 1+(2+3)1 + (2 + 3). But in computer math (specifically with very small or very large numbers), the order in which you add things changes the final result slightly.
  • The Hardware Quirk: NVIDIA's GPUs have special "super-chefs" called Tensor Cores. They are incredibly fast, but they have their own secret rules. They might round numbers up or down differently, or handle tiny "ghost" numbers (called subnormals) in a unique way.
  • The Result: If you try to re-cook the meal on your own standard stove (a CPU), the taste will be almost the same, but not bit-for-bit identical. The difference is so tiny (like a pinch of salt) that it's invisible to humans, but to a computer auditor, it looks like a failure. This makes it impossible to prove the GPU did the job correctly, because the "failure" might just be a difference in hardware, not a cheat.

The Solution: Enter "Hawkeye"

The authors built a tool called Hawkeye. Think of Hawkeye as a super-forensic kitchen simulator.

Instead of trying to force the GPU to be perfect (which slows it down), Hawkeye does something smarter: It reverse-engineers the GPU's secret recipe.

Here is how Hawkeye works, using a simple analogy:

1. The Detective Work (The Tests)

The researchers didn't just guess how the GPU works. They acted like detectives running specific "traps" to see how the GPU reacts.

  • The "Order" Test: They asked, "If I give you these numbers in a different order, do you add them in a pyramid shape or a straight line?"
  • The "Rounding" Test: They asked, "If a number is exactly halfway between two options, do you round up, down, or chop off the extra bits?"
  • The "Tiny Number" Test: They asked, "If I give you a number so small it's almost zero, do you ignore it or keep it?"

By running thousands of these tiny experiments on different GPU models (like the A100, H100, and L40S), they mapped out the exact secret rules the GPU uses.

2. The Simulator (The Reproduction)

Once they knew the secret rules, they built a software simulator that runs on a standard CPU.

  • This simulator doesn't just do "normal" math. It mimics the GPU's specific quirks.
  • If the GPU rounds a number down, the simulator rounds it down.
  • If the GPU adds numbers in a specific pyramid order, the simulator does the exact same thing.

3. The Perfect Match

Now, when the auditor wants to check the GPU's work:

  1. The GPU cooks the meal (runs the matrix multiplication).
  2. The auditor takes the ingredients and the GPU's "secret rulebook" (which Hawkeye discovered).
  3. The auditor runs the Hawkeye simulator on a CPU.
  4. The Result: The CPU's output is bit-for-bit identical to the GPU's output.

If the numbers match perfectly, the auditor knows the GPU did the job correctly. If they don't match, the auditor knows the GPU actually cheated or made a mistake, because the "hardware difference" excuse has been eliminated.

Why This Matters

  • Trust: You can now trust cloud providers to run your AI models without having to trust them blindly.
  • No Slowdowns: The GPU doesn't have to slow down to be "perfect." It can keep using its fast, quirky Tensor Cores. Hawkeye just teaches the auditor how to speak the GPU's language.
  • Security: It prevents bad actors from secretly changing models (like training a smaller, cheaper model and pretending it's the big one) because the math won't add up.

The Bottom Line

Hawkeye is like a translator that allows a slow, standard computer (CPU) to speak the exact same dialect as a super-fast, specialized computer (GPU). By learning the GPU's specific "accents" and "slang" (rounding rules, accumulation order), Hawkeye allows anyone to perfectly reproduce the GPU's calculations, ensuring that AI models are trained and run exactly as promised.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →