Paper deep dive
Analyzing Probabilistic Methods for Evaluating Agent Capabilities
Axel Højmark, Govind Pimpale, Arjun Panickssery, Marius Hobbhahn, Jérémy Scheurer
Models: GPT-3.5-turbo, GPT-4o
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 93%
Last extracted: 3/12/2026, 6:33:53 PM
Summary
This paper evaluates two probabilistic methodsāthe milestone method and the expert best-of-N methodāfor estimating the success rates of AI agents on complex, multi-step tasks. The authors analyze these methods as Monte Carlo estimators and demonstrate that, while they reduce variance compared to naive sampling, both introduce significant bias and consistently underestimate true solve rates in real-world scenarios. The study suggests that future research should explore more robust rare-event sampling techniques from the Monte Carlo literature.
Entities (5)
Relation Signals (4)
Expert Best-of-N Method ā exhibitsbias ā True Solve Rate
confidence 95% Ā· The expert best-of-N method exhibits even more severe underestimation across all tasks
Milestone Method ā exhibitsbias ā True Solve Rate
confidence 95% Ā· Experimental results demonstrate that the milestone method underestimates true solve rates
Milestone Method ā introducedby ā Phuong et al.
confidence 90% Ā· Phuong et al. [12] propose two methods that aim to obtain better estimates... The milestone method
Expert Best-of-N Method ā introducedby ā Phuong et al.
confidence 90% Ā· Phuong et al. [12] propose two methods... the expert best-of-N method
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:To mitigate risks from AI systems, we need to assess their capabilities accurately. This is especially difficult in cases where capabilities are only rarely displayed. Phuong et al. propose two methods that aim to obtain better estimates of the probability of an AI agent successfully completing a given task. The milestone method decomposes tasks into subtasks, aiming to improve overall success rate estimation, while the expert best-of-N method leverages human guidance as a proxy for the model's independent performance. Our analysis of these methods as Monte Carlo estimators reveals that while both effectively reduce variance compared to naive Monte Carlo sampling, they also introduce bias. Experimental results demonstrate that the milestone method underestimates true solve rates for many real-world tasks due to its constraining assumptions. The expert best-of-N method exhibits even more severe underestimation across all tasks, attributed to an inherently flawed re-weighting factor. To enhance the accuracy of capability estimates of AI agents on difficult tasks, we suggest future work should leverage the rich literature on Monte Carlo Estimators.
Tags
Links
- Source: https://arxiv.org/abs/2409.16125
- Canonical: https://arxiv.org/abs/2409.16125
Trouble viewing inline? Open PDF directly ā
Full Text
48,599 characters extracted from source content.
Expand or collapse full text
Analyzing Probabilistic Methods for Evaluating Agent Capabilities Axel HĆøjmark Independent &Govind Pimpale11footnotemark: 1 Independent &Arjun Panickssery Independent Marius Hobbhahn Apollo Research &JĆ©rĆ©my Scheurer22footnotemark: 2 Apollo Research Equal ContributionCorrespondence to axelhojmark@gmail.com or jeremy@apolloresearch.ai Abstract To mitigate risks from AI systems, we need to assess their capabilities accurately. This is especially difficult in cases where capabilities are only rarely displayed. Phuong et al. [12] propose two methods that aim to obtain better estimates of the probability of an AI agent successfully completing a given task. The milestone method decomposes tasks into subtasks, aiming to improve overall success rate estimation, while the expert best-of-N method leverages human guidance as a proxy for the modelās independent performance. Our analysis of these methods as Monte Carlo estimators reveals that while both effectively reduce variance compared to naive Monte Carlo sampling, they also introduce bias. Experimental results demonstrate that the milestone method underestimates true solve rates for many real-world tasks due to its constraining assumptions. The expert best-of-N method exhibits even more severe underestimation across all tasks, attributed to an inherently flawed re-weighting factor. To enhance the accuracy of capability estimates of AI agents on difficult tasks, we suggest future work should leverage the rich literature on Monte Carlo Estimators. 1 Introduction As language models (LMs) become more capable, there has been increasing interest in using them to solve multi-step, agentic tasks that involve tool use and repeated interaction with the environment. LM agents are composite systems that combine an LM with scaffolding, software that repeatedly prompts the LM and lets it interact with the environment [10, 1, 23, 17, 18, 11, 20]. These agents could have significant economic utility, and therefore evaluating the capabilities of LM agents is crucial [8, 12, 19, 2, 13]. Additionally, advanced agents can also pose significant risks, such as the potential to construct bioweapons [7], conduct cyber attacks [22], strategically deceive humans [16], or replicate autonomously [6]. Evaluating these agents on concrete tasks poses challenges. Unlike standard QA benchmarks that often require few reasoning steps, agent tasks demand sequential, multi-step execution. This structure amplifies the impact of errors: a single mistake can derail the entire process. Consequently, even slight improvements in an agentās error rate can lead to dramatic increases in overall task performance. This phenomenon can result in apparent āemergent capabilitiesā [15, 14, 21], making it difficult to accurately predict and prepare for the capabilities of future models. As such, there is a need for methods that can assess an agentās success rate on a given task with high accuracy, even when success is rare. This is especially important for tasks that can pose significant risk, where even a low probability of success may be considered unacceptable from a safety perspective. Phuong et al. [12] introduce two methods that aim to find task success rate for very difficult tasks. The milestone method breaks down a task into subtasks, providing estimates of partial progress. The expert best-of-N method uses expert guidance to elicit rare behaviors, and uses the amount of assistance needed to estimate the modelās independent performance. This study examines these two methods through the lens of Monte Carlo estimation. For each method, we evaluate whether it is unbiased as well as whether it reduces variance compared to naive sampling. Our empirical results show that while both methods successfully reduce variance, they are biased estimators. Both methods underestimate the true probability of success when applied to real-world tasks, significantly limiting their practical utility. Based on these findings, we propose that future work should leverage the literature on Monte Carlo estimators to develop more accurate methods for estimating the success rates of AI agents. 2 Methods Now that we have discussed the need for efficient task success rate evaluation, we turn our attention to examining these two methods in greater detail. Our goal is to accurately estimate an agentās success rate on a particular task T with a limited token budget. We denote the true probability of the agent solving the task as Pā¢(TS)superscriptP(T^S)P ( Titalic_S ), which represents the likelihood that the agent solves task T and achieves the solved state TSsuperscriptT^STitalic_S. The naive approach to estimate this probability is to utilize Monte Carlo sampling. Let XisubscriptX_iXitalic_i be a Bernoulli random variable where Xi=1subscript1X_i=1Xitalic_i = 1 if the task is solved in the i-th trial, and 00 otherwise. Given N total trials, an unbiased estimate of Pā¢(TS)superscriptP(T^S)P ( Titalic_S ) is obtained by: Pā¢(TS)superscript P(T^S)P ( Titalic_S ) ā1Nā¢āi=1NXiabsent1superscriptsubscript1subscript ā 1N _i=1^NX_iā divide start_ARG 1 end_ARG start_ARG N end_ARG āi = 1N Xitalic_i Phuong et al. [12] refer to this as the end-to-end method. However, this approach faces significant challenges when estimating low-probability events. The expected number of trials required to observe a single success is 1Pā¢(TS)1superscript 1P(T^S)divide start_ARG 1 end_ARG start_ARG P ( Titalic_S ) end_ARG, rendering naive Monte Carlo sampling impractical for many low-probability, long-horizon tasks. To overcome these limitations, Phuong et al. [12] propose alternative methods for estimating an agentās task-solving probability. 2.1 Milestone method Milestones are natural subtasks that mark partial progress through the task. Importantly, the milestone method assumes that the task can only be solved by completing all predefined milestones in a specific order. The probability of completing the entire task is then expressed as the product of probabilities of completing each milestone given the completion of the previous milestone111This simplifies Phuong et al.ās technique, which uses a Bayesian approach to aggregate milestone solve rates. However, our description aligns with their mean estimate when beta distribution parameters are set to 0. See Appendix E.4 of Phuong et al. [12] for full details.: Pā¢(TS)superscript P(T^S)P ( Titalic_S ) =Pā¢(M1S)ā¢āi=1nā1Pā¢(Mi+1S|MiS)absentsuperscriptsubscript1superscriptsubscriptproduct11conditionalsuperscriptsubscript1superscriptsubscript =P(M_1^S) _i=1^n-1P(M_i+1^S|M_i^S)= P ( M1italic_S ) āi = 1n - 1 P ( Mitalic_i + 1S | Mitalic_iitalic_S ) where MiSsuperscriptsubscriptM_i^SMitalic_iitalic_S represents the solved state of milestone i, and n is the total number of milestones. Monte Carlo sampling is used to estimate the respective conditional probabilities. In each trial, the agent is initialized as if it has already completed the preceding subtasks. This initialization can use either a human-written āgoldenā solution, as in Phuong et al. [12], or a random sample from model trajectories that solved previous milestones. 2.2 Expert Best-of-N When a model is unable to solve a task with milestones, the authors propose using expert help via the expert best-of-N method. This approach involves sampling N possible completions for each agent prompt, sorting them by the modelās joint probability of the sequence, and having a human expert select the first completion they believe will make progress towards the task objective. To quantify the expertās contribution, Phuong et al. [12] use an information-theoretic approach. They estimate the information (in bits) provided by the expert based on the index i of the chosen action, assigning a cost of log2ā”(iā¢(i+1))subscript21 _2(i(i+1))log2 ( i ( i + 1 ) ) bits. This cost function reflects the intuition that selecting a less probable completion (higher i) corresponds to more expert information. See Appendix G for details. Translating the cost in bits to a probability of success, we get: Pā¢(TS)superscript P(T^S)P ( Titalic_S ) āāj=1k1ijā¢(ij+1)absentsuperscriptsubscriptproduct11subscriptsubscript1 ā _j=1^k 1i_j(i_j+1)ā āj = 1k divide start_ARG 1 end_ARG start_ARG iitalic_j ( iitalic_j + 1 ) end_ARG Where i1,i2,ā¦,iksubscript1subscript2ā¦subscript\i_1,i_2,...,i_k\ i1 , i2 , ⦠, iitalic_k is the ordered set of indices chosen during the task. 3 Analysis Having established the framework of the milestone and expert best-of-N methods, we will now examine their relationship to Monte Carlo sampling techniques and assess their efficacy in estimating task success rates. 3.1 Analyzing the Milestone Method The milestone method is closely related to a variance reduction method known as subset simulation [3], which has applications in reliability engineering and failure analysis. The milestone method, like subset simulation, relies on breaking down a rare event into a series of more probable conditional subevents. However, the milestone method differs in how it samples these subevents. Subset simulation employs Markov Chain Monte Carlo to sample from the conditional distribution of subevents. In contrast, the milestone approach either utilizes a fixed golden solution or, in our case, resamples from the set of trajectories that successfully passed the previous milestone. If we are able to represent the task as a series of necessary milestones, the milestone method can be a powerful tool for reducing the variance of our task success probability estimate. Breaking down a task into milestones will almost always decrease the variance of our estimate of the true task solve rate. We can show theoretically that: Varā¢(āi=1nP^mi,N)Varsuperscriptsubscriptproduct1subscript^subscript ( _i=1^n P_m_i,N )Var ( āi = 1n over start_ARG P end_ARGm start_POSTSUBSCRIPT i , N end_POSTSUBSCRIPT ) ā¤Varā¢(P^t,N)absentVarsubscript ( P_t,N )⤠Var ( over start_ARG P end_ARGt , N ) Where P^mi,Nsubscript^subscript P_m_i,Nover start_ARG P end_ARGm start_POSTSUBSCRIPT i , N end_POSTSUBSCRIPT is a random variable corresponding to the estimate of the i-th milestone solve rate with N samples and P^t,Nsubscript P_t,Nover start_ARG P end_ARGt , N is a random variable corresponding to the estimate of the task solve rate with N samples. The full proof can be found in Appendix E. The reduction in variance allows us to achieve more reliable estimates with fewer samples overall compared to the end-to-end method. Furthermore, milestones can also provide more granular insights into the specific stages of a task where an agent may struggle, offering a more nuanced understanding of its capabilities. 3.1.1 Experiments - Milestones in Practice To observe the practical utility of milestones, we evaluate the methods described in Phuong et al. [12] under both ideal and non-ideal conditions on multi-step LM agent tasks. The tasks are mainly sourced from the GAIA benchmark [9] and involve interacting with the terminal, running Python code, and solving logic and math questions. They were chosen to be highly sequential in nature, such that each subtask depends on the result of the previous one. Our tasks were selected to primarily utilize GPT-4o, with GPT-3.5-turbo employed for easier tasks to cover a wider spectrum of solve rates. See Appendix B for task descriptions. In order to determine if the model has passed a milestone, we prompt the model to submit solutions at certain intermediate points in the problem. We used 100 rollouts for the end-to-end runs, and 100 samples per milestone for the milestone method. We evaluate performance under two conditions: 1. Idealized Grading: An end-to-end run is deemed successful if, and only if, the agent submits the correct value in the correct order for every milestone and the final submission. This condition enforces the assumptions of the milestone method. 2. Outcome-Based Grading: An end-to-end run is considered successful solely based on the correctness of the agentās final submission. This approach more closely mirrors real-world scenarios since it is most often only the final result that is of interest. Figure 1: Blue dots represent mean milestone success estimates. Dotted diagonal lines indicate perfect calibration. Black vertical bars show 97.5% confidence intervals. See Appendix E.4 of Phuong et al. [12] for full details on the calculation of the confidence intervals. Figure 1 illustrates the comparison between these estimates. In an optimal scenario, milestone estimates would align closely with true solve rates, resulting in data points clustered along the diagonal line of perfect calibration. Panel 1a, which employs idealized grading, demonstrates that the milestone solve rate serves as a robust estimate of the true solve rate. In this case, only one taskās true solve rate falls outside the 97.5% confidence interval of its milestone estimate. However, the outcome-based grading condition in Panel 1b reveals a significant discrepancy. Here, the milestone method consistently underestimates the true solve rate, with seven out of ten tasks failing to include the actual solve rate within their 97.5% confidence intervals. This disparity suggests that the underlying assumptions of the milestone method may not always hold in practical scenarios, leading to a systematic underestimation of true solve rates. 3.1.2 Limitations of the Milestone Method This discrepancy stems from the inherent limitations of the milestone approach. By prescribing a specific sequence of predefined checkpoints, the method narrows its focus to a subset of all possible successful trajectories. When calculating the final success rate, this restricted view leads to a systematic underestimation of the true solution probability. This discrepancy becomes particularly noticeable for tasks whose milestones can be completed in a different order (e.g. crosswords). Despite using highly sequential tasks that favored the milestone method, our experiments still show a significant underestimation of success rates. This bias is amplified in complex, real-world scenarios. For example, when debugging a large codebase, there may be multiple valid tasks that could be solved first, making any predefined milestone sequence artificially limiting. More broadly, as tasks become increasingly complex, predefined milestones become less likely to adequately capture the full range of potential solution paths. 3.2 Analyzing the Expert Best-of-N method Although the expert best-of-N method is based on information theory, it can also be viewed through the lens of importance sampling. In importance sampling, we draw samples from a distribution that more readily produces events of interest, then adjust our estimates using a reweighting factor to account for the difference between the sampling distribution and the true distribution of interest. This concept is expressed mathematically as: ā¢[X]delimited-[] [X]blackboard_E [ X ] =xā¼qā¢[wā¢(x)ā¢X]absentsubscriptsimilar-todelimited-[] =E_x q[w(x)X]= blackboard_Ex ā¼ q [ w ( x ) X ] Here, X represents our variable of interest, q denotes the distribution we sample from, and wā¢(x)w(x)w ( x ) is the crucial reweighting factor. In the context of the expert best-of-N method, we can view the process as sampling from the distribution of expert-chosen completions. The reweighting factor, in this case, corresponds to the information-theoretic cost of the expertās choices. The reweighting factor suggested by importance sampling theory is wā¢(x)=pā¢(x)qā¢(x)w(x)= p(x)q(x)w ( x ) = divide start_ARG p ( x ) end_ARG start_ARG q ( x ) end_ARG, where pā¢(x)p(x)p ( x ) represents the true probability of x and qā¢(x)q(x)q ( x ) is its probability in the sampling distribution. The expert best-of-N method, however, employs a different approach, using 1iā¢(i+1)11 1i(i+1)divide start_ARG 1 end_ARG start_ARG i ( i + 1 ) end_ARG as its effective reweighting factor, with i being the index of the expert-selected completion. This approach likely underestimates wā¢(x)w(x)w ( x ) in many scenarios. Consider a task with a step where almost all completions contribute to solving the problem. For such a step, the ideal reweighting factor should be close to 1, reflecting the high likelihood of progress. Yet, the expert best-of-N factor is at most 1212 12divide start_ARG 1 end_ARG start_ARG 2 end_ARG, even when the expert selects the very first completion. This bias leads to an underestimation of the true solve rate. The expert best-of-N method, despite its flaws, has some desirable properties. It boasts greater versatility, is applicable to tasks that are not amenable to milestone breakdown, and can uncover rarer behaviors through expert guidance. However, these benefits also come at another significant cost: the methodās reliance on manual expert review for multiple completions per step makes it far less scalable than the milestone approach. Figure 2: Blue dots represent expert best-of-N estimates. The dotted diagonal line indicates perfect calibration. The expert best-of-N method is strongly underestimating the true probabilities. 3.3 Experiments - Expert Best-of-N in Practice We assessed the expert best-of-N methodās calibration using the previously introduced set of agentic tasks. The detailed experimental methodology is available in Appendix D. Figure 2 reveals that the estimates show little correlation with the tasksā actual solve rates and consistently underestimate the true probabilities. This tendency stems from the methodās incorrect reweighting factor and makes it unreliable for safety-relevant decisions. 4 Conclusion Accurately assessing an agentās probability of solving hard tasks is vital for identifying potential risks and detecting emerging capabilities. The milestone and expert best-of-N method introduced by Phuong et al. [12] are recent innovations in this direction, however our analysis reveals that they are both biased and significantly underestimate the true solve rate. Moving forward, research should prioritize developing estimation techniques that can handle tasks that are not amenable to milestone decomposition. We suggest that the rich field of rare event sampling should be considered for promising directions. Specifically, methods such as weighted ensemble sampling [24, 5] and stochastic-process rare event sampling [4] could potentially be adapted to more accurately estimate solve rates for rare or complex tasks. Acknowledgements Special thanks to Mary Phuong for clarifications on the expert best-of-N method, and to KamilÄ LukoÅ”iÅ«tÄ for initial discussions on the milestone methodology. References Ahn et al. [2022] Michael Ahn, Anthony Brohan, Noah Brown, Yevgen Chebotar, Omar Cortes, Byron David, Chelsea Finn, Keerthana Gopalakrishnan, Karol Hausman, Alex Herzog, et al. Do as i can, not as i say: Grounding language in robotic affordances. arXiv preprint arXiv:2204.01691, 2022. Anthropic [2023] Anthropic. Anthropicās responsible scaling policy, 2023. URL https://w.anthropic.com/news/anthropics-responsible-scaling-policy. Au and Beck [2001] Siu-Kui Au and James L. Beck. Estimation of small failure probabilities in high dimensions by subset simulation. Probabilistic Engineering Mechanics, 16(4):263ā277, 2001. ISSN 0266-8920. doi: https://doi.org/10.1016/S0266-8920(01)00019-4. URL https://w.sciencedirect.com/science/article/pii/S0266892001000194. Berryman and Schilling [2010] Joshua T. Berryman and Tanja Schilling. Sampling rare events in nonequilibrium and nonstationary systems. The Journal of Chemical Physics, 133(24), December 2010. ISSN 1089-7690. doi: 10.1063/1.3525099. URL http://dx.doi.org/10.1063/1.3525099. Huber and Kim [1996] G A Huber and S Kim. Weighted-ensemble brownian dynamics simulations for protein association reactions. Biophys. J., 70(1):97ā110, January 1996. Kinniment et al. [2024] Megan Kinniment, Lucas Jun Koba Sato, Haoxing Du, Brian Goodrich, Max Hasin, Lawrence Chan, Luke Harold Miles, Tao R. Lin, Hjalmar Wijk, Joel Burget, Aaron Ho, Elizabeth Barnes, and Paul Christiano. Evaluating language-model agents on realistic autonomous tasks, 2024. URL https://arxiv.org/abs/2312.11671. Li et al. [2024] Nathaniel Li, Alexander Pan, Anjali Gopal, Summer Yue, Daniel Berrios, Alice Gatti, Justin D. Li, Ann-Kathrin Dombrowski, Shashwat Goel, Long Phan, Gabriel Mukobi, Nathan Helm-Burger, Rassin Lababidi, Lennart Justen, Andrew B. Liu, Michael Chen, Isabelle Barrass, Oliver Zhang, Xiaoyuan Zhu, Rishub Tamirisa, Bhrugu Bharathi, Adam Khoja, Zhenqi Zhao, Ariel Herbert-Voss, Cort B. Breuer, Samuel Marks, Oam Patel, Andy Zou, Mantas Mazeika, Zifan Wang, Palash Oswal, Weiran Lin, Adam A. Hunt, Justin Tienken-Harder, Kevin Y. Shih, Kemper Talley, John Guan, Russell Kaplan, Ian Steneker, David Campbell, Brad Jokubaitis, Alex Levinson, Jean Wang, William Qian, Kallol Krishna Karmakar, Steven Basart, Stephen Fitz, Mindy Levine, Ponnurangam Kumaraguru, Uday Tupakula, Vijay Varadharajan, Ruoyu Wang, Yan Shoshitaishvili, Jimmy Ba, Kevin M. Esvelt, Alexandr Wang, and Dan Hendrycks. The wmdp benchmark: Measuring and reducing malicious use with unlearning, 2024. URL https://arxiv.org/abs/2403.03218. Liu et al. [2023] Xiao Liu, Hao Yu, Hanchen Zhang, Yifan Xu, Xuanyu Lei, Hanyu Lai, Yu Gu, Hangliang Ding, Kaiwen Men, Kejuan Yang, Shudan Zhang, Xiang Deng, Aohan Zeng, Zhengxiao Du, Chenhui Zhang, Sheng Shen, Tianjun Zhang, Yu Su, Huan Sun, Minlie Huang, Yuxiao Dong, and Jie Tang. Agentbench: Evaluating llms as agents, 2023. URL https://arxiv.org/abs/2308.03688. Mialon et al. [2023] GrĆ©goire Mialon, ClĆ©mentine Fourrier, Craig Swift, Thomas Wolf, Yann LeCun, and Thomas Scialom. Gaia: a benchmark for general ai assistants, 2023. URL https://arxiv.org/abs/2311.12983. Nakano et al. [2021] Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, et al. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332, 2021. Park et al. [2023] Joon Sung Park, Joseph C OāBrien, Carrie J Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein. Generative agents: Interactive simulacra of human behavior. arXiv preprint arXiv:2304.03442, 2023. Phuong et al. [2024] Mary Phuong, Matthew Aitchison, Elliot Catt, Sarah Cogan, Alexandre Kaskasoli, Victoria Krakovna, David Lindner, Matthew Rahtz, Yannis Assael, Sarah Hodkinson, Heidi Howard, Tom Lieberum, Ramana Kumar, Maria Abi Raad, Albert Webson, Lewis Ho, Sharon Lin, Sebastian Farquhar, Marcus Hutter, Gregoire Deletang, Anian Ruoss, Seliem El-Sayed, Sasha Brown, Anca Dragan, Rohin Shah, Allan Dafoe, and Toby Shevlane. Evaluating frontier models for dangerous capabilities, 2024. URL https://arxiv.org/abs/2403.13793. Research [2024] Apollo Research. We need a science of evals, 2024. URL https://w.apolloresearch.ai/blog/we-need-a-science-of-evals. Ruan et al. [2024] Yangjun Ruan, Chris J. Maddison, and Tatsunori Hashimoto. Observational scaling laws and the predictability of language model performance, 2024. URL https://arxiv.org/abs/2405.10938. Schaeffer et al. [2023] Rylan Schaeffer, Brando Miranda, and Sanmi Koyejo. Are emergent abilities of large language models a mirage?, 2023. URL https://arxiv.org/abs/2304.15004. Scheurer et al. [2024] JĆ©rĆ©my Scheurer, Mikita Balesni, and Marius Hobbhahn. Large language models can strategically deceive their users when put under pressure, 2024. URL https://arxiv.org/abs/2311.07590. Schick et al. [2023] Timo Schick, Jane Dwivedi-Yu, Roberto DessƬ, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. arXiv preprint arXiv:2302.04761, 2023. Shen et al. [2023] Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. Hugginggpt: Solving ai tasks with chatgpt and its friends in huggingface. arXiv preprint arXiv:2303.17580, 2023. Shevlane et al. [2023] Toby Shevlane, Sebastian Farquhar, Ben Garfinkel, Mary Phuong, Jess Whittlestone, Jade Leung, Daniel Kokotajlo, Nahema Marchal, Markus Anderljung, Noam Kolt, Lewis Ho, Divya Siddarth, Shahar Avin, Will Hawkins, Been Kim, Iason Gabriel, Vijay Bolina, Jack Clark, Yoshua Bengio, Paul Christiano, and Allan Dafoe. Model evaluation for extreme risks, 2023. URL https://arxiv.org/abs/2305.15324. Shinn et al. [2023] Noah Shinn, Beck Labash, and Ashwin Gopinath. Reflexion: an autonomous agent with dynamic memory and self-reflection. arXiv preprint arXiv:2303.11366, 2023. Wei et al. [2022] Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, Ed H. Chi, Tatsunori Hashimoto, Oriol Vinyals, Percy Liang, Jeff Dean, and William Fedus. Emergent abilities of large language models, 2022. URL https://arxiv.org/abs/2206.07682. Xu et al. [2024] Jiacen Xu, Jack W. Stokes, Geoff McDonald, Xuesong Bai, David Marshall, Siyue Wang, Adith Swaminathan, and Zhou Li. Autoattacker: A large language model guided system to implement automatic cyber-attacks, 2024. URL https://arxiv.org/abs/2403.01038. Yao et al. [2023] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), 2023. Zuckerman and Chong [2017] Daniel M Zuckerman and Lillian T Chong. Weighted ensemble simulation: Review of methodology, applications, and software. Annu. Rev. Biophys., 46(1):43ā57, May 2017. Appendix A Data Task End to End Milestone Mean Estimate Milestone 97.5% Quantile Expert Best-of-N Outcome-Based Grading Model agent_script 0.010 0.001 0.003 0.008 0.030 gpt-3.5 debugging_program 0.300 0.364 0.452 0.050 0.400 gpt-3.5 marathon_pace 0.200 0.176 0.232 0.000 0.250 gpt-3.5 collatz_sequence 0.720 0.666 0.753 0.138 0.760 gpt-4o secret_santa 0.380 0.317 0.398 0.017 0.480 gpt-4o scavenger_hunt 0.460 0.392 0.477 0.004 0.790 gpt-4o food_sales 0.730 0.769 0.844 0.055 0.950 gpt-4o fibonacci_square 0.270 0.248 0.328 0.017 0.290 gpt-4o freon_volume 0.580 0.556 0.649 0.002 0.910 gpt-4o double_then_double 0.960 0.952 0.966 0.004 0.960 gpt-3.5 Appendix B Task Descriptions Name Description #Milestones agent_script The agent must modify a simple program, run it, and then modify it again based on the output. 2 debugging_program The agent needs to debug a script and use its intended output in a mathematical problem. 2 marathon_pace Adapted from GAIA. The agent must calculate the time it would take Kipchoge to run the distance between the Earth and the Moon at its closest approach. 2 collatz_sequence The agent must write a script replicating the Collatz conjecture, then use this output in two subsequent scripts. 3 secret_santa Adapted from GAIA. The agent needs to deduce who did not give a gift at a Secret Santa gift exchange. 3 scavenger_hunt The agent needs to navigate through a series of folders, opening text files, each containing a puzzle to reach the next file. 5 food_sales Adapted from GAIA. The agent needs to perform a range of pandas operations on a CSV file. 2 fibonacci_square The agent must calculate a specific Fibonacci number and use the result in two subsequent operations. 3 freon_volume Adapted from GAIA. The agent needs to calculate the quantities of freon under various conditions. 2 double_then_double Simple baseline task: The agent must submit 1, double it, submit that value, double it, and so on. 8 Appendix C Milestone Experimental Methodology Sampling Settings In all experiments, we used the following sampling settings: ⢠Temperature: 1.0 ⢠Top-p: 1.0 ⢠Frequency Penalty: 0.0 ⢠Presence Penalty: 0.0 End-to-End Methodology We ran 100 end-to-end trials for each task. Each model response was limited to 1024 tokens, and we limited the total number of messages to 30. If a task was not solved within the message limit, the trial was considered a failure. We used exactly the same prompt for both the milestone and end-to-end methods, including the instructions to submit milestones at specific points. We graded the trial trajectories under two regimes: ⢠Idealized Grading: A trial was considered successful only if the agent submitted the correct value in the correct order for every milestone and the final submission. ⢠Outcome-Based Grading: A trial was considered successful solely based on the correctness of the agentās final submission. Milestone Methodology We ran the milestone method with N=100100N=100N = 100 samples for each milestone. The exact steps taken were as follows: 1. Compute the first milestone: (a) Do 100 times: i. Run the agent scaffold till the first milestone submission. At that point, save the trajectory text as well as the number of messages left. i. If a trajectory got the correct answer for the first milestone, and has not run out of messages, we mark it as a successful milestone completion. 2. Compute the rest of the milestones: (a) For milestone i: i. Do 100 times: A. Sample a successful trajectory from the milestone iā11i-1i - 1. B. Run the agent scaffold (initialized with the selected trajectory) till the iāth milestone submission. At that point, save the trajectory text as well as the number of messages left. C. If a trajectory got the correct answer for the second milestone, and has not run out of messages, we mark it as a successful milestone completion. Appendix D Expert Best-of-N Experimental Methodology We use the same sampling settings as in the milestone experiments. We use N=100100N=100N = 100 rollouts with outcome-based grading for the end-to-end method. For the expert best-of-N method, we use N=33N=3N = 3 rollouts, with 16 completions at each step. If an expert best-of-N run failed, it was excluded from the mean calculation, as a probability of 0 would correspond to an infinite amount of bits. The exact steps taken on a given rollout were as follows: 1. Run the agent scaffold, but when it is time for the model to generate a message: (a) Generate 16 completions. (b) Sort the completions by the modelās joint probability of the sequence. (c) Have an expert select the first completion that they believe will make progress towards the task objective. 2. If the expert-selected completion submits the correct answer for the overall task, the rollout is considered successful. If the rollout uses up all messages without solving the task, or submits an incorrect answer, it is considered a failure. Appendix E Milestone Variance Reduction We model an attempt at solving the task as a draw from a Bernoulli random variable X with unknown success probability p. For each attempt XisubscriptX_iXitalic_i we have that Xi=1subscript1X_i=1Xitalic_i = 1 if the task is solved in the i-th trial, and 0 otherwise. We can obtain an unbiased estimate of the solve rate Pā¢(TS)superscriptP(T^S)P ( Titalic_S ) with: Pā¢(TS)superscript P(T^S)P ( Titalic_S ) āP^t,Nabsentsubscript ā P_t,Nā over start_ARG P end_ARGt , N P^t,Nsubscript P_t,Nover start_ARG P end_ARGt , N =1Nā¢āi=1NXiabsent1superscriptsubscript1subscript = 1N _i=1^NX_i= divide start_ARG 1 end_ARG start_ARG N end_ARG āi = 1N Xitalic_i Where P^t,Nsubscript P_t,Nover start_ARG P end_ARGt , N is a random variable corresponding to the estimate of the task solve rate with N samples. Since the variance of a Bernoulli random variable is pā¢(1āp)1p(1-p)p ( 1 - p ), the total variance of this estimate is: Vā¢aā¢rā¢(P^t,N)subscript Var ( P_t,N )V a r ( over start_ARG P end_ARGt , N ) =1N2ā¢Vā¢aā¢rā¢(āi=1NXi)absent1superscript2superscriptsubscript1subscript = 1N^2Var( _i=1^NX_i)= divide start_ARG 1 end_ARG start_ARG N2 end_ARG V a r ( āi = 1N Xitalic_i ) =1N2ā¢(Nā¢pā¢(1āp))absent1superscript21 = 1N^2 (Np(1-p) )= divide start_ARG 1 end_ARG start_ARG N2 end_ARG ( N p ( 1 - p ) ) by independence of trials =pā¢(1āp)Nabsent1 = p(1-p)N= divide start_ARG p ( 1 - p ) end_ARG start_ARG N end_ARG We now consider what happens if we decompose our initial task into an arbitrary number of milestones, who each are modelled as its own Bernoulli variable MjsuperscriptM^jMitalic_j with succes rate pjsubscriptp_jpitalic_j. Because these milestones are subparts of the original task, we have that the original solve rate is equal to the product of the new solve rates p=ājnpjsuperscriptsubscriptproductsubscriptp= _j^np_jp = ājitalic_n pitalic_j. By multiplying our estimate of the solve of each new milestone, we get an overall estimate of our solve rate: Pā¢(TS)superscript P(T^S)P ( Titalic_S ) āājnP^mi,Nabsentsuperscriptsubscriptproductsubscript^subscript ā _j^n P_m_i,Nā ājitalic_n over start_ARG P end_ARGm start_POSTSUBSCRIPT i , N end_POSTSUBSCRIPT P^mi,Nsubscript^subscript P_m_i,Nover start_ARG P end_ARGm start_POSTSUBSCRIPT i , N end_POSTSUBSCRIPT =1Nā¢āi=1NMijabsent1superscriptsubscript1subscriptsuperscript = 1N _i=1^NM^j_i= divide start_ARG 1 end_ARG start_ARG N end_ARG āi = 1N Mitalic_jitalic_i Where P^mi,Nsubscript^subscript P_m_i,Nover start_ARG P end_ARGm start_POSTSUBSCRIPT i , N end_POSTSUBSCRIPT is a random variable corresponding to the estimate of the i-th milestone solve rate with N samples, and Mij=1subscriptsuperscript1M^j_i=1Mitalic_jitalic_i = 1 if the milestone j is solved in the i-th trial, and 0 otherwise. We can now use the formula for calculating the variance of a product of independent variables: Varā”(X1ā X2ā ā¦ā Xn)=(Eā¢(X1)ā¢Eā¢(X2)ā¢ā¦ā¢Eā¢(Xn))2ā āinVarā”(Xi)[Eā¢(Xi)]2Varā subscript1subscript2ā¦subscriptā superscriptEsubscriptX1subscript2ā¦subscriptXn2superscriptsubscriptVarsubscriptXisuperscriptdelimited-[]EsubscriptXi2 (X_1Ā· X_2Ā·ā¦Ā· X_n)= (% E (X_1 )E (X_2 )⦠E (% X_n ) )^2Ā· _i^n Var% (X_i ) [E (X_% i ) ]^2Var ( X1 ā X2 ā ⦠ā Xitalic_n ) = ( E ( X1 ) E ( X2 ) ⦠E ( Xroman_n ) )2 ā āiitalic_n divide start_ARG Var ( Xroman_i ) end_ARG start_ARG [ E ( Xroman_i ) ]2 end_ARG On our milestone estimate this gives the variance: Varā”(ājnP^mi,N)=(p1ā p2ā ā¦ā pn)2ā āin(piā¢(1āpi)N)pi2Varsuperscriptsubscriptproductsubscript^subscriptā superscriptā subscript1subscript2ā¦subscript2superscriptsubscriptsubscript1subscriptsuperscriptsubscript2 ( _j^n P_m_i,N )% =(p_1Ā· p_2Ā·ā¦Ā· p_n)^2Ā· _i^n (% p_i(1-p_i)N )p_i^2Var ( ājitalic_n over start_ARG P end_ARGm start_POSTSUBSCRIPT i , N end_POSTSUBSCRIPT ) = ( p1 ā p2 ā ⦠ā pitalic_n )2 ā āiitalic_n divide start_ARG ( divide start_ARG pitalic_i ( 1 - pitalic_i ) end_ARG start_ARG N end_ARG ) end_ARG start_ARG pitalic_i2 end_ARG We will now show that the variance of the milestone estimate is always smaller than or equal the end-to-end estimate: Varā¢(āi=1nP^mi,S)Varsuperscriptsubscriptproduct1subscript^subscript ( _i=1^n P_m_i,S )Var ( āi = 1n over start_ARG P end_ARGm start_POSTSUBSCRIPT i , S end_POSTSUBSCRIPT ) ā¤Varā¢(P^t,S)absentVarsubscript ( P_t,S )⤠Var ( over start_ARG P end_ARGt , S ) (p1ā p2ā ā¦ā pn)2ā āin(piā¢(1āpi)N)pi2ā superscriptā subscript1subscript2ā¦subscript2superscriptsubscriptsubscript1subscriptsuperscriptsubscript2 (p_1Ā· p_2Ā·ā¦Ā· p_n)^2Ā· _i^n% ( p_i(1-p_i)N )p_i^2( p1 ā p2 ā ⦠ā pitalic_n )2 ā āiitalic_n divide start_ARG ( divide start_ARG pitalic_i ( 1 - pitalic_i ) end_ARG start_ARG N end_ARG ) end_ARG start_ARG pitalic_i2 end_ARG ā¤pā¢(1āp)Nabsent1 ⤠p(1-p)N⤠divide start_ARG p ( 1 - p ) end_ARG start_ARG N end_ARG p2ā¢āin1piā1Nsuperscript2superscriptsubscript1subscript1 p^2 _i^n 1p_i-1Np2 āiitalic_n divide start_ARG divide start_ARG 1 end_ARG start_ARG pitalic_i end_ARG - 1 end_ARG start_ARG N end_ARG ā¤pā¢(1āp)Nabsent1 ⤠p(1-p)N⤠divide start_ARG p ( 1 - p ) end_ARG start_ARG N end_ARG āin(1piā1)superscriptsubscript1subscript1 _i^n ( 1p_i-1 )āiitalic_n ( divide start_ARG 1 end_ARG start_ARG pitalic_i end_ARG - 1 ) ā¤1pā1absent11 ⤠1p-1⤠divide start_ARG 1 end_ARG start_ARG p end_ARG - 1 āin1piān+1superscriptsubscript1subscript1 _i^n 1p_i-n+1āiitalic_n divide start_ARG 1 end_ARG start_ARG pitalic_i end_ARG - n + 1 ā¤āin1piabsentsuperscriptsubscriptproduct1subscript ⤠_i^n 1p_i⤠āiitalic_n divide start_ARG 1 end_ARG start_ARG pitalic_i end_ARG Where the final inequality holds true, as it is a generalization of Bernoulliās inequality. Appendix F Expert Bit Calibration The reason why we donāt expect that there exists any general way of mapping expert bits into a well-calibrated probability of solving the task is that regardless of how easy a step is, the agent will be penalized at least 1 bit of expert help. This is because choosing the first index gives a penalty of ālog2ā”(11+1)=1subscript21111- _2( 11+1)=1- log2 ( divide start_ARG 1 end_ARG start_ARG 1 + 1 end_ARG ) = 1 bits when using the prior from Phuong et al. [12]. Based on this, one should be able to create two tasks āan easy one and a hard oneā with the same bit count, which precludes the existence of a mapping function from bits to the end-to-end solve rate. To see why, consider the following. Imagine we have an easy task with a high solve rate and low bit count and a hard task with a low solve rate and high bit count. Now, imagine slightly altering the easy task by repeatedly adding trivial steps at the end. For example, after finding a bug in a codebase, the model must also print āhello worldā in the console. This additional step increases the total number of expert help bits by 1 without significantly affecting the overall end-to-end probability. Since all the additional steps are trivial, the overall solve rate of the modified task remains largely unchanged. However, at some point, its bit count matches that of the hard task. This creates a problem for oneās mapping. One now has two tasks with the same bit count but vastly different solve rates. Since one cannot map from the same bit count to two different solve rates simultaneously, we conclude that no such mapping exists. While a different prior might slightly alleviate this issue, we do not see it as entirely fixable. Appendix G Expert Best-of-N Cost The reasoning behind the index i of the chosen action (counting from one) being equated to a cost of log2ā”(iā¢(i+1))subscript21 _2(i(i+1))log2 ( i ( i + 1 ) ) bits, stems from the concept of Shannon entropy. Shannon Entropy states that given a prior probability distribution over a set, where each element has a prior probability pisubscriptp_ipitalic_i, one can, on average, encode an item from that set using ālog2ā”(pi)subscript2subscript- _2(p_i)- log2 ( pitalic_i ) bits. To convert these bits to success probabilities, you simply use the transformation Pā¢(TS)=2ābitssuperscriptsuperscript2bitsP(T^S)=2^-bitsP ( Titalic_S ) = 2- bits. In this case, they use the prior 1iā¢(i+1)11 1i(i+1)divide start_ARG 1 end_ARG start_ARG i ( i + 1 ) end_ARG over the set of N continuations made by the model. This prior can be a reasonable choice because it sums to 1 in the limit of large N: āi=1ā1iā¢(i+1)superscriptsubscript111 _i=1^ā 1i(i+1)āi = 1ā divide start_ARG 1 end_ARG start_ARG i ( i + 1 ) end_ARG =1absent1 =1= 1 Additionally, it is a decreasing function of i, which means that the expert is providing more information when they choose a less likely continuation. It also spreads out the probability mass more effectively than alternative priors, such as 12i1superscript2 12^idivide start_ARG 1 end_ARG start_ARG 2i end_ARG.