Analyzing Probabilistic Methods for Evaluating Agent Capabilities

Axel Højmark, Govind Pimpale, Arjun Panickssery, Marius Hobbhahn, Jérémy Scheurer

TL;DR

Evaluating whether an AI agent can execute dangerous or complex tasks is difficult when success is rare. This paper analyzes two popular methods designed to estimate low-probability success rates—the Milestone method and the Expert Best-of-N method—showing that while both reduce sample variance, they introduce substantial bias and dramatically underestimate an agent's true capabilities.

What Problem Does This Paper Address?

Language model (LM) agents operate in multi-step loops: taking actions, running code, and interacting with external environments. In safety-critical evaluations (such as assessing risks related to cyberattacks, bioweapon acquisition, or autonomous replication), even a 1% chance of success might be unacceptable.

However, estimating rare success rates $P(T^S)$ via naive Monte Carlo sampling is prohibitively expensive because observing a single success requires on average $1/P(T^S)$ trials. To address this, prior work by Phuong et al. introduced two proxy estimation techniques:

  1. The Milestone Method: Decomposing a task into sequential checkpoints and multiplying conditional success probabilities.
  2. The Expert Best-of-$N$ Method: Having a human guide the agent by selecting promising completions from $N$ samples, then translating the expert's assistance into a success probability using information theory.

The authors investigate whether these two methods are mathematically sound and well-calibrated Monte Carlo estimators of an agent’s true independent capabilities.

Methods

The paper evaluates both approaches through the statistical framework of Monte Carlo estimation and Importance Sampling:

  • Milestone Analysis as Variance Reduction: The authors show theoretically (via a generalization of Bernoulli’s inequality) that multiplying independent milestone success estimates always reduces variance compared to end-to-end naive sampling: $$\text{Var}\left(\prod_{i=1}^n \hat{P}_{m_i, N}\right) \le \text{Var}(\hat{P}_{t, N})$$ In experiments, trajectories are resampled from successful prior milestone completions rather than relying solely on human-written "golden" checkpoints.

  • Expert Best-of-$N$ as Importance Sampling: Under importance sampling, the true expectation requires a reweighting factor $w(x) = p(x) / q(x)$. The Expert Best-of-$N$ method effectively sets this weight to: $$w(i) = \frac{1}{i(i + 1)}$$ where $i$ is the rank index of the chosen completion.

  • Grading Regimes: The authors compare two evaluation settings:

  • Idealized Grading: An end-to-end trial succeeds only if every milestone is submitted in the exact prescribed order.
  • Outcome-Based Grading: A trial succeeds whenever the final answer is correct, regardless of internal trajectory order.

Datasets

The authors evaluated models on 10 multi-step sequential tasks requiring bash terminal interactions, Python execution, and multi-step logic/math reasoning.

  • Most tasks were adapted from the GAIA benchmark (e.g., marathon_pace, secret_santa, food_sales, freon_volume).
  • Additional custom sequential logic tasks were included (e.g., agent_script, debugging_program, collatz_sequence, fibonacci_square, scavenger_hunt, and a multi-step baseline double_then_double).
  • Models tested: GPT-4o for harder tasks and GPT-3.5-turbo for simpler baselines.

Key Insights and Ideas

  • Milestones force an artificially narrow path: The milestone method implicitly assumes there is only one valid sequence of states. Even on sequential benchmark tasks, agents frequently discover alternative valid routes or solve subproblems out of order. Because milestone grading ignores alternative successful paths, it systematically underestimates true capability.
  • The intrinsic flaw of Expert Best-of-$N$: Even when the model generates the perfect completion as its very top choice ($i=1$), the method penalizes the run by $-\log_2(1 / (1 \cdot 2)) = 1\text{ bit}$ of expert guidance (a reweighting factor of $\le 0.5$).
  • The "Trivial Step" Paradox: If you append trivial steps to an easy task (e.g., having an agent simply execute print("hello world") after solving a coding puzzle), each step docks at least 1 bit of expert help. Consequently, an easy task with many steps can yield the exact same bit count as an extraordinarily difficult task, proving that no universal mapping exists between expert bits and real-world solve probabilities.

Key Results

  • Milestone Method Underestimation:
  • Under idealized grading, the milestone method was well-calibrated (9 of 10 tasks fell within the 97.5% confidence interval).
  • Under realistic outcome-based grading, the milestone method failed dramatically: 7 out of 10 tasks fell outside the 97.5% confidence interval, underestimating true success rates (e.g., a task with an outcome solve rate of 0.79 was estimated at only 0.39).
  • Expert Best-of-$N$ Failure: Estimates showed almost no correlation with true outcomes and produced severe underestimations across the board. Tasks with true solve rates of 0.76 to 0.96 were assigned probabilities between 0.002 and 0.138.

Limitations and Future Work

  • Limitations: The paper focuses on tasks designed to be strictly sequential (which in theory gave the milestone method the best possible chance to succeed); on open-ended or non-linear tasks (e.g., software engineering or research), milestone bias would be even more pronounced.
  • Future Directions: Rather than relying on rigid milestone decompositions or ad-hoc heuristic bit costs, the authors propose drawing from established rare-event simulation literature, including:
  • Subset Simulation using Markov Chain Monte Carlo (MCMC).
  • Weighted Ensemble Sampling, originally developed for rare molecular dynamics simulations.
  • Stochastic-process rare event sampling adapted for agentic trajectories.

Summary updated

BibTeX
@inproceedings{hjmark2024analyzing,
  author = {Axel Højmark and Govind Pimpale and Arjun Panickssery and Marius Hobbhahn and Jérémy Scheurer},
  title = {{Analyzing Probabilistic Methods for Evaluating Agent Capabilities}},
  booktitle = {SoLaR @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=mwTemAaHTk},
}
Figure