Evaluating LLM Math Reasoning: A Practical Cost-Benefit Framework

    A reproducible engineering framework for judging whether general-purpose large language models can support math proofs, lecture notes, and structured documents in production—not just in one-off demos. It covers task boundaries, capability dimensions, total cost, staged prompts, verification loops, and model selection.

    General-purpose large language models already offer real assistance for math proofs, English lecture-note generation, and structured document output. Completing a single demo, however, is not the same as entering a stable production workflow. Evaluating these capabilities should not rest on one impressive case, a single call price, or quota consumption alone. Teams need a reproducible, measurable, and regression-friendly engineering method. This article lays out a framework for technical teams across six areas: task boundaries, capability dimensions, cost models, prompt design, verification loops, and selection decisions.

    1. Define the task boundary: demos versus engineering work

    Math-reasoning work falls into several types: completing proofs of known propositions, proving claims that the literature leaves unproved, exploring open problems, generating math lecture notes, typesetting symbols and formulas, and reviewing proof steps. Each type demands different model strengths. Rewriting an existing proof depends more on expression and structure. A proposition without a published proof requires a checkable proof path. Open problems involve exploratory reasoning and usually need stronger hypothesis generation, counterexample search, and human verification.

    Before scoring a model, state the boundary clearly: what the input is, what the output is, who judges correctness, and how costly failure is. If the task is only to draft English lecture notes, emphasize structural completeness, terminology accuracy, symbol consistency, and parseable typesetting. If the task is to prove a proposition, emphasize logical closure, lemma dependencies, edge conditions, and implicit assumptions. Extrapolating demo-level success to engineering-level work is the most common evaluation mistake.

    2. Capability assessment: do not score “long chain-of-thought” alone

    Evaluate math ability along at least five dimensions.

    Mathematical correctness. Check whether the proposition is understood accurately, whether proof steps close, whether lemmas are used legitimately, and whether boundary conditions are missing. For claims the literature does not prove, also check that the model states extra assumptions explicitly instead of treating unproved material as known.

    Reasoning-chain quality. A longer chain of thought is not a better one. A high-quality chain should be concise, readable, and reviewable, with justification for key steps and notes where steps are skipped. Overlong, tangled chains raise human review cost and can hide logical gaps.

    Document usability. Lecture-style output should have clear sections, a symbol table, a glossary, and a layered structure of theorems and proofs, and it should render reliably in a structured format. Frequent symbol clashes, broken formulas, or misplaced sections raise rework cost even when the mathematics is correct.

    Stability and reproducibility. The same prompt can behave differently under different sampling settings, context lengths, and retry counts. Fix the task set, prompt templates, and scoring rules, and record failure and rework rates instead of keeping only successful cases.

    Awareness of knowledge limits. The model should not invent citations, fake theorem numbers, or present uncertain content as settled fact. For sources it cannot confirm, a placeholder or an explicit “to be verified” mark is more useful in engineering than a polished false citation.

    3. Cost model: total cost is not the price of one call

    Comparing only per-call price or quota burn is not enough for model selection. A more useful total-cost model is:

    Total cost = call cost + verification cost + rework cost + waiting cost + maintenance cost

    Call cost is only one part. Math proofs and lecture notes usually need human review, and verification cost can far exceed call cost. Unstable output formats accumulate rework quickly. Long queue times affect delivery pace. Ongoing upkeep of prompts and evaluation sets adds maintenance cost.

    Quota should be tiered by task value. For quotas that are limited or about to expire, do not spend them on low-value work just to “use them up.” Prefer high-value, reusable, durable tasks such as batch-generating evaluation samples, offline knowledge-base completion, and regression tests on a fixed evaluation set. Set a budget cap and a per-task consumption threshold. Log input and output length, call count, failure reason, and human review time for each task, and turn that into a quota dashboard.

    4. Prompt design: staged decomposition beats one long generation

    Math proofs and lecture notes should not pack every requirement into a single very long generation. A more stable approach is staged: first ask for a proof outline and lemma dependencies, then a step-by-step proof, then structured lecture notes and a self-check. The prompt should require assumptions, a symbol table, theorem dependencies, proof steps, and a conclusion, and it should mark uncertain points as pending verification.

    A pseudo-configuration can describe the constraints like this:

    1. task:
    2. goal: prove_proposition_and_generate_lecture_notes
    3. stages:
    4. - outline_and_lemma_dependencies
    5. - step_by_step_proof
    6. - structured_lecture_generation
    7. - self_check
    8. constraints:
    9. - explicit_assumptions
    10. - no_fabricated_citations
    11. - symbol_consistency
    12. - checkable_steps
    13. review:
    14. - structure_parse_check
    15. - symbol_cross_reference
    16. - manual_math_review

    Staging makes each phase independently checkable. Failures can be traced to the outline, the proof, or the typesetting instead of reworking an entire long document. For lecture notes, also require a glossary and a symbol table so later automation can check symbol consistency.

    5. Verification loop: automated checks plus human review

    Math output should be verified with automated checks plus human review. Automation can cover structure parsing, section completeness, symbol-reference consistency, formula rendering, citation placeholders, repeated paragraphs, and format rules. Human review should focus on mathematical correctness, legitimate lemma use, and proof closure.

    Build a fixed evaluation set with four sample types: simple proof completion, medium-difficulty proposition proofs, lecture-note generation, and format validation. On every model-version change, run the same set and record accuracy, rework rate, average verification time, cost per lecture page, and the distribution of failure types. Quality gates can be set as follows: if the math error rate exceeds a threshold, do not release; if format-parse failures exceed a threshold, fix prompts and templates first; if human rework stays high, revisit how the task is split.

    6. Selection: tier by task, not by a single example

    Avoid crowning or rejecting a model from one case. Build a scoring matrix by task tier and weight mathematical correctness, verifiability, document quality, stability, and cost efficiency, then decide in light of the team’s review capacity. For open-problem exploration, favor reasoning depth and verifiability and budget more human review. For lecture-note generation, favor structural stability and rework rate. For batch document processing, favor quota consumption and throughput stability.

    In production, store evaluation sets, output samples, and rework records in general-purpose object storage, and feed call logs and budget usage into logging and monitoring alerts so regression can continue. On Baidu AI Cloud, general cloud capabilities such as object storage, logging, and monitoring alerts can host an evaluation and budget-observation platform, but the actual choice should still come back to task quality, total cost, and verifiability.

    Closing

    Evaluating math reasoning in a general-purpose large language model is really evaluating a human–machine production system: the model generates, and the engineering system constrains, verifies, and regresses. Only when mathematical correctness, reasoning-chain quality, document usability, quota cost, and the verification loop are measured on the same sheet can a team avoid being misled by a single case and turn model ability into stable, deliverable, continuously improvable engineering capability.