Manuscript Offprint

arXiv:2610.07362

Dynamic Budget Allocation for LLM Evaluation under Hard Resource Constraints

Shai Feldman, Yaniv Romano

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 1−α1 - \alpha. 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.

References (30)