atlas

Research map / Multi-agent systems and games / LLM agents

AnyTool: Self-Reflective, Hierarchical Agents for Large-Scale API Calls

ICML 2024 · Multi-agent systems and games › LLM agents · approach: Software engineering agent benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces AnyTool, a GPT-4-driven agent that retrieves from a 16K+ RapidAPI pool via a hierarchical agent retriever and solves queries with a self-reflective loop, plus a revised evaluation protocol and the AnyToolBench benchmark.

Problem

Tool use with very large API pools (16K+ RapidAPI APIs) exceeds LLM context limits and retrieval is inaccurate, while the existing ToolBench evaluation protocol inflates pass rates for unsolvable queries.

Approach

A training-free, three-tier hierarchical agent retriever (meta-agent, category agents, tool agents) built on GPT-4 function calling, combined with a DFSDT solver and a self-reflection loop that re-activates retriever agents and the solver using failure reasons; the evaluation is revised to drop the solvable/non-solvable phase.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use AnyTool's self-reflective hierarchical retriever and solver instead of ToolLLMToolLLM on filtered ToolBench · Filtered ToolBenchaverage pass rate: 22.9 -> 58.2Helped
use AnyTool's self-reflective hierarchical retriever and solver instead of ToolLLM with a GPT-4 solverToolLLM on AnyToolBench · AnyToolBenchpass rate: 36.6 -> 73.8Helped
add a hierarchical API retriever (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 22.4 vs 58.9; 15.8 vs 63.2Helped
add self-reflection (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 19.6 vs 58.9; 15.8 vs 63.2Helped
replace DFSDT with CoT (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 58.9 -> 50.5; 63.2 -> 60.3Hurt
reactivate all agent levels during self-reflection instead of only tool agents (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 43.9 -> 58.9; 44.7 -> 63.2Helped
reactivate the meta-agent in addition to tool and category agents (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 55.2 -> 58.9; 55.3 -> 63.2Helped
increase the API pool from 1,000 through 5,000 and 10,000 to all APIs (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 18.6; 26.3; 38.1; 58.9 / 7.9; 23.7; 36.8; 63.2Helped
increase the maximum API-candidate pool size from 16 to 32 or 64 (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 49.5; 58.9; 58.9 / 42.1; 55.3; 63.2Mixed
set the maximum tools per tool agent to 5 instead of 3 or 10 (ablation)AnyTool · Filtered ToolBench G2-I and G3-Ipass rate: 48.6; 58.9; 52.3 / 42.1; 57.9; 39.5Mixed

Surprising findings

Limitations

Experimental setup

Datasets: ToolBench

Benchmarks: ToolBench (filtered) AnyToolBench

Metrics: pass rate

Baselines: ToolLLM (ToolLLaMA w/ DFSDT) GPT-4 w/ DFSDT with reference APIs GPT-4 plain agent retriever AutoGen-RAG GPT-4 GPT-3.5 w/ DFSDT

Builds on: ToolLLM DFSDT Chain of Thought AutoGen

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy