← Latest papers
🤖 AI

s2n-bignum-bench: A practical benchmark for evaluating low-level code reasoning of LLMs

This paper introduces \textit{s2n-bignum-bench}, the first public benchmark designed to evaluate the ability of Large Language Models to generate machine-checkable proofs for industrial low-level cryptographic assembly routines in HOL Light, thereby addressing the gap between success in competition mathematics and real-world formal verification.

Original authors: Balaji Rao, John Harrison, Soonho Kong, Juneyoung Lee, Carlo Lipizzi

Published 2026-03-17
📖 4 min read☕ Coffee break read

Original authors: Balaji Rao, John Harrison, Soonho Kong, Juneyoung Lee, Carlo Lipizzi

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 are trying to teach a brilliant but inexperienced apprentice how to fix a very specific, high-stakes machine: a cryptographic lock used by massive companies like Amazon to keep data safe.

This paper introduces a new "final exam" called s2n-bignum-bench to test if Artificial Intelligence (specifically Large Language Models or LLMs) is ready to be that apprentice.

Here is the breakdown of what the paper is about, using simple analogies:

1. The Problem: Math vs. Real Machines

Currently, AI models are great at solving math puzzles (like the kind found in high school competitions). If you ask an AI to prove a complex geometry theorem, it might get an A+.

But there is a huge gap between solving a math puzzle on paper and fixing a real machine.

  • Math Puzzles: Abstract, clean, and follow strict logical rules.
  • Real Machine Code: Messy, depends on specific computer hardware (like the difference between an iPhone chip and a Windows server), and involves "assembly language" (the raw, low-level instructions computers actually understand).

The authors say: "Just because an AI can solve a math riddle doesn't mean it can prove that a real-world security code won't accidentally leak your password."

2. The Solution: A "Real-World" Exam

To fix this, the authors created a new test based on s2n-bignum, a real library used by Amazon Web Services (AWS) to handle big numbers for encryption.

  • The Source Material: This library is already "verified." This means human experts have already written a perfect, step-by-step proof showing that the code works correctly.
  • The Test: The authors took these real proofs, removed the "answer key" (the proof script), and gave the AI the "question" (the code and the goal).
  • The Goal: The AI must write a new proof script that a computer system (called HOL Light) can read and verify as 100% correct.

Think of it like this: The human experts built a bridge and wrote the blueprints. They hid the blueprints. Now, they are asking the AI to redraw the blueprints perfectly so that a safety inspector (the computer) will approve the bridge.

3. How the Exam Works

The exam is designed to be fair but strict:

  • The "No Cheating" Rule: The AI cannot just say "I promise it works" (a placeholder tactic). It must provide the actual logical steps. If it tries to cheat, the system catches it immediately.
  • The "Time Limit": Some proofs are like quick puzzles (seconds), while others are like solving a massive jigsaw puzzle (hours). The exam gives different time limits for different difficulty levels so the AI doesn't get stuck forever.
  • The "Obfuscation" Trick: To stop the AI from just memorizing the answers from its training data, the authors slightly scrambled the way the questions look (like changing the font or adding extra details) so the AI has to actually think rather than just recall.

4. The Results: The AI is Still Learning

The authors tested a very smart AI model (GPT-5.3-Codex) on this exam.

  • The Score: The AI managed to solve about 4% to 5% of the problems.
  • The Takeaway: This isn't a failure; it's a reality check. It shows that while AI is getting good at math, it is still very bad at the nitty-gritty details of real-world computer security code. It's like a student who can ace a calculus test but gets confused when asked to fix a car engine.

5. Why This Matters

This benchmark is important because:

  1. Safety First: Cryptography protects our money, secrets, and identities. If the code has a bug, it's a disaster. We need AI that can verify this code, not just write it.
  2. New Standard: It moves AI research away from "solving riddles" toward "solving engineering problems."
  3. Open Source: The authors are giving this exam to everyone. They want other researchers to try to beat the 5% score and push AI closer to being a reliable tool for building secure software.

In a Nutshell

The paper says: "We built a tough, real-world test using actual Amazon security code to see if AI can prove that computer programs are safe. The AI is currently struggling, but this test gives us a clear roadmap for how to teach it to become a true expert in software safety."

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 →