Abstract
Mathematical Information Retrieval (MIR) presents unique challenges due to the structural and logical complexity of mathematical language. Researchers from Peking University have introduced the Mathematical Information Retrieval Benchmark (MIRB), a unified framework designed to evaluate AI models across 12 datasets and four distinct tasks: Semantic Statement Retrieval, Question-Answer Retrieval, Premise Retrieval, and Formula Retrieval. Their evaluation of 13 diverse models reveals that while current embedding models perform well on semantic search, they struggle significantly with the logical reasoning required for advanced mathematical discovery and formal theorem proving.
Introduction
Mathematical Information Retrieval (MIR) is fundamentally more complex than standard text search. In mathematics, a single concept can be expressed through various notations, variable names, or formal languages. Furthermore, the relationship between a query and a document is often defined by logical necessity rather than topical similarity. For instance, a mathematician might seek a specific "premise"—a theorem or lemma—to complete a proof in a formal language like Lean.
Historically, the MIR field has been fragmented, with evaluation datasets scattered across different competitions (e.g., ARQMath, NTCIR) focusing on narrow tasks. There has been no centralized benchmark to test a model's ability to handle the full spectrum of mathematical language, including natural language, LaTeX formulas, and formal code. MIRB addresses this gap by consolidating these diverse challenges into a single, rigorous benchmark.
The MIRB Framework
The authors established a comprehensive evaluation pipeline by categorizing MIR into four primary pillars:
- Semantic Statement Retrieval: Finding similar mathematical statements or duplicate forum questions.
- Question-Answer Retrieval: Matching mathematical questions with relevant answers or proofs.
- Premise Retrieval: Identifying the necessary theorems or definitions to prove a given statement.
- Formula Retrieval: Searching for specific mathematical expressions within large corpora.
The benchmark standardizes 12 datasets curated from diverse sources, including Mathlib4, Stack Exchange, ProofWiki, and formal logic libraries such as Lean, Isabelle, and HOL Light. This inclusion of formal languages is a significant contribution, as these represent the code-based logic used in automated theorem proving.
Evaluation and Key Insights
The researchers benchmarked 13 diverse models, ranging from traditional sparse retrieval (BM25) and small open-source dense encoders to large "frontier" models (up to 7B parameters) and top-tier proprietary offerings from Voyage, OpenAI, and Cohere.
Reasoning as the Bottleneck
A primary finding is that models perform significantly better on "semantic" tasks—such as identifying duplicate questions—than on "reasoning" tasks like premise retrieval. While models achieved scores as high as 80-90 nDCG@10 on some semantic tasks, performance on formal premise retrieval (e.g., LeanDojo) plummeted to the 10-13 range. This suggests that premise retrieval remains the "final boss" for current retrieval models.
The Formal Language Gap
Most embedding models are pre-trained on massive web crawls dominated by natural language. Consequently, they often lack the specialized "literacy" required to parse the strict syntax and logical dependencies of formal languages like Lean or Isabelle.
The Reranker Paradox
Interestingly, applying off-the-shelf cross-encoder rerankers (such as BGE or Jina), which typically boost performance in general domains, often decreased accuracy in the mathematical context. This indicates that general-purpose rerankers have not been exposed to enough mathematical structure to distinguish between deep logical relevance and superficial similarity.
Performance Trends
The proprietary model voyage-3-large emerged as the top performer, achieving the highest average score (nDCG@10 of 54.54) and ranking first on 7 out of 12 datasets. There is also a notable performance jump when moving from models with fewer than 1 billion parameters to those in the 7-billion-parameter range. Furthermore, modern dense embedding models significantly outperformed the classic BM25 algorithm (Avg: 32.23), proving that semantic understanding is superior to simple symbol matching in math.
Limitations and Future Directions
The authors identify several paths for future research:
- Hard Negatives: Many datasets lack "hard negatives"—documents that are superficially similar but logically incorrect. Incorporating these would increase the benchmark's rigor.
- Language Coverage: Future iterations could expand to include other formal languages like Coq.
- The False Negative Problem: In premise retrieval, a model might retrieve a valid theorem not used in the original human proof. Currently, these are penalized as "wrong," highlighting a need for more flexible evaluation metrics.
The results underscore a critical need for retrieval models specifically pre-trained on large-scale formal mathematical corpora to bridge the current reasoning gap in AI-driven mathematical discovery.
Summary updated