Manuscript Offprint
arXiv:2610.06432Valid Stopping in Adaptive Generator-Verifier Loops
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Numerous agentic workflows are based on a generator–verifier loop: a generator proposes candidates, a cheap verifier scores them, and the workflow terminates when a proposal is verified as good enough. The verifier typically proxies a more costly ground-truth oracle, and as the generator searches adaptively against it, false acceptances may accumulate. Proposals can pass the proxy but fail under the costlier ground-truth check. We study when to stop these loops while controlling the false discovery rate of the accepted proposals. Our construction introduces tools of independent interest in distribution-free statistical testing and conformal risk control, including analysis of e-values constructed through index betting and a novel conformal risk control procedure for non-monotone losses. We validate the approach in synthetic settings and on a protein-design benchmark.
1 Introduction
A large class of inference-time systems operates as generator–verifier loops. A generator proposes candidates, a verifier supplies scores or pass/fail feedback, and the search stops when one or more candidates look acceptable. This template appears in code generation with unit-test filtering [Chen et al., 2021, Li et al., 2022], theorem proving with proof checkers [Polu and Sutskever, 2020], and mathematical reasoning with learned verifiers [Cobbe et al., 2021]. Related iterative self-feedback and verbal-reflection methods revise candidates using model-generated feedback [Madaan et al., 2023, Shinn et al., 2023]. The advantage of using verifiers can be substantial from a computational and economic point of view because, unlike the ground-truth oracle, the verifier is cheap and fast to query repeatedly.
The substitution of a verifier for a ground-truth oracle, however, also induces a complex set of statistical and strategic problems. Once the generator adapts to past verifier outputs, it can search for candidates that exploit the proxy's weaknesses. A verifier that is reliable marginally, or on isolated queries, can accumulate false acceptances under reuse. Recent analyses of inference-time search make this over-optimization phenomenon explicit [Khalaf et al., 2025, Huang et al., 2025]. A key problem is thus that of stopping a generator–verifier loop while controlling the quality of the accepted set as measured with the oracle, not merely with the proxy.
We present a statistical procedure that halts after collecting accepted proposals while controlling the false discovery rate (FDR) of the accepted set—i.e., the expected fraction of accepted proposals that the oracle would reject—below a user-specified level . Using a small set of historical runs, we show how to deploy this procedure on an unobserved run where the true correctness labels are hidden. Formally, at round , the generator proposes , the verifier returns a score and feedback , with the oracle label unobserved. We place no restriction on how depends on the past history . The procedure returns a set of accepted proposals among with cardinality smaller than . This covers regimes in which the generator adapts aggressively to prior failures and verifier corrections. When , the guarantee controls the FDR of the first nonempty returned set, which in the commonly employed single-return setting is exactly the probability of a false first acceptance.
Contributions. We solve this stopping problem by combining three ingredients. First, as shown in Section 4, we construct marginally valid local e-values through an index-betting normalization [Koning, 2026]. The same section gives a finite-sample power analysis with matching upper and lower bounds under a fractional-moment condition on the likelihood ratio, and a weaker Kullback–Leibler (KL) divergence condition under which the finite-batch normalization penalty vanishes. Second, Section 5 introduces robust-core conformal risk control (CRC), a finite-sample calibration method for CRC with non-monotone losses. Third, in Section 6 we show how to combine these local e-values with the weighted online e-Benjamini–Hochberg (e-BH) procedure [Fischer et al., 2024] for stopped FDR control under arbitrary within-run dependence and how this addresses the general generator–verifier stopping problem.
Outline. Section 2 formalizes the run-level model and gives a quick overview of the full approach. Section 3 positions our construction relative to related literature. Section 4 and Section 5 formally introduce our e-value construction and robust-core CRC. Section 6 presents the full procedure together with a synthetic illustration. Section 7 reports experiments on a MotifBench-derived protein-design benchmark [Zheng et al., 2025]. In that benchmark, RFdiffusion [Watson et al., 2023] or Proteina [Geffner et al., 2025] generates candidate backbones, ProteinMPNN [Dauparas et al., 2022] designs sequences, ESMFold [Lin et al., 2023] provides a cheap structural proxy, and AlphaFold 3 [Abramson et al., 2024] serves as the more expensive structural-prediction oracle that defines the benchmark label.
and set to be the induced filtration. Conditionally on , the tuple is drawn from a kernel . We impose no structural assumptions on dependence within a run. In particular, the generator may adapt arbitrarily to past verifier outputs. All probability and expectation operators are taken with respect to the resulting joint law of the trajectory.
Offline runs and score windows. We assume access to a log of labeled historical runs,
drawn i.i.d. at the run level. The independence assumption applies across runs only. Within each run, the kernels may depend arbitrarily on the past. Deployment consists of an unobserved run from the same run-level distribution, with hidden labels . At time , the statistical task is to decide using the labelled data whether to accept the current proposal .
For a fixed context length , we restrict our attention to procedures whose round-t decision depends on the most recent verifier scores. For each run , define
We use the convention for . When the run index is omitted, quantities refer to the unobserved run . For example, and . For each round , we form the augmented labeled sample
where the pseudo-label 0 is attached to in lieu of its unobserved correctness label. We replace the hidden label with 0 as we use the convention that the null hypothesis is that the proposal is incorrect.
Local evidence via e-values. At round , we ask whether the current score window is more likely to correspond to a correct proposal or an incorrect one. Let and denote the marginal laws of conditional on and , respectively, and write for expectation under . The local problem is the simple-versus-simple hypothesis test
Using the labeled sample , we construct an -value for . That is, we build a nonnegative statistic such that . Larger values then provide stronger evidence against . If is absolutely continuous with respect to , denoted by , the ideal test statistic is the likelihood ratio . It satisfies , maximizes , and is therefore log-optimal among -measurable valid -values [Shafer, 2021, Larsson et al., 2025]. In our setting, however, is unknown and must be learned from . A direct plug-in estimate trained on is not necessarily valid, since can exceed 1.
Our construction restores validity by wrapping nonnegative, permutation-equivariant scoring rules with index betting in the sense of Koning [2026]. The key step is to normalize the unobserved-run score against a batch of offline null windows in a way that preserves exchangeability. We only require the fitting rule to be invariant to the order of its training sample. The resulting vector of bets on the batch of windows is then permutation-equivariant, yielding a statistic that is valid under for any such fitting rule. We defer the formal construction and power analysis to Section 4.
Sequential testing. Once these roundwise e-values are available, the problem is reducible to an online multiple-testing task. At round , we return an accepted set and measure its false discovery proportion (FDP) by
For a target acceptance count , define . Our goal is trajectory-level FDR control along the unobserved run, uniformly over stopping times up to :
We obtain this guarantee by aggregating the local e-values with the weighted online e-BH procedure of Fischer et al. [2024], an online analogue of e-BH [Wang and Ramdas, 2022]. Under arbitrary dependence across time, online e-BH guarantees
using only the marginal validity condition at each round. Since for every stopping time , this directly implies the bound in Equation (1).
Online e-BH operates through an -spending mechanism, allocating the per-run error budget across rounds according to a nonnegative schedule with . At time , we accept the proposals indexed by
where is the largest for which at least indices satisfy . If no such exists, we set and .
In practice, a fixed schedule can be conservative. To overcome this, we calibrate the schedule using the labeled logs. In particular, for in an ordered set of candidate scales, we scale the schedule by replacing with . The goal is to select the largest possible while maintaining the guarantee of Equation (1).
Using labeled historical runs, we observe the per-run process loss
whose expectation upper bounds the trajectory FDR up to the -acceptance time on the unobserved run. The goal is to select the largest scale in whose historical losses still certify , for the unlabeled deployment run. This loss is non-monotone in , however, so the standard monotone CRC route can fail [Angelopoulos et al., 2024]. Section 5 introduces robust-core CRC, a finite-sample method designed for exactly this non-monotone setting.
3 Related Work
Exchangeability-based e-values. Likelihood ratios provide a foundational tool for statistical testing. Nonetheless, when the underlying distributions are unknown, estimating the likelihoods can compromise finite-sample validity. Universal inference [Wasserman et al., 2020] addresses this through data splitting, fitting the likelihood on one split and evaluating its ratio to the null likelihood on an independent split. Within the testing-by-betting framework [Shafer, 2021], exchangeability-based e-values offer a different route by using symmetry under the null to normalize a test statistic. In the group-invariance framework of Koning [2026], this yields statistics of the form , where the denominator averages over null-preserving transformations. Closest to our local construction, the Besag–Clifford e-value of Dombowsky et al. [2026] normalizes a nonnegative statistic T of data X against M reference samples exchangeable with X under the null, namely , and is valid for every M. With i.i.d. reference samples from the null and T proportional to the likelihood ratio, it converges almost surely to that ratio as . Their main interest is a null known only up to a normalizing constant, where reference samples come from MCMC through the parallel method of Besag and Clifford [1989] and Markov chain mixing controls the loss in expected log-growth. Exchangeability also underlies the sequential Monte Carlo tests of Fischer and Ramdas [2025], who accumulate betting wealth as additional reference samples are generated.
Our setting instead introduces a new hypothesis at each generator round. We construct a marginally valid e-value for each proposal by normalizing learned scores against a finite pool of logged null windows, then obtain stopping-time control through online multiple testing. With the true likelihood ratio as the score, this statistic is a Besag–Clifford e-value with i.i.d. reference samples. For this local construction, Section 4 separates estimation error from the finite-pool normalization penalty relative to the ideal likelihood ratio. We establish matching finite-sample rates for the normalization penalty under fractional-moment assumptions that cover heavy-tailed likelihood ratios, and show that it vanishes under finite KL divergence alone.
Sequential testing and online FDR control. Sequential hypothesis testing controls the probability of a false rejection even when the sample size is chosen adaptively or if the data arrives sequentially. In particular, e-processes leverage test supermartingales to control the probability of a false rejection under the null [Ramdas et al., 2023]. E-valuator [Sadhuka et al., 2025] applies this perspective to agent verification, using successive verifier scores to flag trajectories that appear likely to end unsuccessfully. Its error criterion is the probability of flagging a trajectory whose terminal output would actually be correct. In this paper, our aim is to control the expected fraction of incorrect proposals accepted when the generator stops. Each round introduces a new proposal and a corresponding hypothesis, making this an online multiple-testing problem. The offline e-BH procedure controls FDR under arbitrary dependence among e-values [Wang and Ramdas, 2022], and Xu and Ramdas [2024] introduce e-LOND with the same dependence robustness for hypotheses arriving sequentially. In our setting, the stopping time depends on the observed results and we leverage the online e-BH procedure of Fischer et al. [2024], which guarantees the stronger result.
Risk control under non-monotone losses. Conformal risk control (CRC) generalizes the coverage guarantees of conformal prediction to bounds on expected loss [Angelopoulos et al., 2024]. The original procedure requires the loss to be monotone in the calibrated parameter, and its guarantee can fail when this assumption is violated. For monotone losses, the guarantee is tight up to an term. Learn-then-Test handles non-monotone losses by testing which candidate parameters satisfy the risk constraint and controlling the familywise error rate across these tests [Angelopoulos et al., 2025]. More recently, Angelopoulos [2026] replaces monotonicity with algorithmic stability and obtains risk guarantees with additional slack from stability and discretization. Whereas Angelopoulos [2026]'s theory is based on leave-one-out stability, Prinster et al. [2026] also study a different approach to CRC under replace-one stability, along with risk-controlled policy selection in an agentic-loop setting that differs from ours by only using a generator, and no verifier. Our robust-core CRC method restores monotonicity by lifting calibration to sets of parameter values, yielding finite-sample risk control under exchangeability without requiring algorithmic stability, together with an exact algorithm on finite grids.
4 Roundwise Marginally Valid e-Values
We now proceed to construct valid e-values for the roundwise testing problems of Section 2. Intuitively, the construction is a betting game played against the null. We embed the unlabeled window among a set of realizations sampled from the null and ask a strategy to point to its position. Under the null, is exchangeable with the logged null windows, so no strategy can locate it more reliably. Nonetheless, under the alternative, if follows a different law from the null sample, it is possible to construct a strategy which identifies its position more often.
Concretely, fix and consider the simple-versus-simple test against . Let index the logged null windows and set . Draw a uniformly random ordering of the augmented null batch and write the resulting indexed version as
and let denote the coordinate occupied by . Conditional on the realized logged labels, the batch size is fixed. Under the unobserved window and the logged null windows are exchangeable draws from , so . The random permutation thus renders the hidden position uniform on and independent of the ordered batch. Under , the window is the only element not drawn from the null. Its position is still uniform on , with and the remaining coordinates drawn from .
A betting strategy is a measurable map
that is budgeted, so that . We restrict to batch-symmetric strategies, namely those for which permuting the coordinates of permutes the output coordinates in the same way. The associated index-betting e-value is the batch-size-scaled stake placed on the hidden unobserved coordinate,
In words, the bettor spreads one unit of capital across the candidate positions and is paid at odds if the hidden position is guessed correctly. It is straightforward to show that is indeed a valid e-value.
Proposition 1 (Validity of index-betting e-values). For any budgeted, batch-symmetric , .
Proof. Condition on the logged labels, and hence on . Under , the ordered batch is exchangeable, and the random ordering makes independent of and uniform on . Hence
The same hidden-index representation supports a power analysis of the e-value, measured by the expected log-growth under the alternative. We call a strategy Kelly-optimal when it maximizes this log-growth among budgeted, batch-symmetric strategies. Under , power is controlled by how well the strategy identifies the coordinate occupied by in the permuted batch. Proposition 2 shows that the posterior of given is proportional to the likelihood ratio, and the Kelly-optimal strategy matches this posterior, mirroring classical log-optimal betting results [Kelly, 1956, Larsson et al., 2025].
Proposition 2 (Kelly-optimality of likelihood-ratio betting). Assume and write . Under the hidden-index alternative indexed by above, conditional on the indexed batch ,
Consequently, among all budgeted strategies, and hence among budgeted, batch-symmetric strategies, is uniquely maximized by
The random ordering of is an analytical device. On the original indices, the Kelly-optimal rule is
In practice, is unknown and must be estimated. For each , let denote the score produced by an order-invariant leave-one-out fitting rule trained on with the pair indexed by removed. The resulting vector of leave-one-out scores is then permutation-equivariant, which is the batch symmetry required above. For validity, it is enough that the betting function be batch-symmetric and budgeted. We can therefore replace with an estimated likelihood ratio and define the -value
4.1 Power decomposition and asymptotic rates
The index -value is optimal within the index-betting family, yet may still be suboptimal relative to the likelihood ratio . We adopt it because is unknown in practice, and the index-betting construction turns empirical proxies into valid -values as in Equation (2). To characterize the log-optimality gap between the empirical index -value and the likelihood ratio, we decompose it into a betting term and an estimation term,
The betting cost is the fundamental price of the index-betting construction, the shortfall from to the best index-betting -value , paid even when is known exactly. The estimation residual is the price of ignorance, the further gap from to . The theorem below controls it by the worst log-ratio error on the augmented batch.
Theorem 1 (Estimation residual). Assume -a.s. and that for every a.s. Then
Consequently, if that worst-case error, , has finite expectation under the alternative, then
Thus, convergence of the expected worst-case log-ratio error implies convergence of the estimation residual. The remaining question is how fast the betting cost vanishes with the batch size . We show that a bounded fractional moment of under is enough for the betting cost to vanish in , at a rate controlled by the moment exponent.
Theorem 2 (Betting cost upper bound). Condition on the realized logged labels, so that is fixed. Suppose for some , and set
which is finite for every . Then
Since , setting recovers the classical rate, and extends the bound into the heavy-tailed regime where . For every , this polynomial rate is tight over the moment class .
Theorem 3 (Matching lower bound). For every and , there exists such that for all sufficiently large some pair satisfies
Since is Kelly-optimal by Proposition 2, this worst-case rate also lower bounds every budgeted batch-symmetric strategy.
Finally, finite KL divergence alone is enough for the betting cost to vanish asymptotically.
Corollary 1 (KL-only convergence). If , then as .
4.2 Examples and simulations
We instantiate the local testing problem on two one-dimensional families chosen to separate light- and heavy-tailed likelihood ratios. The light-tailed example sets against . The heavy-tailed example tests against on , where Pareto(a) has density . We first illustrate the likelihood-ratio behavior in these two settings.
Example 1 (Gaussian shift). A Gaussian shift sits in the light-tailed regime. If under and under , the log-likelihood ratio is Gaussian with mean and variance , where . Hence for every , so all moments are finite. Theorem 2 with therefore recovers a rate.
Example 2 (Pareto pair). Let and on with , so . Here only when , whereas iff , which holds for some for .
For each family, we sweep the reference set size and report results at nominal levels , where . For the Gaussian experiments, we use and , while for the Pareto experiments we use and . To estimate the likelihood ratio, we fit standardized logistic regression on 100 null and 100 alternative observations, using feature for the Gaussian family and for the Pareto family. The fitted odds are clipped to . Figure 1 reports the Type-I and Type-II error rates of three -values, namely the true likelihood ratio , index betting with the true likelihood ratio , and index betting with the estimated likelihood ratio .

Figure 1: Type-I and Type-II error rates across reference sizes for , , and . Solid curves with open markers correspond to and dashed curves with filled markers to .
In the second experiment, we aim to characterize how the tail of the likelihood ratio controls the finite-reference penalty. To remove estimator error, Figure 2 compares only the likelihood ratio with . The sweep is organized by the largest finite fractional moment
We sweep over by choosing a null-alternative pair whose likelihood ratio has exactly that fractional-moment exponent. In the Gaussian case, we use against , while in the Pareto case we use against with . Power is reported on a normalized log-growth scale, . Since , the likelihood ratio sits at exactly one, and a curve at 0.7 means the index e-value retains 70% of the ideal log-growth. The resulting curves follow both directions predicted by Theorem 2. The gap closes as grows and as the reference batch grows.


Figure 2: Normalized log-growth of the oracle index e-value as a function of the fractional-moment exponent , for reference sizes . Each point averages repetitions.
5 Robust-Core Risk Control for Non-Monotone Losses
Using exchangeable labeled samples, CRC [Angelopoulos et al., 2024] calibrates a loss parameter so that the test-time loss has controlled expectation. Let be a totally ordered parameter space, where means that is preferred by the downstream selection criterion. For the online -BH family introduced in Section 2, larger values of stop the loop earlier, save computational costs, and are therefore preferred. Throughout this section we treat CRC abstractly, then specialize it for our setting in Section 6.2.
We assume that are exchangeable random loss profiles, where each is a measurable function of and auxiliary randomness that typically represents the underlying data, which we leave implicit to keep the notation light. In our setting, only are observed and is hidden. For , write , , and for the infimum, supremum, and maximum with respect to . Whenever a rule below selects a supremum, we assume that it lies in the feasible set. Given a level , a CRC method chooses an -dependent , which satisfies
When each loss profile is non-decreasing along , i.e., implies for every , the classical CRC approach computes
which satisfies the guarantee in Equation (4) [Angelopoulos et al., 2024]. When monotonicity fails, the above rule can be invalid [Angelopoulos et al., 2024]. A conservative alternative replaces each by its running supremum and applies the classical rule to these envelopes,
The envelopes are non-decreasing and dominate the original curves, , so the monotone guarantee applied to gives
satisfying Equation (4). Nonetheless, the above envelope approach can be conservative as a local spike is treated as permanent. Hence parameters that are safe on the realized curve can be discarded.
5.1 Robust core on ordered spaces
Robust-core CRC handles non-monotonicity by lifting the problem and calibrating a set in . For a set , define , with . This set loss is monotone under inclusion. If , then . Thus, even when the scalar curve is non-monotone, the lifted set-valued problem has a monotone structure. We assume the relevant suprema exist. This condition holds automatically in the finite-grid setting introduced in Section 5.2.
Let be an admissible class containing all possible loss functions. A complete-data certificate is a symmetric map whose output has controlled empirical set-loss for every complete tuple :
Symmetry means that depends only on the unordered collection of loss curves. Concretely, for every permutation of ,
Algorithm 1 Greedy Selector
1: Input. Ordered parameter space , complete loss profiles , level . 2: Initialize. , . 3: while do 4: 5: if then 6: , . 7: end if 8: end while 9: return .
If the unobserved loss profile were observed, any parameter in would be safe by the original conformal-risk-control exchangeability argument. Indeed, condition on the unordered multiset . The index of the unobserved profile is then uniform on , while every is measurable with respect to this unordered multiset by symmetry. Hence, for any such ,
One canonical way to construct such a is the greedy selector in Algorithm 1, which scans from most to least preferred and admits a parameter when its inclusion preserves Equation (7). The rule is permutation invariant in and satisfies Equation (7) by construction.
Nonetheless, is not observed and cannot be evaluated directly. Instead, consider the parameters that would be certified no matter which admissible is realized:
where is a placeholder for any possible realization of . Since the realized belongs to , implies . Following Angelopoulos [2026], we also assume a fallback parameter satisfying
almost surely. The robust-core estimator chooses the most preferred parameter in when this set is nonempty and falls back otherwise:
Theorem 4 (Validity of the robust core). Under the setup above, suppose the loss profiles are exchangeable, is symmetric and satisfies Equation (7), and Equation (8) holds. Then .
Nonetheless, is not generally computationally tractable as it requires the intersection of over all admissible missing curves . We now specialize to a finite grid and construct with fixed as the greedy selector in Algorithm 1.
5.2 Finite-grid specialization
Consider a finite grid listed from least to most preferred, so . On a grid, the greedy certificate of Algorithm 1 reduces to a single scan from down to . When the scan visits , it includes in the running set C exactly when
The scan reproduces Algorithm 1 because the coordinatewise maxima are monotone in : a point that fails when first visited cannot become feasible after has grown. At calibration time, however, is not observed. We must compute the intersection over all possible completions , where is the loss the unobserved run would incur at . Letting denote the unconstrained completion class, the robust core specializes to
where denotes the scan applied to the augmented tuple . A grid point lies in when no admissible completion can dislodge it. Since is infinite, cannot be obtained by enumerating completions. Algorithm 2 instead tracks, for each scan branch, a finite sufficient statistic of its consistent possibilities.
Algorithm description. Before processing , the include or skip decision depends on the already selected set only through the calibration maxima and the held-out maximum . The vector is pinned down by and the observed losses, while depends on the unobserved completion . Rather than carry all completions consistent with a branch, the algorithm stores only their projection onto , which remains an interval throughout the recursion. A frontier state is therefore a pair , initialized at before the scan begins. After deduplication, one state may represent branches with different selected sets, but their future decisions coincide because they share the same sufficient pair .
At grid point , write and . For and , the scan includes iff
Each state branches into at most two successors. The include branch is reachable when ; then becomes and the held-out interval becomes . The skip branch is reachable when , since choosing skips inclusion while leaving fixed.
The scan moves from most to least preferred, expanding the frontier and merging coincident states. It returns the first grid point at which the include branch is reachable from every frontier state and the skip branch from none. Then every admissible completion forces inclusion of , so as the grid is scanned in order of decreasing preference.
Lemma 1 (Exactness of Robust Core Tree-CRC). Let , and let be the set returned by the complete-data greedy scan when the missing profile is . Algorithm 2 returns
when this intersection is nonempty, and returns otherwise.
Theorem 4 certifies that the robust core controls risk, and Lemma 1 certifies that Algorithm 2 computes it on the grid. Together they yield a finite-sample calibration rule for non-monotone loss profiles.
5.3 Non-monotone CRC experiment
We illustrate robust-core calibration on clipped-Gaussian non-monotone losses over the ordered grid . For example and grid point , the loss is
Algorithm 2 Robust Core Tree-CRC
1: Input. Calibration losses , grid , level , fallback . 2: Initialize. Frontier . 3: for do 4: , AllInclude true. 5: for each state do 6: coordinatewise. 7: . 8: if then 9: Add to . 10: end if 11: if then 12: Add to , set AllInclude false. 13: end if 14: end for 15: Deduplicate repeated states in , set . 16: if AllInclude then 17: return . 18: end if 19: end for 20: return .
independent across examples and grid points. We separately define for every run and set the fallback . We sweep over noise levels and calibration sizes , at level . Larger values are more preferred and more aggressive. We compare robust-core CRC, the monotone-envelope rule of Equation (6), and the finite-grid stable-CRC baseline of Angelopoulos [2026]. Figure 3 plots the mean selected parameter with 95% Monte Carlo intervals over 100 trials. The dotted line is the highest grid point with population risk less than .
…… —— Robust-core CRC —— Monotone-envelope CRC —— Stable CRC

