How to Evaluate LLMs for Math Reasoning: A Reproducible Testing Framework

    Choosing an LLM based on a single review or ranking can lead to conclusions that are hard to reproduce. This article presents a practical evaluation framework for mathematical reasoning and long-document generation tasks. It explains how to fix test conditions, build verifiable problem sets, score proofs with explicit checks, record latency, credit consumption, and accuracy, and choose model tiers based on failure cost. The goal is to help readers produce repeatable comparison data for their own model-selection decisions.

    When selecting a large language model, many people read a review article, remember which model “wins,” and then pay for a subscription. The risk is that a single test is hard to reproduce, and the conclusion often lacks preconditions. The same problem, run against a different model version, with a different prompt, or at a different time, can produce a completely different result. A repeatable evaluation method you can execute yourself is more useful than memorizing a ranking.

    This article uses two task types—mathematical reasoning and long-document generation—as examples to explain how to design tests, record data, and turn results into model-selection decisions. It does not cite rankings based on undisclosed data.

    1. Fix Test Conditions Before Comparing Results

    The same model can produce very different outputs under different conditions. Before making comparisons, record at least the following information:

    • Model name and version number, plus the date of the call.
    • Access method: web interface, desktop client, or API. Default parameters and reasoning length may differ among the three.
    • Sampling parameters such as temperature. If the interface does not expose them, note “default values used” in the report.
    • The full prompt, including the system prompt and examples.
    • The number of repeated runs per problem. Reasoning tasks are stochastic, so a single result is not enough to support a conclusion.

    These details may seem tedious, but they are the basis for judging whether a conclusion can be reproduced. Without them, any claim that “model X is stronger” is only a one-off impression.

    2. Test Math Reasoning with Verifiable Problems

    A good test problem should meet three conditions. First, it should have a clear source, such as a textbook, lecture notes, or a public mathematical knowledge base, so that its premises and definitions can be checked. Second, a complete proof should not be directly searchable online; otherwise, the model may be retrieving the answer. Third, the standard answer or reference proof should be confirmed by the tester in advance.

    Scoring should not be limited to “correct” or “incorrect.” A proof can be broken into several checks and scored item by item:

    1. Are the premises and definitions correct? Is there any substitution of concepts?
    2. Do the cited lemmas actually exist, and are they stated accurately?
    3. Can each step of the derivation be independently verified? Are any steps skipped?
    4. Does the conclusion cover all cases required by the problem?
    5. When encountering a difficult point, does the model admit uncertainty rather than fabricate an explanation?

    Item 5 is often overlooked. A model that invents lemmas or references at points of uncertainty is not suitable for direct use in papers or teaching materials, even if most steps are correct. For statements that can be formalized, a proof assistant such as Lean can provide machine checking and reduce subjectivity in manual scoring.

    After scoring, record failure cases and classify them into categories such as “logical leap,” “incorrect lemma,” and “definition confusion.” Failure types often say more about what tasks a model is suitable for than the total score does.

    3. Convert Speed, Cost, and Quality into Comparable Numbers

    Many evaluations report only an overall impression, such as “fast” or “good value.” Such statements are hard to compare across models. A more practical approach is to record four metrics separately:

    Metric Measurement Notes
    First-token latency Seconds from submission to the appearance of the first token Indicates whether interaction feels smooth; use the median of multiple runs
    Total time Seconds from submission to completed output For complex reasoning tasks, this is usually much larger than first-token latency
    Credit consumption Difference in the quota dashboard before and after the task Note the plan, total quota, and date
    Accuracy Proportion of passed problems under the scoring sheet Also record the number of retries

    Combining these metrics produces a practically meaningful number: average credit consumption per correct problem, that is, credit consumption divided by the number of passed problems. If a model consumes fewer credits but has clearly lower accuracy, its apparent “cheapness” may be an illusion. The time and effort spent correcting errors are also part of usage cost.

    Percentage-based figures such as share of quota also require caution. The percentage of a plan’s quota consumed by one document depends on plan price, page count, number of formulas, whether retries are included, and whether deep reasoning is enabled. A percentage without these conditions cannot be directly applied to another user’s scenario.

    4. Choose Model Tiers by Usage Scenario

    The first step in model selection is to identify the task type. The second is to determine the acceptable failure cost. The table below provides a reference framework. Specific model choices should be based on your own test results.

    Usage scenario Key metrics Suggested strategy Fallback
    Theorem proving, paper formula derivation Correctness first, then citation accuracy Choose a high-tier model with strong reasoning; manually review all conclusions Use a proof assistant or advisor review; do not rely on a single model’s judgment
    Medium-difficulty exercises, brainstorming Diversity of approaches, speed A mid-tier model is sufficient; generate multiple times and compare Cross-validate with another model
    Software development, unit tests Code run rate, latency Split by task: mid-tier for simple generation, high-tier for architecture design Combine static analysis tools and test suites
    Copywriting, document summarization Cost, speed Basic-tier model or free credits provided by the platform Manually spot-check key facts

    The core of this table is failure cost. An incorrect lemma in a paper may invalidate the entire conclusion, while a small error in promotional copy is usually easy to fix. The higher the failure cost, the more you should invest in a high-tier model and keep an independent verification step.

    5. Discussions About Queuing and Credits

    Common complaints in user discussions include unused credits and long queue times during peak hours. These reports reflect real experiences, but a single user’s experience cannot represent overall service conditions. To assess queuing, look at service-capacity statements in platform announcements, response-time records for the same service at different times, and official usage statistics.

    For ordinary users, using off-peak hours and submitting tasks in batches are direct approaches. Splitting a large task into several smaller sections and running them during relatively idle periods can usually reduce waiting. Credit consumption can be adjusted based on monthly usage estimates to avoid concentrated use at the end of the month.

    These are usage tips, not purchase advice. Whether to subscribe and which tier to choose should be based on your own test data and budget.

    6. Three Actionable Conclusions

    First, build a small problem set of 20 to 30 problems covering the most common tasks in your actual work, and score them using the checks above. This is closer to real needs than any public ranking.

    Second, record model version, date, parameters, and credit consumption for every comparison. The same records let you quickly retest after a model update and judge whether performance has changed.

    Third, handle high-failure-cost and low-failure-cost tasks separately. Use high-tier models with human review for the former; use more economical tiers for the latter.

    Differences in math reasoning ability are real and can change with version updates. Rather than asking which model is strongest, first clarify what combination of correctness, speed, and cost your tasks require, then verify it with a reproducible method.