Manuscript Offprint
arXiv:2610.07362Dynamic Budget Allocation for LLM Evaluation under Hard Resource Constraints
Abstract
We evaluate large language models (LLMs) in multi-turn interactions through their time-to-event: the number of interaction steps required to produce an event of interest, such as a successful jailbreak or agentic task completion. Under limited compute, interactions may be terminated before the event occurs, so that event times are only partially observed (censored). Existing allocation methods for calibrating time-to-event bounds satisfy the budget only in expectation and can exceed the available budget on a particular evaluation run. Enforcing a hard constraint is particularly challenging as the cost of a trajectory is initially unknown. We introduce Hard-budget Allocation with Reflow for Predictive calibration (HARP), a budget allocation that satisfies hard resource constraints and adaptively reallocates unused budget. We show how to use HARP to construct lower predictive bounds (LPBs) on the time-to-event and to estimate evaluation metrics such as the jailbreak rate on a fixed benchmark. Although HARP induces dependence in acquisition decisions across different trajectories, we prove that HARP never exceeds the target budget, that its LPBs have finite-sample coverage guarantees, and that its metric estimates are unbiased. Experiments on agentic task success, LLM jailbreaks, toxic content generation, and RAG hallucinations show that HARP achieves coverage close to the nominal level with low variance, while never exceeding the given budget.
1 Introduction
Evaluating LLMs and agents through repeated interaction can require substantially more computation than assessing a single response. For example, a model may initially refuse a harmful request but comply after several revisions, or initially fail a coding task while succeeding with further assistance. Time to such an event describes behavior that a one-turn success rate does not capture. Lower and upper predictive bounds (LPBs and UPBs) on this time-to-event can support evaluating the safety and utility of agents and LLMs, but constructing reliable bounds requires observations from trajectories of unknown length.
In this work, we consider a hard budget constraint for running LLM interactions, as required in many practical scenarios. A policy satisfying the budget in expectation may exceed it on specific runs. Reserving the maximal trajectory length for each sampled prompt may satisfy the deterministic constraint, but it can underutilize the budget when the event occurs early; conversely, acquiring until exhaustion and treating the observed sample as representative may induce a distribution shift which invalidates the theoretical guarantees.
Designing this budget allocation under hard constraints raises three challenges. First, the budget cost of a trajectory is stochastic and unknown before acquisition. Second, the budget allocation must incorporate a dependence of the budget spent on different trajectories. Thus, the theoretical coverage guarantee must account for dependence between trajectories induced by the allocation. Prior works [1–4] require that the censoring times are independent across different trajectories. Third, samples in which an event occurs early save budget units, which we aim to reflow to other samples. This reallocation must preserve the feasibility of the remaining trajectories, so that the deterministic constraint holds throughout execution.
Davidov et al. [3] proposed a budget allocation and a calibration scheme for constructing calibrated LPBs with theoretical coverage guarantees. DAPRO [4] extended this approach to a dynamic budget allocation for multi-turn LLM evaluation that leverages the trajectory history to allocate the budget more efficiently. Specifically, it can dynamically choose to stop acquiring a trajectory at any turn, and the remaining budget will be exploited by other samples. While both approaches provide informative predictive bounds and metric estimates with theoretical guarantees, they satisfy the budget constraint only in expectation rather than deterministically.
Beyond controlling the budget deterministically, we seek to derive low-variance estimators because evaluation is typically performed on a single realized dataset. Specifically, lower variability in the coverage rate of predictive bounds means that the coverage attained on a given dataset is more likely to be close to the nominal level . For metric estimation, even if two estimators are unbiased, the lower-variance estimator is preferable as, on any single dataset, it is expected to yield an estimate closer to the true marginal value. Thus, the estimator with the lower variance provides more reliable evaluations.
The work of Yamin et al. [5] studies budget allocation under hard constraints. In particular, they use dependent rounding [6–8] for budget-constrained experimental design. Nonetheless, these works do not show how to construct calibrated predictive bounds with finite-sample distribution-free guarantees under hard constraints where the acquisition cost of each sample is arbitrary, stochastic, and initially unknown.
• Coverage and unbiasedness guarantees under dependent acquisition: We show that HARP constructs predictive bounds with finite-sample coverage guarantees and produces unbiased metric estimates even though its acquisition decisions are dependent across samples. Existing guarantees [1, 3, 4] assume that the acquisition is independent across samples to provide such guarantees. HARP violates this assumption by design: decisions are coupled within groups. Our proof exploits the specific allocation structure of HARP.
• Budget validity: We formally prove that HARP satisfies the deterministic budget constraint. Empirically, we observe that HARP has a higher budget utilization compared to prior methods [4].
• Depth and execution variants: We develop a depth rule that, as observed empirically, leads to reduced coverage variance of the constructed calibrated predictive bounds and was not considered in prior works.
• Empirical Evaluation: We demonstrate HARP across diverse tasks, including agentic task success, toxic content, LLM jailbreaks, and RAG-based hallucinations. Our experiments show that our method satisfies the deterministic budget constraint and achieves low variance despite our method having a more restrictive deterministic resource constraint.
The software package implementing our method is available at https://github.com/Shai128/harp
2 Background
Multi-turn evaluation. Let denote an initial prompt and its trajectory history after interactions. We suppose we are given initial prompts as the calibration data.
We assume a model interacts sequentially with a target model from an initial prompt . The model aims to elicit a key event. The interaction begins with . At each step , the target model produces a response , which is then evaluated by an audit function to obtain an indicator for the event of interest , where indicates that the event has occurred. If , the interaction terminates. Otherwise, uses the interaction history , which contains previous prompts, responses, and audit annotations, to generate the next prompt,
The process continues until the event occurs or the interaction is otherwise terminated.
The corresponding time-to-event is defined as . To make this procedure tractable, we set the maximal sequence length to . For sample , the censoring time determines the maximal observed length . If the event has not occurred by turn , the trajectory is right-censored and its event time is unobserved.
We use a pre-trained survival model that generates predictions for the -th quantile of the time-to-event. Any model that estimates conditional quantiles can be used, e.g., quantile regression [9–11]. The quantile predictions are nondecreasing in , as quantiles of a single predicted distribution, and the candidate set contains a level with . We trim the predictions at , so that , to correspond to the maximal length we allow. We define
Given , our goal is to construct a predictive bound with miscoverage at most up to a deviation which arises from the uncertainty due to the finite calibration sample. Specifically, we seek the PAC guarantee
The outer probability is taken over calibration trajectories and acquisition randomization, while the inner one concerns an independent test point sampled from the same population. Thus, this guarantee differs from marginal coverage averaged over the multiple runs of the calibration procedure, common in classic conformal prediction [12]. Throughout this work, the randomizations are taken conditionally on the pre-trained predictive model, when used, and an independent reference dataset.
Random acquisition and calibration. Let indicate that sample is resolved, i.e., that its observed prefix determines for every candidate . Let be the probability that , conditional on the complete trajectory of sample and on the history of the previously acquired groups (Appendix B.3). The Horvitz–Thompson estimator [13] then gives
The denominator considers every sample in the calibration set, including prompts with unobserved event times. In practice, we only need access to the probability for samples with .
From static allocation to DAPRO. Davidov et al. [3] propose optimizing the sampling probabilities to minimize the variance of the empirical coverage rate. DAPRO [4] extends this approach by updating continuation decisions dynamically from the trajectory history. It splits the calibration data into two: the first is used to learn an optimized allocation policy deployed on the second split. It further includes an internal budget calibration step based on conformal risk control (CRC) [14] to provide an expected budget guarantee.
For UPBs, the coverage error of the bound decreases with , and an infinite bound has zero error. Population metrics instead target an expectation, without selecting a quantile level. These changes require different acquisition depths and estimators. We therefore develop them separately in Appendices D and E.
3 Proposed Method and Theory
We split the calibration data into groups and allocate the budget iteratively over groups, based on the remaining budget each iteration. For each group, we set randomized censoring times so that the worst-case cost does not exceed the remaining budget, acquire the interactions based on them, and update the remaining budget according to the turns actually taken.
3.1 Reservations, commitments, and reflow
We rely on a reference set of size to compute estimated predictions, without spending budget on it. We exclude the reference samples from the calibration estimator. In the experiments, the total cap is , where and is the budget per parent prompt. The reference therefore saves interactions at the cost of a smaller estimation sample.
We randomly divide the calibration samples into groups , each of size . We assign sample a maximal execution horizon , determined by the reference design and the sample's own initial features. Let be the remaining budget before group , initialized at . We choose and require
The budget allowance and the pacing budget of the current group are
The allowance reserves turns for each later group, while the pacing budget distributes the remaining budget over the remaining groups. Consequently, an inaccurate estimate of the consumed budget cost might not attain , but it will not violate the allowance .
We denote by the estimated probability for miscoverage event . Next, we define
The average predicted event probability is formulated as . We denote the estimated expected cost by , and the average estimated cost function over the reference data is thus
We write , with . We choose the multiplier to satisfy and, for , set
The specific formulation of is chosen as a heuristic, based on the closed-form minimizer derived by Davidov et al. [3]. Our guarantees hold for any definition of that depends only on the sample's own features and previous groups.
We next apply weighted pivotal rounding [15] to sample a commitment indicator with probability . The commitment indicator determines whether we commit to allocating budget to sample to observe its event time ; if , we set . This pivotal rounding algorithm begins by initializing , and runs iteratively, where at each iteration, it randomly rounds at least one index into , while preserving the identity throughout the process. The rounding procedure terminates once at most one coordinate remains unrounded. This last coordinate is then rounded with a Bernoulli draw that changes the weighted sum by at most . Combining this property with the cap in (8) gives
In Appendix B.1 we outline the full algorithm we use and prove the properties of this algorithm. After executing the group, we subtract its actual paid cost from the ledger, . Thus, turns saved by early events or randomized stopping are available to the next group.
3.2 Completion, continuation, and depth
HARP-Commit (HARP-C) runs each sample with until resolving it, i.e., reaching its event time or horizon , costing units for the -th sample, and the resolution probability is . This version adapts the budget between groups through the ledger. HARP-Dynamic (HARP-D) additionally adapts the budget dynamically within a trajectory. Before spending budget for turn , it uses only to compute a score , which is a smoothed miscoverage probability at step , and estimates the remaining cost . We denote by the probability of reaching time , initialized at . We set
So, at each step , we continue to the next step with probability , and this random draw is independent across different samples and of the randomization of . Importantly, we do not continue running a trajectory that was stopped by a continuation coin. For , sample is resolved, i.e., , when acquisition reaches its event time or its horizon . Conditional on its trajectory and the previous groups, this occurs with probability
These and are used in the estimator (3).
Depth. The vanilla version of HARP sets the acquisition horizon as , where is a prior quantile level chosen to reflect the belief that the calibrated level satisfies . Prior work provides examples of such choices: for a target coverage level of , [3, 4] consider .
The depth version of HARP chooses a quantile level based on the initial reference predictions and restricts the candidate set to . It then sets the resolution horizon to , which is sufficient to determine all retained events . By avoiding acquisition at later interaction steps, we save budget at the cost of restricting the largest LPB that can be selected.
We choose the depth using only the initial predictions for the independent reference prompts R. For each candidate , these predictions estimate the average resolution cost, LPB miscoverage, and LPB size. We consider five risk
Algorithm 1 Core HARP acquisition and LPB calibration
Require: Pre-trained model, independent reference, calibration samples, parameters
1: Fix reference design and retained family; set ; form random groups.
2: for do
3: Compute reserve, allowance, and pacing target by (5).
4: Choose from the reference curve; cap commitments by (8).
5: Draw weighted pivotal commitments with horizons as costs (Algorithm 2).
6: Execute C or D; record paid turns, resolution indicators, and propensities (11).
7: Update using actual group spend.
8: end for
9: Compute (3) over all working samples; return .
scenarios, multiplying the predicted miscoverage curve by while keeping predicted costs and sizes fixed. For each and scenario , we estimate the largest mean LPB size among its retained candidates whose modeled risk plus a planning uncertainty penalty is at most . The regret is defined as the signed difference of the LPB size compared to the best observed in the same configuration of risk . We choose the level with the smallest worst-case regret, then increase it if a deeper endpoint still allows the planner's hypothetical acquisition fraction to remain one. Appendix C.2 provides the full derivations.
Truncating the candidate family would change the UPB and metric estimation tasks. For these tasks, we instead independently assign each sample either a shallow or a full horizon, choosing the full-horizon branch with probability .25 and correcting for this draw in the weights; see Appendices D–E for more details.
3.3 Theoretical coverage and budget guarantees
We begin with the budget guarantee, which holds for every realization of the acquisition procedure.
Theorem 1 (Deterministic budget control). Under (4), HARP satisfies almost surely.
Crucially, this guarantee holds even when the predictions are inaccurate or when the data is not i.i.d. The full proof is provided in Appendix B.2.
For the proof, we define the filtration to contain the fixed design objects, all complete trajectories in previous groups, and all random coins used in those groups. For a fixed candidate, define its predictable second-moment average
The average is random but predictable. We assume an upper bound that is deterministic conditional on the fixed reference set and holds almost surely for every retained candidate. This is a population envelope, rather than an estimated sample variance.
Theorem 2 (LPB PAC bound). Assuming the calibration and test data are i.i.d., suppose almost surely for every candidate . Set . For any satisfying
the LPB chosen by (3) satisfies (2).
With probability at least , the selected LPB has population miscoverage at most , with dependent acquisition entering the correction only through . See Appendix B.4 for the proof. Notice that the coverage guarantee holds despite the dependence between the censoring times . HARP inherently violates independence across samples through both the pivotal selection and the ledger.
UPBs require a separate argument. The UPB estimator updates its predictions at every reached prefix:
Here predicts the finite-bound loss. We replace it with the true loss upon resolution and keep it fixed thereafter. The indicator denotes whether turn is reached, and accounts for commitment, continuation, and the insured-depth correction when used. Since the prediction increments can be signed, this estimator requires a different argument from the nonnegative LPB product bound.
Theorem 3 (UPB PAC bound for signed updates). Assuming the calibration and test data are i.i.d., use the depth/propensity and prediction-path construction of Appendix D. Suppose the effective reach weights are nonincreasing along each prefix (equivalently, their inverses are nondecreasing) and on every prefix that can contribute, with W fixed conditional on the reference. Then the UPB suffix-envelope selector with an infinite fallback satisfies (2) for UPB miscoverage with
Acquisition enters this correction only through W. Summation by parts bounds each sample contribution in , and conditioning on sample-local counterfactual continuations makes it affine in the commitment indicator. We apply the two pivotal cylinder inequalities to positive and negative coefficients separately, then use Cauchy–Schwarz to compare exponential moments with independent sample marginals at a factor-of-two cost. Combining these conditional bounds across groups handles reflow. Appendix D.4 proves the result and a variance-sensitive version. Small propensities can still make the range-only bound vacuous.
4 Experiments
We evaluate HARP using the same datasets and setup as in [4]: toxicity, red teaming with Qwen and Llama Guard judges, retrieval-grounded hallucination, and AutoIF instruction following. Each setup uses Qwen 2.5 14B, Llama 3.1 8B, Phi-4 Mini, and Gemma 3 4B as target models. We use a survival model pre-trained on 4000 independent samples to predict event time through M = 200. We remark that the budget constraint is for the calibration step only; the training phase has a separate budget.
Protocol and budget choice. We fix one target budget per dataset and task. For LPBs, we follow the configuration of Feldman and Romano [4] and set target budget units per sample for the toxicity data and for other datasets. For constructing UPBs and estimating metrics, we set throughout. Appendix F provides the full evaluation protocol.
Each experiment is repeated twenty times for random splits of calibration (2000) and test samples (1000). HARP uses 100 reference prompts for which no budget is consumed, and the budget is allocated over the remaining 1,900. For HARP, we set , , and . For DAPRO, we use 25 data points for learning an optimized allocation policy and a different 25 samples for the CRC calibration, as in [4]. We compare HARP-C and HARP-D with and without depth, then choose one variant per task using coverage error and bound size for predictive bounds, and normalized estimation MSE for metrics (Appendix F.4). The resulting choices are HARP-D (+depth) for LPBs, HARP-D (+depth) for UPBs, and HARP-D (no depth) for metrics, applied to every dataset and target. Full comparison of the four variants is given in Appendix F.6.