Figure 3: Mean selected parameter on the clipped-Gaussian grid, with 95% Monte Carlo intervals. The dotted line marks the highest fixed safe parameter . The three panels show the three clipped-Gaussian noise levels in the sweep.
All three rules control risk, so the comparison is about the aggressiveness with which each rule is able to select the parameter . Robust-core CRC assumes only exchangeability and boundedness, and its selected parameter still climbs with n toward the fixed safe parameter . The two baselines stay well below it for different reasons. The monotone-envelope rule replaces every loss profile by its running maximum, so a single upward fluctuation at a small grid point suppresses all larger candidates. The stable-CRC baseline retains the raw profiles but subtracts an explicit concentration slack, which shrinks slowly with n. The robust core avoids both penalties and approaches .
An astute reader might have noticed that Algorithm 2 is exponential in the grid size in the worst case, since the frontier can hold up to states. Nonetheless, we note that the scan terminates as soon as it reaches a grid point that is included from every frontier state, and that states that coincide are merged. In practice, we found the rule to be efficient. Figure 4 reports its selection time on the clipped-Gaussian losses above, for grid sizes up to .

Figure 4: Selection time of robust-core CRC against the grid size. Each panel corresponds to one noise level of the clipped-Gaussian losses and shows the median selection time in milliseconds against the grid size , at level , with one curve per calibration size . Curves show the median over 100 independent calibration datasets of each dataset's median time over five repetitions, and shaded bands show pointwise 95% bootstrap intervals for this median.
6 End-to-End Valid Stoppage
We now proceed to introduce the full procedure, which combines the preceding e-value construction and CRC results into a single pipeline. To recap our setting and notation, we consider an unlabeled deployment run whose correctness labels are unavailable. At each round , we observe the score window formed from the most recent verifier scores and return an accepted set . These sets are nested, with . Our goal is to ensure that for every stopping time , as formalized in Equation (1). Throughout this section, we make use of two different splits of labelled data, the first for constructing the roundwise e-value and the second for calibrating the online e-BH procedure to make it less conservative. We denote the dataset used in constructing the roundwise e-values by
and use the superscript e to mark quantities belonging to runs in , for example and . We assume that the runs in and are independent and identically distributed.
6.1 Valid stoppage on the unobserved run
At round , we use to test against , where is the distribution of for . We construct the corresponding -value using the leave-one-out index-betting procedure of Section 4. Mirroring Section 2, define
For each , let be the likelihood-ratio estimator fitted to with the sample indexed by removed, using an order-invariant fitting rule. The resulting roundwise -value is
Under the round-t null, Proposition 1 gives .
Using the online e-BH procedure, testing using the sequence of e-values yields nested accepted sets and the -acceptance time . Explicitly, for a nonnegative unit schedule with and a scale ,
where and . At , marginal validity of the roundwise e-values and the online e-BH guarantee of Fischer et al. [2024] are sufficient to yield
under arbitrary within-run dependence, and hence the trajectory guarantee of Equation (1).
6.2 Robust-core calibration
While setting yields a valid FDR-controlling algorithm, this choice can be conservative [Fischer et al., 2024]. To select , we apply the robust-core CRC algorithm using a calibration dataset . We assume that the runs in and are exchangeable and that their joint collection is independent of . Using , we apply the construction of Section 6.1 to each conformal calibration run in lieu of . For , this produces , and . Unindexed quantities , and continue to refer to .
Fix a finite ordered grid and , with the convention . For run , define the loss function
so that whenever . The fallback makes no discoveries, so . Given that the runs in are labeled, the loss profiles are fully observable. The loss profile for is nonetheless unobserved as its oracle ground-truth labels are hidden. As detailed in Section 5.2, applying the finite-grid robust-core procedure returns the most preferred , which remains valid for any test loss function , or the fallback 0 when the robust core is empty.
Proposition 3 (Exchangeability of loss profiles). Suppose the runs in are exchangeable and jointly independent of . Applying the same construction to each run yields loss profiles that are exchangeable conditional on and hence marginally exchangeable.
Theorem 5 (End-to-end trajectory-level FDR control). Fix and assume the conditions of Proposition 3. Let be the robust-core choice at level computed from . Then
and consequently, for every unobserved-run stopping time ,
A. Oracle

