Hugging Face Papers ↗ · 2026-11-23
LUCID: Statistically Grounded Self-Correction for LLM Reasoning Evaluation
Media reports Hugging Face Papers Source language: Chinese
Lucid calibrates LLM step-rating bias via prompt self-correction and design-based supervised learning, shrinking GPT-5-mini's PRM800K calibration gap from 7.8 to 0.9…
Full text
Lucid: Statistically Grounded Self-Correction
for LLM Reasoning Evaluation
Satiyabooshan Murugaboopathy Affiliation: AI and Global Development Lab Affiliation: Institute for Analytical Sociology, Linköping University, Linköping, Sweden Adel Daoud Affiliation: AI and Global Development Lab Affiliation: Institute for Analytical Sociology, Linköping University, Linköping, Sweden Affiliation: NLP@DSAI, Chalmers University of Technology, Gothenburg, Sweden Connor T. Jerzak Affiliation: AI and Global Development Lab Affiliation: Department of Government, The University of Texas at Austin, Austin, TX, USA*Corresponding author: satiyabooshan.murugaboopathy@liu.se
Abstract
Cheap language-model raters grade chain-of-thought reasoning at scale, yet systematic step-rating errors can skew reasoning audits and solution rankings. We introduce Lucid (Loop for Unbiased Calibration via Inference-time Diagnosis), which pairs prompt self-correction with Design-based Supervised Learning (DSL). Without retraining or weight access, Lucid calibrates binary step ratings by aligning predicted and expert soundness rates. From a small expert-labeled set, Lucid summarizes rater bias in plain text and prompts the rater to re-grade unseen steps. For example, on PRM800K, GPT-5-mini grades too strictly, under-rating computation, verification, and late-trace steps most acutely. In one pass, Lucid shrinks GPT-5-mini’s calibration gap from 7.8 to 0.9 percentage points in absolute predicted–expert rate difference. Lucid also halves false alarms (sound steps rated unsound) and lifts error-detection F1,−F_{1,-} by 32%, where F1,−F_{1,-} measures F1F_{1} on unsound steps. Lucid retains these gains with 1,000 diagnostic steps or overall-gap feedback alone. The loop also transfers across models and domains: it applies GPT-5-mini’s bias profile to lift GLM-5.2’s PRM800K accuracy, and it narrows calibration gaps for overly strict but capable raters across math, science, web, and logic benchmarks. Because prompt feedback shifts thresholds without improving class-balanced discrimination (balanced-class sound/unsound separation), Lucid filters re-grading with pre-/post-checks that skip already calibrated raters and roll back ineffective passes. Finally, we reuse that expert set with raw corpus ratings in DSL for calibration and regression debiasing, and apply DSL to pair-labeled steps for sound-step transitions. DSL’s out-of-fold (cross-fitted) soundness probabilities lift best-of-KK selection to match expert labels, while its doubly-robust estimators beat expert-only regression fits at small budgets and cut sound-step transition error by nearly two-thirds.
Figure 1: Lucid overview. (a) From expert-labeled steps 𝒟\mathcal{D}, Lucid diagnoses evaluator bias (overall δ^𝒟\hat{\delta}_{\mathcal{D}}, per-type δ^𝒟,c\hat{\delta}_{\mathcal{D},c}, position correlation rr) and feeds it back for one re-rating pass (Y^i(0)→Y^i(1)\hat{Y}_{i}^{(0)}\!\to\!\hat{Y}_{i}^{(1)}), with guards: a pre-check (cluster-robust SE\mathrm{SE}) skips calibrated raters, and a post-check on fresh expert-labeled validation set 𝒱\mathcal{V} reverts non-improving passes. DSL reuses 𝒟\mathcal{D} for cross-fitted calibration (μ^i\hat{\mu}_{i}) and doubly-robust regression debiasing (Y~i\widetilde{Y}_{i}). (b) On PRM800K (eval set ℰ\mathcal{E}, neval=1,000n_{\mathrm{eval}}{=}1{,}000), non-LLM baselines (dashed: global rate shift, random per-type flips, Platt/logistic regression; Section 5.1, Table 28) either cut the calibration gap |δ^ℰ|=|ℰ|−1|∑i∈ℰ(Y^i−Yi)||\hat{\delta}_{\mathcal{E}}|=|\mathcal{E}|^{-1}\big|\sum_{i\in\mathcal{E}}(\hat{Y}_{i}-Y_{i})\big| at the cost of F1,−F_{1,-} (F1F_{1} on unsound Yi=0Y_{i}{=}0) or collapse to always-sound (Y^i\hat{Y}_{i}: rater; YiY_{i}: expert). Lucid (solid green) re-grades step content to improve both (8.7×8.7\times smaller gap, +32%+32\% F1,−F_{1,-}).
1 Introduction
Chain-of-thought (CoT) traces often improve large language model (LLM) answer accuracy even when the intermediate reasoning is unsound: models can skip verification steps, make ungrounded logical leaps, or reach right answers for wrong reasons. Auditing reasoning quality—not just final answers—requires step-level judgment, yet expert annotation is expensive. Cheaper proxy LLM raters introduce systematic measurement error, a well-studied problem in computational social science Grimmer and Stewart (2013); Gentzkow et al. (2019). This error propagates into downstream estimates unless the raters are calibrated—meaning their predicted soundness rates (or probabilities) match expert rates overall and across subgroups Keith et al. (2020); Geng et al. (2024); Shen et al. (2024); Kapoor et al. (2024); Detommaso et al. (2024).
To correct this error without full expert annotation, we have an LLM such as GPT-5-mini predict binary step soundness across a corpus and use a small expert-labeled subset to debias downstream estimates—logistic regressions relating step features to soundness and sound-step transitions. Two estimators support this debiasing: Prediction-Powered Inference (PPI; Angelopoulos et al., 2023), which rectifies the regression score with expert-minus-proxy residuals, and Design-based Supervised Learning (DSL; Egami et al., 2023), which pairs a cross-fitted outcome model—predicting expert soundness from step features and proxy ratings out-of-fold (holding out whole problems)—with inverse-probability-weighted expert residuals. Audinet de Pieuchon et al. (2025) demonstrate such debiasing for scalar document labels; we extend it to reasoning traces. A key question remains: once we also diagnose rater bias from that subset, can we feed that diagnosis back to improve the rater’s judgments without extra labeling?
We introduce Lucid (Loop for Unbiased Calibration via Inference-time Diagnosis). From expert-labeled steps, Lucid summarizes where the rater errs, appends that summary to the grading instructions, and prompts the rater to re-grade unseen steps (Figure 1a). On PRM800K Lightman et al. (2024) (human step-level math labels), one Lucid pass shrinks GPT-5-mini’s marginal calibration gap (|predicted−expert soundness rate||\text{predicted}-\text{expert soundness rate}|) 8.7-fold and raises unsound-step detection (F1,−F_{1,-}, the F1F_{1} score on unsound steps) by 32%. Purely prompt-based, it needs no retraining, stays stable across runs, and retains gains with 1,000 expert steps. We reuse that expert sample in DSL to debias regressions and calibrate corpus-wide probabilities; ranking traces with DSL’s cross-fitted outcome model lifts top-1 (best-of-1) trajectory selection by 13.7pp—measured by whether the top-ranked trace yields the correct answer.
Our contributions are:
1.
Prompt-based self-correction (Lucid). We design a closed-loop procedure that diagnoses rater bias from expert labels, converts it into plain-text feedback, and prompts the rater to re-grade. On PRM800K, one pass cuts the calibration gap from 7.8pp to 0.9pp and raises F1,−F_{1,-} by 32% without retraining. Unlike prior heuristic-critique methods, Lucid grounds feedback in expert-labeled bias diagnosis, pairs re-grading with DSL debiasing, and guards deployment with pre-/post-checks that verify significant initial bias and roll back ineffective passes (Figure 1a; Section 3.1). Here, we find that one round captures most of the available gain (85.3% ±\pm 0.4pp), driven by the diagnosed calibration message.
2.
Step-level bias diagnosis and DSL debiasing. Extending Audinet de Pieuchon et al. (2025) to 594,690 PRM800K steps graded by GPT-5-mini, we first diagnose how the rater errs. On the held-out set, GPT-5-mini exhibits structured signed bias (predicted minus expert soundness rate; negative == under-rating): among six step types, it under-rates computation (−14.6-14.6pp) and verification (−11.9-11.9pp) most sharply, and its bias steepens in late positions (position–error correlation r=−0.25r=-0.25). Across four-run ablations, overall-gap feedback alone matches prompting with this structured profile, yet the profile still reveals whether errors reflect blanket strictness or concentrate in specific step types, and DSL uses its step features for corpus-wide calibration. On regressions at n=200n=200, DSL beats PPI and cuts coefficient root mean squared error (RMSE\mathrm{RMSE}, vs. all-expert fit) 7.2×7.2\times below expert-only fits, reaching RMSE<0.5\mathrm{RMSE}<0.5 with 2.4×2.4\times fewer labels before expert-only fits catch up above n≈1,000n\approx 1{,}000.
3.
Sound-step transitions and inference. Addressing within-trace and within-problem dependence, we express consecutive sound-step type transitions as doubly-robust ratios of DSL-adjusted pair counts and cluster step-level regression standard errors by problem, raising them 3–3.5×\times at n=1,000n=1{,}000.
Finally, we delimit both the mechanisms and boundaries of inference-time feedback: it corrects threshold strictness (i.e., calibration) without improving class-balanced discrimination (i.e., sound-vs.-unsound separation under equal class weights). Consequently, this feedback helps conservative yet capable raters, fails when raters have skill deficits, and can over-correct already-calibrated raters.
2 Related Work
Statistical debiasing of LLM annotations.
PPI Angelopoulos et al. (2023) rectifies estimating equations with expert residuals, preserving asymptotically valid confidence intervals under known sampling probabilities even with poor proxy predictions. Drawing on double/debiased ML Chernozhukov et al. (2018); Bang and Robins (2005); Kennedy (2023), DSL Egami et al. (2023) pairs out-of-fold (cross-fitted) outcome models predicting true labels from covariates and proxy predictions with doubly-robust pseudo-outcomes, remaining consistent if either sampling probabilities or the outcome model is right. While Egami et al. (2023) use honest forests Wager and Athey (2018); Athey et al. (2019), we use gradient-boosted trees predicting expert step soundness (Section 3.2). Recent extensions add cross-prediction-powered inference Zrnic and Candès (2024) and nonuniform sampling Kluger et al. (2025). Benchmarking PPI and DSL across 16 dataset×\timesLLM pairs for logistic regression, Audinet de Pieuchon et al. (2025) show DSL lowers standardized RMSE (sRMSE\mathrm{sRMSE}, coordinate-wise error normalized by true coefficient magnitude; see Appendix A) at small nn. We extend these estimators to step ratings and study how rating errors distort within-trace transitions.
LLM self-correction and evaluation bias.
In prompt-based self-correction frameworks (Self-Refine Madaan et al. (2023), Reflexion Shinn et al. (2023)), the model critiques its own outputs without statistical grounding, targeting generation quality rather than rating bias. In parallel, LLM judges exhibit systematic biases Chang et al. (2024): they show position and verbosity biases Zheng et al. (2023), favor their own generations Panickssery et al. (2024), and mimic human falsehoods Lin et al. (2022). Prior work mitigates judge bias through prompt design, aggregation (self-consistency, Platt scaling), or direct confidence calibration Tian et al. (2023). Bridging these threads, Lucid diagnoses step-rating bias from expert labels, feeds it back under cluster-robust pre-/post-checks verifying initial bias and validation gain (Figure 1a; Section 3.1), and pairs re-grading with DSL debiasing.
Process supervision and agent evaluation.
To support training process reward models (PRMs, step-level verifiers scoring intermediate reasoning), Lightman et al. (2024) introduce PRM800K (∼\sim800K human MATH step labels) and Wang et al. (2024) auto-generate step labels, while Zheng et al. (2025) introduce ProcessBench to benchmark earliest-error identification. Rather than training verifiers, we use PRM800K and ProcessBench to diagnose rater bias and debias reasoning-quality estimates. Unlike trajectory-level agent benchmarks (AgentBoard Ma et al. (2024); SWE-bench Jimenez et al. (2024)), we debias step-level evaluation.
3 Methodology
3.1 Lucid: Prompt-Based Self-Correction
Procedure.
Across NN reasoning steps (normalized trace position posi∈[0,1]\mathrm{pos}_{i}\in[0,1]), the rater assigns initial ratings Y^i(0)=Y^i∈{0,1}\hat{Y}_{i}^{(0)}=\hat{Y}_{i}\in\{0,1\} and step types si∈{1,…,C}s_{i}\in\{1,\dots,C\} (C=6C=6 on PRM800K; Section 3.2), while experts label a diagnostic subset 𝒟\mathcal{D} (|𝒟|=ndiag|\mathcal{D}|=n_{\mathrm{diag}}) with Yi∈{0,1}Y_{i}\in\{0,1\}. To avoid over-correcting calibrated raters or keeping failed passes (Section 5.2), each round τ∈{0,1,…}\tau\in\{0,1,\dots\} runs three main phases guarded by two checks (Figure 1a).
First, on 𝒟\mathcal{D}, Lucid computes overall signed bias δ^𝒟=|𝒟|−1∑i∈𝒟(Y^i(τ)−Yi)\hat{\delta}_{\mathcal{D}}=|\mathcal{D}|^{-1}\sum_{i\in\mathcal{D}}(\hat{Y}_{i}^{(\tau)}-Y_{i}) (negative == under-rating; |δ^𝒟||\hat{\delta}_{\mathcal{D}}| is the marginal calibration gap) with cluster-robust SE\mathrm{SE} (Section 3.4), per-type biases δ^𝒟,c=|𝒟c|−1∑i∈𝒟c(Y^i(τ)−Yi)\hat{\delta}_{\mathcal{D},c}=|\mathcal{D}_{c}|^{-1}\sum_{i\in\mathcal{D}_{c}}(\hat{Y}_{i}^{(\tau)}-Y_{i}) over 𝒟c={i∈𝒟:si=c}\mathcal{D}_{c}=\{i\in\mathcal{D}:s_{i}=c\}, and the Pearson correlation rr between posi\mathrm{pos}_{i} and Y^i(τ)−Yi\hat{Y}_{i}^{(\tau)}-Y_{i}.
Second (Stage 1, pre-check), Lucid proceeds only if |δ^𝒟|>2SE|\hat{\delta}_{\mathcal{D}}|>2\,\mathrm{SE} and |δ^𝒟|>2|\hat{\delta}_{\mathcal{D}}|>2pp (else keeping Y^(τ)\hat{Y}^{(\tau)}), formatting these statistics (without CIs) via a fixed plain-text template.
Third, prompted with that feedback, the rater re-grades disjoint evaluation steps ℰ\mathcal{E} (neval=1,000n_{\mathrm{eval}}=1{,}000 on PRM800K; 500500 on multi-domain benchmarks) and a fresh expert-labeled validation batch 𝒱\mathcal{V} (100–500 steps) to produce Y^(τ+1)\hat{Y}^{(\tau+1)}.
Finally (Stage 2, post-check), Lucid keeps Y^(τ+1)\hat{Y}^{(\tau+1)} only if |δ^𝒱(τ+1)|<|δ^𝒱(τ)||\hat{\delta}_{\mathcal{V}}^{(\tau+1)}|<|\hat{\delta}_{\mathcal{V}}^{(\tau)}|, rolling back to Y^(τ)\hat{Y}^{(\tau)} otherwise. Here, we find that one round captures most of the available gain (Section 5.1).
Feedback format.
When Stage 1 passes, Lucid populates a three-part plain-text bias summary; to benchmark all-NN diagnosis before restricting to 𝒟\mathcal{D} on PRM800K, our canonical prompt states overall calibration, “You predict 83.1% of steps correct, but the true rate is 91.3% (you under-rate by 8.2pp overall)”; per-type biases, “You under-rate computation steps by 14.8pp and verification steps by 14.5pp”; and position trend, “You also under-rate later steps, r=−0.22r=-0.22”, closing with a directive to judge late computation and verification steps less conservatively. Because uncorrected bias is stable across subsets (Section 5), diagnosing on disjoint 𝒟\mathcal{D} (ndiag=1,000n_{\mathrm{diag}}=1{,}000) matches full-corpus gains (Tables 11, 15, Appendix G).
3.2 Step-Level Soundness Framework
Alongside re-grading on an unlabeled corpus, we reuse 𝒟\mathcal{D} with Y^\hat{Y} to predict calibrated expert soundness Yi∈{0,1}Y_{i}\in\{0,1\} across all NN steps and debias regressions relating step features to soundness (and sound-step transitions on pair-labeled samples; Section 3.3). Each step i∈{1,…,N}i\in\{1,\dots,N\} has expert label Yi∈{0,1}Y_{i}\in\{0,1\} on 𝒟\mathcal{D} plus proxy LLM rating Y^i∈{0,1}\hat{Y}_{i}\in\{0,1\} and step type sis_{i} (Setup, Computation, Inference, Verification, Strategy, Restatement; Table 23). We form Xi∈ℝp+1X_{i}\in\mathbb{R}^{p+1} from sis_{i}, posi\mathrm{pos}_{i}, log token length leni\mathrm{len}_{i}, difficulty, and an intercept (Appendix B). Our debiasing target is the logistic parameter θ∈ℝp+1\theta\in\mathbb{R}^{p+1} solving 𝔼[u(Yi,Xi,θ)]=0\mathbb{E}[u(Y_{i},X_{i};\theta)]=0 for score u(Yi,Xi,θ)=Xi(Yi−σ(Xi⊤θ))u(Y_{i},X_{i};\theta)=X_{i}(Y_{i}-\sigma(X_{i}^{\top}\theta)) (σ\sigma: sigmoid).
Both PPI and DSL debias θ\theta using (Xi,Y^i)(X_{i},\hat{Y}_{i}) across all NN steps and YiY_{i} on 𝒟\mathcal{D} (|𝒟|=n|\mathcal{D}|=n, matching ndiagn_{\mathrm{diag}} when shared), where bi=𝟏{i∈𝒟}b_{i}=\mathbf{1}\{i\in\mathcal{D}\} and πi=Pr(bi=1∣Xi,Y^i)=n/N\pi_{i}=\Pr(b_{i}=1\mid X_{i},\hat{Y}_{i})=n/N. PPI adds the mean labeled residual on 𝒟\mathcal{D} to the plug-in score. DSL fits a two-fold cross-fitted gradient-boosted outcome model μ^i=μ^(Xi,Y^i)\hat{\mu}_{i}=\hat{\mu}(X_{i},\hat{Y}_{i}) predicting expert soundness μ(Xi,Y^i)=𝔼[Yi∣Xi,Y^i]\mu(X_{i},\hat{Y}_{i})=\mathbb{E}[Y_{i}\mid X_{i},\hat{Y}_{i}]—holding out whole problems per fold so μ^i\hat{\mu}_{i} is an out-of-fold probability (also used for corpus calibration and ranking)—forms doubly-robust pseudo-outcomes Y~i=μ^i+biπi(Yi−μ^i)\widetilde{Y}_{i}=\hat{\mu}_{i}+\frac{b_{i}}{\pi_{i}}(Y_{i}-\hat{\mu}_{i}), and solves ∑i=1Nu(Y~i,Xi,θ)=0\sum_{i=1}^{N}u(\widetilde{Y}_{i},X_{i};\theta)=0 (Appendix A). Against all-NN expert fit θ∗\theta^{*}, we evaluate expert-only θ^exp\hat{\theta}_{\mathrm{exp}} (on 𝒟\mathcal{D}), uncorrected imputation θ^imp\hat{\theta}_{\mathrm{imp}} (on all Y^i\hat{Y}_{i}), PPI, and DSL via RMSE(θ^)=(|𝒥|−1∑j∈𝒥(θ^j−θj∗)2)1/2\mathrm{RMSE}(\hat{\theta})=(|\mathcal{J}|^{-1}\sum_{j\in\mathcal{J}}(\hat{\theta}_{j}-\theta^{*}_{j})^{2})^{1/2} over identifiable coordinates 𝒥\mathcal{J} (Appendix A).
3.3 Transitions Between Sound Steps
To characterize valid reasoning flow, we estimate how often consecutive sound steps transition from type cc to c′c^{\prime}. Index the MM consecutive within-trace pairs by ℓ∈{1,…,M}\ell\in\{1,\dots,M\}, linking (i(ℓ),i(ℓ)+1)(i(\ell),i(\ell)+1) with LLM-assigned step types (sℓ,1,sℓ,2)=(si(ℓ),si(ℓ)+1)∈{1,…,C}2(s_{\ell,1},s_{\ell,2})=(s_{i(\ell)},s_{i(\ell)+1})\in\{1,\dots,C\}^{2} and joint expert soundness Aℓ=Yi(ℓ)Yi(ℓ)+1∈{0,1}A_{\ell}=Y_{i(\ell)}Y_{i(\ell)+1}\in\{0,1\}. Pairs at different trace positions need not share a distribution, so we define the target through the limiting share of sound cc-to-c′c^{\prime} pairs among the MM consecutive pairs, λcc′=limM→∞1M∑ℓ=1MPr(sℓ,1=c,sℓ,2=c′,Aℓ=1)\lambda_{cc^{\prime}}=\lim_{M\to\infty}\frac{1}{M}\sum_{\ell=1}^{M}\Pr(s_{\ell,1}=c,s_{\ell,2}=c^{\prime},A_{\ell}=1) (assumed to exist):
Tcc′=λcc′∑c′′=1Cλcc′′.T_{cc^{\prime}}=\frac{\lambda_{cc^{\prime}}}{\sum_{c^{\prime\prime}=1}^{C}\lambda_{cc^{\prime\prime}}}. (1)
For identically distributed pairs, Tcc′=Pr(sℓ,2=c′∣sℓ,1=c,Aℓ=1)T_{cc^{\prime}}=\Pr(s_{\ell,2}=c^{\prime}\mid s_{\ell,1}=c,A_{\ell}=1). We form T∗T^{*} by normalizing sound-pair counts (Aℓ=1A_{\ell}=1) within each starting type, and T^uncorr\hat{T}_{\mathrm{uncorr}} (pair-level analogue of θ^imp\hat{\theta}_{\mathrm{imp}}) using predicted sound pairs (A^ℓ=Y^i(ℓ)Y^i(ℓ)+1=1\hat{A}_{\ell}=\hat{Y}_{i(\ell)}\hat{Y}_{i(\ell)+1}=1). Parallel to (bi,πi,μ)(b_{i},\pi_{i},\mu), let bA,ℓ∈{0,1}b_{A,\ell}\in\{0,1\} indicate expert labels on both endpoints of pair ℓ\ell, and let WℓW_{\ell} collect observed pair features (sℓ,1,sℓ,2s_{\ell,1},s_{\ell,2}, both predictions, and sampling covariates). We also define πA(Wℓ)=Pr(bA,ℓ=1∣Wℓ)\pi_{A}(W_{\ell})=\Pr(b_{A,\ell}=1\mid W_{\ell}) (abbreviated πA,ℓ\pi_{A,\ell}) and μA(Wℓ)=𝔼[Aℓ∣Wℓ]\mu_{A}(W_{\ell})=\mathbb{E}[A_{\ell}\mid W_{\ell}]. We cross-fit μ^A,ℓ=μ^A(Wℓ)\hat{\mu}_{A,\ell}=\hat{\mu}_{A}(W_{\ell}) by problem and set π^A,ℓ\hat{\pi}_{A,\ell} to the known design (or cross-fitted) probability. Following Egami et al. (2023, Proposition 2) and Bang and Robins (2005), we then construct the pair pseudo-outcome A~ℓ=μ^A,ℓ+bA,ℓπ^A,ℓ(Aℓ−μ^A,ℓ)\widetilde{A}_{\ell}=\hat{\mu}_{A,\ell}+\frac{b_{A,\ell}}{\hat{\pi}_{A,\ell}}(A_{\ell}-\hat{\mu}_{A,\ell}) and estimate Tcc′T_{cc^{\prime}} as the ratio of summed pseudo-outcomes for cc-to-c′c^{\prime} pairs to all pairs leaving cc:
T^cc′=∑ℓ:sℓ,1=c𝟏{sℓ,2=c′}A~ℓ∑ℓ:sℓ,1=cA~ℓ.\hat{T}_{cc^{\prime}}=\frac{\sum_{\ell:s_{\ell,1}=c}\mathbf{1}\{s_{\ell,2}=c^{\prime}\}\,\widetilde{A}_{\ell}}{\sum_{\ell:s_{\ell,1}=c}\widetilde{A}_{\ell}}. (2)
Under the sampling and regularity conditions in Appendix C, T^cc′\hat{T}_{cc^{\prime}} is consistent if either the pair inclusion probabilities or the conditional probability that both steps are sound is correctly specified. When pairs are sampled uniformly for expert review, their inclusion probabilities are known by design.
3.4 Clustering-Aware Inference
Because steps and traces from the same problem share errors, naive standard errors understate uncertainty in both our pre-check (Section 3.1) and step-level regressions (Section 3.2). Summing per-step score contributions ψi(θ^)\psi_{i}(\hat{\theta}) (e.g., ψi(θ)=u(Y~i,Xi,θ)\psi_{i}(\theta)=u(\widetilde{Y}_{i},X_{i};\theta) for DSL; Appendix A) within each problem g∈{1,…,G}g\in\{1,\dots,G\} gives Sg=∑i∈gψi(θ^)S_{g}=\sum_{i\in g}\psi_{i}(\hat{\theta}). With summed-score Jacobian H^\hat{H} on identifiable coordinates, the sandwich estimator (Liang and Zeger, 1986) gives
V^=H^−1(∑g=1GSgSg⊤)H^−⊤.\hat{V}=\hat{H}^{-1}\left(\sum_{g=1}^{G}S_{g}S_{g}^{\top}\right)\hat{H}^{-\top}. (3)
The large-sample calculation assumes independent problems, finite score variances, a nonsingular limit for the normalized Jacobian, and enough clusters that no single problem dominates. For scores with a fitted outcome model, keeping whole problems in each cross-fitting fold separates training and evaluation clusters (Chiang et al., 2022).
Summary.
In theory, known inclusion probabilities secure doubly-robust consistency for DSL regressions and sound-step transitions even under imperfect outcome models (Proposition 1), while problem-grouped cross-fitting, cluster-robust SEs, and two-stage gating guard against within-problem dependence and over-correction. Section 4 details the benchmarks and protocols testing finite-sample gains.
4 Experiments
Data.
We use PRM800K Lightman et al. (2024): ∼\sim800K human step-level correctness labels (on a {−1,0,+1}\{-1,0,+1\} incorrect/neutral/correct scale) for MATH Hendrycks et al. (2021) solutions. After filtering and binarizing (Yi=1Y_{i}=1 if rating =+1=+1, else Yi=0Y_{i}=0), we obtain N=594,690N=594{,}690 steps across 90,340 traces and G=11,267G=11{,}267 problems. GPT-5-mini OpenAI (2025) grades and classifies all NN steps at temperature 0, and we test cross-model transfer on GLM-5.2 Z.ai (2026) (Appendix J). For cross-dataset and multi-domain transfer, we evaluate on ProcessBench Zheng et al. (2025), EntailmentBank Dalvi et al. (2021), Mind2Web Deng et al. (2023), and ProofWriter Tafjord et al. (2021).
Features.
Each step has p=9p=9 covariates (Xi∈ℝ10X_{i}\in\mathbb{R}^{10} with intercept): step type (5 one-hot dummies for the C=6C=6 categories), normalized position, log step length, and difficulty (2 dummies; see Appendix B). An augmented set (p=24p=24, Xi∈ℝ25X_{i}\in\mathbb{R}^{25}) adds 15 cluster indicators from kk-means (k=15k{=}15) on all-MiniLM-L6-v2 step-and-problem embeddings, testing whether grouping semantically similar steps helps DSL pool bias structure at small nn (Appendix E).
Design.
For the regression comparison, we fix N=594,690N=594{,}690, vary the expert budget nn from 200 to approximately NN over 10 log-spaced values (30 repetitions per budget), and compare five estimators (Table 35) by coefficient RMSE\mathrm{RMSE} and standard errors (sRMSE\mathrm{sRMSE} is defined in Appendix A). For prompt self-correction on PRM800K, we use the corpus diagnostic profile for the canonical prompt, verify subset-only diagnosis at ndiag∈{500,1,000,2,000}n_{\mathrm{diag}}\in\{500,1{,}000,2{,}000\} (Appendix G), and evaluate on neval=1,000n_{\mathrm{eval}}=1{,}000 disjoint steps ℰ\mathcal{E}. On the multi-domain benchmarks, we set ndiag=neval=500n_{\mathrm{diag}}=n_{\mathrm{eval}}=500. For transitions, we draw m=1,000m=1{,}000 consecutive pairs uniformly without replacement, observe expert labels on both endpoints, and estimate T^DSL\hat{T}_{\mathrm{DSL}} using the known πA,ℓ=m/M\pi_{A,\ell}=m/M (π^A,ℓ=πA,ℓ\hat{\pi}_{A,\ell}=\pi_{A,\ell}). We then compare consecutive-pair matrices against T∗T^{*} via relative Frobenius error ‖T^−T∗‖F/‖T∗‖F\|\hat{T}-T^{*}\|_{F}/\|T^{*}\|_{F} (Appendix I).
5 Results
Because 91.6% of evaluation steps are sound, raw accuracy alone misleads: an always-positive predictor reaches 91.6% while catching no errors (F1,−=0F_{1,-}=0). Alongside step accuracy (Table 1), we therefore report the marginal calibration gap (|δ^ℰ|=|ℰ|−1|∑i∈ℰ(Y^i−Yi)||\hat{\delta}_{\mathcal{E}}|=|\mathcal{E}|^{-1}\big|\sum_{i\in\mathcal{E}}(\hat{Y}_{i}-Y_{i})\big|) and unsound-step F1,−F_{1,-} (treating unsound steps Yi=0Y_{i}=0 as positive; Table 2). For downstream evaluation, we rank candidate trajectories with DSL’s cross-fitted step probabilities.
Setting Original Corrected 𝚫\boldsymbol{\Delta} Cost
PRM800K (GPT-5-mini) 79.0% 85.7% ++6.7pp $0.30
PRM800K (GLM-5.2) 84.4% 87.5% ++3.1pp $0.30
ProcessBench 81.4% 86.6% ++5.2pp $0.30
DSL RMSE\mathrm{RMSE} (n=200n{=}200) 6.09 0.84 −-5.25 —
Table 1: Headline results (Δ=Corrected−Original\Delta=\text{Corrected}-\text{Original}). One round of self-correction closes the PRM800K calibration gap 8.7×8.7\times (7.8pp→\to0.9pp; signed bias −-7.8pp→−\to-0.9pp) at $0.30 API cost. Because 91.6% of evaluation steps are sound, shifting the rater’s threshold raises raw accuracy substantially, whereas accuracy on a class-balanced subset moves only from 57.1% to 58.3% (Appendix J.1). This contrast shows that threshold calibration drives the raw-accuracy gain. At n=200n{=}200, DSL cuts regression RMSE\mathrm{RMSE} from 6.09 (Expert-only) to 0.84 (7.2×7.2\times, mainly at n≲1,000n\lesssim 1{,}000; Section 5.3).
5.1 Lucid: Prompt-Based Self-Correction
On PRM800K, one Lucid pass cuts GPT-5-mini’s calibration gap nearly ninefold and lifts unsound-step detection (F1,−F_{1,-}) by nearly a third (Tables 1 and 2; cross-benchmark summary in Table 32; worked trace in Table 33). Across four runs, Lucid yields stable step-accuracy gains and converges in one pass, with a second round adding little (Table 27). On an independent 5,000-step evaluation set, Lucid reproduces both the accuracy gain and the concentration of improvements in computation and verification (Table 27). At $0.30 in API calls atop the shared expert budget, Lucid beats expert-only estimation at matched labeling cost and—unlike fine-tuned verifiers—avoids retraining when rater behavior shifts (Table 24).
Figure 2: Self-correction pulls severe per-type rating biases (red) toward zero (green) on PRM800K, led by computation (−-14.6→−\to-3.6pp) and verification (−-11.9→−\to-3.0pp).
Metric Original Corrected
Calibration gap (overall) ↓\downarrow 7.8pp 0.9pp
Computation gap ↓\downarrow 14.6pp 3.6pp
Verification gap ↓\downarrow 11.9pp 3.0pp
Inference gap ↓\downarrow 10.8pp 6.2pp
Unsound detection F1,−F_{1,-} ↑\uparrow 0.146 0.192
Table 2: Calibration gap (|δ^ℰ||\hat{\delta}_{\mathcal{E}}|) and error-detection metrics on PRM800K (neval=1,000n_{\mathrm{eval}}{=}1{,}000). Self-correction cuts the gap 8.7×8.7\times overall and up to 4.1×4.1\times per type while lifting F1,−F_{1,-} by ++0.046 (++32%).
Per-type and position improvements.
Uncorrected GPT-5-mini is well calibrated on early framing steps (setup, strategy) and early positions, but grows monotonically stricter across a trace—from ++2.7pp in the first quintile to −-32.2pp in the final quintile (59.9% predicted vs. 92.1% true; peaking at −-43.9pp on late restatement and −-34.4pp on late computation; Figure 2; Table 2; Appendix H; Figure 10). Three factors drive this late-step conservatism: skepticism accumulates over longer context chains despite ≈\approx92% true soundness, the rater conflates step soundness with final-answer proximity, and later steps are longer and more complex (>>200-char steps show ≈−\approx-30pp bias). Lucid’s gains track this profile: the most under-rated types and final quintile improve most while well-calibrated categories move little (Table 30). Initial under-rating correlates positively with post-feedback gain across the six types in both the primary set and 5,000-step replication (though six types limit slope precision), and Lucid fixes roughly two-thirds of initial mistakes in the final quintile versus under a third in the first (Table 30; Appendix H).
Downstream validation: trajectory filtering.
To test downstream selection across 7,348 MATH problems, we rank each problem’s candidate traces by mean step score and measure best-of-KK (top-KK) accuracy: whether any top-KK trace gets the right answer. Lucid’s prompt loop re-rates only 1,0001{,}000 sampled steps in binary form, whereas corpus-wide ranking requires scoring every trace and benefits from continuous tie-breaking scores. We therefore score all steps with DSL’s cross-fitted outcome model. These DSL-calibrated probabilities nearly double top-1 accuracy over raw GPT-5-mini ratings and match expert labels through best-of-5 (Figure 3; full K=1–10K=1\text{--}10 curve in Table 25).
Why DSL can match the expert oracle.
Two factors explain why DSL-calibrated proxy scores match the expert oracle in Figure 3. First, we evaluate trajectory selection by final-answer correctness, yet solutions with flawed intermediate steps can still reach the right answer. Unweighted averages of binary step labels therefore provide only a coarse ranking signal. Second, while the expert oracle uses ground-truth corpus step labels (unavailable in practice), DSL’s cross-fitted outcome model approximates them from the diagnostic sample while supplying continuous probabilities that break ties among traces.
Downstream PRM transfer.
We also train lightweight feature-based PRMs on raw GPT-5-mini ratings, DSL outcome probabilities (μ^i\hat{\mu}_{i}), and expert labels (Table 26); 0.5-thresholding collapses all three to the majority class. With continuous probabilities, the DSL-calibrated PRM halves expected calibration error (ECE) and lifts top-1 selection by 1.8pp over the raw-label PRM (ECE measures binned probability-vs.-rate error, unlike the binary gap).
Figure 3: Best-of-KK selection on 7,348 MATH problems. DSL-calibrated scores (n=1,000n{=}1{,}000, green) beat GPT-5-mini by ++13.7pp (K=1K{=}1) and ++19.5pp (K=2K{=}2), matching Expert labels at K≤5K\leq 5.
Baselines.
Returning to binary step re-grading on our skewed evaluation set, accuracy-maximizing calibrators (Platt scaling, logistic regression [LR], and MiniLM) hit the majority-class ceiling by predicting every step sound and catching no errors (Figure 1b; Table 28). Rate-adjustment baselines apply the diagnosed bias without re-reading text, using either a global threshold shift (matching the overall soundness rate) or post-hoc random flips matched by step type and position. These adjustments close the calibration gap and match or beat Lucid’s raw accuracy. However, because both content-blind adjustments discard true error detections alongside false alarms, they cut unsound-step F1,−F_{1,-} nearly in half. With the same bias summary, Lucid re-grades each step on content, halving false alarms while preserving unsound-step recall. Among the inference-time methods in Table 28, only Lucid improves both calibration and error detection.
Still, on a class-balanced subsample with equal sound and unsound counts, Lucid’s accuracy and F1,−F_{1,-} remain within noise (Appendix J.1; balanced accuracy (Recall++Recall−)/2(\mathrm{Recall}_{+}+\mathrm{Recall}_{-})/2 in Table 28). This invariance confirms that Lucid calibrates the decision threshold without sharpening discrimination.
By contrast, detection-oriented Qwen3.5-LoRA Qwen Team (2026); Hu et al. (2022) verifiers (0.8B–9B) reach slightly higher F1,−F_{1,-} and balanced accuracy at smaller scales at lower overall accuracy (Table 28). Prompt self-correction thus fits closed-weight APIs and shifting biases, whereas fine-tuning remains stronger with open weights for balanced discrimination.
Ablation.
Across four runs per condition, ablating the feedback summary shows that overall-gap, per-type, and full three-part prompts each lift accuracy by roughly 5–6pp over no feedback with overlapping paired-bootstrap CIs, whereas a position-only prompt gains less because positional bias is weaker alone (Table 31). Detailed, concise, and minimal wordings likewise perform indistinguishably (Table 12). Although overall-gap feedback suffices for prompt re-grading, the structured profile still shows whether errors reflect blanket strictness or concentrate in specific hard step types (Section 5.2). In turn, DSL uses that profile’s underlying step features XiX_{i} to calibrate corpus-wide probabilities.
5.2 Generalization
Step Accuracy Calib. Gap (|δ^ℰ||\hat{\delta}_{\mathcal{E}}|)
Domain Orig Corr 𝚫\boldsymbol{\Delta} Orig Corr Rule
PRM800K (math) Lightman et al. (2024) 79.0% 85.7% ++6.7pp 7.8pp 0.9pp apply, keep
EntailmentBank (science) Dalvi et al. (2021) 94.2% 96.6% ++2.4pp 5.8pp 3.4pp apply, keep
Mind2Web (agents, calibration) Deng et al. (2023) 10.8% 97.4% ++86.6pp 89.2pp 2.6pp apply, keep
Mind2Web (agents, balanced) Deng et al. (2023) 50.8% 61.0% ++10.2pp 0.4pp 38.6pp skip
ProofWriter (logic) Tafjord et al. (2021) 94.4% 94.0% −-0.4pp 4.8pp 4.8pp apply, roll back
Table 3: Multi-domain generalization. Lucid transfers to calibration bias but over-corrects calibrated raters and fails on competence deficits; the two-stage deployment rule (Section 3.1) skips balanced Mind2Web (Stage 1) and rolls back ProofWriter (Stage 2) while keeping all three beneficial corrections.
Cross-model transfer.
Applying feedback diagnosed from GPT-5-mini’s ratings directly to GLM-5.2 Z.ai (2026) still improves step accuracy on PRM800K (Table 1; Table 37). GLM-5.2 starts much closer to overall calibration than GPT-5-mini yet shares the tendency to under-rate computation and verification steps, so its smaller gain tracks its milder initial bias (Table 36).
Cross-dataset transfer (ProcessBench).
On ProcessBench (16,548 steps across GSM8K, MATH, OlympiadBench, and OmniMath), one Lucid pass (with the same feedback template) lifts GPT-5-mini’s accuracy by over five percentage points and beats few-shot baselines across k=1–10k=1\text{--}10 examples (Tables 1, 38, and 39). Across splits, gains track initial miscalibration: accuracy rises over ten points on worst-calibrated OmniMath but slips slightly on near-ceiling GSM8K (Table 38).
Multi-domain.
Across three non-mathematical benchmarks with domain-specific taxonomies (ndiag=neval=500n_{\mathrm{diag}}=n_{\mathrm{eval}}=500; Table 3), Lucid helps wherever a capable rater grades too strictly: it cuts EntailmentBank’s calibration gap by 41% and lifts Mind2Web gold trajectories (all valid, 10.8% initial acceptance) to 97.4%, confirming threshold strictness as a key bottleneck. Conversely, unchecked feedback severely over-corrects calibrated balanced Mind2Web (0.4pp initial gap) and leaves ProofWriter unchanged where errors reflect logical derivation skill deficits (Table 21). Without tuning, the two-stage rule (Section 3.1; Table 3, “Rule”) separates these regimes: though δ^𝒟=−5.2\hat{\delta}_{\mathcal{D}}=-5.2pp on both balanced Mind2Web and EntailmentBank, cluster-robust SE is 3.4pp (|δ^𝒟|<2SE|\hat{\delta}_{\mathcal{D}}|<2\,\mathrm{SE}, skipped at Stage 1) versus 1.1pp (|δ^𝒟|>2SE|\hat{\delta}_{\mathcal{D}}|>2\,\mathrm{SE}, admitted), while Stage 2 rolls back ProofWriter when |δ^𝒱||\hat{\delta}_{\mathcal{V}}| fails to shrink.
5.3 DSL Debiasing and Diagnostic Robustness
Sample efficiency across expert budgets.
Turning from prompt transfer to PRM800K step-level regressions (Section 3.2), DSL cuts coefficient RMSE\mathrm{RMSE} over 7×7\times at n=200n=200 vs. expert-only fits, beats PPI, and reaches RMSE<0.5\mathrm{RMSE}<0.5 with under half the labels (Figure 4; Table 34). Near n≈1,200n\approx 1{,}200, both match; expert-only modestly edges out our fixed GBDT at n≈2,900–17,000n\approx 2{,}900\text{--}17{,}000 before reconverging at large nn (Table 8).
Figure 4: Coefficient RMSE\mathrm{RMSE} vs. expert budget nn (GPT-5-mini predictor; 95% CIs over 30 runs). DSL dominates at small nn.
Transition matrices and clustered inference.
Within-trace and within-problem dependence affects both point estimates and uncertainty. For consecutive pairs, T^uncorr\hat{T}_{\mathrm{uncorr}} undercounts transitions into computation and inference and overcounts those into strategy relative to T∗T^{*} (Figure 9), while DSL cuts relative Frobenius error by about two-thirds (Figure 11; Appendix I). Problem-clustered SEs triple independent-step SEs across regression estimators (Table 29).
Diagnostic robustness.
Beyond DSL, our diagnosis and prompt loop degrade gracefully under taxonomy and label noise, respond selectively to structured bias, and transfer across same-domain problems (Appendix G). For step-type noise, GLM-5.2 agrees with GPT-5-mini on computation and strategy yet diverges on verification and restatement (Table 16); even under 30% random step-type reassignment, our diagnosis preserves every category’s sign (Table 17). For expert-label noise, corrupting 10% of diagnostic labels weakens Lucid’s gain without reversing it (Table 15). For signal selectivity, when we replace structured rater errors with random flips, Lucid leaves accuracy essentially flat, confirming that the loop ignores unstructured noise (Table 17). Finally, profiles diagnosed on half the problems transfer to held-out same-domain problems, though a single dataset-wide prompt (not tailored by trace position) still under-corrects late steps (Table 13).
6 Conclusion
Lucid closes the calibration loop at inference time: it diagnoses rater bias from expert-labeled steps, converts it into plain-text feedback, and prompts re-grading without retraining or weight access. On PRM800K, one pass cuts GPT-5-mini’s calibration gap nearly ninefold and lifts unsound-step F1,−F_{1,-} by nearly a third, transferring across models and domains. Meanwhile, balanced ablations confirm that prompt feedback calibrates strictness without sharpening discrimination. Accordingly, Lucid’s pre-/post-checks admit re-grading for strict capable raters, skip calibrated ones, and roll back passes under skill deficits. Beyond re-grading, reusing that expert set with raw ratings in DSL lifts best-of-KK selection via cross-fitted probabilities to match expert labels, cuts regression RMSE\mathrm{RMSE} up to 7.2×7.2\times at n≲1,000n\lesssim 1{,}000, and (on pair-labeled steps) cuts the error of sound-step transition estimation by nearly two-thirds.
7 Limitations
Calibration ceiling and downstream scope.
Lucid loosens a rater’s threshold without sharpening the rater’s separation between sound and flawed steps. As a result, the rater still triggers residual false alarms (sound steps rated unsound, i.e., soundness false negatives) on computation and inference, keeping overall accuracy below the 91.6% majority-class ceiling. Trivial calibration baselines therefore win on raw accuracy by predicting every step sound while catching no errors (Section 5.1). When practitioners have open model weights and prioritize balanced-class discrimination, supervised fine-tuning outperforms prompt self-correction (Table 28).
Regarding our deployment rule, although our pre- and post-correction checks skip calibrated raters and revert ineffective passes, we cannot yet distinguish rater conservatism from missing skill before running a re-grading pass.
Finally, on downstream scope, we rank candidate traces in our best-of-KK experiment with DSL’s cross-fitted outcome model rather than prompt-corrected ratings; evaluating trajectory selection on Lucid’s re-ratings directly will require re-grading all candidate traces.
Evaluator coverage and run variance.
We evaluate two model families, GPT-5-mini and GLM-5.2 (Section 5.2); other model families such as Claude or DeepSeek may show different biases or prompt sensitivity. In addition, outside the four-run PRM800K replications and ablatio
Images from the source