Figure 1: Toxicity LPBs. Coverage comparison: absolute coverage deviation and paid turns per parent prompt, all four target models, 90% coverage, turns per sample, twenty runs. HARP-D (+depth); chosen once for the LPB task by the task-level criterion in Appendix F.4. Uncalibrated uses raw quantiles and has no cost box. The dashed red line marks the budget.
Predictive bounds. On toxicity (Figure 1), DAPRO and HARP attain mean absolute coverage deviations of 1.08 and 1.05 percentage points (pp), averaged across four targets. For Qwen 2.5 on AutoIF (Figure 2), DAPRO has smaller deviations: 1.025 versus 1.245 pp for LPBs and 1.160 versus 1.225 pp for UPBs. We remark that HARP cannot obtain performance substantially better than DAPRO for LPB construction tasks, as the results in [4] show that DAPRO performs almost as well as an oracle alternative that has infinite budget on these tasks.
Population metrics. We estimate the marginal event rate for the red teaming data with Llama Guard as a judge and report the performance of the methods in Figure 3. While both calibration methods recover the correct metric in expectation, HARP achieves 60.65% lower variance across the four target models.
Budget. The mean budget utilized, i.e., consumed budget divided by available budget, by HARP for LPB, UPB, and metrics is 94.51%, 95.70%, and 97.03% compared to 91.58%, 69.14%, and 82.80% of DAPRO. HARP never exceeds the target budget across all experiments, while DAPRO's overrun frequencies are 13.00%, 3.00%, and 12.75%, respectively. This is not a surprise, as Theorem 1 guarantees a deterministic budget control of HARP, while DAPRO provides only an expected budget guarantee.

