Evaluating LLM Mathematical Reasoning and Cost Efficiency

    A practical framework for evaluating large language models on mathematical tasks, using expert-approved deliverables rather than isolated successful answers. Learn how to build a tiered test set, assess proof correctness and rigor, measure cost per accepted output, and separate planning, proof development, review, and formatting into an auditable workflow.

    Evaluating LLM Mathematical Reasoning and Cost Efficiency

    1. From Impressive Answers to Verifiable Deliverables

    In real development environments, an LLM’s mathematical capability cannot be judged by whether a single answer looks impressive. Mathematical tasks carry specific risks: a correct conclusion supported by a flawed proof, critical steps skipped as “obvious,” circular dependencies between lemmas, missing domain restrictions or boundary cases, plausible but untraceable references, and polished formatting that conceals logical gaps. For enterprise users, these weaknesses translate directly into review costs and delivery risks.

    The unit of evaluation should therefore shift from “one generated answer” to “one deliverable that passes review.” An acceptable result should have:

    • An accurate statement of the proposition.
    • Complete assumptions.
    • A logically complete proof.
    • Consistent notation.
    • A clearly structured English handout.
    • No fabricated references.
    • A manageable total cost.

    Usage credits, quotas, queueing delays, timeouts, and retries also belong in the evaluation. However, they are operational constraints, not reasons to select a model.

    Expiring credits may provide an opportunity to run an evaluation, but they do not establish that a model is suitable for long-term production use. From a cost-management perspective, expiring credits are closer to a sunk cost. What matters is the model usage, human review effort, and waiting time required to obtain an acceptable deliverable.

    2. Designing a Test Set Without Ready-Made Proofs

    A useful evaluation set should balance verifiability, representativeness, and resistance to benchmark leakage. One approach is to select propositions from public mathematical materials that explicitly omit proofs. These can cover definition-based reasoning, combinations of lemmas, nontrivial constructions, and exploratory problems.

    All source material must be appropriate for use. Do not upload unpublished data, customer information, or restricted content. To reduce the chance that a model merely reproduces a memorized result, require a complete proof plan, supporting lemmas, and explicit verification checks—not just a final conclusion.

    Organize tasks into difficulty tiers:

    • Basic: Tests expansion of definitions, understanding of notation, and completion of elementary logical arguments.
    • Intermediate: Requires two to five supporting lemmas and tests proof organization.
    • Advanced: Requires nontrivial constructions, awareness of counterexamples, or connections across mathematical areas.
    • Exploratory: Covers more open-ended problems. The model may identify where it is stuck, but must not fabricate a conclusion.

    Use a small, repeatable set of samples for each tier. Run each sample at least two or three times to assess consistency.

    Define acceptance criteria before testing. For example, an English handout should include a title, prerequisites, the main proof, remarks, a glossary, and references where necessary. Every critical inference must be justified. If the model cannot complete the proof, it must identify the gap rather than obscure it with vague language.

    A reusable prompt template is:

    1. You are a mathematical reviewer and instructor. Prove the following
    2. proposition and organize the result as an English handout.
    3. Requirements:
    4. 1. Restate the proposition and all assumptions. Identify any additional
    5. conditions that may be needed.
    6. 2. Provide a proof plan and a list of supporting lemmas.
    7. 3. Give a complete proof, explaining each critical step. Do not skip
    8. steps by calling them "obvious."
    9. 4. Check for circular reasoning, hidden assumptions, undefined notation,
    10. and incorrect references.
    11. 5. Produce an English handout containing a title, prerequisites,
    12. the main proof, remarks, and a glossary.
    13. 6. If you cannot complete the proof, state exactly where the argument
    14. breaks down. Do not fabricate a conclusion.
    15. Proposition: {statement}

    The purpose of this template is not to produce more text. It is to make the output inspectable by an expert, section by section.

    For difficult tasks, the workflow can be divided into four stages: restatement and planning, proof drafting, independent review, and handout editing. Retain logs for each stage so that failures can be traced to comprehension, reasoning, or presentation.

    3. Scoring Correctness, Rigor, Delivery Quality, and Engineering Cost

    An evaluation scorecard should cover the following dimensions.

    1. Correctness and rigor: Is the main conclusion correct? Is the proof complete? Do the lemmas hold? Are boundary conditions addressed? Are there circular arguments or hidden assumptions? This should receive the greatest emphasis. Good formatting cannot compensate for a logical error.

    2. Verifiability: Can key lemmas be checked independently? Are references traceable? Is notation consistent? Do complex steps include intermediate derivations? Poor verifiability substantially increases expert review time.

    3. Presentation and delivery quality: Is the English accurate? Is the handout clearly structured? Are equations and prose integrated effectively? Is the glossary complete? Presentation affects reading efficiency, but it does not replace mathematical correctness.

    4. Consistency: Does the model reach the acceptance threshold across repeated runs of the same task? Does it require repeated retries? A single success shows that an acceptable result occurred, not that it can be relied upon.

    5. Cost efficiency: Record total usage, retry usage, queueing time, generation latency, and human review minutes. Normalize these measurements by the number of deliverables that pass review.

    6. Safety and compliance: Does the output expose sensitive information, invent references, or present misleading conclusions when uncertainty remains?

    An illustrative composite score is:

    1. Composite score =
    2. 0.30 * Correctness +
    3. 0.20 * Rigor +
    4. 0.10 * Presentation and formatting +
    5. 0.10 * Consistency +
    6. 0.20 * Cost efficiency +
    7. 0.10 * Latency and availability

    These weights are not a universal standard. Adjust them to the use case. Mathematical handout production should place greater weight on correctness and rigor; preliminary exploration may assign more weight to latency and cost.

    The essential requirement is to define the weights, samples, and review criteria in advance. Do not change the rules after seeing the results.

    4. Measuring Cost per Accepted Deliverable

    Cost efficiency is not simply the cost of one model call, nor is it the amount of text generated. A more useful measure is the total cost of ownership per deliverable that passes review:

    1. Cost per accepted deliverable =
    2. (Model-call cost + Retry cost + Human review cost + Queueing cost)
    3. / Number of accepted deliverables

    All terms should be expressed in comparable cost units. If the immediate concern is only credit consumption, start with:

    1. Credits per accepted deliverable =
    2. Total credits consumed / Number of accepted deliverables

    A handout that consumes a large share of a monthly quota but fails expert review provides no positive production value. A handout with moderate usage that is suitable for internal review may be more economical.

    Also examine the cost curve as task difficulty rises:

    • At what point does the acceptance rate fall sharply?
    • When do retries begin to increase rapidly?
    • How does review effort change across difficulty tiers?

    For most teams, higher-capability tiers are best reserved for exploring proof strategies and resolving critical difficulties. General-purpose tiers can handle formatting, terminology checks, and low-risk drafts. Not every task needs the highest configuration.

    When credits are about to expire, run a controlled evaluation: freeze the samples, scorecard, and budget limits before starting. Avoid generating low-value material simply to exhaust the balance. Human review time is expensive too.

    5. Separating Planning, Proof, Review, and Formatting

    Reliability in mathematical reasoning often comes from a structured workflow rather than from adding more instructions to a single prompt.

    A practical pipeline consists of five stages:

    1. Planning: Restate the proposition, enumerate assumptions, and propose a proof strategy and lemma list.
    2. Proof development: Expand the argument lemma by lemma and flag uncertain steps.
    3. Review: Independently check for circular reasoning, hidden assumptions, boundary conditions, and reference errors.
    4. Delivery preparation: Standardize notation, English wording, handout structure, and the glossary.
    5. Final human review: A domain expert makes the acceptance decision. Model self-evaluation cannot replace expert review.

    The following pseudocode illustrates an evaluation run:

    1. evaluation_config = {
    2. "task_tiers": ["basic", "intermediate", "advanced", "exploratory"],
    3. "samples_per_tier": [20, 20, 10, 3],
    4. "repetitions": 2,
    5. "quality_threshold": "expert review passed",
    6. "per_task_credit_limit": configured_value,
    7. "timeouts_and_retries": "bounded and logged"
    8. }
    9. for model_tier in model_tiers_to_test:
    10. for task in evaluation_set:
    11. for run in range(evaluation_config["repetitions"]):
    12. response = call_model(build_prompt(task), budget_limit)
    13. review = expert_review(response)
    14. log(
    15. model_tier,
    16. task.id,
    17. run,
    18. passed=review.passed,
    19. correctness=review.correctness,
    20. rigor=review.rigor,
    21. presentation=review.presentation,
    22. credits_used=response.credits_used + retry_credits,
    23. queue_time=response.queue_time,
    24. generation_time=response.generation_time,
    25. human_review_minutes=review.duration_minutes
    26. )
    27. summarize_by_model_tier:
    28. acceptance_rate = accepted_runs / total_runs
    29. credits_per_accepted_deliverable = total_credits / accepted_deliverables
    30. cost_per_accepted_deliverable = (
    31. total_model_cost
    32. + total_human_review_cost
    33. + total_waiting_cost
    34. ) / accepted_deliverables

    At a minimum, logs should retain the task ID, model tier, prompt version, output summary, review decision, credits consumed, retry count, queueing time, and generation latency.

    If the team already has shared logging, monitoring, or alerting infrastructure, integrate these metrics into it. This makes results easier to compare across evaluation batches.

    6. Interpreting Results by Task Type, Not a Single Ranking

    Evaluation results should not be reduced to one global leaderboard. A more useful approach is to assess models by task category:

    • Proof exploration: Ability to find meaningful logical advances.
    • Review: Ability to detect errors.
    • Delivery: Quality of English handouts and formatting.
    • Batch production: Unit cost and consistency.

    Strong performance in one category does not establish reliability across all mathematical tasks.

    The length of a generated reasoning explanation is not a quality metric either. A longer argument may be more complete, or it may be repetitive and increase review effort. A shorter proof may be clearer, or it may omit essential steps.

    Focus instead on effective reasoning density: whether nontrivial steps are adequately justified, key lemmas are verifiable, and irrelevant material is kept under control. In production, a concise, auditable proof is usually more valuable than a long, loosely organized response.

    Open-problem exploration requires particular caution. An insightful approach from a high-capability model is a research lead, not evidence that the problem has been solved. Any claim to have resolved an open problem requires review by domain experts.

    Record exploration ability, review ability, writing quality, and cost efficiency separately. Then combine model tiers according to the needs of each workflow stage.

    7. Common Pitfalls and Practical Recommendations

    Common mistakes include:

    • Treating one successful example as evidence of consistent capability.
    • Equating answer length with rigor.
    • Using leaderboard position as the primary selection criterion.
    • Ignoring human review costs.
    • Running low-value tasks to consume expiring credits.
    • Testing with unpublished or restricted data.
    • Allowing the model to serve as the sole judge of its own correctness.

    A more reliable rollout starts with a small but rigorous evaluation set. Define acceptance criteria in advance, normalize costs by accepted deliverables, record consistency and latency, and assign model tiers to appropriate stages such as planning, proof development, review, and formatting.

    Ultimately, evaluating LLM mathematical reasoning requires considering proof correctness, logical rigor, delivery quality, credit consumption, waiting time, and human review effort together. Expiring credits may start an evaluation, but they should not determine the model selection.

    A reproducible, interpretable, and auditable evaluation baseline is what enables stable decisions about quality, efficiency, and cost.