Evaluating and Selecting LLMs for Advanced Mathematics: A Reproducible Engineering Framework
This article presents an engineering framework for evaluating the advanced mathematical capabilities of large language models and using those evaluations for model selection. It covers task tiering, reproducible evaluation pipelines, cost, latency and quota metrics, proof reviewability, combined routing strategies, and governance risks. The article argues that single experiences and single leaderboard rankings are insufficient for advanced math tasks, and recommends candidate pools, task routing, automatic checks, expert review, and fallback mechanisms so that model capabilities can be converted into acceptable, governable, and sustainable engineering capacity.
Evaluating and Selecting LLMs for Advanced Mathematics: A Reproducible Engineering Framework
1. Background: Why a Single Experience Is Not Enough to Evaluate Mathematical Ability
When evaluating a class of large language models with deep reasoning capabilities, developers can easily fall into two extremes. One is to conclude that a model is “very capable” based on a single impressive output. The other is to reject the model based on a single failure or a queueing experience. For ordinary question-answering tasks, this may be acceptable. For advanced mathematical tasks, however, the object being evaluated is not just the model itself. It is a system composed of task definitions, prompt templates, sampling strategies, verifiers, human review, and resource quotas.
The same mathematical problem can have different difficulty levels depending on whether the requirement is to “provide the final answer” or to “provide a complete, reviewable proof.” Completing a proposition for which no proof is included in public materials is different from exploring an open problem. Evaluating advanced mathematical capability must answer three questions. Can the model produce correct results consistently? Are the results verifiable, traceable, and reviewable? Under given cost and latency constraints, can this capability be used in engineering practice?
Therefore, this article does not discuss the experience of a specific product. Instead, it abstracts a general evaluation framework covering five aspects: task tiering, evaluation pipelines, cost and latency, proof reviewability, and combined routing. It explains how to evaluate and select advanced mathematical capabilities in an engineering-oriented way.
2. Task Tiering: Different Mathematical Tasks Cannot Use the Same Yardstick
The first step in evaluating mathematical capability is task tiering. At minimum, tasks can be divided into the following categories:
- Basic calculation and symbolic derivation tasks: Examples include algebraic simplification, calculus computation, and equation solving. Such tasks have relatively clear answers and are suitable for automatic checking. The focus is on accuracy, stability, and unit cost.
- Proof completion tasks for propositions in reference materials: Given a proposition for which public mathematical materials do not include a proof, the model is required to generate a complete proof and organize it in the form of English lecture notes. Such tasks require not only a correct conclusion, but also reasonable use of lemmas, complete boundary conditions, consistent terminology, and traceable references.
- Teaching notes and structured writing tasks: The model is required to write the proof process as readable lecture notes or technical documentation. Evaluation metrics should then include structural clarity, terminology accuracy, formatting readability, and review cost.
- Open problem exploration tasks: Such tasks have no standard answers. Model outputs are closer to research leads or candidate ideas and must rely on expert review. “Looks reasonable” cannot be treated as correct.
- Formal verification-related tasks: The model is required to output proof skeletons that can be verified by formal systems or strict checking workflows. Such tasks place high demands on model capability, verification toolchains, and human intervention.
The purpose of tiering is that a model may perform well on basic calculations but frequently omit boundary conditions when completing propositions without proofs. It may also generate polished lecture notes without guaranteeing proof rigor. If all tasks are mixed into a single leaderboard, the conclusions are often unreliable.
3. Reproducible Evaluation: Turning “Impressions” into Auditable Records
Advanced mathematical capability evaluation should be as reproducible as possible. The following evaluation pipeline is recommended:
tasks = load_tasks(dataset)for task in tasks:prompt = build_prompt(task, template)responses = []for i in range(sample_count):response = invoke(model, prompt, budget_limit, timeout)responses.append(response)auto_result = auto_check(task, responses)human_result = human_review(task, responses, auto_result)record(task_id,model_id,prompt_version,sample_count,auto_result,human_result,latency,quota_cost,failure_reason)score = weighted_score(correctness,proof_reviewability,readability,stability,cost_efficiency)
This pipeline emphasizes several key points:
- Fixed prompt templates and versions: Changes in prompts can significantly affect proof style and length, so versions must be recorded.
- Multiple samples: Advanced mathematical tasks involve randomness. A single success does not represent stable capability.
- Combination of automatic checks and human review: Automatic checks are suitable for verifying final answers, symbolic consistency, and structural completeness. Human review is responsible for judging proof logic, lemma references, and boundary conditions.
- Recording failure reasons: Timeouts, insufficient quota, output truncation, format errors, and skipped proof steps should all be classified and recorded. Otherwise, it is impossible to distinguish “insufficient capability” from “engineering limitations.”
- Preventing data contamination: Evaluation questions should be isolated from training corpora as much as possible so that the model is not merely restating known proofs.
4. Cost, Latency, and Quota: Advanced Reasoning Cannot Be Judged Only by Results
Advanced mathematical tasks usually require longer reasoning chains, more intermediate steps, and stricter self-checking. As a result, invocation cost, latency, and quota consumption all increase. In engineering evaluation, the core metric should be “the cost of completing one reviewable proof,” not merely the price per invocation.
The following metrics should be considered:
- Unit task cost: The invocation quota, retry count, and human review time consumed to complete one proof task.
- Effective throughput: How many acceptable tasks can be completed per unit time under queueing, rate-limiting, and timeout constraints.
- Stability cost: The number of samples and retries required to achieve an acceptable accuracy rate.
- Fallback cost: The amount of manual completion required after falling back to an ordinary model when the high-end model is unavailable.
In engineering practice, “emptying the remaining quota” should not be treated as an evaluation goal. Fast quota consumption does not mean strong capability; it may simply mean verbose output or excessive retries. A more reasonable approach is to establish task routing:
if task.level <= BASIC:model = economy_modelelif task.requires_formal_check:model = reasoning_model_with_verifierelse:model = high_end_reasoning_modelif model.quota_exceeded or model.timeout:fallback_to(lower_cost_model)mark_for_human_review()
Through routing, high-cost capability is concentrated on genuinely difficult tasks. Low-cost models are used for basic tasks, and formal checking tasks are routed to verification toolchains first. This controls the budget and avoids the waste of “using the most expensive model for every task.”
5. Proof Reviewability: A Quality Dimension More Important Than “Correct Answers”
The quality of a mathematical proof cannot be judged only by the final conclusion. A reviewable proof should at least satisfy the following requirements:
- Clear definitions and premises: The definitions, notation, and assumptions used must be consistent with the problem.
- Traceable lemma references: Each step should have a basis. There should be no skipped steps that are claimed to be “obvious” but are not actually obvious.
- Complete boundary conditions: Empty sets, degenerate cases, limiting cases, sign directions, and other boundary conditions must be covered.
- Readable structure: The proof should be organized as “goal—approach—key lemmas—main proof—conclusion” to facilitate human review.
- Formal spot-checking capability: Key steps should be convertible into formal checks or at least be reviewable line by line by experts.
For “propositions for which public materials do not include proofs,” model outputs cannot be directly regarded as correct proofs. A reasonable process is as follows: the model generates candidate proofs, automatic checks verify structure, experts review key lemmas, and formal spot-checking is performed when necessary. If English lecture notes are generated, terminology consistency, formatting readability, and reference completeness should also be checked. Lecture-note generation capability is a bonus, but it cannot replace proof correctness.
6. Selection Strategy: Combined Routing Is Better Than a Single Ranking
In practical model selection, a strategy of “candidate pool + task routing + human review loop” is recommended:
- Build a candidate pool: Evaluate multiple models by task tier separately rather than seeking one model that covers all tasks.
- Start with small-sample priors: Use a small set of highly difficult tasks for exploratory evaluation, then expand the sample.
- Quality threshold: Set human review thresholds for proof completion tasks. Models that do not meet the threshold should not enter production.
- Cost threshold: Set unit-cost limits for basic tasks. If a task exceeds the limit, route it to a lower-cost model.
- Fallback and circuit breaking: When the high-end model is queued or has insufficient quota, automatically fall back and mark the result for human review.
- Continuous monitoring: Record model versions, prompt versions, and output quality to prevent capability drift.
For open mathematical problems, boundaries should be made explicit. Models can be used to propose ideas, generate candidate lemmas, and assist with literature organization, but they cannot be promised to solve problems automatically. Any unverified proof must not be used directly in production or published externally.
7. Risks and Governance
Advanced mathematical capability evaluation should also address the following risks:
- Data contamination risk: Evaluation questions may appear in training corpora, causing inflated evaluation results.
- Hallucinated reference risk: Models may generate nonexistent lemmas, theorems, or citations.
- Non-reproducibility risk: If prompts, sampling, and versions are not recorded, results cannot be reproduced.
- Quota waste risk: Long reasoning chains and multiple retries may quickly consume resources.
- Compliance risk: When unpublished data is involved, data should be anonymized, audited, and output usage should be restricted.
For governance, evaluation logs, human review records, and quota consumption should be consolidated into logging and monitoring systems. Human review should be retained for highly difficult tasks. Disclaimers and internal usage boundaries should be set for generated proofs.
8. Conclusion
Evaluating the advanced mathematical capabilities of large language models cannot stop at the level of “a certain experience was stronger or weaker.” A more engineering-oriented approach is to first perform task tiering, then build a reproducible evaluation pipeline, and compare accuracy, proof reviewability, latency, quota cost, and stability in the same table. For model selection, use combined routing and a human review loop rather than relying on a single leaderboard. For proof completion of propositions without proofs, English lecture-note generation, and open problem exploration, the process should be “candidate generation + automatic checking + expert review + formal spot-checking when necessary.” Only in this way can model capabilities be transformed into acceptable, governable, and sustainable engineering capacity.