Figure 2: AutoIF LPBs and UPBs, Qwen 2.5 14B. Coverage deviation (left) and budget used per sample (right), over twenty runs. Target coverage: 90% for LPB and 80% for UPB; target budgets: 10 and 20 turns per sample, respectively (red dashed marks). HARP uses D with depth for both bounds, selected by the criterion in Appendix F.4. Uncalibrated has no acquisition-cost box.


Figure 3: Red-team event rates, Llama Guard judge. Estimates and across-seed variances, all four targets, turns per sample, twenty runs. HARP-D (no depth); chosen once for metric estimation by the task-level criterion in Appendix F.4. Red marks denote benchmark-cohort means. Acquired methods use the same estimator.
5 Discussion
We introduced HARP for multi-turn allocation and calibration under hard budget constraints. Unlike DAPRO [4], HARP does not require a policy-learning phase or a CRC budget-calibration step. Instead, it couples the censoring times of different samples. Despite this dependence, we show that the predictive bounds and estimated metrics of HARP satisfy finite-sample guarantees. Our experiments support our theoretical claims and show that HARP utilizes the budget effectively and yields estimates that have a low variance.
We remark that our guarantees require that the calibration and test data are i.i.d. with correct audit labels; in practice, labels may be noisy or partially missing, motivating extensions of HARP that are robust to such corruptions [16–19]. Furthermore, HARP constructs bounds for a single event time. In many applications, it is necessary to jointly evaluate the safety of modern AI systems such as agents, which calls for developing bounds for multiple event times [20]. Additionally, under smaller budgets, many event times may be censored. Model-generated or synthetic outcomes could complement censored events [21–24]. Finally, HARP requires a minimal total budget .
Based on our experiments, we recommend HARP-D with depth for constructing predictive bounds and HARP-D without depth for estimating metrics. Depth reduces the median LPB coverage variance but increases the variance of the metric estimates (see Appendix F.6).
Acknowledgments
Y. R. and S. F. were supported by the European Union (ERC, SafetyBounds, 101163414). 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. Y.R. thanks the Career Advancement Fellowship, Technion.
References
[1] Yu Gui, Rohan Hore, Zhimei Ren, and Rina Foygel Barber. Conformalized survival analysis with adaptive cut-offs. Biometrika, 111(2):459–477, 2024. doi: 10.1093/biomet/asad076.
[2] Hen Davidov, Shai Feldman, Gil Shamai, Ron Kimmel, and Yaniv Romano. Conformalized Survival Analysis for General Right-Censored Data. In International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=JQtuCumAFD.
[3] Hen Davidov, Shai Feldman, Gilad Freidkin, and Yaniv Romano. Calibrated predictive lower bounds on time-to-unsafe-sampling in LLMs. In The 29th International Conference on Artificial Intelligence and Statistics, 2026.
[4] Shai Feldman and Yaniv Romano. How many iterations to jailbreak? dynamic budget allocation for multi-turn llm evaluation. arXiv preprint arXiv:2605.06605, 2026.
[5] Khurram Yamin, Edward Kennedy, and Bryan Wilder. Dependent randomized rounding for budget constrained experimental design. In Silvia Chiappa and Sara Magliacane, editors, Proceedings of the Forty-first Conference on Uncertainty in Artificial Intelligence, volume 286 of Proceedings of Machine Learning Research, pages 4681–4700. PMLR, 21–25 Jul 2025.
[6] William G Madow and Lillian H Madow. On the theory of systematic sampling, i. The Annals of Mathematical Statistics, 15(1):1–24, 1944.
[7] Jean-Claude Deville and Yves Tillé. Efficient balanced sampling: the cube method. Biometrika, 91(4):893–912, 2004.
[8] Rajiv Gandhi, Samir Khuller, Srinivasan Parthasarathy, and Aravind Srinivasan. Dependent rounding and its applications to approximation algorithms. Journal of the ACM (JACM), 53(3):324–360, 2006.
[9] Roger Koenker and Gilbert Bassett. Regression quantiles. Econometrica, 46(1):33–50, 1978. ISSN 00129682, 14680262. URL http://www.jstor.org/stable/1913643.
[10] Youngseog Chung, Willie Neiswanger, Ian Char, and Jeff Schneider. Beyond pinball loss: Quantile methods for calibrated uncertainty quantification. arXiv preprint arXiv:2011.09588, 2020.
[11] Shai Feldman, Stephen Bates, and Yaniv Romano. Improving conditional coverage via orthogonal quantile regression. Advances in neural information processing systems, 34:2060–2071, 2021.
[12] Vladimir Vovk, Alexander Gammerman, and Glenn Shafer. Algorithmic Learning in a Random World, volume 29. Springer, 2005. doi: 10.1007/b106715.
[13] Daniel G. Horvitz and Donovan J. Thompson. A generalization of sampling without replacement from a finite universe. Journal of the American Statistical Association, 47(260):663–685, 1952.
[14] Anastasios Nikolas Angelopoulos, Stephen Bates, Adam Fisch, Lihua Lei, and Tal Schuster. Conformal risk control. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=33XGfHLtZg.
[15] Jarosław Byrka, Thomas Pensyl, Bartosz Rybicki, Aravind Srinivasan, and Khoa Trinh. An improved approximation for k-median and positive correlation in budgeted optimization. ACM Transactions on Algorithms (TALG), 13(2):1–31, 2017.
[16] Bat-Sheva Einbinder, Shai Feldman, Stephen Bates, Anastasios N Angelopoulos, Asaf Gendler, and Yaniv Romano. Label noise robustness of conformal prediction. Journal of Machine Learning Research, 25(328): 1–66, 2024.
[17] Coby Penso and Jacob Goldberger. A conformal prediction score that is robust to label noise. arXiv preprint arXiv:2405.02648, 2024.
[18] Shai Feldman and Yaniv Romano. Robust conformal prediction using privileged information. Advances in Neural Information Processing Systems, 37:117813–117852, 2024.
[19] Shai Feldman, Stephen Bates, and Yaniv Romano. Conformal prediction with corrupted labels: Uncertain imputation and robust re-weighting. In International Conference on Learning Representations, volume 2026, pages 30901–30942, 2026.
[20] Shai Feldman, Stephen Bates, and Yaniv Romano. Calibrated multiple-output quantile regression with representation learning. Journal of Machine Learning Research, 24(24):1–48, 2023.
[21] Anastasios N Angelopoulos, Stephen Bates, Clara Fannjiang, Michael I Jordan, and Tijana Zrnic. Prediction-powered inference. Science, 382(6671):669–674, 2023.
[22] Anastasios N Angelopoulos, John C Duchi, and Tijana Zrnic. Ppi++: Efficient prediction-powered inference. arXiv preprint arXiv:2311.01453, 2023.
[23] Meshi Bashari, Yonghoon Lee, Roy Maor Lotan, Edgar Dobriban, and Yaniv Romano. General synthetic-powered inference. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=sxLncu2Fhx.
[24] Meshi Bashari, Roy Maor Lotan, Yonghoon Lee, Edgar Dobriban, and Yaniv Romano. Synthetic-powered predictive inference. Advances in Neural Information Processing Systems, 38:117704–117764, 2026.
[25] Samuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi, and Noah A Smith. RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models. In Findings of the Association for Computational Linguistics: EMNLP, pages 3356–3369, 2020.
[26] Deep Ganguli, Liane Lovitt, Jackson Kernion, Amanda Askell, Yuntao Bai, Saurav Kadavath, Ben Mann, Ethan Perez, Nicholas Schiefer, Kamal Ndousse, et al. Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned. arXiv preprint arXiv:2209.07858, 2022.
[27] Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, Krithika Iyer, Yuning Mao, Michael Tontchev, Qing Hu, Brian Fuller, Davide Testuggine, et al. Llama guard: Llm-based input-output safeguard for human-ai conversations. arXiv preprint arXiv:2312.06674, 2023.
[28] Pranav Rajpurkar, Robin Jia, and Percy Liang. Know what you don’t know: Unanswerable questions for SQuAD. In Iryna Gurevych and Yusuke Miyao, editors, Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pages 784–789, Melbourne, Australia, July 2018. Association for Computational Linguistics.
[29] Guanting Dong, Keming Lu, Chengpeng Li, Tingyu Xia, Bowen Yu, Chang Zhou, and Jingren Zhou. Self-play with execution feedback: Improving instruction-following capabilities of large language models. In The Thirteenth International Conference on Learning Representations, 2025.
[30] Patrick Chao, Alexander Robey, Edgar Dobriban, Hamed Hassani, George J Pappas, and Eric Wong. Jailbreaking black box large language models in twenty queries. In 2025 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML), pages 23–42. IEEE, 2025.
[31] Liang Wang, Nan Yang, Xiaolong Huang, Linjun Yang, Rangan Majumder, and Furu Wei. Multilingual e5 text embeddings: A technical report. arXiv preprint arXiv:2402.05672, 2024.
A Additional Related Work
Inverse-probability estimation for unequal-probability sampling is classical [13]. Calibrated event-time prediction under censoring also predates this work: for example, Gui et al. [1] develop adaptive cut-offs for conformalized survival analysis. These results motivate controlling the resolution event and candidate family. Model-assisted correction has a substantial history as well, with prediction-powered inference providing a recent general framework for combining predictions and observed outcomes [21]. We use the sequential augmented estimator from [4].
Yamin et al. [5] study experimental assignment with a fixed treatment count. Their dependent-rounding construction preserves first-order probabilities and supports unbiasedness, variance comparisons under specified conditions, and asymptotic inference. The distinction from our setting is therefore the constraint and subsequent inference problem. HARP reserves heterogeneous maximum trajectory lengths, incurs random event-stopped costs, updates later policies from released resources, and calibrates a selected nested family of predictive bounds. We account for these features through the reservation invariant and predictable-group analysis below.
The weighted pairwise rounding properties we use are established in the budgeted-rounding literature, including Byrka et al. [15]. We provide a self-contained proof to specify the properties needed for calibration. In particular, the proof uses cylinder inequalities for products of selected or unselected coordinates. Our analysis applies these inequalities within a sequential ledger, together with sample-local continuation and subsequent predictive calibration.
DAPRO [4] is our direct baseline. Its history-dependent score, inverse-probability correction, and augmented UPB construction remain relevant to our setting. HARP additionally connects worst-case reservations to realized costs and justifies inference under the resulting dependence.
B Complete Budget and LPB Proofs
B.1 Weighted pivotal rounding
Fix a group, positive costs and starting probabilities . Coordinates initially at zero or one need no update. At each step, choose two fractional coordinates and set
Draw with probability and otherwise, and replace by . At least one coordinate becomes integral at each step. If one fractional coordinate remains, round it by a Bernoulli draw with its current value as success probability. Denote the resulting vector by .
Lemma 1 (Properties of the weighted pivotal rounding). Conditional on the input group, weighted pivotal rounding satisfies
In particular, for fixed ,
Proof. Each pairwise step has , so every coordinate is a martingale and the weighted sum is unchanged. The final Bernoulli step changes the weighted sum by at most . This proves (17).
For a fixed subset , consider . If neither updated coordinate is in , the product does not change. If exactly one is in , its conditional expectation is unchanged. If both are in , their product changes by a linear term in minus . Multiplication by the other nonnegative coordinates preserves the nonpositive conditional drift. The same calculation for gives a nonpositive quadratic term. Both subset products are therefore supermartingales until the last fractional coordinate. That final step is linear in its single coordinate and preserves their conditional means. This proves (18) without requiring any independence of the output coordinates.
Finally, write and expand the product. Every coefficient in this expansion is nonnegative. Applying the second inequality in (18) term by term proves (19). Zero-cost samples can be set to one outside the pivot operation; they do not affect the cost bound or these inequalities.
B.2 The pathwise ledger invariant
Proof of Theorem 1. At the beginning of the first group, feasibility gives . Suppose that before group ,
Then , and in particular . Summing the cap in (8) over the positive-cost samples gives
Lemma 1 implies that the selected horizons cost at most . Each selected sample executes no more than turns. Event stopping and D's continuation stopping can only lower that cost. Thus and
This is the invariant for the next group. At it gives , proving . All inequalities are pointwise. Randomized depth is covered by conditioning on its chosen horizons, all of which remain in .
Lemma 2 (Positive reach). Under the same conditions, for every positive-cost sample.
Proof. The cap before clipping at one is at least . The proposal is at least , so their minimum with one is at least . C introduces no further thinning. D has at most continuation factors, each at least . Free samples have probability one.
The specified continuation rule admits a stronger bound when . Suppose for every group and the predicted remaining cost lies in . The model probabilities give , hence . Equation (10) implies , whether is above or below the previous reach. Induction therefore yields
The interpolation in Appendix C.1 remains within the reference multiplier grid, whose largest value therefore supplies . The reported configuration uses and . For , this gives . Although considerably stronger than , it remains too small for informative coarse uniform PAC corrections. For arbitrary continuations with only , the product-of-floors bound still applies.
B.3 A filtration that permits reflow
Condition on the training data, fitted model, independent reference design, and independent group permutation. After this conditioning, write the iid full working trajectories as , with and measurable functions of . Let contain those fixed design objects, all complete trajectories in previous groups, and all random coins used in those groups. The observed past is a sub- -field, so the actual ledger and are -measurable. Complete trajectories in group remain independent of and of each other.
Within the group, is a function of , in fact only of the initially available portion of . Fix independent counterfactual continuation streams for each sample, whether or not that sample is ultimately committed. The stream and its own trajectory determine , the indicator that continuation would resolve the sample if committed, and the product . For set . With and ,
The expectation here averages over pivot and continuation randomization; it does not imply independence of the . Each is a counterfactual product along that sample's full history, rather than the probability of reaching only a prematurely censored prefix. In practice, we need the full product only for samples with .
B.4 Concentration and selection for LPBs
For a fixed , abbreviate and . Conditional on ,
For any , condition first on the current full trajectories and their counterfactual continuation streams. Apply (19) with . Then integrate the independent continuation streams and current trajectories. Sample locality permits this final factorization, giving
For completeness, if a centered random variable has variance , Taylor's formula with integral remainder implies
Indeed, the remainder divided by is , at most its value at . For , the series bound therefore yields
Apply this with . By (24), the process
is a nonnegative supermartingale in the enlarged group filtration. Adaptive changes of the ledger are allowed because the group bound is conditional on its current past.
If almost surely, the compensator sum is at most . The exponential Markov inequality and optimization over give, for ,
The usual zero-variance case follows by a limit or directly from the deterministic centered sum. This is a lower-tail bound for a nonnegative HT estimator; no bounded upper weight is needed beyond existence of the stated second moments.
Proof of Theorem 2. If no retained candidate has population risk greater than , the assertion is automatic. Otherwise let be the first such candidate. It is fixed after conditioning on the reference and model, even though it is unknown to the procedure. Since the population losses are nested, implies . The inclusive-prefix rule then forces , and consequently
Use the exponential argument above at this single candidate, bounding its variance compensator by since . The resulting upper bound is , at most under (13). If , the assertion is already trivial. Integrating over the conditioned reference/model preserves the probability bound, including when the declared envelope and are functions of that reference.
B.5 Restricted moment envelopes and jumps
Order the retained finite grid as . For , define
Suppose bounds (12) almost surely at every candidate in . Theorem 2 remains valid if (13) uses in place of . Its proof is identical because the predecessor of is safe and hence .
An envelope restricted to would miss the crossing candidate at a risk jump and would not justify this proof. Such jumps arise naturally with discrete event times and quantile grids.
B.6 Expected unused budget
We next quantify the effect of conditional pacing on unused budget.
Proposition 1 (Pacing-defect identity). Let denote actual group spend and define the predictable defect
For ,
In particular, exact conditional pacing in every nonfinal group implies . For the bound is immediate.
Proof. Put . From ,
Taking expectations and iterating for telescopes the coefficient of to . The coefficient of is . This proves the equality. Nonnegative spend gives , and gives the last inequality.
Recycling savings does not ensure that the reference-based eliminates the pacing defect. Commitment caps, inaccurate cost forecasts, continuation thinning, or a shortage of useful remaining turns can all affect realized spend. For example, suppose all and . Any policy that stops at an event can spend at most turns on these samples, regardless of its ledger accuracy. This rules out an unconditional utilization guarantee.
C Reference Planning and Complete Algorithms
C.1 The predictions from the reference set
For LPBs, choose the initial design index closest to the target risk:
We resolve ties using the first grid index. Once LPB depth is chosen, we replace the design index by in grid order. For constructing LPBs, we set .
We construct the reference set using only initial PMFs. For C at multiplier , the expected surrogate cost is the mean of . For D, we condition each initial PMF on survival to the current prefix, without accessing future reference histories. We apply the continuation rule along this synthetic survival-conditioned path and sum the predicted reached-turn costs:
This expression includes commitment and the first continuation draw. It forecasts the uncapped proposal. We use 192 logarithmically spaced multipliers from to , make the cost curve nonincreasing, and interpolate against reversed cost to match . Targets outside the tabulated cost range use the corresponding endpoint multiplier. Both reference model error and the subsequent commitment cap can therefore prevent exact conditional pacing.
For a working LPB sample that has survived through , the design risk in (10) is
We predict remaining cost as . Nonpositive remaining lengths have zero cost, and the policy is called only for required positive turns. We safeguard against denominators and square-root inputs by adding .
Algorithm 2 Weighted pivotal commitments (positive-cost samples)
Require: Probabilities , positive costs
1: Set .
2: while at least two coordinates are fractional do
3: Pick two fractional coordinates ; compute by (16).
4: Draw with probability ), otherwise .
5: Set , .
6: end while
7: if one fractional coordinate remains then
8: Set Bernoulli( ).
9: end if
10: return .
C.2 The LPB depth planner
Let the grid indices run from 0 to J, with 0 the zero bound. From the initial reference distribution, compute nondecreasing curves
Use , , , , and . Define the surrogate width and attainable value by
Among , choose the first minimizer
Let , with zero allowed, and set . The retained endpoint is . The quantities and are only planning surrogates: the actual resolution probability is determined by the ledger, pivot, and, for D, continuation.
We implement continuation with independent random uniforms; C can omit draws with probability one. An unresolved sample contributes zero to the LPB estimator. For sequential AHT, each reached turn uses its own recorded cumulative probability, including commitment at the first turn. Although a replay cache may store full histories, the policy must not access future predictions.
D Upper Predictive Bounds
D.1 Candidate family, acquisition, and selection
For each finite candidate , define . When , we set deterministically. We represent infinity by 201 when ; this value is not an observed event on turn 201. We
Algorithm 3 HARP-C/D execution with exact acquisition records
Require: Working initial features, fixed reference set, horizons , cap B 1: Independently permute samples; form groups of size at most m; verify (4). 2: Set L = B and initialize all observed-turn counts to zero. 3: for do 4: Compute , from (5); choose reference multiplier . 5: Compute by (8); set for . 6: Round positive-cost samples with Algorithm 2; set . 7: for each sample do 8: Set ; record commitment and horizon; if , mark resolved. 9: if and then 10: for until an event or a continuation stop do 11: For C set ; for D use (10) from the acquired prefix. 12: Record and update . 13: Draw continuation; if it fails, stop this sample without paying for turn t. 14: Otherwise acquire turn t, increment the sample's count and , and update history. 15: If the event occurs or , mark resolved and store . 16: end for 17: end if 18: end for 19: Set ; retain the records needed for the chosen estimator. 20: end for 21: return Acquired prefixes, commitment/continuation probabilities, resolution flags, total spend.
retain the grid through , together with the last, all-infinite candidate, excluding finite candidates beyond the acquisition prior. Every retained finite candidate therefore satisfies .
We choose the reference anchor as the first candidate for which the entire subsequent reference-predicted coverage suffix reaches the target . If no candidate satisfies this condition, we use . Unlike the LPB closest-risk anchor, this rule uses a coverage suffix. The design score also changes: we predict survival beyond from the reference and observed history, rather than an event strictly before an LPB endpoint. An infinite anchor has zero initial risk. We then apply the same smoothing and cost-based continuation formula.
Without depth, each sample has acquisition horizon . For HARP with depth version, let , clipped to , and draw independently
We use as both commitment cost and horizon in Algorithm 3, and form the reference cost curve from the corresponding mixture of full and shallow forecasts. This reduces late acquisition while retaining every finite target and the reported UPB family. Define the depth-tail function
The commitment and continuation probabilities can depend on the sampled . Conditional on that depth and the complete trajectory, write their product through turn as when . Beyond , extend the product positively, for example, with continuation factors of one; those terms are never observed. The effective weighting quantity is
Since can differ between the two horizons, this quantity is generally not the unconditional marginal reach probability. Validity instead follows from the weighting identity below. To represent , we multiply the recorded conditional probability at turn by , using .
For a finite candidate, we initialize . If an event occurs by , we set the post-event prediction to zero; if the sample survives through , we set it to one. Before resolution, we use the pre-trained model at the reached history, and after resolution, we keep the value fixed. For an infinite candidate, all predictions and the loss remain zero. We apply (14) until resolution or acquisition stopping and average sample contributions to obtain .
Although population miscoverage decreases with , the signed empirical curve need not be decreasing. We therefore select the smallest candidate satisfying
where the maximum includes the retained finite candidates and the infinite fallback. Equivalently, we require the minimum empirical coverage over the suffix to be at least . The selector uses this ordering, rather than an isolated crossing of the raw empirical curve.
D.2 Unbiasedness with depth-dependent acquisition
Lemma 3 (Sequential weighting identity). Fix the past groups and full current trajectories. Assume the independent depth draw has a positive tail on each required prefix, and the model prediction path is a causal function of the trajectory and fixed design, not of the sampled depth. Then the estimator in (14), with (36), satisfies
Proof. Consider a turn where a prediction increment can be nonzero. Conditional on all current depths and full trajectories, the marginal commitment property and the independent continuation stream give
After division by and averaging over the independent depth draw, the expectation is one. Depth-dependent commitment probabilities cancel inside that expectation. The prediction increment is fixed by the trajectory and is independent of the depth draw, so every term has expectation . Their sum telescopes from to the terminal value . Later increments are zero. Infinite candidates are deterministically zero. This proof requires correct design probabilities and correct resolution.
For the superpopulation theorem, we reveal the current group’s independent depth coins only when processing that group in the proof filtration. Practically, these coin tosses can be pre-sampled without requiring the proof to condition on all future draws.
D.3 A valid range bound for signed updates
Lemma 4 (Range of a sequential augmented contribution). Let and . Then
The same interval contains when J = 0.
Proof. For , summation by parts gives
All coefficients except the last are nonpositive and sum to . Their minimum contribution is , while the positive coefficient contributes at most . Hence the expression lies in . This argument is sharper than separately bounding all increments by .
Every observed sample consists of a prefix. Along that prefix, (36) is nonincreasing because both and the conditional-depth reach are nonincreasing, so the range lemma applies to each acquired sample. A sufficient uniform choice is
with when depth is not used. For the specified D policy, (21) improves the sufficient choice to .
D.4 Signed pivotal concentration and adaptive reflow
To analyze signed updates, we use the structure of the UPB estimator rather than treating each group as an arbitrary bounded sum. Fix a candidate and the group past. For each sample, introduce a latent variable containing its complete trajectory, depth draw, and independent counterfactual continuation stream. These variables are conditionally independent across samples. The commitment probabilities and horizons are functions of and the past, computed using only the information available to the procedure. We can then write
where sums the weighted prediction increments that would be acquired if sample i were committed. The coefficient may have either sign, but is independent of the pivot coins conditional on and the past. This representation applies to C and D because within-sample stopping never depends on another current sample's history and the group multiplier is fixed. It also applies to insured depth: the draw belongs to and does not change the model prediction path.
Lemma 5 (A signed exponential comparison). Under this sample-local representation and the two cylinder inequalities of Lemma 1, for every real s for which the marginal moments exist,
Proof. Condition on every and the group past, so all coefficients and probabilities are fixed. For , split indices into and . Cauchy–Schwarz gives
The first expectation is bounded by using the down-cylinder expansion in (19). In the second, each factor is , with a nonnegative coefficient. Expansion and the up-cylinder inequality give the same product form for . Including the fixed baselines therefore bounds the full conditional expectation by
Each bracket is a function of its own and the past. Conditional independence of the factors the expectation of their product. Jensen’s inequality for the square root bounds each factor by the square root of its expectation. That expectation is the actual marginal , because the pivot preserves the conditional marginal . This proves (39). For , interchange the two sign sets.
Proof of Theorem 3. By Lemma 3, for a fixed candidate. Its range has length by Lemma 4. Conditional Hoeffding's lemma gives ; this follows by bounding the exponential on the range interval by its endpoint chord and maximizing the centered two-point moment generating function. Apply (39) and bound each centered marginal mgf at to obtain
Iterated conditional expectations over the ledger filtration give . Exponential Markov with yields
Reverse the candidate order, starting at infinity. Population loss is now nondecreasing and (37) is an inclusive-prefix rule. Unsafe selection requires underestimating the fixed first population-unsafe candidate by more than . Apply (40) there and integrate over the independent reference, as in the LPB proof.
Corollary 1 (Variance-sensitive signed-UPB bound). Under the same assumptions, suppose a reference-measurable envelope satisfies, almost surely at every retained candidate,
Then (2) also holds for any correction satisfying
Proof. Since , the scaled one-sided Bernstein bound (25) applies. Combining it with (39) gives a conditional group mgf bounded by
The sum of marginal conditional variances over groups is at most . The exponential-supermartingale argument used for LPBs, now with variance factor two and scale , yields a lower-tail bound . At the first unsafe candidate, replace by and solve the resulting quadratic inequality to obtain (41).
We may take the minimum of the range-only and variance-sensitive corrections, since each bounds the same fixed-candidate failure event deterministically conditional on the reference. Treating each group as an arbitrary dependent block would instead give . That argument requires only conditional unbiasedness and the sample range. The sharper signed comparison also requires the sample-local affine representation and both cylinder inequalities, which hold for HARP.
The signed comparison does not imply negative covariance between the . For example, selecting exactly one of two equally likely items and multiplying the indicators by opposite signed coefficients makes contribution covariance positive, even though selection covariance is negative. The resulting variance is twice the sum of independent marginal variances. Thus, reusing the LPB product argument for signed updates without an additional cost would be incorrect. An independent-sample sequential-AHT variance diagnostic may provide marginal terms. Both valid UPB bounds can still be vacuous with small propensities.
Algorithm 4 UPB construction under the HARP acquisition design
Require: UPB quantiles including infinity, target , reference initial PMFs 1: Retain finite candidates through the prior and the all-infinite fallback. 2: Select reference anchor by the predicted coverage suffix rule; set full horizons . 3: If using depth, draw by (34); otherwise set , . 4: Build the reference cost set and run Algorithm 3 with horizons . 5: for each working sample and retained finite candidate do 6: Start from ; for each reached required turn add . 7: Impose loss zero after an event or one on survival to the finite bound; freeze thereafter. 8: end for 9: Set infinite-candidate contributions to zero; average over all working samples. 10: return The smallest candidate satisfying (37).
E Population-Level Metric Estimation
Following DAPRO's evaluation setup, we consider full-horizon event probability and restricted mean event time:
For harmful events, these quantities describe failure probability and time to failure. In AutoIF, the event is successful completion, so the interpretation is reversed. Neither target depends on the selected LPB endpoint. The mean event time conditional on is a separate, third estimand.
For metric acquisition, we use design event and full horizon , retaining the same commitment and continuation rules for C and D. With depth, the LPB reference planner supplies a shallow horizon , with probability .25 of acquiring to . Applying the same correction as in (35) preserves the full-horizon target. The planner optimizes a surrogate for attainable LPB size, however, rather than metric variance.
Let indicate that an event at was observed and let be its effective reach weight. Ordinary unbiased estimators are
We assign zero contribution to unobserved events, so no unknown event propensity is needed for them. The complement form for also avoids requiring a fully observed event-free trajectory, using the identity . We use this same terminal weighted construction for restricted mean under both acquired methods.
For event rate, both acquired methods use sequential augmentation. In (14), we let predict , set it to one upon observing an event and to zero upon event-free survival through , and average . The depth-averaged telescoping proof in Lemma 3 applies unchanged. We apply this estimator to both acquired methods.
For a fixed finite population, the weighting identity gives design unbiasedness for the working-sample mean, conditional on the complete benchmark and reference split. Averaging over a uniform reference split recovers the parent-cohort mean. With iid working trajectories, it also gives population unbiasedness for (42); the budget theorem applies in either setting. For a bounded sequential augmented metric, the proof of Theorem 3 gives a two-sided population bound with replacing , without a candidate-selection argument. A normalized metric in [0, 1] uses the same range lemma.
Algorithm 5 Population metrics from one HARP acquisition
1: Freeze the full target horizon and an independent initial-prediction reference design. 2: Use ; optionally draw insured shallow/full horizons with positive full-depth mass. 3: Run Algorithm 3; retain reached prefixes and their effective weights. 4: Estimate the event probability by the sequential event-target version of (14). 5: Estimate restricted mean by (43).
For conditional event time, form the weighted ratio
when its denominator is positive. Although both numerator and denominator are unbiased totals, their ratio is not generally unbiased. We report a zero denominator as undefined, rather than assigning a value of zero.
F Experimental Details
F.1 Benchmarks, event definitions, and data generation
We use the datasets, generated conversations, event labels, and prediction caches from [4] without modification. The five settings are RealToxicityPrompts toxicity [25], Anthropic red teaming [26] with a Qwen judge or Llama Guard [27], SQuAD-based retrieval-grounded hallucination [28], and AutoIF instruction following [29]. In safety settings, the event is the first response judged harmful or ungrounded; in AutoIF, it is the first response passing all executable checks. The two red-team judges give distinct evaluation configurations. We use one-based event times, with 201 representing no event within the paid-turn horizon.
Qwen 2.5 14B is the attacker/helper in the inherited PAIR-style conversation setup [30]; Section 4 lists the four targets. We retain DAPRO's generation hyperparameters, judge parsing, and retry rules without retuning them for HARP. Each configuration has 10,000 initial prompts, split into 4,000 for model training and 6,000 for acquisition and calibration evaluation. Conversation generation and model fitting are unchanged.
F.2 Prediction model
We embed text histories with Multilingual-E5-large [31]. The model projects these embeddings to 258 dimensions with ReLU and dropout .2, then applies three pre-normalized Transformer layers with six attention heads, feedforward width 1,032, GELU, and a causal attention mask. A multilayer perceptron maps the concatenated representations to survival logits. The conditional output is an PMF grid. Its final outcome class represents no event through , and its support is restricted to times after the observed prefix.
Training uses Adam with learning rate , weight decay .001, and batch size 64 for at most 500 epochs. Ten percent of the training set is reserved for validation, with early-stopping patience of 50. We fit a time-dependent temperature using L-BFGS on the validation survival negative log-likelihood. During HARP runs, row of the conditional PMF cache becomes available only after acquiring the first interactions. Reference planning uses row zero alone, conditioning this initial PMF on survival to construct surrogate later predictions. These proxies might not be the same as the model's predictions after observing a real future response.
Table 1: Target budgets in paid interaction turns per parent calibration sample. Each setting uses the same budget for all four target models; both acquired methods include their planning and control costs.
| Dataset/judge | LPB | UPB | Metrics |
|---|---|---|---|
| Toxicity | 20 | 20 | 20 |
| Red team, Qwen | 10 | 20 | 20 |
| Red team, Llama Guard | 10 | 20 | 20 |
| Hallucination | 10 | 20 | 20 |
| AutoIF | 10 | 20 | 20 |
F.3 Acquisition settings and comparison accounting
We use the LPB budgets from the corresponding DAPRO comparison. For full-horizon metrics and UPBs, we use twenty turns per prompt throughout, retaining access to late outcomes while staying well below full-observation cost. Budget choice does not depend on the selected HARP variant. With , , , and , the reserve is turns, or 7.98 per parent prompt, so both prescribed budgets are feasible. We use a continuation/proposal floor of .02, risk smoothing , and full-depth probability .25 for insured depth.
For DAPRO, we use the two-bin, current-hazard soft-prefix policy with global regularization .001 and sample-cost cap in the independent CRC controller. Its first stage has fifty paid samples: twenty-five for fitting the policy and twenty-five for CRC. HARP's independent reference set uses initial predictions, incurs no interaction cost, and is excluded from estimation. We normalize every cost by the same parent size; HARP's estimator uses working samples.
For LPBs, the grid contains zero, a 256-point logarithmic low tail below .001, and 1,000 logarithmically spaced points from .001 to , with prior .56. For UPBs, we use 3,001 equally spaced levels between zero and one, prior .98, and the semantic infinite fallback. We design acquisition separately for , , and coverage.
F.4 Choice of HARP variant
We compare HARP-C, HARP-C+depth, HARP-D, and HARP-D+depth using matched calibration/test splits. For each experimental configuration, we partition 6,000 nontraining prompts into two disjoint cohorts of 3,000 prompts and perform ten random splits within each cohort, each with 2,000 calibration prompts and 1,000 test prompts. Variant selection uses only the ten runs from the first cohort.
We select one variant per task across all datasets and target models. For LPBs and UPBs, we rank the variants within each configuration by their mean squared deviation from the target coverage, then average these ranks equally across configurations. Ties are resolved using bound size, favoring larger LPBs and smaller UPBs. For metric estimation, we apply the same ranking procedure to the average squared error of the event-rate and restricted-mean estimates, with restricted-mean error normalized by the evaluation horizon. This procedure selects HARP-D+depth for constructing LPBs and UPBs, and HARP-D without depth for estimating metrics. The displayed comparisons include all twenty runs, including the ten used for selection, and therefore provide descriptive comparisons rather than an independent held-out evaluation of the selected variant.
F.5 Statistics, figures, and provenance
Each boxplot contains twenty run-level values and shows the median, quartiles, 1.5-IQR whiskers, and all outliers. Variance bars use sample variance with denominator nineteen. We compute ratios within configurations before aggregation; a zero baseline variance gives no finite ratio. Bound comparisons report nominal-coverage deviation, size, and UPB infinity fraction. Metric errors use the full mean of the corresponding evaluation cohort. Raw estimate variance can include differences between cohort means.
Both acquired methods use sequential AHT for event rate and terminal HT for restricted mean. The metric grids show absolute event-rate error, variance, and estimates with the benchmark-cohort means. Uncalibrated uses raw initial predictions and has no acquisition-cost box. We display weighted estimates without clipping them to the target's natural range. Actual spend can differ across methods.
F.6 Completion and depth ablation
We restrict the method ablation to the four C/D and depth variants. Table 2 compares them over all twenty runs, without selecting a winner for each dataset. D uses a closed-form ratio of a model-based risk/cost target to accumulated reach, with a per-turn floor; it does not fit DAPRO's time/score-bin policy.
Table 2: Four-variant comparison over twenty runs. Entries are median within-configuration variance ratios to DAPRO: LPB/UPB coverage and the two population metrics. All four variants are retained to assess C/D and depth.
| Variant | LPB | UPB | Event rate | Restricted mean |
|---|---|---|---|---|
| HARP-C (no depth) | 1.935 | 0.622 | 0.632 | 0.466 |
| HARP-C (+depth) | 1.017 | 0.678 | 1.081 | 0.720 |
| HARP-D (no depth) | 1.410 | 0.615 | 0.671 | 0.457 |
| HARP-D (+depth) | 0.948 | 0.585 | 1.200 | 0.819 |
F.7 Interpreting the contribution of continuation and depth
Table 2 shows that depth reduces the median LPB coverage-variance ratio for both C (1.935 to 1.017) and D (1.410 to 0.948). For UPBs, it reduces D's ratio from 0.615 to 0.585 but increases C's from 0.622 to 0.678. D with depth has the smallest median coverage-variance ratio among the four variants for both bound tasks, consistent with its saved selection by coverage-MSE ranks.
For metrics, depth increases the event-rate and restricted-mean variance ratios under both C and D. In D, the ratios rise from 0.671 to 1.200 for event rate and from 0.457 to 0.819 for restricted mean. The task-level normalized-MSE criterion selects D without depth, whose mean rank is 1.45 versus C's 1.90. C nevertheless has the smaller median event-variance ratio, 0.632 versus 0.671, illustrating why event variance alone does not determine the two-metric choice. The LPB depth objective does not optimize metric MSE, and insured metric depth preserves the target at the cost of larger late-prefix weights. This provides a possible explanation for the observed tradeoff.
G All LPB Benchmark Comparisons
We show each dataset at its sole primary budget, with all four targets and twenty runs. The three rows display coverage and size, absolute coverage deviation and paid cost, and coverage and size variance, respectively. HARP-D (+depth); chosen once for the LPB task by the task-level criterion in Appendix F.4.





