Evaluating Frontier LLMs on PhD-Level Mathematical Reasoning: A Benchmark on a Textbook in Theoretical Computer Science about Randomized Algorithms

Yang Cao, Yubin Chen, Xuyang Guo, Zhao Song, Song Yue, Jiahao Zhang, Jiale ZhaoarXiv 2025 · DOI

Abstract

This paper introduces LLMathBench, a rigorous new benchmark designed to evaluate the mathematical reasoning capabilities of frontier Large Language Models (LLMs) on graduate-level theoretical computer science. By utilizing 253 exercises from the classic textbook Randomized Algorithms by Motwani and Raghavan, we assess the ability of models to navigate complex, multi-step probabilistic proofs. Our evaluation of four leading models—Claude-Sonnet-4.5, Gemini-3-Pro, GPT-5-Thinking, and Grok-4—reveals that while top-tier models are approaching proficiency (reaching up to 66.4% accuracy), they still exhibit significant logical consistency gaps.

Introduction

The rapid advancement of Large Language Models (LLMs) has led to high performance on standard mathematical benchmarks such as GSM8K and MATH. However, these datasets primarily focus on high school or undergraduate-level problems. There remains a critical gap in evaluating AI on the sustained, abstract reasoning required for PhD-level research.

This study addresses this gap by focusing on the "internal logic" of complex mathematical theories. We selected the domain of randomized algorithms due to its inherent difficulty, requiring a simultaneous grasp of formal logic and probabilistic methods. The central question is whether current frontier models can serve as reliable research assistants or pedagogical aids in high-level theoretical computer science (TCS).

The LLMathBench Dataset

The primary contribution of this work is LLMathBench, a dataset comprising 253 formalized problems and end-of-chapter exercises derived from the 14 chapters of Randomized Algorithms by Motwani and Raghavan. Unlike competition-math datasets that may be present in training corpora, LLMathBench is grounded in a specific academic curriculum, demanding deep domain knowledge and rigorous proof construction.

Methodology

To ensure the integrity of the benchmark, we developed a structured six-stage evaluation pipeline:

  1. Human-in-the-Loop Collection: Problems were extracted from the source text, with humans resolving context dependencies and referenced lemmas.
  2. Statement Formalization: AI transcribed problems into standardized LaTeX.
  3. Statement Verification: Human researchers manually reviewed all LaTeX statements to eliminate hallucinations or syntax errors.
  4. Proof Generation: Four frontier models (GPT-5-Thinking, Grok-4, Gemini-3-Pro, and Claude-Sonnet-4.5) generated full LaTeX proofs using an "Adaptive Double Timing Strategy" to allow for deeper reasoning.
  5. Automated Proof Verification: Claude-Sonnet-4.5 served as an automated judge, scoring proofs based on correctness and rigor.
  6. Meta-Verification: Humans audited 20% of the AI judge's verdicts to ensure grading reliability.

Key Results

The evaluation revealed a clear performance hierarchy among the tested models. Claude-Sonnet-4.5 emerged as the leader, achieving an accuracy of 66.4%, followed closely by Gemini-3-Pro at 62.1%. GPT-5-Thinking and Grok-4 trailed significantly, with accuracies of 47.4% and 33.2%, respectively.

Table 1: Performance of frontier LLMs across 14 chapters of the Randomized Algorithms textbook.

As shown in Table 1, performance varied significantly across the 14 chapters. For instance, while Claude-Sonnet-4.5 showed high proficiency in Chapter 7 (23 correct out of 26), GPT-5-Thinking struggled immensely with Chapter 12, correctly solving only 2 out of 28 problems. Generally, problems involving advanced algebraic structures or complex graph theory resulted in higher failure rates compared to those involving basic tail bounds.

Discussion

Several key insights emerged from the data:

  • The "Thinking" Advantage: Models optimized for high-level reasoning (the "Thinking" variants) performed better, suggesting that the bottleneck in PhD-level math is the computational budget allocated to internal verification rather than simple data retrieval.
  • Stylistic Differences: Gemini-3-Pro favored highly formal, textbook-style proofs, whereas GPT-5-Thinking and Grok-4 relied more on natural language explanations.
  • The Consistency Gap: A recurring failure mode was the "disrupted logical flow." Models often began with correct probabilistic intuitions but failed to maintain formal notation throughout the proof, leading to "failed" verdicts despite promising starts.
  • Verification Reliability: The use of a frontier model as a verifier proved effective, though human meta-verification remains essential to mitigate systematic AI biases.

Conclusion

While current frontier LLMs are not yet capable of replacing human researchers in theoretical computer science, the top-performing models have reached a level where they can provide meaningful pedagogical assistance. Future work should focus on transitioning these benchmarks to formal verification languages like Lean or Isabelle to ensure 100% logical soundness and to mitigate the risks of data contamination as models continue to evolve.

Summary updated

BibTeX
@misc{cao2025evaluating,
  author = {Yang Cao and Yubin Chen and Xuyang Guo and Zhao Song and Song Yue and Jiahao Zhang and Jiale Zhao},
  title = {{Evaluating Frontier LLMs on PhD-Level Mathematical Reasoning: A Benchmark on a Textbook in Theoretical Computer Science about Randomized Algorithms}},
  year = {2025},
  eprint = {2512.13978},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.13978},
}
Figure