TL;DR
The paper introduces AgentBench, a comprehensive benchmark designed to evaluate Large Language Models (LLMs) as autonomous agents across eight diverse interactive environments. By testing 29 different models, the authors reveal a massive performance gap between top-tier commercial APIs (like GPT-4) and open-source alternatives, highlighting critical weaknesses in long-term reasoning, instruction following, and decision-making.
What Problem Does This Paper Address?
Historically, LLMs have been evaluated on static NLP tasks like reading comprehension or translation. However, the field is rapidly shifting toward "LLM-as-Agent" paradigms, where models autonomously interact with environments (e.g., browsing the web, using a terminal, or playing games) to achieve high-level goals.
Despite this shift, there has been a lack of a systematic, standardized benchmark to evaluate how well LLMs actually perform as agents. Existing benchmarks either focus on narrow, single-domain text games or rely on complex multi-modal simulators that are hard to use with text-only LLMs. This paper bridges that gap by providing a multi-dimensional, text-based sandbox to rigorously test an LLM's ability to reason, act, and adapt in real-world scenarios.
Methods
The authors frame the evaluation as a Partially Observable Markov Decision Process (POMDP). Instead of just generating a single answer, the LLM must engage in a multi-round dialogue with an environment—taking an action, observing the result, and planning the next step.
Key methodological approaches include:
- Chain-of-Thought (CoT) Prompting: All models are evaluated using a basic CoT strategy (generating a "Thought" before an "Action") to standardize the assessment of their reasoning.
- Decoupled Evaluation Toolkit: Because evaluating agents requires complex, isolated environments (like running actual bash scripts or SQL queries), the authors built a scalable Client-Server architecture. Tasks are encapsulated in Docker containers, allowing safe, conflict-free execution of LLM-generated code and actions.
The AgentBench Framework and Datasets
AgentBench consists of 8 environments categorized into three types of groundings (5 of which were created entirely from scratch for this paper):
- Code-Grounded:
- Operating System (OS): Interacting with a real Ubuntu bash terminal.
- Database (DB): Operating on real databases via SQL.
- Knowledge Graph (KG): Querying Freebase using specific tool APIs.
- Game-Grounded:
- Digital Card Game (DCG): A turn-based battle game requiring strategic planning.
- Lateral Thinking Puzzles (LTP): "Situation puzzles" requiring the agent to ask yes/no questions to deduce a story.
- House Holding (HH): Adapted from ALFWorld, requiring the agent to navigate and manipulate a simulated home.
- Web-Grounded:
- Web Shopping (WS): Adapted from WebShop, navigating an e-commerce site to buy specific items.
- Web Browsing (WB): Adapted from Mind2Web, executing general web tasks (clicking, typing) across various domains.
Key Insights and Results
- GPT-4 Dominates: GPT-4 achieved the highest overall score (4.01), followed by Claude-3 Opus (3.11) and GLM-4 (2.89). In the House Holding environment, GPT-4 achieved a 78% success rate, indicating it is practically usable for certain embodied reasoning tasks.
- The Open-Source vs. Commercial Chasm: There is a staggering gap between top commercial models and open-source (OSS) models. The best-performing OSS model tested was CodeLlama-34b-instruct, which scored only 0.96 overall—less than a quarter of GPT-4's performance. Most OSS models scored below 1.0. While OSS models perform well on static benchmarks, they struggle immensely when forced to maintain coherence over multi-round interactions.
- The "Infinite Loop" Failure Mode: The most common reason models fail is "Task Limit Exceeded." Detailed analysis shows this happens because models get stuck in loops—repeating the exact same failed actions or thoughts over and over, rather than trying a new strategy.
- Code Training is a Double-Edged Sword: It is widely assumed that training LLMs on code improves general reasoning. The authors found this is only partially true. Code-tuned models (like CodeLlama) excel at procedural tasks (like Web Shopping), but their general strategic thinking actually degrades in open-ended scenarios (like the Digital Card Game).
- Self-Correction is a Superpower: The best models (like GPT-4 and Claude) demonstrate the ability to read error messages (e.g., a SQL syntax error) and fix their code in the next round. Weaker models simply crash or repeat the error.
- Alignment Matters: Vicuna-13b (aligned on high-quality GPT-4 generated data) significantly outperformed its base model Llama-2-13b, proving that high-quality multi-round alignment data is crucial for agentic behavior.
Limitations and Future Work
- Model Size Limits: Due to compute constraints, the authors only evaluated open-source models up to 70B parameters.
- Basic Prompting: The benchmark evaluates models using primitive Chain-of-Thought. It does not test more advanced, computationally expensive agentic frameworks like Tree of Thoughts, Reflexion, or multi-agent debates.
- Future Directions: The authors suggest that the community needs to focus heavily on improving instruction following and gathering high-quality, multi-round alignment data to close the gap between open-source and commercial LLM agents.
Summary updated