Figure 4: Toxicity LPBs. 90% coverage, turns per sample, twenty runs per target. HARP-D (+depth); chosen once for the LPB task by the task-level criterion in Appendix F.4. Black/red dashed lines denote coverage/budget. All methods use matched splits.



Figure 5: Red team, Qwen judge LPBs. 90% coverage, turns per sample, twenty runs per target. HARP-D (+depth); chosen once for the LPB task by the task-level criterion in Appendix F.4. Black/red dashed lines denote coverage/budget. All methods use matched splits.



Figure 6: Red team, Llama Guard LPBs. 90% coverage, turns per sample, twenty runs per target. HARP-D (+depth); chosen once for the LPB task by the task-level criterion in Appendix F.4. Black/red dashed lines denote coverage/budget. All methods use matched splits.



Figure 7: Hallucination LPBs. 90% coverage, turns per sample, twenty runs per target. HARP-D (+depth); chosen once for the LPB task by the task-level criterion in Appendix F.4. Black/red dashed lines denote coverage/budget. All methods use matched splits.



Figure 8: AutoIF LPBs. 90% coverage, turns per sample, twenty runs per target. HARP-D (+depth); chosen once for the LPB task by the task-level criterion in Appendix F.4. Black/red dashed lines denote coverage/budget. All methods use matched splits.
H All Population-Metric Benchmark Comparisons
For each dataset, we show one grid at , with all four targets and twenty runs. The rows display event-rate estimates and variance, restricted-mean estimates and variance, and paid cost and absolute event-rate error. Red dashed marks show the benchmark-cohort means; metric errors use the mean corresponding to each run. Both acquired methods use the same estimators. HARP-D (no depth); chosen once for metric estimation by the task-level criterion in Appendix F.4.
--- Reference means





