HARDMath2: A Benchmark for Applied Mathematics Built by Students as Part of a Graduate Class

James V Roggeveen, Erik Y. Wang, David Ettel, Will Flintoft, Peter Donets, Raglan Ward, Ahmed Roman, Anton Marius Graf, Siddharth Dandavate, Ava Williamson, Felix Yeung, Kacper K Migacz, Yijun Wang, Egemen Bostan, Duy Thuc Nguyen, Zhe He, Marc L. Descoteaux, Anne Mykland, Shida Liu, Jorge García Ponce, Luke Zhu, Yuyang Chen, Ekaterina S. Ivshina, Miguel Fernandez, Minjae Kim, Kennan Gumbs, Matthew Scott Tan, Russell Yang, Mai Hoang, David Brown, Isabella A Silveira, Lavon Sykes, Arjun Nageswaran, William Fredenberg, Yiming Chen, Lucas Martin, Yixing Tang, Kelly Werker Smith, Hongyu Liao, Logan G. Wilson, Alexander Dazhen Cai, Lucy S. Nathwani, Nickholas Gutierrez, Andrea Elizabeth Biju, Michael Brenner

TL;DR

This paper introduces HARDMath2, a new benchmark for evaluating Large Language Models (LLMs) on advanced applied mathematics problems that require approximation techniques, a crucial area often overlooked in existing benchmarks. The benchmark, built collaboratively by graduate students, reveals that even state-of-the-art LLMs still struggle with these complex problems, highlighting a significant gap in their mathematical reasoning capabilities.

What Problem Does This Paper Address?

Modern LLMs have shown impressive progress in solving mathematical problems, but current evaluations often focus on problems with exact analytical solutions or formal proofs. This overlooks a vast and critical area of applied mathematics: problems that don't have neat, exact answers. In fields like physics and engineering, scientists and engineers frequently rely on approximation methods, asymptotic analysis, and perturbation theory to gain insights from complex equations. Existing benchmarks largely fail to capture the difficulty and nuances of these approximation-based problems, leaving a gap in our understanding of LLMs' true capabilities in real-world scientific applications. HARDMath2 aims to fill this gap by providing a challenging dataset that reflects the types of problems encountered in a graduate-level applied mathematics course.

Methods

The core innovation of HARDMath2 lies in its creation process. Instead of relying solely on expert curation, the dataset was built collaboratively by graduate students in an applied mathematics course. Students were tasked with creating original problems that were difficult for LLMs, refining them based on LLM performance, and providing verified solutions. This process was facilitated by a novel online environment that allowed students to submit problems, peer-validate solutions, and automatically test LLM outputs. The evaluation framework uses an automated parser to compare LLM-generated symbolic solutions against ground-truth solutions, checking for numerical closeness. This student-driven, LLM-interactive approach not only generated a challenging benchmark but also deepened students' understanding of the course material.

Datasets

The paper introduces HARDMath2, a new benchmark comprising 211 original problems. These problems cover core topics in an introductory graduate applied mathematics class, including:

  • Boundary-layer analysis
  • WKB methods
  • Asymptotic solutions of nonlinear partial differential equations (PDEs)
  • Asymptotics of oscillatory integrals

The dataset was designed and verified by students and instructors at Harvard University. It draws inspiration from existing work but expands significantly in scope and difficulty, focusing on approximation-based problems rather than those with exact solutions.

Key Insights and Ideas

  • LLMs still struggle with approximation: Despite rapid advancements, leading LLMs exhibit significant weaknesses when faced with problems requiring sophisticated approximation techniques, a common necessity in applied science.
  • Student-driven benchmark creation is effective: Involving students in the problem creation and validation process not only yielded a more challenging and relevant dataset but also enhanced student learning.
  • Interactive LLM use deepens understanding: Students used LLMs as tools to identify weaknesses in their problem formulations, leading to iterative refinement and a deeper grasp of the material.
  • "Structural obfuscation" and "vanishing terms" are effective LLM challenges: Students discovered strategies to make problems harder for LLMs by subtly altering canonical equations or introducing terms that evaluate to zero for the correct solution, tricking models into incorrect reasoning paths.

Key Results

The evaluation of several state-of-the-art LLMs on HARDMath2 revealed that even top performers struggle significantly. For instance, Gemini 2.5 Pro and Gemini 2.5 Flash Thinking achieved the highest overall scores, around 60%, but performance varied greatly across problem types.

  • Integrals were the most tractable, with some models scoring over 70%.
  • Nonlinear PDEs and WKB approximations proved much more challenging, with top models barely exceeding 35-45% accuracy.
  • Models often failed to correctly apply initial or boundary conditions, even when they could derive general solutions.
  • The benchmark is designed such that even the best models do not achieve mastery, highlighting the need for further development in LLM mathematical reasoning.

Limitations and Future Work

The authors acknowledge that the dataset, while extensive, is still a snapshot of graduate-level applied mathematics. Future work includes:

  • Broadening the range of problem types, focusing on those that can be made more difficult (e.g., requiring more terms in asymptotic expansions).
  • Exploring how LLMs can be prompted to make problems more difficult, and how to manage the verification gap.
  • Applying this student-driven, LLM-interactive benchmark creation methodology to other quantitative fields like physics, statistics, and engineering.
  • The current evaluation relies on numerical comparison, and while robust, future work could explore more nuanced methods for assessing the reasoning process.

Summary updated

BibTeX
@inproceedings{roggeveen2025hardmath,
  author = {James V Roggeveen and Erik Y. Wang and David Ettel and Will Flintoft and Peter Donets and Raglan Ward and Ahmed Roman and Anton Marius Graf and Siddharth Dandavate and Ava Williamson and Felix Yeung and Kacper K Migacz and Yijun Wang and Egemen Bostan and Duy Thuc Nguyen and Zhe He and Marc L. Descoteaux and Anne Mykland and Shida Liu and Jorge García Ponce and Luke Zhu and Yuyang Chen and Ekaterina S. Ivshina and Miguel Fernandez and Minjae Kim and Kennan Gumbs and Matthew Scott Tan and Russell Yang and Mai Hoang and David Brown and Isabella A Silveira and Lavon Sykes and Arjun Nageswaran and William Fredenberg and Yiming Chen and Lucas Martin and Yixing Tang and Kelly Werker Smith and Hongyu Liao and Logan G. Wilson and Alexander Dazhen Cai and Lucy S. Nathwani and Nickholas Gutierrez and Andrea Elizabeth Biju and Michael Brenner},
  title = {{HARDMath2: A Benchmark for Applied Mathematics Built by Students as Part of a Graduate Class}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Oomuu63IqO},
}
Figure