HARDMath: A Benchmark Dataset for Challenging Problems in Applied Mathematics

Jingxuan Fan, Sarah Martinson, Erik Y. Wang, Kaylie Hausknecht, Jonah Brenner, Danxian Liu, Nianli Peng, Corey Wang, Michael Brenner

Introduction

The authors introduce HARDMath, a novel benchmark dataset of graduate-level applied mathematics problems focused on asymptotic approximation techniques. Unlike standard math benchmarks that test exact calculations, HARDMath requires Large Language Models (LLMs) to use subjective judgment and computational reasoning to find approximate solutions. Even state-of-the-art models like o1-mini and GPT-4 struggle significantly, highlighting a major gap in current AI mathematical reasoning capabilities.

The Gap in Current Math Benchmarks

Popular math benchmarks for LLMs, such as GSM8K or MATH, predominantly feature problems with exact, closed-form solutions—typically covering high school algebra, geometry, or standard calculus.

Comparison of HARDMath with existing math benchmark datasets.

However, in real-world physics and engineering, equations (like complex ordinary differential equations or messy integrals) rarely have exact analytical solutions. Instead, scientists use "asymptotic methods" to find highly accurate approximate solutions. This requires a different kind of mathematical reasoning: researchers must use intuition to determine which terms in an equation "dominate" the behavior and which can be safely ignored (a technique known as the Method of Dominant Balance). Because this requires a blend of rigorous math, computational tool use, and subjective judgment, it is largely missing from current LLM evaluations. HARDMath was built to fill this gap.

Algorithmic Problem Generation

Instead of scraping copyrighted textbooks to build their dataset, the authors developed an algorithmic pipeline using Python libraries (SymPy for symbolic math, SciPy for numerical computing) to auto-generate problems and step-by-step LaTeX solutions.

Flowchart illustrating the algorithmic pipeline for generating and validating HARDMath problems.

To ensure quality, every generated analytical approximation is validated against a numerical ground truth, requiring an error margin of less than 10%.

Evaluating LLMs on these problems is tricky because approximation problems can have multiple valid intermediate steps or slightly varying final forms. To handle this, the authors developed a novel procedural grading approach. They used GPT-4o as an automated grader, guided by strict course rubrics, to evaluate intermediate reasoning steps and award partial credit, rather than relying solely on rigid exact-match grading.

Dataset Splits

The project introduces three distinct dataset splits:

  • HARDMath: The main dataset containing 1,060 auto-generated problems, intended for future model development and fine-tuning.
  • HARDMath-mini: A sub-sampled test set of 366 problems used in this paper to benchmark current LLM performance. It covers non-dimensionalization, polynomial root-finding, ODEs, and integrals.
  • Word-Problems-HARDMath: A smaller, hand-crafted set of 40 word problems that embed these mathematical challenges into real-world science contexts (e.g., fluid dynamics or population density).

Key Insights and Results

The authors evaluated several frontier models using 5-shot Chain-of-Thought (CoT) prompting. The results show that HARDMath is vastly more difficult than standard benchmarks:

  • o1-mini was the top performer, achieving 62.3% overall accuracy.
  • GPT-4 achieved only 43.8% overall accuracy.
  • Llama3-8b (an open-source model) reached 20.2%.
  • On the 40 real-world word problems, GPT-4's accuracy plummeted to 28.1%.

For context, models like GPT-4 and o1-mini routinely score between 70% and 90%+ on standard benchmarks like MATH. The steep drop-off on HARDMath proves that graduate-level applied math remains a significant hurdle.

Why do models fail? * Approximation is a distinct, missing skill: LLMs that easily ace standard formal math struggle when forced to make human-like abstraction and approximation judgments. Knowing what to calculate is often harder for the model than the calculation itself. * Chain-of-Thought shifts the error landscape: CoT prompting doesn't just boost scores; it fundamentally shifts how models fail. Without CoT, models make basic setup errors (like dropping the wrong terms entirely). With CoT, they successfully grasp the dominant balance but stumble on nuanced execution, like failing to calculate complex roots. * Context hurts performance: When a raw math problem is wrapped in a real-world physics scenario, model performance drops. LLMs struggle to translate physical setups into the correct approximation math, a critical skill for actual scientists.

Limitations and Future Work

The authors note a few limitations. First, tracing the exact reasoning errors of OpenAI's o1-mini is difficult because the model sometimes hides its intermediate thought processes, returning only the final answer. Second, their preliminary attempts to automatically generate the real-world word problems sometimes failed to capture subtle, domain-specific physics constraints (e.g., ensuring energy values remain positive).

For future work, the authors plan to move beyond simply evaluating models and use the larger 1,060-problem HARDMath dataset to fine-tune LLMs. They also aim to refine their automated word-problem generator to scale up the contextual dataset.

Summary updated

BibTeX
@inproceedings{fan2025hardmath,
  author = {Jingxuan Fan and Sarah Martinson and Erik Y. Wang and Kaylie Hausknecht and Jonah Brenner and Danxian Liu and Nianli Peng and Corey Wang and Michael Brenner},
  title = {{HARDMath: A Benchmark Dataset for Challenging Problems in Applied Mathematics}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=nDTvP6tBMd},
}
Figure