arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.28725

Beyond the Answer Key: Robustness Evaluation of Large Language Models for Step-Level Mathematical Verification

Fateme Mazdarani, Carlos Toxtli

Fateme Mazdarani

School of Computing

Clemson University

Clemson, SC, USA

fmazdar@clemson.edu

Carlos Toxtli

School of Computing

Clemson University

Clemson, SC, USA

ctoxtli@clemson.edu

Abstract—Large language models (LLMs) are increasingly used as graders, verifiers, and process auditors, but most mathematical evaluations still emphasize final-answer accuracy. This can obscure whether a model can verify a non-canonical but valid solution trace. We introduce a controlled linear-equation benchmark for evaluating LLMs in the evaluator role. Each instance asks the model to judge final-answer correctness, step-level trace correctness, and the first incorrect step. Our evaluation of state-of-the-art open LLMs reveals a significant robustness gap: models that accurately evaluate canonical solutions often fail when presented with perturbed but logically equivalent variants. Across GPT-OSS 20B, Qwen3-14B, and Phi-4-Reasoning, base models perform well on canonical traces but degrade substantially on perturbed traces, especially for error localization. On valid perturbed traces, base-model false-rejection rates reach 75.6–85.3%, showing strong sensitivity to canonical solution form. Supervised fine-tuning, distillation, and test-time compute improve robustness in some settings, but gains are model dependent and can trade off against canonical performance. The results show that reliable process-level verification remains challenging, and evaluator robustness should be measured separately from solver accuracy, even in a simple algebraic domain with exact ground truth.

Index Terms—Large language models, mathematical reasoning, verifier evaluation, step-level verification, robustness, LoRA

I. INTRODUCTION

Large Language Models (LLMs) have demonstrated remarkable capabilities in supporting complex, multi-step tasks across education, software engineering, and scientific research. In correctness-critical applications, the validity of the final result depends entirely on the integrity of the underlying process, and a single error in the process can invalidate the whole result. Therefore, LLMs, when functioning as evaluators, must be capable of distinguishing between valid alternative methods and genuine logical failures. Automated evaluators must be accurate and robust since users may trust explained outputs without necessarily understanding their limitations [1]–[3].

In mathematical contexts, LLMs are not only used to solve problems but also to evaluate solutions produced by humans, tools, or other models. In such evaluator settings, final-answer correctness is insufficient: a solution with the right answer

Figure

Fig. 1. Robustness gap for base models. Final-answer evaluation is affected by solution perturbations, but the larger degradation occurs in first-error localization, indicating that the models often fail to separate valid non-canonical transformations from true errors.

may contain an invalid step, and a correct solution may use a non-standard path that should not be penalized. Most mathematical LLM benchmarks emphasize the solver role and report outcome-based metrics such as final-answer accuracy on datasets including GSM8K [4] and MATH [5]. This focus can hide a different failure mode: a model may grade canonical worked solutions accurately while rejecting an alternative trace that is mathematically sound but unfamiliar in form. We call this failure mode template sensitivity: dependence on a familiar solution template rather than on step-level validity. As shown in Fig. 1, this sensitivity is especially severe for first-error localization, where several models that appear reliable on canonical traces collapse under solution-level perturbations.

We study this problem in linear equations of the form ax+b=cx+dax + b = cx + d. This domain is intentionally narrow: it gives exact ground truth, controllable trace generation, and unambiguous error localization. We do not claim that linear equations capture all mathematical or scientific verification tasks. Instead, we use them as a diagnostic setting in which failures cannot be attributed to ambiguity in the problem statement or to subjective grading criteria. Our contributions are as follows:

• Controlled trace-perturbation benchmark: We hold each equation fixed while varying perturbed traces, isolating evaluator robustness with exact labels for correct, incorrect, and tricky solutions.

  • Three-part evaluation protocol: We evaluate final-answer correctness (Q1Q_1), step-level correctness (Q2Q_2), and first-error localization (Q3Q_3), enabling separate measurement of answer checking, process checking, and diagnostic feedback.

  • Empirical and adaptation analysis: We evaluate leading open models GPT-OSS 20B [6], Qwen3-14B [7], and Phi-4-Reasoning [8], quantifying the performance gap between baseline and perturbed alternatives, and identifying common failure modes; then test supervised fine-tuning, Gemini-enhanced distillation, and test-time compute.

References (19)