Evaluating LLMs for Math and Complex Reasoning: A Practical Framework

    Many users judge LLMs by leaderboard rank or chain-of-thought length, but these signals are often unreliable. This article presents a practical evaluation framework covering task fit, open-ended math problems, reasoning quality, multidimensional scoring, code capability, stability testing, and an executable evaluation process.

    When using large language models, many people decide which model is better based on “who ranks higher” or “whose chain of thought is longer.” These methods are often unreliable: a model’s performance on standardized problems may not represent its ability to handle open-ended problems; one correct answer does not mean the model has stable reasoning ability; and longer output does not mean deeper thinking.

    Therefore, evaluating an LLM—especially its math, programming, and complex reasoning capabilities—should not rely on a single score. It requires a comprehensive evaluation system covering task types, accuracy, stability, expression quality, and usage efficiency.

    1. Clarify Task Fit, Not Just Model Rank

    Different models may have completely different strengths. Some are good at answering factual questions quickly, some are suitable for long-document analysis, some are more stable at code generation, and others are better at handling open-ended math problems.

    The first step is therefore not to ask “which model is the strongest,” but to clarify your own tasks:

    • Does the task involve problems without standard answers?
    • Does it require multi-step mathematical derivation?
    • Does it require reading long requirement documents?
    • Does it require generating code that can run directly?
    • Is response speed more important?
    • Is lower API cost required?
    • Does the output need to be natural, concise, and easy to review?

    For enterprise users, model selection is essentially a task-matching problem. A top-ranked model may be slow, expensive, or unable to reliably follow an agreed output format. In practice, it may be less valuable than a slightly weaker model that is more stable and easier to integrate.

    2. Open-Ended Math Problems Best Reveal the Reasoning Ceiling

    Math evaluation can generally be divided into three categories.

    Standardized Problems

    These problems usually have clear answers and cover algebra, geometry, probability, number theory, and calculus. They are suitable for testing basic calculation, formula application, and common problem-solving patterns.

    The advantage of standardized problems is that they are easy to grade automatically and convenient for comparing accuracy across models. But they also have clear limitations: if a problem has already appeared in training data, the model may obtain the answer through pattern matching rather than actually completing the derivation.

    Variants and Combined Problems

    Variant problems change conditions, symbols, data ranges, or problem order, requiring the model to transfer existing knowledge to a new scenario. Combined problems may involve multiple concepts at the same time—for example, establishing a recurrence relation, performing boundary analysis, and then proving the correctness of the result.

    These problems better test whether the model truly understands the structure of the problem. Evaluation should not only check the final answer but also examine:

    • Whether the known conditions were correctly identified;
    • Whether implicit constraints were missed;
    • Whether unproven conclusions were introduced in intermediate steps;
    • Whether special cases were discussed;
    • Whether the final result can be verified.

    Open-Ended Problems

    Open-ended math problems usually have no fixed solution template. They may require constructing conjectures, finding counterexamples, designing proof routes, or comparing multiple methods.

    These tasks place the highest demands on the model, because it cannot rely only on common problem types. It needs to complete the following process:

    1. Understand the goal of the problem;
    2. Separate known conditions from the conclusion to be proved;
    3. Discover possible structures;
    4. Propose candidate approaches;
    5. Check whether the approach has gaps;
    6. Adjust direction based on failed results;
    7. Form a complete and verifiable proof.

    Open-ended problems should not be evaluated only with a binary “correct or incorrect” standard. A more reasonable approach is layered scoring:

    • Whether the problem was accurately understood;
    • Whether a valid exploration direction was provided;
    • Whether a key invariant or structure was found;
    • Whether incorrect paths could be ruled out;
    • Whether a rigorous proof was ultimately completed;
    • Whether the conditions under which the proof applies were clearly stated.

    Some answers do not complete the final proof but already find the correct entry point. This ability still has value in research assistance and engineering analysis.

    3. Chain-of-Thought Length Does Not Directly Represent Reasoning Ability

    Many users equate answer length with reasoning depth. This is a common misconception.

    A longer reasoning process may contain a large amount of repeated calculation, irrelevant discussion, and self-correction; a shorter answer may directly provide a concise proof because the model has already identified a mature structure. What matters is not “how much was written,” but whether the reasoning has the following characteristics.

    Clear Structure

    The answer should clearly distinguish problem modeling, method selection, key derivation, and conclusion verification, rather than mixing all ideas together.

    Checkable Key Steps

    Formula transformations, boundary conditions, induction bases, and logical leaps should all be reviewable by a human. For math problems, a correct conclusion with an incorrect process still cannot be considered a high-quality answer.

    Active Error Detection

    A strong model should not only generate answers but also check its own assumptions. For example, after obtaining a result, it can substitute it back into the original conditions to check whether the definition is satisfied; in a probability problem, it can check whether the result lies between zero and one; in an algorithm problem, it can analyze boundary inputs.

    Avoid Pseudo-Reasoning

    Some answers are full of connectors such as “therefore,” “obviously,” and “it is easy to obtain,” but actually lack necessary proof. Evaluators should focus on these jump points and should not assume that the logic holds merely because the language is fluent.

    4. Build a Multidimensional Scorecard

    To reduce the influence of subjective impressions, evaluation can use a 100-point or grade-based system. A general scoring framework is as follows.

    Final Correctness: 35%

    Judge whether the final conclusion is correct and whether it meets the problem requirements. For problems with a unique answer, exact grading can be used; for open-ended problems, expert review is needed.

    Reasoning Completeness: 25%

    Check whether the model covers key steps, whether there are implicit assumptions, whether special cases are handled, and whether the conclusion can be strictly derived from the premises.

    Problem Understanding: 15%

    Evaluate whether the model correctly identifies the goal, constraints, input-output relationships, and problem boundaries. Many errors are not calculation errors but misunderstandings of the problem from the very beginning.

    Self-Verification: 10%

    Observe whether the model actively verifies results, whether it can detect contradictions, and whether it can effectively correct itself after the user points out an error.

    Expression and Readability: 10%

    A high-quality answer should be easy for humans to read and review. For technical teams, conciseness, accuracy, and clear structure are usually more important than length.

    Stability: 5%

    Whether the answer remains basically consistent when the same problem is submitted multiple times. If a model sometimes answers correctly and sometimes incorrectly, its capability has not yet formed reliable task stability.

    In actual projects, weights can be adjusted according to task requirements. For example, research exploration places more emphasis on open-ended reasoning and problem modeling, while production code generation places more emphasis on correctness, executability, and boundary handling.

    5. Do Not Neglect Code and Tool-Assisted Capabilities

    Mathematical reasoning ability and engineering usability are not the same thing. A model may write a beautiful mathematical explanation but generate code that cannot run; it may also produce correct code results without explaining algorithm complexity and exception handling.

    Evaluation of code capability should include at least the following aspects:

    • Whether the syntax is correct;
    • Whether it passes basic tests;
    • Whether it covers empty input, extreme values, and invalid input;
    • Whether time and space complexity are reasonable;
    • Whether it follows the specified language version and project conventions;
    • Whether it can explain the key implementation;
    • Whether it changes only the necessary parts after requirements are modified;
    • Whether it breaks existing interfaces and data structures.

    A recommended approach is to use a continuous “requirement—implementation—test—fix” workflow rather than asking the model to generate code in one shot. Specifically, first provide a short requirement, then ask the model to list boundary conditions, then generate an implementation, and finally provide test cases and ask the model to analyze failure reasons.

    This evaluation method is closer to real development and can distinguish between “can generate code” and “can participate in software engineering.”

    6. Stability Matters More Than Single-Peak Performance

    A single test is easily affected by problem type, context length, randomness, and prompt style. More reliable evaluation should involve multiple rounds of repeated testing.

    Stability can be observed from the following perspectives.

    Repeat the Same Question

    Submit the same prompt multiple times and compare answer consistency. The focus is not word-for-word identity, but whether the conclusion, method, and key steps are stable.

    Change the Problem Wording

    Keep the essence of the problem unchanged while adjusting language expression, variable names, or problem order, and observe whether the model can still handle it correctly.

    Add Irrelevant Information

    Add background unrelated to the task and test whether the model can focus on the core conditions and avoid being disturbed by noise.

    Conduct Multi-Turn Follow-Ups

    First ask the model to give an answer, then ask it to check the proof, look for counterexamples, or verify with another method. A truly reliable model usually maintains contextual consistency during follow-ups rather than producing conflicting conclusions.

    7. Design an Executable Evaluation Process

    A process suitable for individual developers and enterprise teams can be divided into six steps.

    1. Build a task set. Tasks should cover basic problems, variant problems, open-ended problems, code problems, and document analysis problems, rather than testing only the areas in which a model is strong.

    2. Unify input format. Use the same prompts, context, and output requirements for all models as much as possible to reduce bias caused by prompt differences.

    3. Separate automatic scoring from human scoring. Numeric answers, compilation results, and test pass rates can be counted automatically; proof quality, expression clarity, and problem understanding require human review.

    4. Record complete results. In addition to final answers, save response time, output length, error types, number of corrections, and whether human intervention was needed.

    5. Conduct repeated tests. Test each task at least multiple times and record average and worst-case performance to avoid being misled by accidental results.

    6. Validate in real workflows. Place the model into actual tasks such as requirement decomposition, code review, fault localization, or technical documentation writing, and observe whether it can provide sustained help.

    8. Conclusion: Choose Models by Overall Value

    Evaluating an LLM cannot rely only on leaderboards, nor can conclusions be drawn from a single complex problem. A mature judgment should consider:

    • The ceiling of mathematical and logical reasoning;
    • The ability to explore open-ended problems;
    • Consistency across multi-turn interactions;
    • Code generation and debugging capability;
    • Whether output is clear, concise, and reviewable;
    • Whether errors can be effectively corrected;
    • Response speed, API cost, and deployment conditions;
    • Whether it fits existing R&D workflows.

    For individual users, the most practical approach is to prepare a set of test problems highly relevant to their own work and continuously record the performance of different models. For enterprise teams, a long-term evaluation set and version regression mechanism should be established to prevent capability fluctuations after model upgrades.

    Ultimately, the “strongest model” is not an absolute conclusion detached from context. What is truly worth choosing is a model that can stably produce correct results on target tasks, reduce manual review costs, and integrate into daily workflows.