← Latest papers
🤖 AI

PyraMathBench: Evaluating and Improving Mathematical Capability in Large Language Models

This paper introduces PyraMathBench, a comprehensive hierarchical benchmark designed to evaluate the integration of numerical processing and mathematical reasoning in large language models, and proposes the SOLVE module and IRPO training method to significantly enhance model performance by addressing weaknesses in numerical computation and abstract reasoning.

Original authors: Zetian Ouyang, Linlin Wang, Gerard de Melo, Liang He

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

Original authors: Zetian Ouyang, Linlin Wang, Gerard de Melo, Liang He

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 Large Language Models (LLMs) as brilliant, well-read students who can write poetry and summarize history books perfectly. However, when you hand them a math word problem, they often stumble. They might understand the story but fail at the actual numbers, or they might "hallucinate" (make up) numbers that aren't there.

The paper "PyraMathBench" introduces a new way to test these students and a new method to help them learn. Here is the breakdown in simple terms:

1. The Problem: The "Black Box" of Math Failure

Currently, when we test AI on math, we usually just look at the final answer. Did they get it right? Yes or No.

  • The Flaw: If the answer is wrong, we don't know why. Did the AI misunderstand the question? Did it forget a math rule? Or did it just do the arithmetic wrong (like a calculator with a broken button)?
  • The Analogy: It's like grading a student's essay by only looking at the final grade. If they got a "C," you don't know if they had bad handwriting, didn't understand the prompt, or made a spelling error. You need to see the steps to fix the problem.

2. The Solution: PyraMathBench (The "Pyramid" Test)

The authors built a massive new benchmark called PyraMathBench. Think of it as a pyramid of math skills.

  • The Structure: Instead of just giving the AI a hard problem, they break it down. They take 7,404 real-world math stories and slice them into 32,505 smaller pieces (subtasks).
  • The Layers:
    • The Base (Numerical Parsing): Can the AI find the numbers in the text? Can it read numbers off a picture?
    • The Middle (Understanding & Calculation): Can it turn the story into a math equation? Can it actually do the addition or solve the equation?
    • The Top (Complex Reasoning): Can it put it all together to solve the original hard problem?
  • The Result: By testing the AI on every single layer, the researchers found that many top-tier AIs are actually terrible at the basics. They often fail to recognize numbers in images or get confused by simple arithmetic, even if they are smart at logic.

3. The Diagnosis: What's Wrong?

After testing 11 different AI models (including big names like GPT-4, Llama, and DeepSeek), they found two main weaknesses:

  1. Bad at "Reading" Numbers: The models often miss numbers in text or, worse, in images. They might see a clock in a picture but guess the time wrong, or they might ignore a crucial number in a word problem.
  2. Hallucinating: When they don't know a number, they sometimes just make one up to keep the story going.

4. The Fix: SOLVE and IRPO

To help the AI get better, the authors created two new tools, like a smart tutor and a personal trainer.

  • SOLVE (The Smart Tutor):

    • The Problem: AI often tries to use external tools (like a calculator or a code interpreter) but fails because it formats the request poorly (e.g., writing the wrong code syntax). It's like a student trying to use a calculator but pressing the buttons in the wrong order.
    • The Fix: SOLVE is a module that acts as a translator. It lets the AI ask for help in any messy way it wants (even "handwritten" style), and SOLVE cleans it up and sends the perfect request to the calculator. It also knows when the AI is smart enough to solve a simple problem on its own, so it doesn't waste time calling a tool.
  • IRPO (The Personal Trainer):

    • The Problem: Standard training methods reward the AI only for the final answer. They don't teach the AI how to use the calculator effectively during the process.
    • The Fix: IRPO is a new training method. It watches the AI's entire thought process. If the AI calls a calculator at the right time, it gets a reward. If it calls a calculator for a problem it could have solved itself, it gets a penalty. It teaches the AI to know when to think and when to use a tool.

5. The Outcome

When they applied these fixes to the Qwen-2.5 model:

  • The model's math score jumped by 5.0 points.
  • It became much better at knowing when to use a calculator and when to do the math itself.

Summary

The paper argues that to make AI better at math, we can't just look at the final score. We need to break math down into a pyramid of tiny skills to see exactly where the AI is failing. Once we see the cracks (like bad number recognition), we can build smart tools (SOLVE) and better training (IRPO) to fix them, turning a confused student into a math whiz.

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 →