Moment-Calibrated Verification Stopping
Implementation & benchmark of arXiv:2607.13918 — Partially Correlated Verifier Cascades in LLM Harnesses: Concave Log-Odds, Polynomial Reliability, and Blind-Spot Ceilings
Source paper: Partially Correlated Verifier Cascades in LLM Harnesses: Concave Log-Odds, Polynomial Reliability, and Blind-Spot Ceilings arXiv:2607.13918 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Replace a fixed-depth all-accept verifier cascade with a depth controller calibrated to the latent distribution of per-instance false-accept rates. The controller should stop when the predicted reliability gain from another gate is smaller than its inference cost, avoiding the severe overconfidence caused by treating correlated verdicts as independent evidence.
Formulas
Mathematical statement
Let Y=0 denote an incorrect candidate and let alpha in [0,1] be the latent probability that a randomly selected gate accepts that candidate on a particular instance. Conditional on alpha, gate verdicts are independent, but marginally they are correlated. Define the kth moment m_k=E_G[alpha^k], where G is the population distribution of alpha. If the true-accept probability per gate is beta and the prior odds of correctness are O_0=P(Y=1)/P(Y=0), then the exact all-accept posterior odds are O_k=O_0 beta^k/m_k, hence ell_k=log O_0+k log(beta)-log(m_k). If beta is absorbed into the paper's baseline odds, this reduces to ell_k=ell_0-log(m_k). Since log(m_k) is convex in k by Holder's inequality, ell_k is concave: each additional correlated gate supplies no more evidence than the previous one. For G=Beta(a,b), m_k=B(a+k,b)/B(a,b)=(a)_k/(a+b)_k and the verdict correlation is rho_v=1/(a+b+1). Estimate a,b from repeated verdict counts using a beta-binomial likelihood. The controller uses Delta ell_k=ell_{k+1}-ell_k=log(beta)-log(m_{k+1}/m_k) and stops when the expected reduction in error probability is below the cost threshold.
Implementation notes
Integrate this into an inference-time verifier harness immediately after each accept/reject verdict. For every candidate, maintain the number of gates passed and a calibrated prior log-odds ell_0 from the generator or a lightweight quality predictor. Before deployment, collect repeated verdicts from R=2--8 verifier calls on a calibration set of generated candidates, separately recording whether each candidate is actually correct and, for incorrect candidates, the number S of accepting verdicts out of R. Fit a beta-binomial model by maximizing log p(S=s)=log choose(R,s)+log B(a+s,b+R-s)-log B(a,b); fit beta, or its conditional analogue, on correct candidates. At runtime use the recurrence m_0=1 and m_{k+1}=m_k(a+k)/(a+b+k) for the Beta model. After k accepts, compute ell_k=ell_0+k log(beta)-log(m_k), convert it to reliability with the logistic function, and compute the marginal gain Delta ell_k. Continue only while the estimated reduction in error probability, sigma(ell_k)(1-sigma(ell_k)) Delta ell_k, exceeds a configurable per-call cost lambda. Pseudocode: fit (a,b,beta); m=1; for k in 0..Kmax: score=sigma(ell0+k*log(beta)-log(m)); if score>=target or marginal_gain<lambda: stop; call verifier; if reject: reject candidate; m*= (a+k)/(a+b+k). The mathematical quantities are the moment recurrence and concavity bound; beta-binomial parameters and ell_0 are estimated empirically. First test on a 1--7B language model answering GSM8K or MATH, with a fixed verifier and a 10-call independent-baseline cascade. Compare fixed depth, independence-calibrated depth, and this controller at equal verifier-call budget. Success is lower error at the same average calls, or at least 20% fewer verifier calls at the same reliability; an important diagnostic is whether predicted held-out reliability remains calibrated at depths larger than R.
Verification
Stage 1 · Toy mechanism gate: Passed ✓
Stage 2 · Mechanism transferred to benchmark: Confirmed ✓
Stage 2 · Practical benchmark result: Significant win ✓
Methodology: 8 paired seeds, permutation test (p<0.05) against a learning-rate-tuned baseline. How verification works
Stage 1 — Mechanism check agent confidence 9/10
Built a NumPy/SciPy MVP implementing Beta moment recurrence, calibrated posterior odds, marginal-gain stopping, and a correlated-verdict simulator. The mechanism manifested: analytic concavity errors were below 9e-16 across three Beta distributions, the exact posterior matched Monte Carlo within 0.00190, and all 21 predicted stopping-depth transitions matched the controller. The practical proxy traded reliability for cost at lambda=0.05: average calls fell 18.0% (2.934 to 2.406), while retained accuracy fell from 0.905 to 0.823, so this is mechanism validation rather than an end-to-end win.
- Agent confidence
- 9/10
- Baseline
- Fixed depth 8: retained accuracy 0.9052, average calls 2.9344, retained fraction 0.1414.
- Idea
- Moment controller, lambda=0.05: retained accuracy 0.8226, average calls 2.4057, retained fraction 0.2004; exact posterior maximum Monte Carlo error 0.001898, independence overconfidence at k=8 0.09225, stopping transition matches 21/21.
Limitations: This is a synthetic Beta-latent verifier model, not GSM8K/MATH or a language-model verifier. Beta parameters and beta were supplied rather than fitted from real calibration data; the practical comparison uses one cost threshold and does not compare equal-reliability operating points or wall-clock/FLOP measurements.
How to run: python3 moment_stopping_experiment.py
Stage 2 — Benchmark vs. tuned baseline (arXiv:2607.13918)
Beats the tuned baseline by 23.6% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).
- Benchmark
- Correlated_verifier_classification
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 0.1963
- Idea mean
- 0.15
- Effect (Δ)
- -0.0462 (−23.6%; negative = idea better)
- Wins
- 8 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±9.0%
- Mechanism
- Confirmed ✓
- Practical effect
- Helps
- Baseline tuning
- swept over 0 configs
This is a fast custom classification track rather than a language-model GSM8K/MATH verifier. The gate simulator uses the known benchmark correctness label to generate controlled correlated verdicts, so the result validates transfer to trained-model behavior under the intended latent-verdict structure but not deployment with a real independent verifier. Wall-clock verifier-call speed, calibration-set estimation from real verifier outputs, equal-reliability cost curves, and larger neural networks were not tested.
How to run: python3 bench_moment_stopping.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Stage 2 — Benchmark latest Worked ✓
Agent confidence: 7/10
Implemented Moment-Calibrated Verification Stopping as a paired neural-system benchmark on a structurally matched custom correlated-verifier classification track. The controller achieved test error 0.1500 versus 0.19625 for the tuned fixed-depth baseline, delta=-0.04625, with all 8 paired seeds winning and permutation p=0.0081; the harness verdict is "idea better (significant)". The mechanism signature was confirmed at NN scale with predicted-versus-observed posterior MAE 0.0691.
- Baseline
- Tuned fixed-depth verifier cascade, best cfg {lr:0.001, depth:2}; full 8-seed test error mean 0.19625, std 0.02695, per-seed [0.21, 0.2125, 0.16, 0.1525, 0.1775, 0.21, 0.23, 0.2175]. Baseline sweep covered lr {0.001,0.003,0.01} and depths {2,4,6}.
- Idea
- Moment controller, selected cfg {lr:0.001, depth:2, lambda:0.03}; full 8-seed test error mean 0.15000, std 0.01649, per-seed [0.1675, 0.155, 0.115, 0.14, 0.1575, 0.1525, 0.17, 0.1425]. Paired delta=-0.04625, 8/8 wins, permutation p=0.0081, mechanism posterior MAE=0.06914.
Benchmark result
Beats the tuned baseline by 23.6% (p=0.0081, wins 8 / 8 paired seeds; metric: lower is better).
- Benchmark
- Correlated_verifier_classification
- Model
- mlp_tiny
- Paired seeds
- 8
- Baseline mean
- 0.1963
- Idea mean
- 0.15
- Effect (Δ)
- -0.0462 (−23.6%; negative = idea better)
- Wins
- 8 / 8 paired seeds
- p-value
- 0.0081 (permutation test, 20 000 shuffles)
- Smallest detectable effect
- ±9.0%
- Mechanism
- Confirmed ✓
- Practical effect
- Helps
- Baseline tuning
- swept over 0 configs
This is a fast custom classification track rather than a language-model GSM8K/MATH verifier. The gate simulator uses the known benchmark correctness label to generate controlled correlated verdicts, so the result validates transfer to trained-model behavior under the intended latent-verdict structure but not deployment with a real independent verifier. Wall-clock verifier-call speed, calibration-set estimation from real verifier outputs, equal-reliability cost curves, and larger neural networks were not tested.
How to run: python3 bench_moment_stopping.py
Artifacts
- bench_moment_stopping.py 7.0 KB View Raw
- bench_report.json 7.2 KB View Raw
- custom_verifier_track.py 0.9 KB View Raw
- moment_stopping_experiment.py 6.0 KB View Raw
- report.md 1.6 KB View
- report_bench_2026-08-31T020207.md 3.6 KB View
- results.json 6.8 KB View Raw