How to Systematically Evaluate the Mathematical Reasoning Capabilities of General-Purpose LLMs
This article presents a practical framework for evaluating general-purpose large language models, with a focus on mathematical reasoning. It explains why parameter count, context length, and a few sample answers are insufficient, proposes a multi-dimensional evaluation method, and covers task classification, answer correctness, derivation completeness, self-verification, exploration and correction, reusable testing workflows, failure-type analysis, engineering usability, and model selection by use case.
How to Systematically Evaluate the Mathematical Reasoning Capabilities of General-Purpose LLMs
Evaluating a general-purpose large language model should not rely only on advertised parameter count, context length, or performance on a handful of questions. This is especially true for tasks such as mathematical reasoning, complex planning, and code generation. Model performance is often shaped by a combination of task type, prompt wording, output length, tool-calling capability, and service stability.
A more reasonable way to judge whether a model is “strong enough” is to build a multi-dimensional evaluation system: first clarify the use case, then design a representative task set, and finally make a comprehensive judgment based on accuracy, stability, reasoning efficiency, and usage cost.
1. Model Strength Depends on the Specific Task
There is no absolute ranking for large models that is independent of context. One model may perform well on open-ended mathematical problems but not be strong in long-document summarization, code refactoring, or Chinese writing. Another model may produce less concise reasoning, yet reduce the risk of omissions by providing more detailed intermediate steps.
Common tasks can be divided into the following categories:
Closed-Ended Knowledge Q&A
These questions usually have clear answers, such as concept explanations, formula lookups, and standard process descriptions. This category mainly tests knowledge coverage, factual accuracy, and clarity of expression.Structured Mathematical Reasoning
This includes equation solving, geometric proofs, probability and statistics, number theory, combinatorics, and algorithm complexity analysis. The core is not only reaching a conclusion, but also ensuring that the derivation is complete and that conditions are used correctly.Open-Ended Mathematical Problems
These problems often have no ready-made template. They may require proposing conjectures, constructing counterexamples, finding proof paths, or gradually screening multiple candidate approaches. They reveal a model’s exploratory ability more than ordinary calculation problems do, but they are also more prone to derivations that look plausible while being incorrect.Programming and Engineering Implementation
Key aspects include requirement understanding, interface design, exception handling, test writing, performance analysis, and code maintenance. Whether the code runs is only the baseline; whether it is suitable for long-term maintenance in a real project matters more.Long-Text Processing and Comprehensive Analysis
Examples include reading requirement documents, extracting constraints, generating implementation plans, and cross-checking information from multiple sources. These tasks place higher demands on context management and information organization.
Therefore, before evaluating a model, the first question to answer is: what does the user care about most—mathematical research, engineering coding, document processing, or everyday Q&A? A unified ranking that ignores the target scenario usually has limited reference value.
2. Mathematical Ability Cannot Be Judged by the Final Answer Alone
For mathematical tasks, the easiest source of misjudgment is checking only the final result. A model may give the correct answer by chance, or it may reach a wrong conclusion because of a calculation error. Even when the result is correct, the proof process may not hold.
A more complete evaluation should include at least four dimensions.
2.1 Result Correctness
This is the most basic metric. For problems with standard answers, the final result can be judged directly. For proof problems or open-ended problems, humans or dedicated verification programs need to check whether the conclusion satisfies the problem conditions.
It is important to note that a correct numerical answer does not necessarily mean correct reasoning. For example, a model may use an invalid equation in an intermediate step but still reach the correct number because the errors cancel out. Such an answer should not be treated as high-quality reasoning.
2.2 Derivation Completeness
A high-quality answer should clearly list key conditions, the theorems used, relationships between variables, and the order of derivation. For complex problems in particular, it should not simply state “this is obviously true” or jump directly to the conclusion.
During evaluation, focus on observing:
- Whether the problem conditions are restated accurately;
- Whether necessary and sufficient conditions are distinguished;
- Whether boundary cases are handled;
- Whether the scope of formulas or theorems is explained;
- Whether there are unproven key leaps.
2.3 Self-Verification Ability
Common errors in complex reasoning include symbol confusion, missing ranges, inconsistent units, incomplete definition of probability spaces, and uncovered special cases. Stronger models often actively perform substitution checks, extreme-case checks, or reverse derivations.
For example, after solving an equation, the result should be substituted back into the original equation. After designing an algorithm, empty input, duplicate elements, large-scale data, and abnormal parameters should be analyzed. In probability problems, it should be checked whether all events form a complete sample space.
2.4 Exploration and Correction Ability
Open-ended problems often cannot be completed in one pass. A model may first propose a direction, then find that the direction cannot proceed, and subsequently switch to construction, induction, proof by contradiction, or invariants.
At this point, observe whether the model can:
- Identify weak points in the current approach;
- Clearly point out where the error occurs;
- Preserve parts that have already been verified as valid;
- Reorganize the proof strategy;
- Avoid repeatedly using methods that have already failed.
Valuable reasoning is not about producing longer output, but about continuously converging on the problem.
3. A Longer Reasoning Process Does Not Mean Stronger Ability
Many users judge a model’s reasoning ability by output length, but this is not reliable.
A longer reasoning process may mean that the model has explored thoroughly, or it may simply mean repeated rewriting, repeated calculation, or continued expansion in the wrong direction. Conversely, a concise answer with complete key steps and closed logic may also be of higher quality.
When evaluating the reasoning process, focus on the following metrics:
- Ratio of effective steps: the proportion of content that actually advances problem solving;
- Quality of error correction: whether problems are accurately corrected once discovered;
- Logical coherence: whether definitions, symbols, and assumptions remain consistent;
- Verifiability of conclusions: whether readers can independently check the process;
- Expression efficiency: whether irrelevant content is reduced while completeness is maintained.
In practical engineering, the ideal output is not unlimited expansion, but “transparent key steps, explanations for complex parts, and no excessive accumulation of irrelevant content.” This makes human review easier and also reduces reasoning cost.
4. Build a Reusable Model Evaluation Workflow
If multiple models are to be compared, it is advisable to use a fixed test set and unified prompts rather than switching models based on impressions.
Step 1: Divide Questions by Difficulty
Tasks can be divided into four levels: basic, intermediate, difficult, and open-ended exploration.
- Basic questions: test formula use and basic calculation;
- Intermediate questions: test multi-step reasoning;
- Difficult questions: test cross-topic combinations;
- Open questions: test exploration, construction, and proof ability.
Each level should include different types of problems so that the test results are not dominated by a single question type.
Step 2: Unify Input Conditions
When comparing models, try to keep the following conditions consistent:
- Use the same questions;
- Use the same language;
- Set similar output requirements;
- Specify in advance whether calculation tools may be called;
- Keep whether multiple rounds of correction are allowed consistent;
- Record the time consumed and output length of each response.
Otherwise, the final result may reflect differences in test conditions rather than differences in model ability.
Step 3: Distinguish Single Responses from Multi-Turn Collaboration
A single response mainly tests the model’s initial ability, while multi-turn collaboration reflects its ability to correct itself under feedback. Both are important, but they should not be mixed together.
In actual development, a model usually goes through a loop of “generate code—run tests—receive error feedback—modify again.” Therefore, a model whose first answer has minor flaws but can quickly fix them based on error information may be more suitable for engineering scenarios than a model that produces a seemingly perfect one-shot output but cannot accept feedback.
Step 4: Record Failure Types
Do not record only “correct” or “incorrect.” Failure types should also be classified:
- Calculation errors;
- Missing conditions;
- Conceptual confusion;
- Logical leaps;
- Fabricated theorems or nonexistent conclusions;
- Code that cannot run;
- Output format that does not meet requirements;
- Lack of explanation when facing uncertain content.
Failure types are more helpful for model selection than a single accuracy rate. Different workflows tolerate errors differently: research exploration focuses more on reasoning depth, production code focuses more on stability and testability, and customer-service Q&A focuses more on factual accuracy and consistent expression.
5. Beyond Mathematical Ability: Engineering Usability
For developers, a model’s mathematical reasoning is only one part of its capability. The following factors also determine the actual experience of using it.
5.1 Context Management
Whether a model can keep variables, constraints, and goals consistent in a long conversation directly affects the quality of complex tasks. This is especially important for code refactoring and requirement analysis: if one constraint from earlier text is missed, all subsequent plans may deviate.
5.2 Code Quality
When evaluating code, do not check only whether it runs. Also check:
- Whether module boundaries are clear;
- Whether naming is consistent;
- Whether exception handling is sufficient;
- Whether necessary tests are included;
- Whether security risks exist;
- Whether concurrency, performance, and resource release are considered;
- Whether future extension is convenient.
5.3 Stability
If answers vary greatly when the same question is asked multiple times, the model’s reliability on that task is insufficient. Result consistency can be measured through repeated tests, and whether errors show patterns can also be observed.
5.4 Output Controllability
Enterprise applications usually require fixed formats, such as structured data, reports with complete fields, or code snippets that follow specifications. Whether a model can consistently comply with format requirements is often more important than occasionally producing an impressive answer.
5.5 Cost and Response Efficiency
When using a model, consider API costs, waiting time, concurrency capacity, output length, and manual review cost. A model with stronger theoretical ability but very slow responses and insufficient stability may not be suitable for high-frequency business.
6. How to Choose a Model That Fits Your Needs
If the main work is mathematical research or complex algorithm analysis, prioritize models with strong open-ended reasoning ability, the ability to show key proof steps, and support for multi-turn correction.
If the main use is software development, focus on requirement understanding, code runnability, test coverage, debugging ability, and the ability to maintain project context.
If the main use is everyday office work and knowledge Q&A, pay more attention to response speed, factual accuracy, natural language, and format control.
For enterprise users, a “tiered usage” strategy is recommended: use fast, low-cost models for simple tasks; assign complex tasks to models with stronger reasoning ability; and add rule checks, program verification, and human review for results related to critical business. Do not assign all tasks to the same model, and do not treat model output directly as final fact.
Conclusion
The most important part of evaluating general-purpose large models is not finding an absolute ranking independent of context, but building a testing method that matches your own workflow. Mathematical ability should be judged together with answers, proofs, verification, and correction. Engineering ability should be judged together with code quality, stability, maintainability, and cost. For open-ended problems, focus on whether the model can propose effective hypotheses and adjust direction after failure.
From a practical perspective, the most reliable selection method is: clarify task goals, prepare representative samples, unify test conditions, record failure types, and then conduct small-scale trials in the actual business context. Only in this way can the subjective impression that “the model seems strong” be turned into a verifiable, reusable, and actionable technical judgment.