B. Final verifier

C. Deployment stopped FDP
Figure 5: Synthetic Gaussian-ring validation. Panels A and B show the same sampled 50-round trajectory with no stopping rule applied, so they do not depend on . Panel A shows the oracle field , which coincides with the initial verifier field , and Panel B shows the final verifier field . The filled contours give the value of the field at each point of , with brighter colors for larger values. The yellow star marks , and the red cross marks . Panel C reports the mean stopped FDP against the target level , with 95% Monte Carlo intervals over 20 independent repetitions.
6.3 End-to-end validation on synthetic data
We now illustrate the full procedure on a synthetic example. In this setup, a generator moves in the plane toward regions where the verifier score is high. We define a proposal to be correct if it is closer to a hidden target center than to any other center. Over the run, the verifier moves its extra reward from the target center to a neighboring center, so high verifier scores become less and less indicative of correctness. Let be equally spaced on the circle of radius centered at the origin in . Each run draws a hidden target index and a neighbor offset , with indices taken modulo 10. Writing and , the time-t verifier score is
In words, the verifier starts by placing additional mass on , which is then transferred to over the run. Each trajectory uses rounds and starts from a randomly drawn point . At round , the generator draws candidate locations conditionally independently according to
where , which is proportional to the distance between two neighboring points on the circle. Conditional on the candidates, the generator samples an index with
and sets . The observed proxy score is . The oracle label is if is closer to than to any other basin center, and otherwise. Thus, a trajectory can continue receiving high verifier scores while moving toward the incorrect neighboring basin . This design aims to simulate a setting where the verifier and ground-truth correctness are increasingly misaligned as rounds pass.
We repeated the experiment for 20 runs. For each run, we use 100 sampled trajectories for the e-value construction split , 500 trajectories for the conformal calibration split , and 350 trajectories as evaluation runs. Each evaluation run plays the role of with its labels withheld while the stopping rule is applied. Its correctness labels are then used only to compute stopped FDP.
The round-wise -values use the feature and a roundwise likelihood-ratio estimate based on one-dimensional Gaussian kernel density estimation. Online -BH uses the uniform schedule with .
We compare Robust-Core CRC, Envelope CRC, and the unscaled online e-BH. Robust-Core CRC selects over the uniform grid . Envelope CRC is optimized over the continuous interval using the changepoints of the online e-BH loss. The reported loss is the FDP at stopping, averaged over the 350 evaluation runs. Bands in Figure 5 are the mean standard errors over the 20 repetitions of the experiment at .
Panel C of Figure 5 plots FDP at stopping against the target level . The diagonal marks a procedure that spends its error budget exactly. Online e-BH sits far below the diagonal because it fixes . At , Robust-Core CRC and Envelope CRC have similar mean FDPs of 0.082 and 0.085. Robust-Core CRC is closer to the diagonal for larger levels but the difference between Envelope CRC and Robust-Core CRC is very minor at smaller values.
7 Experiments

