How to Evaluate the Mathematical Reasoning of Large Language Models

    This article explains how to treat LLM math evaluation as a standardized, auditable exam. It covers the core design constraints—fixed paper and difficulty structure, raw scanned input without preprocessing, isolated per-question sessions, a consistent time window, and scoring that separates process from final answers—along with a vendor-neutral workflow, layered result interpretation, common biases and fixes, and practical advice for turning evaluation into a repeatable quality pipeline.

    1. Why an Exam-Style Evaluation Is Needed

    The performance of large language models on math tasks is often reduced to a single question: which one is stronger? Such conclusions are highly unstable. The reason is simple: mathematical ability is not a single dimension. It includes at least problem comprehension, symbolic manipulation, multi-step planning, computational stability, and the ability to write conclusions clearly. If the evaluation is not designed rigorously, score differences may come from prompts, context, tool calls, retrieval augmentation, or even the fact that a problem appeared in the training corpus, rather than from the model’s reasoning ability.

    A more auditable approach is to frame the evaluation as a standardized exam: a fixed paper, a fixed time window, a fixed input format, and a fixed scoring standard, while cutting off external information channels as much as possible. The value is not a permanent ranking, but a set of reproducible, comparable, and reviewable evidence.

    2. Core Constraints of the Evaluation Design

    2.1 Paper and Difficulty Structure

    Choose an authoritative math paper with a clear difficulty gradient and a stable number of questions, covering three question types: multiple choice (basic and intermediate), fill-in-the-blank (calculation and transformation), and free response (multi-step reasoning and expression). This structure avoids a situation where the entire paper is so difficult that all models score close to zero and lose discriminative power.

    2.2 Input Format: No Preprocessing

    Feed the original scanned images directly, without OCR preprocessing. This additionally tests the model’s robustness to layout, formula typesetting, and noise from handwritten or printed text. The trade-off is that visual recognition errors are introduced, so scoring must distinguish “misreading the question” from “not knowing how to solve it.”

    2.3 Answer Isolation: One Question at a Time

    Each question is answered independently with no contextual hints. This prevents the model from cross-checking information from preceding or following questions, making the measurement closer to single-question reasoning ability.

    2.4 Consistent Time Window

    Run the evaluation within the same time period to reduce bias caused by model version updates or changes in service-side policies. In engineering practice, a task queue can be used for unified scheduling, and each request can record a timestamp and a version identifier (if available).

    2.5 Scoring Standard: Process Score Plus Result Score

    Score free-response questions according to exam grading standards: award process points for key steps and result points for the final answer. This avoids overrating cases where “the answer happens to be correct but the reasoning is invalid,” and also identifies models that “have the right approach but make calculation errors.”

    3. A Practical Evaluation Workflow (Engineering Perspective)

    The following is a vendor-neutral illustrative workflow that can be reproduced on an internal evaluation platform:

    1. 1) Build the question bank: question ID, type, score, reference answer, scoring points
    2. 2) Generate tasks: one isolated session per question, with retrieval/plugins/external tools disabled
    3. 3) Standardize input: upload the scanned image and record its hash for traceability
    4. 4) Collect output: save the full reasoning text and the final answer
    5. 5) Dual review: two reviewers score according to the scoring points; disagreements go to arbitration
    6. 6) Aggregate and analyze: produce stratified statistics by question type, difficulty, and error type

    If automation is needed, pseudocode can express the scheduling and recording:

    1. for q in exam:
    2. session = create_isolated_session(tools=[], retrieval=False)
    3. resp = session.ask(image=q.scan, prompt="Please solve the problem in the image")
    4. store(q.id, resp, timestamp=now(), input_hash=sha256(q.scan))

    The key points are isolation, traceability, and replayability. Only when results are replayable do evaluation conclusions carry engineering value.

    4. How to Interpret Results: Do Not Look Only at the Total Score

    The output of an exam-style evaluation should not be just a ranking, but a capability profile. At least three layers of breakdown are recommended:

    • Question-type layer: whether multiple choice is stable, whether fill-in-the-blank is prone to calculation errors, and whether free response can develop multi-step arguments.
    • Error layer: distinguish misreading, symbolic errors, calculation errors, wrong method selection, and incomplete expression.
    • Stability layer: observe variance across repeated samples of the same question (if allowed); if repeated sampling is not allowed, approximate it using variance across different question types.

    A common phenomenon is that basic questions do not separate models, and real discriminative power appears in the final multi-step comprehensive question. Such questions often require long-chain planning, case discussion, construction, or proof. Any deviation in a single step zeroes out the result score, so they better reflect “reasoning depth” and “self-verification ability.”

    5. Common Biases and Suggested Fixes

    • Visual error bias: poor scan quality lowers scores. Keep the original images and record their clarity; if necessary, list “suspected question-recognition errors” separately in the report.
    • Subjective scoring bias: grading free-response questions is inherently subjective. Refine scoring points down to the “key equations / key inequalities / key conclusions that must appear.”
    • Version drift bias: the model service side may update. Record the request time and returned metadata, and mark the evaluation window in the report.
    • Question contamination bias: if a question has appeared widely in public corpora, scores will be inflated. Introduce “new questions from the same source” or “variant questions” for cross-validation.

    6. From Evaluation to Improvement: Practical Advice for Teams

    If you want to evaluate and select models for math-related scenarios (such as education, research assistance, or data analysis), treat evaluation as a continuous pipeline rather than a one-off activity:

    1) Build an internal gold-standard question bank, stratified by knowledge point and difficulty;
    2) Fix a “no tools, no retrieval” baseline evaluation as the capability lower bound;
    3) Then run an enhanced evaluation that “allows tools/retrieval” to measure engineering usability;
    4) Map error types to product requirements: if calculation errors are frequent, external calculation verification is needed; if expression is incomplete, structured output constraints are needed.

    For cloud deployment, a closed loop can be built with general-purpose capabilities: object storage for papers and results, a message queue for task distribution, a container platform to host the evaluation service, and logging plus monitoring and alerting to track success rate and latency. This turns “a single exam” into a sustainable quality measurement system.

    7. Conclusion

    Placing large language models under the constraints of “the same exam room, the same paper, the same time, no external aids” is a simple but effective evaluation philosophy: keep variables as few as possible and evidence as solid as possible. For developers, what matters more than the score of any single exam is building an evaluation method that is reproducible, auditable, and able to drive improvement.