How to Evaluate and Improve LLM Advanced Math Reasoning: Methods and Practice
This article presents a practical framework for evaluating large language models on advanced and open-ended mathematics. It explains why casual impressions are unreliable, how to split math ability into four scoreable task tiers, how to fix prompt templates so outputs are verifiable, and how to separate real derivations from fluent but copied conclusions through citation checks, counterexample stress tests, and local rewrite tests. It also covers managing inference cost as an experiment budget, controlling variables before comparing models, and archiving results in a repeatable pipeline, along with a checklist of common evaluation mistakes.
1. Background: Why “Feels Strong” Is Not “Actually Strong”
In real selection and capability assessments, many teams judge whether a model is good at advanced math from scattered personal experience. The problem with this approach is that the sample size is tiny, problem difficulty is not controlled, prompt wording varies enormously, and there is no reviewable intermediate process. As a result, the same model can lead different people to completely opposite conclusions.
A more reasonable approach is to treat “model math ability” as a measurable engineering metric rather than a subjective impression. The evaluation goals should cover at least three layers of capability:
- Basic computation and algebraic manipulation: symbolic operations, identity transformations, common inequalities, and limit computation.
- Standard proofs and structured writing: whether the model can organize a complete proof in the order of definitions, lemmas, and theorems, and output it in standard mathematical typesetting.
- Open-ended problem exploration: whether the model can propose a workable approach, construct counterexamples, spot gaps, and self-correct when no ready-made proof exists in the literature.
The third layer is currently the most discriminating and the most easily exaggerated, so it must be evaluated with a separately designed scheme.
2. Task Tiering: Breaking “Math Ability” Into Scoreable Problem Families
Build a question bank with four difficulty gradients, each containing a sufficient number of problems, and each problem having a unique or decidable reference answer.
- Computation and simplification tier: definite integrals, series convergence, matrix decomposition, and ODE solving. Scoring looks at the final result and the key steps.
- Textbook-level proof tier: theorem proofs from standard textbooks, requiring complete citation of definitions and no logical jumps.
- Competition and graduate entrance exam tier: problems requiring multi-step constructions, such as building auxiliary functions, using compactness arguments, and justifying the legitimacy of exchanging the order of limits.
- Open and literature-level tier: propositions with no ready-made proof in public sources, testing whether the model can autonomously generate a proof framework and revise it when challenged.
Key point: open-tier problems cannot be judged only on whether the “final answer is right,” because such problems often have no accepted answer. The evaluation focus must shift to process quality.
3. Prompt Engineering: Make Output Verifiable, Not Just Presentable
A representative practice in the original work is to give only a minimal instruction, asking the model to prove a proposition for which no proof is given in public math sources, and to output it as a formal academic lecture note. This “low prompt, high difficulty” setup exposes real capability well, but for reproducible evaluation the prompt template needs to be fixed.
A reusable prompt skeleton looks like this (illustrative):
Task: Prove the following proposition and output it as an English mathematical lecture note.Requirements:1. First list the definitions and known lemmas used, stating the source type for each (textbook / common knowledge / requires self-proof).2. Organize the proof in layers of "Lemma - Proposition - Proof"; no skipped steps.3. Give a legitimacy justification for each step (e.g., the conditions for swapping summation and integration).4. At the end, attach a "Potential Gaps Self-Check": list the 3 points most likely to be challenged by a reviewer and respond to each.5. Output formulas using standard mathematical typesetting.Proposition: <paste the proposition here>
The value of a fixed template is that results are comparable across different models, different times, and different accounts. The “self-check for gaps” item also sharply distinguishes models that can write from models that can think.
4. Process Credibility: Separating “Copying Conclusions” From “Real Derivation”
The most common misjudgment in evaluation is treating a model’s fluent long output as a correct proof. Three checks are needed:
- Citation check: require the model to annotate the definitions and lemmas each step depends on, and manually spot-check whether they actually exist and are used correctly.
- Counterexample stress test: for a key construction in the proof, ask “does it still hold if the condition is weakened to …”, and observe whether the model can produce a counterexample or clearly state where it fails.
- Local rewrite test: change only one condition in the proposition and ask for a new proof, to check whether the model is mechanically restating.
An illustrative automated check flow can be organized like this:
def check_proof(proof_text, rubric):report = {}report["has_definitions"] = "Definition" in proof_textreport["lemma_claims"] = proof_text.count("Lemma")report["self_check_section"] = "Potential Gaps" in proof_textreport["rubric_score"] = rubric.score(proof_text) # manual or rule-based scoringreturn report
The more robust engineering approach is a three-stage pipeline of “model generation + rule-based validation + manual spot checks,” rather than fully automated scoring.
5. Cost and Quotas: Manage Credits as an Experiment Budget
A very real phenomenon in the original practice is this: membership quota is about to expire and remaining credits cannot be used up, so high-difficulty tasks are fed in all at once and the quota is burned through in just a few runs. This shows that the cost of high-end reasoning tasks must be modeled explicitly.
Recommended budgeting method:
- Run a “small sample” first: run the same problem once with a short prompt and once with a long prompt, record the consumption and quality difference, and estimate the cost per unit of quality.
- Set tiered quotas: reserve most of the budget for open-tier problems, and complete computation-tier problems locally or with low-cost options where possible.
- Record the input length, output length, and number of retries for each experiment to form a comparable ledger.
- Have a plan for queuing and rate limiting: split long tasks into resumable stages (list definitions -> produce lemmas -> produce the main proof -> self-check) so that one failure does not invalidate everything.
6. How to Compare Models Properly: Align Variables First, Then Rank
The original content gives a subjective tier ranking that places different models on the same leaderboard. The more reliable engineering approach is to control variables first and then discuss relative strength:
- Same question bank, same prompt template, same temperature and max output settings.
- Same scoring rubric, with raters blind to model identity.
- At least three samples per model per problem, reporting the median and variance rather than a single best result.
- Distinguish “concise chain of thought but correct conclusion” from “verbose chain of thought but wrong conclusion”; the former is more usable in production.
Once variables are aligned, it usually turns out that most models differ little on textbook-level proofs; what really separates them is open-tier performance and long-chain self-correction ability.
7. Archiving Results and Engineering Implementation
Evaluation should not be a one-off activity. Make it a continuously running pipeline:
- Put the question bank and prompt templates under version control, recording the reason for any change.
- Produce a structured report for each evaluation run (problem, model identifier, elapsed time, consumption, score, failure reason category).
- Classify failure causes: misuse of definitions, logical jumps, calculation errors, unreadable typesetting, refusal to answer.
- Accumulate high-scoring proofs as internal corpus for later fine-tuning or retrieval augmentation, forming a positive loop.
- If cloud capabilities are used, a general category combination can be adopted: object storage to save evaluation artifacts, a message queue to decouple long tasks, a container platform to host batch inference, and logging plus monitoring with alerts to track success rate and cost.
8. Common Pitfalls Checklist
- Drawing conclusions from a single run: long-chain reasoning has high variance.
- Judging style instead of logic: nice typesetting does not mean the proof holds.
- Substituting the number of hard problems for difficulty tiering: more problems does not mean broader coverage.
- Ignoring the cost dimension: a high score that cannot be afforded has no production value.
- Copying leaderboards directly: rankings without aligned variables have limited reference value.
9. Conclusion
Evaluating an LLM’s advanced math and open-ended math reasoning comes down to turning subjective experience into reproducible experiments: tiered tasks, templated prompts, verifiable processes, accountable cost, and archived results. Following this method, a team can obtain a relatively objective capability baseline and also clarify which type of solution each task category should go to and how the budget should be allocated, turning “high-end reasoning” from an occasional surprise into a stable, deliverable engineering capability.
