Re$^2$Math: Benchmarking Theorem Retrieval in Research-Level Mathematics

Zicheng Lyu, Wenjie Yang, Shengzhong Zhang, Zengfeng Huang

TL;DR

Re$^2$Math is a new benchmark designed to test if AI can act as a true mathematical research assistant by performing "tool-grounded retrieval." Instead of solving self-contained puzzles, models must identify when a proof requires an external theorem, find a valid scholarly source, and verify that the theorem’s specific assumptions actually fit the proof at hand. Current frontier LLMs struggle significantly with this task, with the best system achieving only a 7% success rate.

What Problem Does This Paper Address?

Most existing AI math benchmarks (like GSM8K or MATH) are "closed-world": the model is given a prompt containing all the necessary information to find an answer. However, real-world mathematical research is "open-world." When a mathematician gets stuck on a proof, they don't just "reason harder"—they look for a "tool" (a lemma, theorem, or inequality) in the existing literature.

The challenge for an AI assistant is fourfold:

  1. Inference: Recognizing exactly what kind of tool is missing from a partial proof.
  2. Search: Turning that abstract need into a successful search query.
  3. Selection: Picking the right paper from a noisy list of search results.
  4. Verification: Ensuring the theorem in that paper actually applies to the current context (e.g., checking if the domains, variables, and hypotheses match).

Methods

The authors formalize this as a source–tool retrieval task. Given a partial proof, the agent must return a pair: an admissible scholarly source and a theorem-like statement extracted from it.

Key methodological innovations include:

  • Citation-Invariant Success: Unlike standard retrieval tasks that require finding a specific "gold" document, Re$^2$Math gives credit for any valid source that provides a sufficient theorem. This mimics real research, where the same lemma might appear in multiple textbooks or papers.
  • Hierarchical Context: Models are provided with "Global Context" (the paper's setup and goals) and "Local Context" (the specific steps immediately preceding the gap).
  • Frozen Retrieval Artifact: To ensure reproducibility, the authors use a "release-frozen" snapshot of Google Scholar results. This prevents "live-search drift" from changing the benchmark results over time.
  • Multi-Stage Evaluation: The task is broken down into planning, query generation, source selection, and tool extraction to diagnose exactly where models fail.

Datasets

The paper introduces the Re$^2$Math benchmark, constructed using an automated "published-first" pipeline:

  • Source Material: 860 proof-gap instances mined from 631 research papers across five domains: Geometry/Topology, Analysis/PDE, Probability/Statistics, Algebra/Number Theory, and Combinatorics.
  • Eval-200: A high-quality, manually audited test split of 200 instances (40 per domain).
  • Comparison to Others: Unlike formal proving benchmarks (like LeanDojo) which operate in code, Re$^2$Math operates in natural language LaTeX, targeting the way mathematicians actually communicate.

Key Insights and Ideas

  • "Grounding is easier than applicability": This is the paper's biggest "aha" moment. Models are actually quite good at finding real math in real papers (the "Grounding" metric). However, they fail to check if that math actually solves the specific problem at hand. They often retrieve "thematically nearby" theorems that have the wrong assumptions or a conclusion that is too weak.
  • The "Search" Bottleneck: Even when a model understands the proof gap, it often fails to "lexicalize" that need into a query that a keyword-based engine like Google Scholar can understand.
  • Oracle Rescue: Even when the authors gave the models the exact paper used by the original author (the "Oracle" condition), the success rate only rose to about 12.7%. This proves that "reading" and "applying" a research-level theorem is a distinct, difficult reasoning hurdle for current LLMs.

Key Results

The authors tested several frontier models (including versions of Claude, GPT, Gemini, and Grok) in a 2026-simulated environment:

  • Primary Metric (ToolAcc): The best-performing model, Claude Opus 4.5, reached only 7.0%. Most other models fell between 1% and 3.5%.
  • Grounding Rate vs. Success: Grok 4 found grounded statements in 41.5% of cases but only successfully closed the proof gap in 3.5% of them. This highlights the massive gap between "finding math" and "using math correctly."
  • Planning Accuracy: Models like Kimi K2 and Qwen3 showed strong "planning" signals (around 40%), meaning they understood what kind of tool was needed, but they couldn't follow through the retrieval and verification pipeline.

Limitations and Future Work

  • Natural Language vs. Formalism: The benchmark relies on a "judge" model to determine if a proof gap is closed. While audited by humans, this isn't as rigorous as a mechanically checked proof in a language like Lean.
  • Single-Source Constraint: The current evaluation limits models to opening only one full-text source per instance, which is stricter than a human researcher's workflow.
  • Future Directions: The authors suggest the need for "theorem-aware" search engines that index the internal logic (hypotheses and conclusions) of theorems rather than just paper titles and abstracts. They also envision Re$^2$Math serving as a training ground for future RL-based research agents.

Summary updated

Abstract

Large language models are increasingly capable at closed-world mathematical reasoning, but research assistance also requires source-grounded use of the literature. When a proof reaches a non-trivial step, a useful assistant should determine whether the needed tool (e.g., a lemma) already exists, identify a suitable scholarly source, and verify that its assumptions align with the current proof context. To rigorously evaluate such capabilities, we introduce Re$^2$Math, a benchmark for tool-grounded retrieval from partial mathematical proofs. Each instance is built from a candidate instrumental citation in the proof of a main theorem, with hierarchical context and an optional leakage-controlled anchor hint. We also make the task source-grounded yet citation-agnostic in that any admissible theorem sufficient for the proof transition is accepted. Evaluation uses a release-frozen retrieval artifact, ensuring reproducibility, while the benchmark itself supports automatic, continual expansion with newly constructed instances. On the current benchmark test set, the best fixed-judge ToolAcc reaches 7.0\%, despite substantially higher rates of source grounding, indicating that current systems often retrieve valid statements but fail to establish their applicability to the local proof step. By decoupling citation recall, grounding, and proof-gap sufficiency, Re$^2$Math transforms literature-grounded mathematical tool use into a controlled diagnostic task.
BibTeX
@inproceedings{lyu2026re,
  author = {Zicheng Lyu and Wenjie Yang and Shengzhong Zhang and Zengfeng Huang},
  title = {{Re$^2$Math: Benchmarking Theorem Retrieval in Research-Level Mathematics}},
  booktitle = {AI4Math @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=5olUroPMyc},
}

Loading related content...

Figure