← Latest papers
💻 computer science

CAM-Bench: A Benchmark for Computational and Applied Mathematics in Lean

This paper introduces CAM-Bench, a new Lean 4 benchmark comprising 1,000 formalized problems in computational and applied mathematics that addresses the underrepresentation of these domains in existing evaluations by utilizing a dependency-recovery pipeline to adapt textbook exercises and analyzing the performance of large language models on tasks requiring local context tracking and elementary theorem application.

Original authors: Wentao Long, Yunfei Zhang, Chenyi Li, Li Zhou, Chumin Sun, Zaiwen Wen

Published 2026-05-19
📖 5 min read🧠 Deep dive

Original authors: Wentao Long, Yunfei Zhang, Chenyi Li, Li Zhou, Chumin Sun, Zaiwen Wen

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 literal-minded robot how to do math. You have two ways to test it:

  1. The "Answer Key" Test: You give the robot a math problem, and it writes down the final number. If the number is right, you give it a gold star. This is how most current AI math tests work.
  2. The "Step-by-Step" Test: You ask the robot to write out every single logical step, like a proof in a textbook, and then you check if every step is logically unbreakable. This is much harder, but it proves the robot actually understands the math, not just guessing the answer.

This paper introduces a new, super-tough "Step-by-Step" test called CAM-Bench.

The Problem: The Robot Only Knows "Olympiad" Math

Currently, most tests for math-AI are like Olympiad puzzles. They are tricky, self-contained riddles (like "Prove that if X is true, then Y is true"). The AI is great at these because they are like isolated logic games.

But real-world math—like engineering, finance, or physics—is different. It's not usually a neat riddle. It's more like following a recipe from a cookbook.

  • The recipe (the problem) assumes you already know what "sauté" means.
  • It assumes you have a specific type of pan (a definition from Chapter 3).
  • It assumes you know how to chop onions (an algorithm from Chapter 1).

If you just hand the robot the final sentence of the recipe ("Make the soup"), it gets confused because it doesn't have the "local context" (the definitions, the tools, the previous steps) that the original author assumed you had.

CAM-Bench is designed to test if AI can handle this "cookbook style" math, specifically in fields like optimization (finding the best way to do something), numerical linear algebra (doing math with giant grids of numbers), and numerical analysis (approximating solutions).

The Solution: The "Context Detective" Pipeline

The authors didn't just grab problems from textbooks and feed them to the AI. They built a sophisticated pipeline (a factory line) to prepare the problems. Think of it as a Context Detective:

  1. The Raw Clue: They start with a messy textbook exercise that says, "Use Algorithm 16.4 to solve Problem 16.76."
  2. The Detective Work: The pipeline goes back into the book to find out what "Algorithm 16.4" actually is. It digs up the definitions, the formulas, and the assumptions hidden in previous chapters.
  3. The Reconstruction: It stitches all these scattered pieces together into one big, self-contained "informal theorem." It's like taking a recipe that says "add the secret sauce" and rewriting it as "add the sauce made of tomatoes, basil, and garlic."
  4. The Translation: Finally, it translates this clean, self-contained story into Lean, a strict computer language that acts like a super-pedantic math teacher. If the logic has even one tiny hole, Lean rejects it.

The Results: The AI is Stuck in the "Cookbook"

The authors tested some of the world's smartest AI models on this new benchmark. Here is what happened:

  • The "Answer Key" Gap: The AI models were actually pretty good at solving the problems in plain English (getting the right answer). But when they had to write the proof in Lean (the strict language), their success rate crashed.
    • Analogy: It's like the AI can tell you how to bake a cake in a conversation, but if you ask it to write the instructions for a robot that cannot guess anything, the robot burns the kitchen down.
  • The "Local Context" Failure: The AI kept forgetting the "local rules." It would try to use a tool that didn't exist in the current chapter, or it would miss a tiny assumption (like "the number must be positive") that the textbook implied but didn't explicitly state in that specific sentence.
  • The "Long Chain" Problem: Real math problems often require a long chain of small steps (like building a house brick by brick). The AI models often got lost in the middle of the chain, forgetting what they were building or losing control of the long-term goal.

The "Agent" Upgrade

The researchers also tried a more advanced method where the AI acts like a human detective with a toolbox. Instead of just guessing the answer, the AI is allowed to:

  • Ask the computer (Lean) for help when it makes a mistake.
  • Check its own work.
  • Try again based on the error message.

This "Agent" approach worked much better, doubling the success rate. However, it was still far from perfect, and it cost a lot more "brain power" (computer tokens) to run.

The Bottom Line

CAM-Bench shows that while AI is getting good at solving math riddles, it still struggles with applied math that requires understanding context, remembering local rules, and building long, logical arguments step-by-step.

The paper concludes that to make AI truly reliable for real-world math, we need to stop testing it on isolated riddles and start testing it on these messy, context-heavy "cookbook" problems. The current models are like students who can memorize answers but haven't yet learned how to build a house from the ground up.

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 →