Evaluating Math Reasoning in Large Language Models: Methods and Model Selection
This article explains how to evaluate the mathematical reasoning of large language models. It covers five capability dimensions, a reproducible testing process, structured result recording and comparison, inference performance and cost factors, and a workflow for model selection.
1. Why Mathematical Reasoning Needs Systematic Evaluation
Mathematical reasoning is a common way to test the logical ability of large language models. The model must understand the problem, choose a solution method, derive the result step by step, and give a conclusion that can be verified. Compared with general question answering, math is more sensitive to errors. One wrong symbolic transformation invalidates every conclusion that follows. For this reason, judging a model’s math ability from a few hands-on tries can give a misleading picture.
When a team selects or evaluates a model, it needs to answer three questions: which types of problems the model can solve, under what conditions its performance stays stable, and what form its errors take. Breaking these questions into executable tests is the only way to get conclusions that can be compared.
2. Five Dimensions of Mathematical Reasoning
Before evaluation, define what “capability” means. Common observable dimensions include the following.
1. Accuracy on Standard Problems
Standard problems have a unique answer that can be checked automatically, such as algebraic simplification, series summation, or probability calculation. Accuracy is the most direct metric, but pay attention to the difficulty distribution of the question bank. If the bank consists mainly of easy questions, a high score does not show that the model can handle complex derivations.
2. Exploration on Open-Ended Problems
Open-ended problems have no ready-made answer. Examples include proving part of a proposition, constructing a counterexample for a class of problems, or proposing a testable hypothesis. These tasks test whether the model can form a research path and judge which intermediate results are worth pursuing. Reviewers with relevant background should go through each derivation step by step. Checking only whether the final statement reads smoothly is not enough.
3. Completeness of the Derivation Chain
A complete derivation allows every step to be verified independently. Common problems include skipped steps, citing premises that were never defined, and treating a necessary condition as a sufficient one. To check this, ask the model to state the basis for each key step, then have a person spot-check whether those bases hold.
4. Self-Checking and Error Correction
Good mathematical reasoning usually includes verification, such as substituting special cases, checking boundary conditions, or working backward from the result. If the model notices a contradiction midway and corrects it, that suggests some capacity for self-checking. A corrected answer still needs independent verification. Do not accept a result just because the model claims it has verified itself.
5. Clarity of Presentation
A clearly presented derivation is easier for humans to review and easier to pass to downstream processes. During evaluation, record whether the derivation defines its symbols explicitly, whether it is organized into clear sections, and whether the conclusion is consistent with the preceding steps. Clear writing does not mean the conclusion is correct, so score the two separately.
3. Building a Reproducible Evaluation Process
Subjective impressions cannot be compared. A reproducible process should fix the question bank, prompts, and sampling parameters, and save the complete model output.
3.1 Building the Question Bank
Organize the question bank by difficulty level, with multiple questions at each level covering areas such as algebra, analysis, combinatorics, and number theory. Questions should come from public sources or from content the team wrote itself, and their sources and versions should be recorded. If test questions have already appeared in the training data, the model may rely on memorization, and the test results will be inflated.
3.2 Fixing Variables
Within a comparison experiment, keep the following variables consistent:
- The prompt template, including the question format and output requirements;
- Sampling temperature and maximum output length;
- Whether reasoning mode is enabled;
- The evaluation date and model version number.
If any parameter cannot be fixed, state this clearly in the report.
3.3 Multiple Sampling
Mathematical reasoning is stochastic. Answering the same question several times and counting the pass rate gives a more reliable result than a single run. Typically, sample each question several times, record the pass rate, and keep the incorrect samples for later analysis.
3.4 Scoring Methods
A script can compare final answers for standard problems, but it must handle equivalent forms, such as a fraction and its decimal value, or two algebraic expressions that are equal but written differently. Open-ended problems require human review. Use two reviewers who score independently, and send samples with large disagreements to a third reviewer for a final decision.
The example workflow is as follows:
question_bank = load_question_bank(path)results = []for question in question_bank:for i in 1..N:response = call_model(question.content, temperature=fixed_value, max_output_length=fixed_value)final_answer = extract_conclusion(response)verdict = compare_with_reference(final_answer, question.answer)results.append(question_id, i, verdict, response_length, elapsed_time)pass_rate = count_passes_per_question / N
4. Recording and Comparing Results
Save evaluation results in a structured format so they can be traced later. Recommended fields include question ID, difficulty level, sample index, verdict, derivation length, response latency, and reviewer comments.
| Dimension | Metric | Description |
|---|---|---|
| Standard problems | Pass rate by difficulty level | Calculated separately for each difficulty level |
| Open-ended problems | Reviewer score | Two reviewers score; record the average and the disagreement |
| Stability | Variation across samples | Reflects consistency of results on the same question |
| Derivation quality | Skipped-step rate | Share of spot-checked samples that contain skipped steps |
When comparing, avoid two common mistakes. First, drawing conclusions from individual cases. A single correct answer may be due to chance and does not represent overall ability. Second, ranking models by a single metric. Models can differ widely across problem types, so present results separately for each scenario.
5. Inference Performance and Deployment Cost
Mathematical ability is only part of model selection. In production, also consider response speed, concurrency, and cost.
5.1 Core Metrics
- Time to first token: the time from submitting a request to receiving the first output character. It directly affects the interactive experience.
- Generation throughput: the amount of output produced per unit of time, usually measured in tokens per second. It affects how long batch jobs take to finish.
- Concurrency: the number of requests a service can handle at the same time. It affects stability during peak hours.
5.2 Influencing Factors
Throughput is determined jointly by hardware specifications, batching strategy, model quantization method, context length, and concurrency. The same model can perform very differently across deployment environments. Therefore, do not use figures published by others directly for your own planning. Measure under real workloads in your target environment.
5.3 Cost Model
Cost has two parts: a one-time deployment investment, and ongoing costs based on call volume. Longer inference output means more computation per call. For tasks that require long reasoning chains, include output length in the cost estimate instead of looking only at unit price.
6. Model Selection Workflow
Follow these steps when making a decision.
- Define the scenario. Distinguish between uses such as teaching assistance, formula checking, research exploration, and customer support. Each scenario has different requirements for accuracy, explainability, and latency.
- Set thresholds. For example, the pass rate on standard problems should not fall below a given value, derivation completeness should pass manual spot checks, and single-response latency should stay within an acceptable range.
- Test in layers. First screen candidate models with a small question bank, then run the full evaluation on the models that pass.
- Validate with small traffic. Run the model in a gradual rollout on real business traffic, and observe the types of errors rather than looking only at average metrics.
- Keep a fallback plan. When a model is unstable on certain types of problems, have manual review or a strategy switch ready.
7. Common Pitfalls
- Treating fluent text as correct reasoning. Well-written wrong answers are common. Grade on whether the logic holds, not on writing style.
- Ignoring the cost of longer derivations. Longer reasoning chains may improve accuracy, but they also increase latency and cost, so weigh the trade-off.
- Using demo examples in place of systematic testing. Demo examples are usually hand-picked and do not reflect the real distribution of questions.
- Confusing capability with memorization. If questions come from training data, high scores may come from memory. Verify with new or rewritten questions.
8. Summary
Evaluating mathematical reasoning comes down to reproducibility, explainability, and comparability. Teams should first define the capability dimensions, then set up a fixed evaluation process and structured result records, and finally make the selection decision by combining performance and cost. Conclusions drawn this way can support real engineering decisions.
