Evaluating Large Language Models on Hard Math Reasoning

    A practical framework for evaluating large language models on high-difficulty mathematical reasoning: why obscure propositions with no ready-made proofs work better than public benchmarks, how to design minimal prompts and a three-dimensional scoring rubric, common interpretation pitfalls such as treating fluency as correctness or ignoring sampling variance, and the engineering side of self-hosted inference covering throughput, latency, cost, and the supporting container, storage, queue, and monitoring capabilities.

    1. Why “hard math” has become the test case

    On general conversation and copywriting tasks, the gap between major large language models is closing fast. What actually separates them are problems that have no ready-made answer and must be derived step by step. Mathematical propositions have three natural advantages here:

    1. A unique, decidable answer: a proof is either right or wrong, independent of subjective preference;
    2. No skipping steps: the conclusion has to follow from the premises one step at a time, so a model cannot get there on “feel” alone;
    3. Sparse corpus coverage: genuinely obscure propositions often have no complete proof in the training data, so memorization is not a winning strategy.

    Whether a model can produce a structurally complete proof for an obscure proposition is therefore more informative than its score on a standard leaderboard.

    2. Evaluation design: turning “intuition” into a reproducible process

    2.1 Keep the prompt minimal to avoid leaking the method

    The effective approach is to give only the proposition itself and ask for an English proof in mathematical typesetting, written as a lecture note. The shorter the prompt, the less scaffolding the model can lean on, and the more its real capability is exposed.

    1. Instruction:
    2. Write a self-contained lecture note (in English, with LaTeX math)
    3. that proves the following proposition. Do not cite external sources.
    4. Proposition: <paste the proposition here, with no additional hints>

    The key point: no outline, no lemma names, no hint about which method to use. Once the prompt contains something like “please use induction,” the evaluation degrades from independent reasoning to instruction following.

    2.2 Prefer propositions with no existing proof

    If a proposition already has a complete proof in public material, the model may simply be reproducing memorized text. More reliable selection criteria:

    • It belongs to a niche branch or a special case;
    • Public material states only the result, not the proof;
    • Closing the logic requires the model to combine several known results on its own.

    2.3 Build a three-dimensional scoring rubric

    Dimension What to observe How to judge
    Correctness Logical gaps, circular reasoning, implicit assumptions Verify step by step whether each citation holds
    Completeness Whether all cases, boundaries, and degenerate cases are covered Check whether the case split is exhaustive
    Presentation quality Clear structure, self-consistent notation Whether it can be used as a lecture note as-is

    Have reviewers with the relevant mathematical background score independently, and sample the same proposition multiple times to observe stability — a single success may be luck; consistent results across runs indicate real capability.

    3. Reading the results: common pitfalls

    Pitfall 1: ranking all models by a single aggregate score. Math ability is not one-dimensional. Some models produce very long chains of thought that cover everything but are redundant; some reason concisely and write close to human style; some are strong in one branch and drop noticeably on another type of problem. The sensible approach is to report tiers rather than precise ranks, and to mark untested areas as “not evaluated.”

    Pitfall 2: mistaking fluency for correctness. A well-typeset proof dense with terminology is the easiest kind to fool non-specialist readers. When verifying, focus on whether the critical step actually holds, not on length.

    Pitfall 3: ignoring sampling variance. Running the same model on the same proposition several times can yield mixed results. An evaluation should report the number of successes and the failure modes, not just the single best run.

    4. From evaluation to engineering: throughput and cost of self-hosting

    Once model capability reaches a certain level, the real barrier shifts to the engineering side. In public industry discussion, a common situation is that rack-scale high-density inference hardware, with specific optimizations, can push generation speed into the range of hundreds of tokens per second. This leads to a practical conclusion: once a capability can be self-hosted, value capture no longer depends on a small number of calls to an official API, but shows up in the overall efficiency of a private inference cluster.

    Self-hosting means weighing four general capabilities at once:

    • Container platform: elastic scaling and canary rollout for inference services;
    • Object storage: holding model weights, datasets, and evaluation artifacts;
    • Message queue: smoothing peaks and troughs, making long-running inference tasks asynchronous;
    • Logging and monitoring with alerting: tracking time to first token, throughput, failure rate, and GPU memory usage.

    A simplified load-testing approach:

    1. # Pseudocode: offline batch evaluation + metric collection
    2. cases = load_propositions() # set of propositions
    3. results = []
    4. for p in cases:
    5. for _ in range(K): # sample the same proposition multiple times to observe stability
    6. out = model.generate(prompt_of(p), max_tokens=4096)
    7. results.append(verify(out)) # three-dimensional score: correctness/completeness/presentation
    8. report = {
    9. "pass_rate": mean(results),
    10. "avg_latency": mean(latencies),
    11. "tokens_per_sec": total_tokens / total_time,
    12. }
    13. emit_metrics(report) # push to monitoring, building a long-term trend

    Engineering-wise, note that long chains of thought significantly amplify memory and bandwidth pressure, so batch size, context length, and concurrency need to be tuned jointly. For cost-sensitive scenarios, a tiered strategy of “small model for first-pass screening + large model for review” works well.

    5. Selection checklist

    1. Replace public leaderboards with a self-built set of obscure problems to avoid memory contamination;
    2. Keep prompts minimal, and never leak the method in the problem statement;
    3. Sample the same proposition multiple times and report stability, not the single best run;
    4. Evaluate in tiers by branch, and clearly mark the untested scope;
    5. Put throughput, latency, and cost per token into the same decision table;
    6. When sensitive data is involved, prioritize private deployment and data-stays-in-domain options.

    6. Conclusion

    Evaluating hard mathematical reasoning is fundamentally about whether a model can independently construct and close a chain of logic without a reference to lean on. Making the evaluation a reproducible process and the deployment an observable engineering effort is what keeps judgment continuous while capabilities evolve quickly. For most teams, the pragmatic path is to get the evaluation pipeline running in containers on a general-purpose cloud platform first, then decide whether to move to self-hosting based on measured throughput and cost data.