Interactive and Long-Horizon Task Evaluation › Reliability over repeated trials
Language AI HandbookAll chapters τ-bench compares the final database state with an annotated goal state. Its authors define pass^k as the probability that all k i.i.d. trials succeed on a given task, averaged across tasks. A single trajectory is one sample from a stochastic process with two sources of randomness. Model decoding varies unless you fix it (recorded decoding settings and seed where supported). The environment may vary even if decoding does not, because tools fail, latencies vary, and concurrent users change shared state. This means an interactive evaluation must be designed for repetition, not one-shot access.
For comparisons across stochastic runs, choose enough repeated trials to estimate the intended difference with useful precision. Report the task set and trial counts. A single result cannot quantify trial-to-trial variation.
For a batch of k trials, pass@k asks whether any trial succeeded, while pass^k asks whether all succeeded. Under a fixed independent per-trial success probability, the first is nondecreasing in k and the second is nonincreasing. Keep k fixed across comparisons, and state the task mix and reset procedure.
pass@k = 1 − (1 − p)^k under i.i.d. success probability p; it answers "can the agent solve the task at all given a few tries." pass^k = p^k answers "will the agent solve it every time."
where:
p: the per-trial success probability of the agent on the task, assumed constant and independent across trialsk: the number of independent trials run per task(1 − p)^k: the probability that allktrials fail, so1 − (1 − p)^kis the probability at least one succeedsp^k: the probability that allktrials succeed, the reliability floor
The first counts batches with any success. The second counts batches where every trial succeeds. Use the fixed trial budget and task mix when interpreting either metric.
The same-probability and independence assumptions matter. A discrepancy between an empirical batch rate and the formula can reflect dependence, task heterogeneity, changing conditions, or sampling error. Record the task, environment version, session reset, and model configuration so you can investigate the difference.
A subtlety specific to stateful evaluation: resetting the environment and agent session between trials removes two sources of state carryover. If two trials share a database or a filesystem, trial 2 begins where trial 1 ended, and pass@k no longer means what it appears to mean. Resetting the world is part of the harness, and forgetting it is one of the most common harness bugs. We return to harness reproducibility in the following chapter on evaluation harnesses.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!