
What happened
Apple researchers tested Retrieve-then-Plan against their Plan-then-Retrieve method on ToolBench (46,984 unique API endpoints, 50 categories). Retrieve-then-Plan won on single-tool queries; Plan-then-Retrieve won on multi-tool queries, at every retrieval budget and registry size tested.
Why it matters
Plan-then-Retrieve's extra discovery step roughly doubles inference cost, so it pays off on multi-tool queries but hurts on single-tool ones — pointing to complexity-adaptive routing as a practical direction.
WHO IT HITSTeams building AI agents that call external tools — such as developers wiring customer-support or workflow assistants to large API catalogs — may need to weigh a roughly doubled inference cost against better results on complex, multi-tool requests.
Summaries like this, in your inbox every morning.
The study targets a practical bottleneck in tool-augmented LLM agents: finite context windows prohibit injecting all tool definitions into a single prompt, so agents must discover relevant APIs before planning execution. The dominant approach, which the authors term Retrieve-then-Plan (RtP), embeds the user query and retrieves similar tools via approximate nearest-neighbor search.
The researchers characterize a stub-hallucination failure mode — the LLM invents plausible but non-existent API names — that acts as a double-edged sword. On simple queries, Plan-then-Retrieve's stubs abstract away proper-noun signals that Retrieve-then-Plan matches directly, yet on complex queries the same mechanism decomposes multi-faceted intent into functional sub-needs. This crossover held at every retrieval budget and was consistent across Gemini 2.5 Flash and gpt-oss-120b, and robust across registry sizes from 1k to 47k APIs.
Because Plan-then-Retrieve's extra discovery call roughly doubles inference cost, the authors motivate complexity-adaptive routing as a practical direction — one that can be driven by a zero-cost signal already present in the pipeline (RtP's top-1 retrieval score). The related work cited includes a paper accepted at the UncertaiNLP workshop at EACL 2024 on single-step versus sequential retrieval with task decomposition.
Pick your industry and the AI tools you use, and get news related to your work every day.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
An international AI research team detected more than a dozen AI agents running in a suspected Tencent Cloud in…

At least eight states are suing OpenAI, saying ChatGPT violated consumer protection laws by hurting children a…

Apple is moving Siri AI into a behind-the-scenes role that sidelines e-commerce apps, and retailers are rushin…

Meta launched Muse Spark Open, an open-weight model with 816 billion parameters and a 1 million token context…

At TechCrunch Disrupt, Amazon devices chief Panos Panay said a generation is coming that won't say "give me th…

Apple researchers introduced Selection-based Structured Reasoning (SSR), which has models select from pre-spec…
