AIToday
Large Language ModelsApple Machine LearningPublished: Oct 16, 2026, 06:00 JST

Plan-then-Retrieve beats Retrieve-then-Plan on multi-tool queries

Plan-then-Retrieve beats Retrieve-then-Plan on multi-tool queries

3 Key Points

  1. 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.

  2. 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.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

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.

FAQ
What is Plan-then-Retrieve?
It is an alternative to the dominant Retrieve-then-Plan approach in which the LLM first generates Abstract Tool Stubs — hypothesized function signatures describing needed capabilities — which then serve as retrieval queries against the registry.
Where was this tested?
On ToolBench, which has 46,984 unique API endpoints across 50 categories, spanning single-tool (G1), intra-category multi-tool (G2), and cross-category multi-tool (G3) query subsets.
What is the cost trade-off?
Plan-then-Retrieve's extra discovery call roughly doubles inference cost, which pays off on multi-tool queries but hurts on single-tool ones.
Apple Machine LearningRead Original Article

AI news that matters for your work, delivered every morning.

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

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.

Questions and answers are published on this page.

Related Articles

Next articleIBM's Lynch: Start AI from outcomes, not roles