AgentBench is the first multi-environment evaluation benchmark for large language models as agents (LLM-as-Agent), proposed by a Tsinghua team and published at ICLR'24. Its goal is to more comprehensively measure the ability of LLMs to operate as autonomous agents in a variety of scenarios.
I. Evaluation Environments and Uses The original AgentBench (v0.2) contains 8 different environments:
- Operating System (OS)
- Knowledge Graph (KG)
- Digital Card Game (DCG)
- Lateral Thinking Puzzle (LTP)
- House-Holding (based on ALFWorld)
- Web Shopping (based on WebShop)
- Web Browsing (based on Mind2Web) Each dataset provides two splits, Dev and Test. Multi-turn interaction requires the LLM to generate approximately 4k and 13k times, respectively.
II. AgentBench FC (Function Calling Version) The current repository contains a function-calling-based version of AgentBench, integrating AgentRL—an end-to-end multi-task, multi-turn LLM Agent reinforcement learning framework. Compared with the original AgentBench, this version uses function-calling-style prompts and adds fully containerized deployment support for the following tasks:
- knowledgegraph (KG)
- os_interaction (OS) These tasks support one-click rapid setup via Docker Compose.
III. VisualAgentBench (2024.08.13) VisualAgentBench is used for the evaluation and training of visually grounded agents based on large multimodal models (LMMs), and contains 5 different environments:
- Embodied: VAB-OmniGibson, VAB-Minecraft
- GUI: VAB-Mobile, VAB-WebArena-Lite
- Visual Design: VAB-CSS It systematically benchmarks 17 LMMs (including proprietary and open-source models), and provides trajectory datasets for behavior cloning training on open-source LMMs to develop your own visually grounded agents.
IV. Usage (taking the original v0.2 quick start for dbbench-std and os-std as an example) Step 1: Prerequisites
- Clone the repository and install dependencies. Note that AgentBench pins older scientific computing Python dependencies (such as numpy~=1.23.x), and it is recommended to install using Python 3.9 via conda.
- Ensure Docker is correctly installed.
- Build the required images for dbbench-std and os-std.
Step 2: Configure the Agent
- Fill in the OpenAI API Key in configs/agents/openai-chat.yaml (for example, gpt-3.5-turbo-0613).
- You can use python -m src.client.agent_test to check whether the Agent is configured correctly.
Step 3: Start the task server
- Starting task_worker requires assuming that ports 5000 to 5015 are available (Mac OS users need to free port 5000 first).
- The automation script will start five task_workers each for dbbench-std and os-std, and automatically connect to the controller on port 5000. After execution, setup takes about 1 minute; once the terminal displays "... 200 OK", you can continue.
- If you want to start with minimal concurrency (1 worker per task), you can use the lite preset.
Step 4: Start the assigner
- This step actually begins executing the task tests. If the previous configuration is correct, you can initiate the tests.
- If you started the task server with the lite preset, you can also run the lite evaluation preset.
Environment Deployment Notes
- The remaining five tasks require downloading the official Docker images.
- The Knowledge Graph (KG) task depends on an online service. If local deployment is needed: first download the database and set up the freebase-setup service; then in /configs/tasks/kg.yaml change sparql_url from "http://164.107.116.56:3093/sparql” Change it to your own SPARQL service address. Note that the KG service should be started before starting the agent task service.
Resources and limitations
- Starting the webshop environment requires about 16GB of memory.
- The current alfworld implementation leaks memory and disk space before the task worker restarts, so ensure the machine has sufficient resources before running.
- AgentBench pins older Python scientific dependencies, so Python 3.9 is recommended.
- The original AgentBench results show that although LLMs are beginning to demonstrate capabilities as agents, the gaps between models and the distance from practical usability remain significant.
V. Extensions If you need to add new tasks to AgentBench, refer to the extension guide. The Avalon task was merged from AvalonBench and implements a multi-agent framework.