Figure 6: Motif scaffolding examples. Each column shows a MotifBench-derived task after scaffolding. The fixed motif is magenta and the designed scaffold is grey.
To illustrate the utility of our approach in a more realistic scenario, we consider a sequential protein-design setting, where the generator adapts to a cheap verifier. Informally, a protein generative model proposes a set of particles in representing the positions of the protein's backbone atoms. In motif scaffolding, some of these particles form a fixed functional motif, which the model aims to surround with a supporting section of the protein, also known as the scaffold. Our aim is to determine whether the proposed three-dimensional structure is designable. A three-dimensional structure is designable if there exists an amino-acid sequence that plausibly folds into it.
A common computational test of designability compares the proposed protein backbone with the result of a sequence-design-and-refolding procedure [Zheng et al., 2025]. First, a generative model proposes a three-dimensional structure of the protein backbone. Then, an inverse-folding model predicts amino-acid sequences that could produce the protein backbone proposed by the generative model. A structure-prediction model, such as AlphaFold3 [Abramson et al., 2024], then folds each predicted sequence independently, producing another set of structures in . If the refolded structure closely matches the original proposal, this provides evidence that the proposed protein backbone is physically plausible in the sense that it can be realized by an amino-acid sequence.
We measure structural agreement using root-mean-square deviation (RMSD). For each comparison, we rigidly align the relevant regions of the proposed and refolded structures. RMSD is the square root of the average squared distance between corresponding atoms after alignment, so smaller values indicate closer structural agreement. The score uses three RMSD terms. compares the complete proposed protein backbone with the refolded one. measures agreement across the generator's recorded scaffold region. measures how well the refolded structure preserves the prescribed motif geometry. Appendix B.2 specifies the exact atoms and structural masks used for each term. The score also includes , the mean predicted local distance difference test score, and pTM, the predicted Template Modeling score. Larger and pTM values indicate greater confidence in the local geometry and overall fold, respectively.
We compute these measurements using a cheap verification pipeline. The Protein Message Passing Neural seed
noised proposals
ProteinMPNN + ESMFold + Scoring

Figure 7: One round of the protein feedback loop. Four exploit candidates continue from the stored midpoint state associated with the previous winner, while four explore candidates start from the original motif specification. The cheap ProteinMPNN–ESMFold pipeline scores the resulting proposals, and the midpoint state associated with the highest-scoring proposal seeds round .
Network (ProteinMPNN) [Dauparas et al., 2022] predicts eight amino-acid sequences for each proposed protein backbone. ESMFold [Lin et al., 2023], a computationally light structure-prediction model, folds each sequence independently and therefore produces eight refolded structures. For each sequence-refold pair, the cheap verifier computes the three RMSDs, mean pLDDT, and pTM, then combines them into an individual proxy score
We note that this score function was not particularly tuned to correlate with a specific notion of ground-truth correctness. Rather, the weighting of the different terms was heuristically selected to balance the scale and importance of different terms. The first two terms reward refolds that ESMFold considers reliable, while the RMSD terms penalize disagreement with the intended structure. Motif disagreement receives the largest penalty because preserving the prescribed motif geometry is the central constraint of the task.
RFdiffusion
Proteina
A. Cheap-verifier score
B. Motif RMSD and mean pLDDT

Figure 8: Cheap-verifier trends across rounds. At each round, we retain the design with the highest cheap-verifier score seen in each trajectory. Solid circles denote RFdiffusion and dashed squares denote Proteina. Panel A reports cumulative-best score. Panel B reports ESMFold motif RMSD on the left axis and mean pLDDT on the right axis.
We use this cheap verification score inside a 30-round feedback loop with RoseTTAFold diffusion (RFdiffusion) [Watson et al., 2023] and Proteina [Geffner et al., 2025]. Both models generate structures by progressively transforming a noisy intermediate state into three-dimensional coordinates. During each trajectory, we save the generator’s partially noised state at the midpoint. The first round contains eight fresh candidates from the original motif specification. Every later round contains four fresh explore candidates and four exploit candidates. The explore candidates are generated from scratch while the exploit candidates are generated from the midpoint state corresponding to the previous best-scoring structure. Appendix B.2 gives the detailed description of the feedback structure.
Figure 8 shows rapid gains during the early feedback rounds followed by a gradual plateau for both generators. The score curves are nondecreasing by construction because each trajectory retains its best scoring candidate by design. Motif RMSD generally decreases over the same rounds, while mean pLDDT increases. Proteina reaches a lower motif RMSD, whereas RFdiffusion attains a higher mean pLDDT. These trends show that feedback finds proposals with better motif preservation and higher confidence, as scored through the cheap verification. Thus, as rounds pass, there is a risk of favoring proposals well-scored by the cheap verifier rather than properties associated with ground-truth correctness.
A. RFdiffusion stopped FDP

