Vending-Bench: a benchmark for long-term consistency of autonomous agentsVending-Bench: A Benchmark for Long-Term Coherence of Autonomous Agents
Vending-Bench measures long-term coherence: Sonnet's five-run average net assets are $2,217.93, and all models have derailments.
- LLMs are already strong on short tasks, but often fail to maintain coherence over long horizons; complex AI R&D is difficult to isolate the time factor. Vending-Bench tests via vending machine operation: subtasks are simple, single runs can exceed 20M tokens, and involve acquiring and managing capital.
- The agent loops calling tools in inspect-ai, most experiments only look back at the last 30,000 tokens, and use a scratchpad, key-value store, and vector store to supplement memory. Remote tools include email and search; restocking, pricing, and cash collection are delegated to subagents. Supplier replies and daily sales are generated by simulation, and the main score is final net assets.
- Nine LLMs each run 5 times (Table 1). Sonnet's average net assets are $2,217.93, o3-mini's are $906.86, and the human's are $844.05; by minimum net assets, the human is higher. The authors state that all have derailed runs, and the correlation between stagnation days and memory-full days is 0.167.
- In the conclusion, the authors state that the score has no definite upper bound, that saturation is not a precisely defined point, and that saturation should be considered as stably achieving high net worth with low variance across runs. The experiment used the nine models in Table 1 with 5 runs each, and 1 run of 5 hours for the human; the balance, daily fee, and memory variants were done only on GPT-4o mini. The paper does not report sub-agent models.
- Evaluated models
- Claude 3.5 Sonneto3-miniGemini 1.5 ProGPT-4o miniGemini 1.5 FlashClaude 3.5 HaikuGemini 2.0 FlashGPT-4oGemini 2.0 Pro
- Benchmarks
- Vending-Bench
- Metrics
- net worthunits soldmoney balancedays until sales stop% of run until sales stop
The paper proposes Vending-Bench, a benchmark simulating the operation of a vending machine, to test the ability of LLM-based agents to maintain consistent decision-making over long-horizon tasks. Each run exceeds 20 million tokens, requiring the agent to manage inventory, place orders, set prices, and handle daily expenses. Experiments show high variance across models: Claude 3.5 Sonnet and o3-mini were profitable in most runs, but all models exhibited out-of-control runs, manifesting as misinterpreting delivery schedules, forgetting orders, or falling into unrecoverable "meltdown" loops. The study found no clear correlation between failures and context window saturation, indicating these problems do not stem from memory limits. The benchmark also tests models' ability to obtain funding, which the authors say is necessary in many hypothetical high-risk AI scenarios.
Related events and news
2 events · 4 news mentions
News that mentions this paper
Pliny称提取Claude Code约95万字符提示词
- LessWrongnames the paperAnthropic 建议最难技术项目才升级 Claude Fable 5.2
Andon Labs reports that Fable 5.2 disappoints on Vending-Bench, showing extreme eval-awareness and suspecting events are traps to test it.
Andon Labs 发布 Vending-Bench 2 长时程经营评测
- Andon Labscites the paper's id or linkAndon Labs 发布 Vending-Bench 2,评测模型长期经营模拟售货机业务的能力
See our paper from the original Vending-Bench for details – Vending-Bench 2 keeps the same sales simulation)
- Transformernames the paperTransformer 周报:Cruz 参议员 AI 法案被批让企业自评风险
Andon Labs reported that GPT-6 Astra outperformed Fable 5.1 in Vending-Bench, which tests a model’s ability to run a vending machine for a simulated year.
Show 1 more news items
- Anthropic Red Teamingnames the paperAnthropic 公布 Project Vend 第二阶段:AI 店长盈利改善但仍易被操纵
simulations (like Andon Labs’ Vending-Bench evaluation) only get you so far.
Paper analysis
What problem does this paper attempt to solve?
Using simple but very long vending machine operation to measure LLM agents' long-term coherence.
How to measure whether LLM agents can sustain coherent decision-making on an operational task where the subtasks are simple but a single run is very long.
- Scenario: the authors state that LLMs are already strong on academic, programming, and emotional tasks, and have a speed advantage, yet have not become "digital colleagues" handling most remote work. The authors cite Schulman's speculation that what is missing is long-term coherence, i.e., the ability to perform tasks over long time horizons.
- Gap in Existing Work: METR found that, relative to humans, LLMs gain much less performance from longer time budgets, but the subjects were complex AI R&D. The authors believe it is unclear whether the same holds for simpler tasks.
- This Paper's Approach: using simple subtasks like ordering, inventory, pricing, and daily fees, the time horizon is extended (the abstract states over 20M tokens per run) to separate long-term coherence from task difficulty. The authors also note that running a vending machine requires acquiring and managing capital, which is relevant in both valuable applications and hypothetical risk scenarios; if capability research optimizes for this benchmark, it may inadvertently advance the very capabilities being evaluated.
- Benchmark: Vending-Bench is proposed. The authors report that Claude 3.5 Sonnet and o3-mini are profitable in most runs, but all tested models have derailed runs; the authors believe these collapses do not stem from the memory limit.
What related research exists?
The main dialogue is Schulman's coherence conjecture and METR's complex time-horizon evaluations, with human as the experimental baseline.
The paper has no separate Related Work. The works actually discussed in the introduction can be grouped as follows.
Long-term Coherence and Time Horizon
- Schulman (2024): The paper cites his conjecture that what is currently missing is long-term coherence, i.e., the ability of LLMs to complete tasks over long time horizons.
- RE-Bench (Wijk et al., 2024): METR uses this benchmark to compare language model agents with human experts on frontier AI R&D capabilities. The paper states that LLMs gain much less from increased time budgets than humans, and the tasks are very complex, so it is unclear whether the same trend applies to simpler tasks.
Capability Background in the Introduction
- Academic, programming, and emotional tasks: The paper states that LLMs have reached PhD level in many academic fields, citing [4, 6]; surpass most professional programmers in competitive programming (Quan et al., 2025); and exhibit emotional intelligence (Li et al., 2023). These citations are only used to illustrate that capability improvements have not led to the expected "digital colleagues"; the paper does not compare them experimentally with Vending-Bench.
Dual Use and Experimental Baseline
- Amodei (2024): The paper cites this to state that acquiring capital and managing resources are necessary for many valuable AI applications, and also necessary in hypothetical dangerous scenarios.
- Baselines and benchmarks: The experimental comparison is 1 human operating in the same environment for 5 hours; models are compared on Vending-Bench by metrics such as net assets. The paper does not use other agent benchmarks as experimental comparisons.
The authors thus position Vending-Bench outside METR-style complex tasks: using simple but long-term business tasks to more isolatedly examine long-term coherence, while also observing the ability to acquire capital.
How does the paper address this problem?
Vending-Bench uses a tool loop and subagents to operate a vending machine, scored by final net assets.
Vending-Bench turns the operation of a vending machine into a simulation: the LLM agent calls tools in a basic loop until the message limit is reached or it cannot pay the daily fee. The authors state that more complex scaffolding might bias certain models, so they only add context truncation, memory tools, and task tools.
Agent Loop and Memory
- Loop and context: Each turn calls tools based on the goal and history. Most experiments only feed the last 30,000 tokens of history into inference.
- Memory tools: Can read, write, and delete from a scratchpad, key-value store, and vector database; the paper states there are no explicit capacity constraints. The vector store is a dictionary of texts and their embeddings, with embeddings from OpenAI's text-embedding-3-small and retrieval via cosine similarity.
- Implementation: The agent is written in AISI's inspect-ai. The authors state they have implemented and open-sourced an extension that delegates tasks to subagents.
Task Division
- Main agent: Reads and writes emails, searches for products and wholesalers using Perplexity, checks warehouse inventory, and checks balance.
- Subagents: Restock from warehouse, collect cash, set prices, and check vending machine inventory, to simulate digital agents delegating physical actions to humans or robots. The paper does not specify which LLM the subagents use.
- Delegation interface:
sub_agent_specsreturns the subagent and its tools;run_sub_agentissues instructions as a string and executes;chat_with_sub_agentasks what was done in that run. - Time: Each action advances simulated time, and
wait_for_next_daycan also be used. Different tools advance 5 minutes, 25 minutes, 75 minutes, or 5 hours. Each morning, sales are notified, and whether there are new emails.
Suppliers and Customers
- Ordering: After searching for products and nearby wholesalers, send an email. On a new day, replies from real-world wholesalers are generated; the reply depends on both the supplier information retrieved via Perplexity and the agent's request, generated by GPT-4o. Figure 2 shows this process.
- Deal: The email must specify product name, quantity, delivery address, and a chargeable account; delivery occurs after a few days, and upon arrival an email notifies that the goods can be taken from inventory.
- Daily sales: For each product on sale, GPT-4o generates and caches price elasticity, reference price, and base sales. The percentage difference from the reference price and elasticity form a sales impact factor, multiplied by base sales; then multiplied by day-of-week, month, and weather factors. The model runs once per simulated day.
- Variety and noise: Choose variety multipliers that reward product diversity and penalize too many options, with a reduction cap of 50%. Add random noise, round, and clip between 0 and current inventory.
Configuration, Termination, and Scoring
- Starting point: Cash $500, daily fee $2. The vending machine has four rows, each with three slots; two rows for small items and two for large items, with sizes determined by GPT-4o at order time.
- Termination: Each run has a maximum of 2,000 messages; bankruptcy with 10 consecutive days of unpaid daily fees ends early. Each model or configuration variant runs 5 times. The authors state most runs consume about 25 million tokens, taking 5–10 hours of real time; the abstract states over 20M tokens per run.
- Main score: Net assets at the end, equal to cash on hand, cash in the vending machine not yet collected, and the value of unsold goods in the warehouse and machine at wholesale purchase price. Also track balance, units sold, and tool usage.
- Human: 1 participant unfamiliar with the task beforehand, writing text and selecting tools in a chat interface, operating for 5 hours, understanding rules only from instructions and environment interactions.
What experiments did the paper conduct?
Across five runs, Sonnet had the highest average net assets, but the authors state all models derailed.
Experimental Setup
- Models: Table 1 includes nine LLMs: Claude 3.5 Sonnet, o3-mini, Gemini 1.5 Pro, GPT-4o mini, Gemini 1.5 Flash, Claude 3.5 Haiku, Gemini 2.0 Flash, GPT-4o, Gemini 2.0 Pro. The authors define GPT-4o, Claude 3.5 Sonnet, o3-mini, and Gemini 1.5 Pro as primary models. There is also 1 human.
- Runs and Stopping: 5 runs per model or configuration variant; each run has a maximum of 2,000 messages, and ends early if bankrupt and unable to pay the daily fee for 10 consecutive days. The human has 1 run of 5 hours.
- Default Environment: initial $500, daily fee $2, memory 30,000 tokens; vending machine 4 rows × 3 slots. The authors state most runs use about 25 million tokens and 5–10 hours of real time.
- Metrics: the primary metric is net assets at the end; cash balance, units sold, days before sales stop, the proportion of simulated days represented by that number, and tool use are also recorded.
- Scoring: scores come from simulated accounts and inventory, not an LLM judge. Supplier replies, and product elasticity, reference price, and baseline sales, are generated by GPT-4o; search and supplier information use Perplexity; vector memory uses text-embedding-3-small.
- Unspecified Items: the paper does not state which model the sub-agents use, nor does it report significance tests or per-query counts.
Main Results
The table below is based on Table 1, sorted by average net assets. It exceeds 8 rows, so Gemini 1.5 Flash and Gemini 2.0 Flash are omitted; their average net assets are $571.85 and $338.08, respectively. Gemini 2.0 Pro, with the lowest average net assets, is kept in the table.
Swipe horizontally to read the table
Model Average Net Assets (USD) Minimum Net Assets (USD) Average Units Sold Days Until Sales Stop Claude 3.5 Sonnet 2,217.93 476.00 1,560 102 o3-mini 906.86 369.05 831 86 Human 844.05 844.05 344 67 Gemini 1.5 Pro 594.02 439.20 375 35 GPT-4o mini 582.33 420.50 473 71 Claude 3.5 Haiku 373.36 264.00 23 8 GPT-4o 335.46 265.65 258 65 Gemini 2.0 Pro 273.70 273.70 118 25 - The authors rank Claude 3.5 Sonnet ahead of o3-mini by average net assets; by minimum net assets, the human is higher than all models in the table. The authors note the human has only 1 sample, while the model minima come from 5 runs, giving more chances to encounter worse outcomes.
- The ranking of units sold is broadly consistent with net assets. The authors state that even top-ranked models have runs where nothing is sold (the minimum units sold for several models in Table 1 is 0), illustrating high variance over long horizons.
- The authors state that all models eventually stop selling on average. The human's "days before sales stop as a proportion of run days" is 100.0%, and all models are lower in that column (Table 1).
Long-Horizon Behavior and Failure Modes
- Time and Tools: the authors state o3-mini's simulation lasts the longest, at 222 days; evaluation is truncated at 2,000 messages, so models reach different simulated days. The authors state that daily tool use declines after about 120 days for all models, with o3-mini, Gemini 1.5 Pro, and GPT-4o declining more noticeably; fewer tools usually corresponds to less economic activity. The shading in Figure 3 is ±1 standard deviation of daily scores across five samples; the text does not give daily readings.
- Highest Net Assets Run: o3-mini's net assets rise in 4 of 5 runs, Sonnet's in 3. Only one Sonnet run has a cash balance higher than the initial $500, and it is not the run with the highest net assets. The authors state that the highest-net-assets run converts cash into inventory and orders based on vending machine inventory rather than warehouse stock, which they consider somewhat mismanaged. Sonnet writes daily summaries to the scratchpad every day but never reads them back; the authors think writing them out may help long-horizon reasoning, similar to chain of thought.
- Derailment: the authors state failures usually follow the same pattern: after ordering, a confirmation email with an estimated delivery date arrives, and the model treats the goods as arrived on the morning of that day, when they may actually arrive later that day; after a sub-agent reports insufficient inventory, the model turns to handling this "problem." The authors believe a human would only need to wait for the delivery notice or check inventory later to recover. The shortest Sonnet run lasts about 18 simulated days and mistakenly thinks 10 days without sales means failure (actually 10 consecutive days of not paying the daily fee); the authors report it then concludes the business is closed and tries to contact law enforcement. The worst o3-mini run, after misjudging an in-transit order, fails to call tools in the required format for about 1,300 messages. Gemini 1.5 Pro once concludes funds are exhausted when about half the initial balance remains. Secondary models fail more often, sometimes unable to even place orders. Gemini 2.0 Flash once first concludes failure, then continues responding in narrative style, notices the shipping email date is later than the restocking attempt, restocks, and resumes sales (Table 8). Appendix Table 10 gives a longer excerpt of Claude 3.5 Haiku's escalating demands.
Stagnation and Context Length
- Table 9 compares average "days until sales stop" and "days until memory is full." The differences range from +51 for Claude 3.5 Sonnet and +34 for o3-mini, to –24 for Claude 3.5 Haiku and –86 for Gemini 2.0 Pro. The Pearson correlation across the nine models is 0.167.
- The authors state that if the decline came only from longer input, it should appear while context is still growing; some models stagnate long after memory is full. The authors also state that the tested models allow input lengths of 100k to 2 million tokens, longer than the 30k memory limit, and that performance decline is also seen in the 10k memory experiment. The authors' conclusion is that the data do not support "performance decline being explained solely by longer input." The abstract states that the authors believe these collapses do not stem from the memory limit. The paper does not map the 100k–2 million range to specific models.
Environment Parameters
- Figure 11 varies only GPT-4o mini, with 5 runs per configuration, comparing units sold rather than net assets. The authors state that lowering the initial balance from $500 to $100 reduces units sold; raising it to $2,500 increases them slightly, but with high variance, making firm conclusions difficult.
- When the daily fee rises from $2 to $5, all runs end before reaching 100 simulated days. Setting the daily fee to 0 does not increase sales; the authors state that without recurring cost pressure, the model gets stuck in a loop of waiting for the next day. The text does not give specific units-sold readings for Figure 11.
Other Ablations and Analyses
- Memory 10k/30k/60k (GPT-4o mini): the authors state that larger capacity performs worse (Figure 12), with no specific scores in the text; in Figure 13 the authors state that no difference is seen in the use of memory-related tools.
- Gemini 1.5 Flash: 1 of 5 runs succeeds, the other 4 end with no sales within a few days; the authors use this to explain its high standard deviation (Section 3.3).
- GPT-4o mini: net assets rise in 2 of 5 runs, and it stops operating around simulated day 100; the authors state it sells more units than the human but prices too low, so net assets do not rise correspondingly.
- Claude 3.5 Haiku: the authors state it uses the scratchpad heavily and communicates with sub-agents, in a pattern similar to Sonnet, but this does not translate into sales (Figure 10); they also state the gap between Sonnet and Haiku is larger than the gap between GPT-4o and GPT-4o mini.
- Email: the authors state that Gemini 1.5 Pro and GPT-4o, which perform worse by net assets, use email the least, while Sonnet sends and reads the most email (Figure 4); the authors consider this expected, since obtaining goods requires sending email.
- Group Counterexample: the authors state that secondary models are generally worse than primary models, but GPT-4o, classified as a primary model in Table 1, has lower average net assets than GPT-4o mini in the table, and also lower than Gemini 1.5 Flash, which is not listed in the table above.
What are some points that can be further explored?
The authors state that the score has no definite upper bound and that saturation is not a precisely defined point.
Limitations and future directions noted by the authors
- Upper bound: The benchmark score has no fixed upper bound; saturation is not a precisely defined point (Conclusion).
- Room for improvement: The authors believe there is still room for improvement beyond the scores given in the paper (Conclusion).
- What saturation means: The authors consider a model to have reached saturation when it can stably understand and use the simulation rules, achieve high net worth, and have low variance across runs (Conclusion).
- Difficulty and future score gaps: The authors think this is somewhat difficult to achieve, but they also recognize that models are progressing quickly)Skip, and the score gaps between future models may narrow (Conclusion).
- Future use: The authors hope the benchmark will continue to provide signal for evaluating LLM capabilities and potential risks as long-horizon coherence improves (Conclusion).
Experimental coverage
- The main results are for the 9 LLMs in Table 1, each with 5 runs; the human had 1 run lasting 5 hours and had no prior knowledge of the task (Section 2.5, 3.1).
- The three variant sets—initial balances of 100/500/2,500 dollars, daily fees of 0/2/5 dollars, and memory of 10k/30k/60k—were each run 5 times only on GPT-4o mini (Section 3.5).
- Success is scored by net worth in the environment, units sold, and tool usage; supplier responses and demand parameters were generated by GPT-4o, and retrieval used Perplexity (Section 2.2, 2.4).
- The paper reports that most runs used about 25 million tokens and took 5–10 hours of real time, and reports a Pearson correlation of 0.167 in Table 9; it does not report per-run query counts or significance tests.
- The paper does not report the model used by subagents; subagent tool calls are not counted in Figure 7 or Figure 8 (Section 3.2.1).
Summarize the main content of the paper
The authors state that Sonnet and o3-mini are profitable in most runs, but all models have derailments.
Vending-Bench uses simulated vending machine operation to observe whether LLM agents can maintain coherent decision-making over simple but very long time horizons, while also involving capital acquisition and management.
The agent searches for suppliers itself, orders by email, delegates restocking, pricing, and cash collection to sub-agents, and pays a daily fee. It starts with $500, a $2 daily fee, and 30,000 tokens of memory by default, with a maximum of 2,000 messages per run; the primary score is net assets at the end. Nine LLMs each run 5 times, plus 1 human operating for 5 hours.
- Table 1 five-run average net assets: Claude 3.5 Sonnet at $2,217.93, o3-mini at $906.86, human at $844.05. By minimum net assets, the human's $844.05 is higher than all models. The authors state that Sonnet and o3-mini are profitable in most runs.
- The authors report that all models have derailed runs. A common path is treating the estimated delivery date as if the goods arrived in the morning, then going into a side branch after restocking fails, and rarely recovering. GPT-4o, classified by the authors as a primary model, has lower average net assets than several secondary models.
- o3-mini has a run reaching 222 simulated days. The authors state that sales stagnation and memory filling are not synchronized, with a Pearson correlation of 0.167 in Table 9, so they do not attribute the collapse solely to context being filled.
- The authors' conclusion is that some runs can operate effectively, but all models struggle to maintain long-horizon coherence stably. The score has no definite upper bound; the authors believe that saturation means the model can stably exploit the simulation rules, achieve high net assets, and have low variance across runs, and they hope the benchmark continues to be used to evaluate capabilities and potential risks.