Figure 9: Toxicity population metrics. Budget turns per sample, twenty runs per target. HARP-D (no depth); chosen once for metric estimation by the task-level criterion in Appendix F.4. The event is harmful/ungrounded in safety settings and successful completion for AutoIF; restricted mean is . Red cost lines mark the cap.
--- Reference means





Figure 10: Red team, Qwen judge population metrics. Budget turns per sample, twenty runs per target. HARP-D (no depth); chosen once for metric estimation by the task-level criterion in Appendix F.4. The event is harmful/ungrounded in safety settings and successful completion for AutoIF; restricted mean is . Red cost lines mark the cap.
--- Reference means





Figure 11: Red team, Llama Guard population metrics. Budget turns per sample, twenty runs per target. HARP-D (no depth); chosen once for metric estimation by the task-level criterion in Appendix F.4. The event is harmful/ungrounded in safety settings and successful completion for AutoIF; restricted mean is . Red cost lines mark the cap.
--- Reference means




Figure 12: Hallucination population metrics. Budget turns per sample, twenty runs per target. HARP-D (no depth); chosen once for metric estimation by the task-level criterion in Appendix F.4. The event is harmful/ungrounded in safety settings and successful completion for AutoIF; restricted mean is . Red cost lines mark the cap.
--- Reference means





Figure 13: AutoIF population metrics. Budget turns per sample, twenty runs per target. HARP-D (no depth); chosen once for metric estimation by the task-level criterion in Appendix F.4. The event is harmful/ungrounded in safety settings and successful completion for AutoIF; restricted mean is . Red cost lines mark the cap.