C. RFdiffusion returned designs
B. Proteina stopped FDP
D. Proteina returned designs
target
target
Figure 9: Stopped risk and utility on held-out trajectories. The robust-core calibrated online e-BH rule is evaluated over target levels and target acceptance counts . Panels A and B report stopped FDP for RFdiffusion and Proteina. Panels C and D report returned designs, with counts capped at , for the same two generators.
For ground-truth correctness, we use AlphaFold 3 [Abramson et al., 2024] as a more computationally expensive oracle. A selected proposal is successful when the AlphaFold 3 prediction for its associated amino-acid sequence, predicted by ProteinMPNN, matches the prescribed motif within 0.75 Å RMSD, matches the proposed backbone within 1.5 Å Cα RMSD over the scaffold mask, has pTM at least 0.80, and has mean pLDDT at least 85. We also note that these criteria were heuristically selected and the pipeline may be reimplemented with different metrics for ground truth correctness.
We generated 300 labeled trajectories for each of Proteina and RFdiffusion. A single trajectory is a 30-round feedback run for a fixed motif-scaffolding task. For each held-out trajectory, the remaining 299 trajectories from the same generator are split into 199 for e-value construction and 100 for conformal calibration. The stopping rule is replayed on the held-out trajectory with its AlphaFold 3 labels withheld. Stopped FDP and the number of returned designs are scored afterward. Additional details are provided in Appendix B.
Figure 9 shows the stopped FDP of the full procedure. In Panels A and B, stopped FDP increases as increases, while the curves for different values of remain close. Thus, allowing more accepted designs does not substantially increase the observed error rate. Panels C and D show the corresponding increase in utility, with larger values of both and returning more designs.
8 Conclusions
In this paper, we study how to safely stop generator–verifier loops that use a cheap verifier to scale inference-time computation. While repeated verifier feedback allows the generator to efficiently explore many proposals without repeatedly querying an expensive oracle, it can also bias the search towards samples that are well-scored by the verifier but not by the ground-truth oracle. In our proposed approach, we cast this setting as an online multiple-testing problem and combine index-betting e-values, robust-core conformal risk control, and online e-BH to solve it. The resulting procedure controls stopped FDR up to the -acceptance time while permitting arbitrary dependence within a run. Our synthetic experiments validate the statistical construction, and the protein-design study shows how it can be applied to a more realistic setting.
We foresee two possible extensions of our approach. First, the current guarantee requires the logged and deployed runs to be exchangeable or even i.i.d. This requirement remains a limitation, as in many real-world examples data arrives sequentially and may not be exchangeable. A weighted form of conformal risk control [Prinster et al., 2026], inspired by weighted conformal prediction under covariate shift [Tibshirani et al., 2019] and more general distribution shifts [Barber et al., 2023, Prinster et al., 2024], could extend our results to the non-exchangeable setting. Nonetheless, combining weighted conformal prediction with our non-monotone construction remains an open problem. Second, many inference-time systems organize proposals as a tree or directed acyclic graph rather than a single trajectory. Extending our framework from looped trajectories to more adaptive tree or graph construction would require FDR control under adaptive branching, pruning, and merging of different proposed solutions.
Acknowledgements
We thank Drew Prinster for a careful reading of an earlier version and for detailed feedback and discussion, which improved the presentation and content of this manuscript. The work of Aymeric Dieuleveut and Mahmoud Hegazy is supported by French State aid managed by the Agence Nationale de la Recherche (ANR) under the France 2030 program with the reference ANR-23-PEIA-005 (REDEEM project), and ANR-23-IACL-0005, in particular the Hi!Paris FLAG chair. This project is part of the Chair “Markets and Learning,” supported by Air Liquide, BNP PARIBAS ASSET MANAGEMENT Europe, EDF, Orange and SNCF, sponsors of the Inria Foundation. We also acknowledge access to the HPC resources of IDRIS under the allocations AD011017341 and A0201017541 by GENCI. Finally, the work of Michael Jordan is supported by the European Union (ERC-2022-SYG-OCEAN-101071601). Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
References
Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Andrew J. Ballard, Joshua Bambrick, et al. Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature, 630:493–500, 2024. doi: 10.1038/s41586-024-07487-w. URL https://doi.org/10.1038/s41586-024-07487-w.
Anastasios N. Angelopoulos. Conformal risk control for non-monotonic losses, 2026. URL https://arxiv.org/abs/2602.20151. arXiv:2602.20151.
Anastasios N. Angelopoulos, Stephen Bates, Adam Fisch, Lihua Lei, and Tal Schuster. Conformal risk control. In International Conference on Learning Representations. OpenReview.net, 2024. URL https://openreview.net/forum?id=33XGfHLtZg.
Anastasios N. Angelopoulos, Stephen Bates, Emmanuel J. Candès, Michael I. Jordan, and Lihua Lei. Learn then test: Calibrating predictive algorithms to achieve risk control. The Annals of Applied Statistics, 19(2):1641–1662, June 2025. doi: 10.1214/24-AOAS1998. URL https://projecteuclid.org/journals/annals-of-applied-statistics/volume-19/issue-2/
Learn-then-test--Calibrating-predictive-algorithms-to-achieve-risk/10.1214/24-A0AS1998.full.
Rina Foygel Barber, Emmanuel J. Candès, Aaditya Ramdas, and Ryan J. Tibshirani. Conformal prediction beyond exchangeability. The Annals of Statistics, 51(2):816–845, April 2023. ISSN 0090-5364. doi:10.1214/23-AOS2276. URL https://doi.org/10.1214/23-AOS2276.
Julian Besag and Peter Clifford. Generalized Monte Carlo significance tests. Biometrika, 76(4):633–642, 1989. ISSN 1464-3510. doi: 10.1093/biomet/76.4.633. URL http://dx.doi.org/10.1093/biomet/76.4.633.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021. URL https://arxiv.org/abs/2107.03374.
Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems, 2021. URL https://arxiv.org/abs/2110.14168.
Peter J. A. Cock, Tiago Antao, Jeffrey T. Chang, Brad A. Chapman, Cymon J. Cox, Andrew Dalke, Iddo Friedberg, Thomas Hamelryck, Frank Kauff, Bartek Wilczynski, and Michiel J. L. de Hoon. Biopython: freely available python tools for computational molecular biology and bioinformatics. Bioinformatics, 25(11):1422–1423, March 2009. ISSN 1367-4803. doi: 10.1093/bioinformatics/btp163. URL http://dx.doi.org/10.1093/bioinformatics/btp163.
Justas Dauparas, Ivan Anishchenko, Nathaniel Bennett, Hua Bai, Robert J. Ragotte, Lukas F. Milles, Basile I. M. Wicky, Alexis Courbet, Robert J. de Haas, Nate Bethel, et al. Robust deep learning-based protein sequence design using ProteinMPNN. Science, 378(6615):49–56, October 2022. ISSN 1095-9203. doi:10.1126/science.add2187. URL http://dx.doi.org/10.1126/science.add2187.
Alexander Dombowsky, Barbara E. Engelhardt, and Aaditya Ramdas. Besag-clifford e-values for unnormalized testing, 2026. URL https://arxiv.org/abs/2603.15845.
Lasse Fischer and Aaditya Ramdas. Sequential monte carlo testing by betting. Journal of the Royal Statistical Society Series B: Statistical Methodology, 87(4):1200–1220, April 2025. ISSN 1467-9868. doi:10.1093/jrsssb/qkaf014. URL http://dx.doi.org/10.1093/jrsssb/qkaf014.
Lasse Fischer, Ziyu Xu, and Aaditya Ramdas. An online generalization of the (e-)benjamini-hochberg procedure. arXiv preprint arXiv:2407.20683, 2024. URL https://arxiv.org/abs/2407.20683.
Tomas Geffner, Kieran Didi, Zuobai Zhang, Danny Reidenbach, Zhonglin Cao, Jason Yim, Mario Geiger, Christian Dallago, Emine Kucukbenli, Arash Vahdat, and Karsten Kreis. Proteina: Scaling flow-based protein structure generative models. In International Conference on Learning Representations (ICLR), 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/f4e9121ad30cd4e5528042fbfd835b3f-Abstract-Conference.html.
Audrey Huang, Adam Block, Qinghua Liu, Nan Jiang, Akshay Krishnamurthy, and Dylan J. Foster. Is best-of-n the best of them? Coverage, scaling, and optimality in inference-time alignment. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 25075–25126. PMLR, 2025. URL https://proceedings.mlr.press/v267/huang25c.html.
John L. Kelly, Jr. A new interpretation of information rate. Bell System Technical Journal, 35(4):917–926, July 1956. ISSN 0005-8580. doi: 10.1002/j.1538-7305.1956.tb03809.x. URL http://dx.doi.org/10.1002/j.1538-7305.1956.tb03809.x.
Hadi Khalaf, Claudio Mayrink Verdun, Alex Oesterling, Himabindu Lakkaraju, and Flavio du Pin Calmon. Inference-time reward hacking in large language models. In Advances in Neural Information Processing Systems 38. Neural Information Processing Systems Foundation, Inc., 2025. doi: 10.52202/085713-2064. URL https://proceedings.neurips.cc/paper_files/paper/2025/hash/590a0cc0306c1c63e2d66a51a407718f-Abstract-Conference.html.
Nick W. Koning. Measuring evidence against exchangeability and group invariance with E-values. The Annals of Statistics, 54(4):1843–1869, 2026. doi: 10.1214/26-aos2627. URL https://doi.org/10.1214/26-aos2627.
Martin Larsson, Aaditya Ramdas, and Johannes Ruf. The numeraire e-variable and reverse information projection. The Annals of Statistics, 53(3):1015–1043, June 2025. ISSN 0090-5364. doi: 10.1214/24-aos2487. URL http://dx.doi.org/10.1214/24-aos2487.
Yujia Li, David Choi, Junyoung Chung, Nate Kushman, Julian Schrittwieser, Rémi Leblond, Tom Eccles, James Keeling, Felix Gimeno, et al. Competition-level code generation with alphacode. Science, 378(6624):1092–1097, December 2022. ISSN 1095-9203. doi: 10.1126/science.abq1158. URL http://dx.doi.org/10.1126/science.abq1158.
Zeming Lin, Halil Akin, Roshan Rao, Brian Hie, Zhongkai Zhu, Wenting Lu, Nikita Smetanin, Robert Verkuil, Ori Kabeli, Yaniv Shmueli, et al. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science, 379(6637):1123–1130, March 2023. ISSN 1095-9203. doi: 10.1126/science.ade2574. URL http://dx.doi.org/10.1126/science.ade2574.
Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, et al. Self-refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems 36, NeurIPS 2023, pages 46534–46594. Neural Information Processing Systems Foundation, Inc., 2023. doi: 10.52202/075280-2019. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/91edff07232fb1b55a505a9e9f6c0ff3-Abstract-Conference.html.
Stanislas Polu and Ilya Sutskever. Generative language modeling for automated theorem proving. arXiv preprint arXiv:2009.03393, 2020. URL https://arxiv.org/abs/2009.03393.
Drew Prinster, Samuel Don Stanton, Anqi Liu, and Suchi Saria. Conformal validity guarantees exist for any data distribution (and how to find them). In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 41086–41118. PMLR, 2024. URL https://proceedings.mlr.press/v235/prinster24a.html.
Drew Prinster, Clara Fannjiang, Ji Won Park, Kyunghyun Cho, Anqi Liu, Suchi Saria, and Samuel Don Stanton. Conformal policy control. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 99772–99824. PMLR, 2026. URL https://proceedings.mlr.press/v306/prinster26a.html.
Aaditya Ramdas, Peter Grünwald, Vladimir Vovk, and Glenn Shafer. Game-theoretic statistics and safe anytime-valid inference. Statistical Science, 38(4):576–601, November 2023. ISSN 0883-4237. doi: 10.1214/23-sts894. URL http://dx.doi.org/10.1214/23-sts894.
Shuvom Sadhuka, Drew Prinster, Clara Fannjiang, Gabriele Scalia, Bonnie Berger, Aviv Regev, and Hanchen Wang. E-valuator: Reliable agent verifiers with sequential hypothesis testing, 2025. URL https://arxiv.org/abs/2512.03109.
Glenn Shafer. Testing by betting: A strategy for statistical and scientific communication. Journal of the Royal Statistical Society Series A: Statistics in Society, 184(2):407–431, April 2021. ISSN 1467-985X. doi:10.1111/rssa.12647. URL http://dx.doi.org/10.1111/rssa.12647.
Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. In Advances in Neural Information Processing Systems 36, NeurIPS 2023, page 8634–8652. Neural Information Processing Systems Foundation, Inc. (NeurIPS), 2023. doi: 10.52202/075280-0377. URL http://dx.doi.org/10.52202/075280-0377.
Ryan J. Tibshirani, Rina Foygel Barber, Emmanuel J. Candès, and Aaditya Ramdas. Conformal prediction under covariate shift. In Advances in Neural Information Processing Systems 32, pages 2526–2536, 2019. URL https://arxiv.org/abs/1904.06019.
Ruodu Wang and Aaditya Ramdas. False discovery rate control with e-values. Journal of the Royal
Statistical Society Series B: Statistical Methodology, 84(3):822–852, July 2022. ISSN 1467-9868. doi:10.1111/rssb.12489. URL http://dx.doi.org/10.1111/rssb.12489.
Larry Wasserman, Aaditya Ramdas, and Sivaraman Balakrishnan. Universal inference. Proceedings of the National Academy of Sciences, 117(29):16880–16890, July 2020. ISSN 1091-6490. doi: 10.1073/pnas.1922664117. URL http://dx.doi.org/10.1073/pnas.1922664117.
Joseph L. Watson, David Juergens, Nathaniel R. Bennett, Brian L. Trippe, Jason Yim, Helen E. Eisenach, Woody Ahern, Andrew J. Borst, Robert J. Ragotte, Lukas F. Milles, et al. De novo design of protein structure and function with RFdiffusion. Nature, 620(7976):1089–1100, July 2023. ISSN 1476-4687. doi:10.1038/s41586-023-06415-8. URL http://dx.doi.org/10.1038/s41586-023-06415-8.
Ziyu Xu and Aaditya Ramdas. Online multiple testing with e-values. In Proceedings of The 27th International Conference on Artificial Intelligence and Statistics, volume 238 of Proceedings of Machine Learning Research, pages 3997–4005. PMLR, 2024. URL https://proceedings.mlr.press/v238/xu24a.html.
Zhuoqi Zheng, Bo Zhang, Kieran Didi, Kevin K. Yang, Jason Yim, Joseph L. Watson, Hai-Feng Chen, and Brian L. Trippe. Motifbench: A standardized protein design benchmark for motif-scaffolding problems, 2025. URL https://arxiv.org/abs/2502.12479.
A Deferred Proofs
Throughout the proof subsections for Section 4, denotes the number of logged null windows. Accordingly, the augmented null batch has size , which corresponds to in the main text. We fix and write , , and .
A.1 Proposition 2
Proof. All probabilities and expectations below are under the alternative. By the i.i.d. assumption of Section 2, is independent of . Let be a uniformly random permutation of , independent of . Write
Thus is the ordered batch and is the position occupied by . Since is a function of alone, it is uniform on and independent of .
Hence, conditional on , the different coordinates of are independent, with and for every . Bayes' rule gives
almost surely.
Consider such that . For any , any maximizing budgeted strategy must satisfy whenever , since otherwise its conditional expected log-wealth is and satisfy (otherwise rescaling increases the conditional expected log-wealth). Thus it remains to optimize over the simplex, where
Nonnegativity of the KL divergence shows that the unique maximizer is . Substituting the posterior above yields
This rule is batch-symmetric, so it also maximizes conditional expected log-wealth within the batch-symmetric class.
A.2 Theorem 1
Proof. Let and let be independent of . Write , , , and for . Then
and similarly
Hence
Set
Then for every , so after summing,
Therefore
and the claim follows.
A.3 Theorem 2
Proof. Let , let , independent of , and set , , and . Since
we have
Condition on . By Jensen's inequality,
because , hence .
Since is increasing and ,
Set . By the definition of ,
Applying this with yields
Taking expectation under Q and using ,
A.4 Theorem 3
Proof. Fix . For each sufficiently large , let have the two-point law
Then and , so defines a probability distribution. Moreover,
Thus for all sufficiently large . Under ,
Let and be independent, and let count how many of equal . The average equals when and when . It exceeds one when and is large. Therefore,
Since ,
Substitution gives
Since , the right-hand side is at least for all sufficiently large . Finally, Proposition 2 shows that minimizes this gap among budgeted batch-symmetric strategies, so the same lower bound applies to every such strategy.
A.5 Corollary 1
Proof. Let , set for , and define
By change of measure and exchangeability,
Since , the strong law of large numbers gives almost surely, hence almost surely.
Now let , with . The function is convex and bounded below by . By Jensen,
and hence
Since , the empirical averages are uniformly integrable. Therefore is uniformly integrable and is uniformly integrable. Since almost surely, it follows that
A.6 Theorem 4
Proof. Let . Since the true loss profile belongs to almost surely, it is one of the completions in the intersection defining the robust core. Hence .
If , the selected parameter belongs to , so its test loss is bounded by . If , the fallback incurs zero loss by Equation (8). Nonnegativity of the set loss, with , therefore gives
almost surely.
Symmetry of and exchangeability of the loss profiles imply that are identically distributed. Taking expectations and using Equation (7),
A.7 Lemma 1
Proof. Consider the full scan without early termination. Suppose the frontier before processing represents all attainable pairs of calibration maxima and held-out maxima , with each state representing . Initially, the only attainable pair is . The unprocessed coordinates of remain unrestricted because .
For a state , let and be defined as in Algorithm 2. Inclusion requires . This is possible if and only if , and the new held-out maximum ranges over . Every value in this interval is attained by taking and , giving the successor .
Skipping is possible if and only if . Choosing then produces a skip for every , leaving the state unchanged. Merging identical successor states changes neither the attainable pairs nor the freedom to choose the remaining coordinates.
Thus AllInclude is true at if and only if every completion includes that point. Later decisions cannot remove it, so this condition is equivalent to membership in the robust core. Since the scan proceeds from most to least preferred, it returns the largest member of the core, or the fallback when no point belongs to it. □
A.8 Proposition 3 and Theorem 5
Proof. Work conditionally on the -value construction split and fix . Independence of the conformal calibration runs and the unobserved run from preserves their exchangeability under this conditioning. With fixed, the construction in Sections 6.1 and 6.2 applies the same map to every such run. Any permutation of the conformal calibration runs and the unobserved run therefore permutes the local -value streams in the same way. For each , the online -BH path, the stopping time, and the process loss are deterministic functions of the corresponding -value stream and run labels. The same permutation consequently relabels . Thus, they are conditional exchangeable. Integrating over gives marginal exchangeability and completes the proof of Proposition 3.
By Lemma 1, Algorithm 2 returns the robust-core estimator from Equation (9) when applied to the conformal calibration profiles . Since the fallback satisfies for and , Theorem 4 applies conditionally on and yields
Taking expectations over removes the conditioning and gives Equation (13). For any unobserved-run stopping time ,
B Additional Experiment Details
For each of the 300 motif-scaffolding targets, each generator produces a 30-round trajectory, and AlphaFold 3 evaluation takes place after generation.
B.1 MotifBench-derived benchmark construction
We restrict ourselves to tasks whose motif is a single contiguous segment and use the ten tasks of Table 1, taken from MotifBench [Zheng et al., 2025]. Each MotifBench task specifies the fixed motif and integer ranges for the scaffold lengths on its left and right sides. For each task, we sample 30 distinct integer pairs of left and right scaffold lengths within the specified ranges, which gives targets. We use the same 300 targets for RFdiffusion and Proteina.
| Task | Motif residues | Motif length | Left range | Right range |
|---|---|---|---|---|
| 01_1LDB | A186–206 | 21 | 0–100 | 0–100 |
| 02_1ITU | A124–147 | 24 | 0–100 | 0–100 |
| 03_2CGA | A184–194 | 11 | 0–100 | 0–100 |
| 04_5WN9 | A170–189 | 20 | 10–40 | 10–40 |
| 05_5ZE9 | A229–243 | 15 | 0–100 | 0–100 |
| 06_6E6R | A23–35 | 13 | 0–65 | 0–65 |
| 07_6E6R | A23–35 | 13 | 0–190 | 0–190 |
| 08_7AD5 | A99–113 | 15 | 0–100 | 0–100 |
| 09_7CG5 | A6–20 | 15 | 0–100 | 0–100 |
| 10_7WRK | A80–94 | 15 | 0–100 | 0–100 |
Table 1: MotifBench source tasks used to construct the 300 targets, each fixing one pair of left and right scaffold lengths.
B.2 Protein feedback loop
A feedback trajectory contains 30 rounds with eight candidate backbones per round. The first round generates all eight backbones from the motif specification, while each later round combines four exploit backbones sampled from the preceding winner's midpoint state with four explore backbones sampled from fresh trajectories.
ProteinMPNN [Dauparas et al., 2022] samples eight sequences per backbone at temperature 0.1 with no backbone noise. It uses the full N, Cα, C, and O backbone for RFdiffusion and Cα-only geometry for Proteina. ESMFold [Lin et al., 2023] refolds every sequence with two recycles. The cheap verifier computes the proxy score S of Section 7 for each of the 64 sequence-refold pairs, and we select the highest-scoring pair, which determines the winning backbone and sequence. The midpoint state of the winning backbone seeds the exploit candidates of the next round, and the winning sequence is kept for the offline AlphaFold 3 evaluation. Algorithm 3 summarizes this feedback procedure.
Algorithm 3 Protein feedback and offline evaluation
Require: Motif task m, generator G, rounds T = 30, backbones per round B = 8, sequences per backbone Q = 8
Ensure: Winners and oracle labels
1: for do
2: if then
3: Sample B fresh backbone–midpoint pairs from
4: else
5: Sample B/2 backbones by independent continuations from a, setting
6: Sample the remaining B/2 backbone–midpoint pairs afresh from
7: end if
8: for do
9: Sample Q sequences from ProteinMPNN conditioned on
10: for do
11: Refold with ESMFold and compute its verifier score
12: end for
13: end for
14: Select
15:
16:
17: end for
18: for do
19: Run AlphaFold 3 on and compute against motif m and backbone
20: end for
Model hyperparameters.
• RFdiffusion configuration. We use RFdiffusion [Watson et al., 2023].
– Code. We use the official RFdiffusion GitHub repository.
– Checkpoint. Base_ckpt.pt.
– Reverse process. diffuser.T=50 and inference.final_step=1. We retain the step-25 state for subsequent exploit samples.
– Translations. diffuser.schedule_type=linear, diffuser.b_0=0.01, diffuser.b_T=0.07, and diffuser.crd_scale=0.25.
– Rotations. diffuser.so3_type=igso3, diffuser.so3_schedule_type=linear, diffuser.min_b=1.5, diffuser.max_b=2.5, diffuser.min_sigma=0.02, and diffuser.max_sigma=1.5.
– Conditioning. inference.model_runner=SelfConditioning, inference.align_motif=True, inference.recenter=True, and preprocess.motif_sidechain_input=True.
• Proteina configuration. We use Proteina [Geffner et al., 2025].
– Code. We use the official Proteina GitHub repository.
– Checkpoint. ckpt_name=proteina_v1.7_DFS_60M_notri_motif_scaffolding.ckpt.
– Integration. dt=0.0025, schedule.schedule_mode=log and schedule.schedule_p=2.0.
– Stochastic term. sampling_caflow.sampling_mode=sc, sampling_caflow.sc_scale_noise=0.4, sampling_caflow.sc_scale_score=1.0, sampling_caflow.gt_mode=1/t, sampling_caflow.gt_p=1.0, and sampling_caflow.gt_clamp_val=null.
– Conditioning. self_cond=False, fold_cond=False, guidance_weight=1.0, and autoguidance_ckpt_path=null.
– Feedback state. We retain the Cα flow state nearest t = 0.5 for subsequent exploit samples.
RMSD computations. Each RMSD is computed after a separate least-squares rigid alignment using Biopython's Superimposer [Cock et al., 2009]. Backbone RMSD compares all Cα atoms of the generated backbone and the ESMFold refold. Motif RMSD compares the prescribed motif's N, Cα, and C atoms with the corresponding atoms in the refold. Scaffold RMSD excludes motif residues for Proteina but includes the entire generated chain for RFdiffusion, where it equals backbone RMSD.
For the ground-truth label, we run AlphaFold 3 [Abramson et al., 2024] on the winning sequence of each round after all trajectories have been generated. Using the recorded motif positions and scaffold mask, a proposal is successful if its top-ranked prediction has motif N–Cα–C RMSD at most 0.75 Å, scaffold-mask Cα RMSD at most 1.5 Å, pTM at least 0.80, and mean pLDDT at least 85.
Roundwise likelihood-ratio estimation. At round , we use the feature , with . We fit a separate estimator for each generator, deployment fold, split seed, and round. Let and index evidence trajectories with AlphaFold 3 labels one and zero, respectively. We standardize each feature coordinate using only the observations indexed by .
On the standardized features, we use the Gaussian kernel
For every coordinate in the augmented null pool , the alternative and leave-one-out null density estimates are
We define
and apply the index-betting normalization in Equation 10. If either evidence class is empty, we set . This case did not occur in the reported evaluation.
We use the 100 calibration trajectories to select the online e-BH scale through robust-core CRC. The held-out labels are used only to evaluate stopped FDP.
We evaluate and using the scale grid