TL;DR
Large Language Models (LLMs) are increasingly being tested on their mathematical reasoning abilities, but existing benchmarks fall short for complex tasks like definite integral computation. This paper introduces INTEGRALBENCH, a new benchmark specifically designed to evaluate LLMs on definite integrals, providing both symbolic and numerical solutions with difficulty ratings. Their evaluation reveals significant performance gaps and a strong correlation between problem difficulty and LLM accuracy, highlighting current limitations in advanced mathematical reasoning.
What Problem Does This Paper Address?
Evaluating the mathematical prowess of Large Language Models (LLMs) is crucial for understanding their capabilities and guiding future development. While benchmarks like MATH and GSM8K exist, they often lack sufficient depth or focus for specialized areas of mathematics. Definite integral problems, in particular, present a unique challenge, requiring sophisticated multi-step reasoning, pattern recognition, and knowledge of integration techniques. Existing benchmarks are insufficient because they:
- Contain too few integral problems for meaningful assessment.
- Lack specific metrics for evaluating integral solutions (symbolic vs. numerical).
- Don't adequately stratify problems by difficulty, hindering fine-grained analysis.
This paper addresses this gap by introducing INTEGRALBENCH, a benchmark tailored to the nuances of definite integral computation.
Methods
The authors developed INTEGRALBENCH through a multi-stage process:
- Problem Collection: They sourced graduate-level definite integral problems from textbooks and competitions, focusing on those involving complex expressions and special functions, excluding theoretical proofs.
- Manual Annotation: Problems were manually annotated with ground truth solutions (both symbolic and numerical) and difficulty ratings (1-5). This stage also involved creating bounding boxes for integral components to ensure accurate LaTeX conversion.
- Image to LaTeX Conversion: Annotated images were converted to LaTeX using OCR, with manual verification and correction to ensure accuracy.
- Parameter Instantiation: For problems with free variables, they used an LLM-assisted approach to generate Python scripts that randomly sampled parameter values, substituting them into expressions and answers. This process was followed by manual verification.
- Ground Truth Generation: Symbolic solutions were derived from LLM-assisted simplification of parameter-instantiated expressions, while numerical solutions were obtained by executing computational scripts. Both underwent manual quality control.
- Difficulty Annotation: Human experts assigned difficulty ratings to each problem.
The dataset construction pipeline is designed to be scalable and to balance cost, difficulty, and relevance.
Datasets
The paper introduces INTEGRALBENCH, a new benchmark consisting of 317 graduate-level definite integral problems. Each problem includes:
- The integral expression.
- Symbolic ground truth solution.
- Numerical ground truth solution.
- Manual difficulty annotation (1-5).
- Source attribution.
The dataset is publicly available.
Key Insights and Ideas
- LLMs struggle with advanced calculus: Despite impressive general capabilities, current LLMs exhibit significant performance gaps on definite integral problems, especially those requiring complex reasoning.
- Difficulty matters: There's a strong, consistent negative correlation between problem difficulty and LLM accuracy. Models perform well on easier problems but drop off sharply on more challenging ones, validating the difficulty annotations.
- Model size isn't everything: While larger models generally perform better, architecture and training methodology play a critical role. The 32B QwQ model, for instance, outperformed larger models like GPT-4.1 and Claude 3.7.
- Inference-time scaling reveals efficiency differences: LLMs show rapid accuracy gains early in token consumption, but their "sweet spots" for plateauing vary, indicating different inference efficiency patterns. Some models are better at extracting information early, while others benefit from longer reasoning chains.
- Symbolic reasoning is often stronger than numerical execution: Many models achieve higher symbolic accuracy than numerical accuracy, suggesting a weakness in accurately evaluating complex expressions numerically, even when the symbolic manipulation is correct.
Key Results
- Dataset Size: INTEGRALBENCH contains 317 graduate-level definite integral problems.
- LLM Performance: Evaluation of nine state-of-the-art LLMs showed varying performance. Qwen3-235B-A22B achieved the highest accuracy (50.16% numerical PASS@3, 56.15% symbolic PASS@3).
- Difficulty Impact: Accuracy drops significantly on higher difficulty levels (4-5), often approaching zero.
- Model Size vs. Performance: The 32B QwQ model outperformed larger models like GPT-4.1 and Claude 3.7, highlighting the importance of architecture and training.
- Failure Modes: Common issues include output truncation, circular reasoning, format violations, and refusal to provide symbolic answers.
Limitations and Future Work
- Dataset Size: While 317 problems provide a foundation, the dataset is relatively small for comprehensive evaluation. Future work aims to scale the dataset through automated methods like advanced OCR, LLM-assisted problem generation, and automated verification.
- LLM Inference Randomness: Stochastic sampling during LLM inference can mask true capabilities. Using higher sampling rates (e.g., PASS@16) could provide more robust estimates.
- Numerical Stability: The reliance on numerical computations for verification can be affected by floating-point arithmetic issues, potentially leading to false negatives.
- Human Verification Bottleneck: While LLM-assisted, the benchmark still requires human expert verification, which limits scalability and introduces potential for error.
- Integration with External Tools: Future work could explore augmenting LLMs with external tools like SymPy or Lean for improved symbolic manipulation and verification.
- Training Resource: The dataset can also serve as a valuable resource for fine-tuning LLMs or specialized agents for enhanced mathematical reasoning.
Summary updated