arXiv:2610.30200cs.SEOct 2026

Manuscript Offprint

arXiv:2610.30200

Detection Is Not Enough: Reasoning Traces as Testable Program Hypotheses

Vaidehi Hegde

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

When a language model is deployed, no reference solution exists, so the reasoning trace it writes is the only evidence for judging its answer. The reference-free substitutes each fail differently: self-assessment degrades the answer it was meant to protect, sampling agreement measures stability rather than correctness, and perturbation studies read the expected answer off a human-written template, grading a model rather than a trace. We ask how far a single trace can be verified with no reference solution, no judge model and no weight update, and find, for a frozen LLaMA-2-7B-chat on GSM8K, that detection is not what limits such a pipeline. Checking a trace against itself reaches an AUROC of 0.741 and stops there for a structural reason: two thirds of wrong traces state no false equation, having executed a mistaken plan correctly, and on wrong-plan failures the detector flags a wrong trace less often than a right one. A candidate-derived metamorphic probe exposes many of these failures: we abstract the trace into a program over the question's quantities, perturb one quantity, execute the program, and ask the model the rewritten question once, so every trace supplies its own test. Valid perturbations exist for 937 of 1,319 test questions (71.0%); among the 847 that also have a parseable first trace, supported traces are correct 60.6% of the time against a 31.6% base rate, although the probe also refutes 45.5% of correct traces. No tested policy yields a statistically significant improvement in accuracy. A flag earns its retry only when detector precision exceeds D/(R+D)D/(R+D), where R and D are the rates at which a retry repairs a wrong trace and damages a correct one; our repair rate is so low that, at the same retry budget, even a perfect detector would recover an estimated 66 of 1,319 questions. Repair, not detection, is the open problem.

1 Introduction

Large language models now solve multi-step mathematical problems by writing out their reasoning before they answer [22]. Whether that reasoning can be trusted is usually decided with labelled solutions, used either to train a verifier on final answers [5] or to supervise individual steps [10, 20]. At deployment those labels are absent, and the trace is often the only evidence available for judging the answer it accompanies.

Label-free substitutes exist, but each has a known weakness. Asking a model to critique and revise its own answer without external feedback lowers GSM8K accuracy below the first attempt [7, 8], and small models need a strong external verifier before self-correction helps at all [24]. Agreement across samples [21] measures the stability of an answer rather than its correctness, and a model that misreads a question tends to misread it the same way every time. Internal-consistency verification instead judges a trace by whether its own arithmetic and dependencies hold together [25], and rests on the assumption that a wrong trace will, somewhere, look wrong. We ask how far a single trace can be verified with no reference solution, no judge model and no weight update, and what the answer implies for a system that uses a verifier to decide when to try again.

Figure

Figure 1: Overview of the pipeline. A frozen model answers a question with a trace, which is parsed into a chain of arithmetic claims. The static detector (orange) decides from the trace alone whether to spend a retry. The metamorphic probe (blue) reads the trace as a program, predicts the answer to a perturbed question, and compares that prediction with the model's own answer. No component uses a reference answer or a judge model.

Table 1: Summary of findings.

questionfindingsection
How far does checking a trace against itself go?It stalls at AUROC 0.741 because 67.1% of failures contain no false equation; on wrong-plan failures the detector fires less often than on correct traces.§4
Can the missing evidence be obtained without a judge?Partly. 937 of 1,319 questions (71.0%) admit a valid probe. On the 847 of these with a parseable first trace, the probe refutes 81.4% of wrong-plan and misread-question failures, and supported traces are correct 60.6% of the time against 31.6% in that subset.§5
Does better detection improve accuracy?Not in our tests: no policy improves accuracy significantly. A flag pays only above precision D/(R+D)D/(R+D), and at the measured repair rate of 12.3% a perfect detector on the same budget would gain an estimated five points.§6

We study this question on a frozen LLaMA-2-7B-chat [18] on GSM8K [5], instrumented so that every measurement is made by regular expressions and a computer algebra system (Fig. 1). We first check traces against themselves: a static detector built from the equations a trace states reaches an AUROC of 0.741 on test, and its limit lies in the traces, since 67.1%67.1\% of failures contain no false equation. We then check traces against the model: we read the trace as a program over the question's quantities, change one quantity, execute the program to predict the new answer, and ask the model the changed question once. Unlike perturbation benchmarks [13, 26, 27], which take the expected answer from a hand-written template and grade a model, this probe derives its expected answer from the candidate and grades a single trace. A valid perturbation exists for 71.0%71.0\% of test questions, and our probe statistics are computed on the 847 of these that also have a parseable first trace. Finally, we ask why better detection does not improve accuracy, and show that a flag is worth a retry only when detector precision exceeds D/(R+D)D / (R + D), where RR and DD are the rates at which a retry repairs a wrong answer and damages a correct one.

Table 1 summarises the findings. The probe exposes many of the failures that self-checking misses, but for this model the binding constraint is repair: most failures contain no correct prefix to preserve, so a retry is little more than a fresh attempt at a question the model has just failed. We therefore argue that reference-free verifiers should be evaluated by the repair and damage rates of the action they trigger, not by detection metrics alone. All measurements come from one model, one dataset and one prompting setup, and the model is weak by current standards; Section 8 separates the conclusions we expect to transfer from those we do not.

Table 2: Notation.

symbolmeaning
QQ, q=(q0,…,qk)\boldsymbol{q}=(q_0,\dots,q_k)question and its numeric quantities
MM, τ=M(Q)\tau=M(Q), y^(τ)\hat{y}(\tau)frozen model, its trace, the trace's final answer
E(τ)=(e1,…,em)\mathcal{E}(\tau)=(e_1,\dots,e_m)equation chain; each claim eje_j is ℓj=cj\ell_j=c_j
α\alpha, PτP_{\tau}abstraction map and the program it extracts (Definition 2)
Q′,  q′Q',\;q'perturbed question and its quantities
pwrong(τ)p_{\mathrm{wrong}}(\tau)static detector's estimate that τ\tau is wrong
Nflag,  πN_{\mathrm{flag}},\;\pinumber of flagged questions, and the fraction of them that are wrong
R,DR,Drepair rate on flagged wrong traces, damage rate on flagged correct traces
π∗=D/(R+D)\pi^*=D/(R+D)break-even precision (Proposition 1)

References (26)