Evaluating Large Language Model Math Reasoning: A Framework for Open-Ended Problems

    This article breaks down a practical framework for evaluating large language model (LLM) math reasoning, moving beyond simple answer matching to process and structure assessment. It covers a four-tier problem set design (L1 to L4), a chain-of-thought quality scoring skeleton with code, a cross-tier model comparison matrix, common evaluation pitfalls, a step-by-step implementation workflow, and engineering recommendations for running repeatable, auditable evaluation pipelines. Readers will learn how to produce reproducible capability matrices, penalize confident wrong answers, and clearly mark untested combinations.

    1. Background: Why “Which Model Is Better” Is Hard to Answer

    The most common debate in comment threads is whether one model has already surpassed another tier. These comparisons rarely converge because the baselines are not unified: some people use competition problems, some use textbook exercises, and some use application problems they wrote themselves. Three different problem sets can produce completely different rankings. So the more reliable engineering approach is not to ask “who is first,” but to first define “under which problem set, which constraints, and which scoring criteria the comparison is made.”

    Open-ended math problems are fundamentally different from routine calculation problems. Routine problems have a unique solution, and correctness is a binary judgment. Open-ended problems often require the model to clarify the problem, complete missing conditions, construct auxiliary objects, and choose a proof path on its own. The final answer may be an expression, a construction, a counterexample, or even an argument that “this problem is unsolvable under the given conditions.” This means evaluation must be upgraded from “answer matching” to “process and structure assessment.”

    2. The Three Layers of the Evaluation Framework

    2.1 Layer 1: Tiered Problem Set Design

    It is recommended to divide the problem set into four tiers to form a difficulty gradient:

    • L1 Calculation and simplification: multi-step algebraic manipulation, equation solving, routine integration.
    • L2 Structured reasoning: chaining two or three knowledge points, such as combining sequences with inequalities.
    • L3 Open construction: constructing auxiliary functions, introducing parameters, and performing case analysis on your own.
    • L4 Research-level open problems: incomplete conditions, requiring the model to proactively point out ambiguities and give conclusions under multiple interpretations.

    Each tier should contain no fewer than 30 problems, and must include “trap problems” (conditions that look sufficient but are actually contradictory) and “unsolvable problems,” used to test whether the model will forcibly fabricate an answer.

    2.2 Layer 2: Chain-of-Thought Quality Assessment

    Looking only at the final answer masks process defects. You can score on four metrics (1–5 points):

    1. Conciseness: whether there are long repeated derivations and ineffective backtracking.
    2. Traceability: whether key steps have clear justification rather than jumpy assertions.
    3. Self-checking: whether dimensional, boundary-value, and extreme-case checks are done before the conclusion.
    4. Resistance to inducement: whether the model dares to reject a premise when facing a false one.

    A reusable scoring skeleton is as follows:

    1. def evaluate(record):
    2. # record: a single evaluation record
    3. weights = {"concise": 0.2, "traceable": 0.3,
    4. "selfcheck": 0.25, "robust": 0.25}
    5. score = sum(weights[k] * record[k] for k in weights)
    6. if record["final_wrong"] and record["claimed_confident"]:
    7. score *= 0.5 # wrong answer with high confidence, significant penalty
    8. return round(score, 3)

    The point of this logic is to treat “answering wrong confidently” as a strong penalty, which is exactly the failure mode that most needs to be exposed in open-ended problem evaluation.

    2.3 Layer 3: Cross-Tier Model Comparison

    In practice, it is rare for “one model to lead across the board.” More common is a gradient distribution: the flagship tier clearly dominates on L4, the mid-tier models offer better cost-performance on L2 and L3, and the lightweight tier is better on L1 in terms of latency and cost. So the evaluation conclusion should be written as a matrix rather than a ranking, for example:

    Problem Tier Flagship Mid-tier Lightweight
    L1 Pass Pass Pass
    L2 Excellent Excellent Medium
    L3 Excellent Medium To be observed
    L4 Excellent To be observed Not recommended

    For combinations that have not been sufficiently tested, the correct phrasing is “not yet evaluated,” rather than a speculative conclusion.

    3. Common Evaluation Pitfalls

    First, using a single public leaderboard instead of a self-built problem set. Public problem sets easily enter training corpora, leading to inflated scores. Second, looking only at the final answer. A “correct guess” with a wrong process will quickly fail on harder problems. Third, ignoring sampling randomness. Multiple samples of the same problem may fluctuate, so you should report the mean and variance, and fix parameters such as temperature and maximum output length. Fourth, not doing prompt comparison. The same model can differ more across prompt strategies than across models, so a unified prompt baseline is needed.

    4. An Actionable Implementation Workflow

    1. Build a private problem set of around 120 problems, 30 per tier, with two people cross-annotating the standard answers and key steps.
    2. Fix the inference parameters and prompt template, and sample each problem three times for each tier of model.
    3. Automatically judge answer equivalence (compare after symbolic simplification), and manually review the process scores.
    4. Output the capability matrix and the distribution of failure types, focusing on the proportion of “overconfident errors.”
    5. Roll out a quarterly update of the problem set, replacing leaked problems.

    5. Engineering Recommendations

    The evaluation itself is also a load test. It is recommended to deploy a unified inference gateway on a container platform, use a message queue to smooth out peaks, and write each evaluation’s requests, chain-of-thought, and scores into object storage and a logging service, with monitoring and alerting configured to track latency and failure rate. Baidu AI Cloud typically provides a general combination of capabilities from container platform to logging and monitoring in these scenarios, making it easy to turn the evaluation pipeline into a repeatable, auditable routine engineering process rather than a one-off script.

    6. Conclusion

    Judging whether a model is suitable for open-ended math tasks relies not on impressionistic comparison, but on a reproducible experiment that combines a tiered problem set, process scoring, and cross-tier comparison. Only by clearly marking “untested” as “untested” and heavily penalizing “confident wrong answers” can the evaluation conclusions have engineering reference value.