Lookahead-R:基于执行中心规划的预算感知工具检索

arXiv cs.CL 论文

摘要

Lookahead-R 将工具检索重构为受资源约束的序贯决策问题,用轻量级执行感知代理世界模型驱动成本敏感的 MCTS,在 ToolBench 的 I3 分割上取得 91.40% 的 NDCG@5,超过 ToolGen (90.16%)。

arXiv:2609.35811v1 Announce Type: new Abstract: Tool retrieval is a critical bottleneck for LLM-based agents operating over large, heterogeneous API ecosystems. Existing approaches face an inherent trade-off: semantic retrievers are fast but suffer from the semantic-functional gap, while execution-based validation improves precision at the cost of prohibitive latency. We propose Lookahead-R, a planning-based framework that reformulates tool retrieval as a resource-constrained sequential decision-making problem. At its core, Lookahead-R introduces a lightweight execution-aware surrogate world model that jointly predicts tool execution success, latency cost, and semantic utility---without invoking real APIs. This world model drives a cost-sensitive, uncertainty-guided Monte Carlo Tree Search that navigates the tool space under strict budget constraints. Evaluated on the large-scale ToolBench benchmark, Lookahead-R achieves a superior accuracy-efficiency trade-off across all test scenarios. On the most challenging I3 split, it attains an NDCG@5 of 91.40\%, outperforming the state-of-the-art ToolGen (90.16\%) by 1.24\%. Ablation studies confirm that explicit latency modeling is the key discriminative signal for identifying high-quality tools under resource constraints.
查看原文
查看缓存全文

缓存时间: 2026/09/30 09:48

# Lookahead-R: Budget-Aware Tool Retrieval via Execution-Centric Planning
Source: [https://arxiv.org/html/2609.35811](https://arxiv.org/html/2609.35811)
Conference:International Conference on Multimedia Retrieval; June 16–19, 2026; Amsterdam, NetherlandsInternational Conference on Multimedia Retrieval \(ICMR ’26\), June 16–19, 2026, Amsterdam, NetherlandsDOI:[10\.1145/3805622\.3810632](https://doi.org/10.1145/3805622.3810632)ISBN:979\-8\-4007\-2617\-0/2026/06CCS:Retrieval models and rankingCCS:Multimedia and multimodal retrievalCCS:Intelligent agentsZongze Wuemail:[wuzz@bupt\.edu\.cn](mailto:[email protected])Affiliation:Beijing University of Posts and Telecommunications,Beijing,ChinaYani Guoemail:[gyn@bupt\.edu\.cn](mailto:[email protected])Affiliation:Beijing University of Posts and Telecommunications,Beijing,ChinaandRunnan LiNote:Corresponding authoremail:[runnan\.li@bupt\.edu\.cn](mailto:[email protected])Affiliation:Beijing University of Posts and Telecommunications,Beijing,China

© cc

###### Abstract\.

Tool retrieval is a critical bottleneck for LLM\-based agents operating over large, heterogeneous API ecosystems\. Existing approaches face an inherent trade\-off: semantic retrievers are fast but suffer from the semantic\-functional gap, while execution\-based validation improves precision at the cost of prohibitive latency\. We proposeLookahead\-R, a planning\-based framework that reformulates tool retrieval as a resource\-constrained sequential decision\-making problem\. At its core, Lookahead\-R introduces a lightweightexecution\-aware surrogate world modelthat jointly predicts tool execution success, latency cost, and semantic utility—without invoking real APIs\. This world model drives acost\-sensitive, uncertainty\-guided Monte Carlo Tree Searchthat navigates the tool space under strict budget constraints\. Evaluated on the large\-scale ToolBench benchmark, Lookahead\-R achieves a superior accuracy\-efficiency trade\-off across all test scenarios\. On the most challenging I3 split, it attains an NDCG@5 of91\.40%, outperforming the state\-of\-the\-art ToolGen \(90\.16%\) by1\.24%\. Ablation studies confirm that explicit latency modeling is the key discriminative signal for identifying high\-quality tools under resource constraints\.

###### Keywords:

Tool Retrieval, Large Language Models, Monte Carlo Tree Search, Resource\-Constrained Inference

††cc\-license:by![Refer to caption](https://arxiv.org/html/2609.35811v1/figs/1.png)Figure 1\.Comparison between previous paradigms and Lookahead\-R\. We illustrate the workflow in two scenarios: a tool retrieval task, where the model retrieves the correct tool for a given query, and an LLM\-based agent task, where the model completes complex tasks involving real\-world API calls\.Unlike methods relying on static similarity matching, Lookahead\-R reformulates retrieval as a planning problem\. A learned world model enables virtual simulation and uncertainty\-aware decision\-making to select tools based on execution feasibility rather than just semantics\.## 1\.Introduction

Large Language Models \(LLMs\) have revolutionized information access yet remain constrained by static knowledge bases and an inability to natively interact with dynamic environments\([Mialon et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib24);[Schick et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib1)\)\. To bridge this gap,*tool augmentation*has emerged as a paramount paradigm, empowering LLMs to interface with external search engines, databases, and domain\-specific APIs\. This evolution transforms LLMs from passive text generators into active agents capable of executing complex, real\-world tasks\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9);[Patil et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib3)\)\.

In search scenarios, agents must navigate massive repositories to satisfy diverse user needs\([Xu and others, 2024](https://arxiv.org/html/2609.35811#bib.bib32)\)\. However, the scale and functional complexity of available APIs create a bottleneck\. The pivotal challenge lies in*tool retrieval*: accurately pinpointing the specific tool required from thousands of candidates\([Shi and others,](https://arxiv.org/html/2609.35811#bib.bib25)\)\. As illustrated in Figure[1](https://arxiv.org/html/2609.35811#S0.F1), unlike traditional document retrieval, this task necessitates not only semantic relevance but also*execution feasibility*, as seemingly relevant tools frequently fail due to parameter mismatches or system constraints, widening the*semantic–functional gap*\([Qu and others, 2025](https://arxiv.org/html/2609.35811#bib.bib26);[Yuan et al\., 2025](https://arxiv.org/html/2609.35811#bib.bib28)\)\.

Existing methods address this challenge from two extremes\. Semantic retrievers rank tools based on textual similarity between queries and tool descriptions, offering low latency but limited reliability in execution\([Song et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib27);[Tang et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib15)\)\. Execution\-based validation improves success rates by invoking candidate tools, but incurs repeated API calls and prohibitive latency\([Shinn et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib31);[Yao et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib2)\)\. This trade\-off highlights a fundamental problem: how to achieve high tool success rates under strict latency and resource budgets\.

In this work, we argue that the above limitations arise from treating tool retrieval as a static ranking problem\. Instead, we reformulate it as aResource\-Constrained Sequential Decision\-Makingproblem, where selecting a tool is an action that incurs latency costs and carries execution risks\. Based on this formulation, we proposeLookahead\-R\(LookaheadPlanning forRetrieval\)\. Unlike discriminative scorers, Lookahead\-R introduces anExecution\-Aware Surrogate World Modeltrained via aStudent\-Teacher Miningprotocol\. This model functions as a "mental simulator," generating structured predictions of execution outcomes \(success/failure\), latency costs, and utility without invoking real APIs\([Wang et al\., 2024a](https://arxiv.org/html/2609.35811#bib.bib29);[Zhou et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib13)\)\. On top of this model, we design aCost\-Sensitive, Uncertainty\-Guided Monte Carlo Tree Search \(MCTS\)algorithm\. This planner explicitly balances exploration against budget constraints, identifying optimal trajectories by pruning high\-risk branches early\([Sun et al\., 2023a](https://arxiv.org/html/2609.35811#bib.bib30)\)\. Crucially, the framework operates as ananytime algorithm, capable of delivering valid solutions instantly while progressively refining decision quality as the computational budget permits\.

We evaluate Lookahead\-R on the massive ToolBench benchmark\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9);[Xu and others, 2024](https://arxiv.org/html/2609.35811#bib.bib32)\)\. Experimental results demonstrate that Lookahead\-R defines a new state\-of\-the\-art Pareto frontier, surpassing advanced generative baselines by1\.24% in NDCG@5on complex intra\-collection queries while significantly reducing inference latency\. In summary, our main contributions are:

- •Paradigm Shift:We transcend static semantic matching by theoretically reformulating tool retrieval as a resource\-constrained planning problem, enabling dynamic adaptation to execution risks and budgets\.
- •Bridging the Semantic\-Functional Gap:We propose aStudent\-Teacherprotocol to mine execution physics\. This trains a surrogate world model to perform accurate "mental simulations," eliminating the need for expensive online trial\-and\-error\.
- •Resolution of the Efficiency\-Accuracy Trade\-off:We design an uncertainty\-guided MCTS algorithm functioning as ananytime planner\. This mechanism allows immediate valid responses while progressively refining decision quality as the budget permits\.

## 2\.Related Work

### 2\.1\.LLMs for Multi\-modal Retrieval

Large Language Models \(LLMs\) have fundamentally transformed information retrieval \(IR\), evolving from simple keyword matching to semantic understanding of user intent\. In modern IR architectures, LLMs function not only as rerankers but also as active reasoners capable of bridging the gap between textual queries and diverse modalities, including images, audio, and structured knowledge bases\([Mialon et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib24);[Karpukhin et al\., 2020](https://arxiv.org/html/2609.35811#bib.bib44)\)\. This capability is particularly pivotal in multi\-modal retrieval, where agents must interpret complex user needs and retrieve non\-textual resources\. Recently, this paradigm has extended to "executable capabilities" as a new modality, where the retrieval target shifts from static documents to dynamic tools and APIs, requiring the model to understand not just semantic relevance but also functional affordance\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9);[Schick et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib1)\)\.

### 2\.2\.Structured Tool Retrieval

Building upon the retrieval capabilities of LLMs, tool augmentation has emerged as a critical paradigm\. Foundational frameworks like Toolformer\([Schick et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib1)\)and ReAct\([Yao et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib2)\)established the capability of LLMs to interleave reasoning with API calls\. To evaluate these capabilities at scale, benchmarks such as ToolBench\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9)\)and API\-Bench\([Li et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib4)\)introduced massive repositories of executable APIs\. More recently, ToolLLM\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9)\)expanded this scope to over 16,000 real\-world APIs, revealing that simple prompting is insufficient for large\-scale tool selection\.

Consequently, tool retrieval has evolved from flat semantic matching to structured decision\-making\. Early methods relied on dense retrievers\([Sun et al\., 2023b](https://arxiv.org/html/2609.35811#bib.bib5);[Izacard et al\., 2022](https://arxiv.org/html/2609.35811#bib.bib6)\)to map queries to documentation\. However, in 2024, the field moved towards more sophisticated architectures\. AnyTool\([Du et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib10)\)introduced a hierarchical retrieval mechanism utilizing a mixture\-of\-experts router to navigate massive tool spaces efficiently\. Similarly, ToolGen\([Zhang et al\., 2024b](https://arxiv.org/html/2609.35811#bib.bib11)\)unified retrieval and execution by treating tool pointers as virtual tokens\. Confucius\([Shen et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib12)\)further proposed an iterative retrieval\-finetuning framework\. Despite these advancements, most existing retrievers still treat tool selection as a deterministic matching problem based solely on semantic relevance, overlooking thestochastic natureof tool execution\. Our work reformulates retrieval as a prediction problem grounded in execution outcomes\.

### 2\.3\.Model\-Based Planning and World Models

To enhance the reliability of complex agents, research has increasingly incorporated model\-based planning\. Drawing inspiration from world models in reinforcement learning\([Ha and Schmidhuber, 2018](https://arxiv.org/html/2609.35811#bib.bib7);[Hafner et al\., 2020](https://arxiv.org/html/2609.35811#bib.bib8)\), recent language agents employ tree search algorithms to explore reasoning paths\. Prominent examples include Tree of Thoughts\([Yao et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib19)\)and RAP\([Hao et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib20)\)\. State\-of\-the\-art frameworks like Language Agent Tree Search \(LATS\)\([Zhou et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib13)\)and CRITIC\([Gou et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib14)\)have further integrated Monte Carlo Tree Search \(MCTS\) with self\-verification mechanisms\.

However, a critical gap remains: these frameworks primarily simulate*textual reasoning steps*rather than*physical tool execution dynamics*\([Yao et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib2);[Huang and others, 2025](https://arxiv.org/html/2609.35811#bib.bib37);[Li and others, 2025](https://arxiv.org/html/2609.35811#bib.bib39)\)\. They typically assume the environment is a black box that must be queried to obtain feedback, which is computationally prohibitive for API retrieval tasks\([Miao and others, 2025](https://arxiv.org/html/2609.35811#bib.bib35);[Du and others, 2025](https://arxiv.org/html/2609.35811#bib.bib36)\)\. In contrast, Lookahead\-R introduces a specialized*Tool Execution World Model*\([Wang and others, 2025](https://arxiv.org/html/2609.35811#bib.bib34);[Chen and others, 2025](https://arxiv.org/html/2609.35811#bib.bib38)\), serving as a low\-cost surrogate that predicts execution success, latency, and utility without expensive real\-world interactions\.

### 2\.4\.Cost\-Aware Inference and Data Synthesis

As agentic systems move towards real\-world deployment, optimizing the trade\-off between performance, data availability, and cost has become paramount\. Cost\-aware inference has been formalized in works like FrugalGPT\([Chen et al\., 2024a](https://arxiv.org/html/2609.35811#bib.bib17)\), which employs cascading architectures to route queries to cheaper models, while frameworks like EcoAssistant\([Zhang et al\., 2024a](https://arxiv.org/html/2609.35811#bib.bib16)\)demonstrate that code\-driven planning can significantly reduce API calls\. Parallel to these optimization efforts, synthetic data generation has become standard for scaling capabilities; for instance, ToolAlpaca\([Tang et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib15)\)utilizes multi\-agent simulations to generate diverse tool\-use trajectories to overcome the scarcity of real\-world interaction data\.

Our work synthesizes these two directions to achieve budget\-aware retrieval\([Xu and others, 2024](https://arxiv.org/html/2609.35811#bib.bib32);[Shi and others, 2025](https://arxiv.org/html/2609.35811#bib.bib41)\)\. We leverage large\-scale synthetic data not merely to clone behavior, but to distill a world model that captures the "physics" of execution, including failure modes and latency profiles\([Wang and others, 2025](https://arxiv.org/html/2609.35811#bib.bib34);[Miao and others, 2025](https://arxiv.org/html/2609.35811#bib.bib35);[Zhu and others, 2025](https://arxiv.org/html/2609.35811#bib.bib33)\)\. By explicitly modeling the "cost of failure"\([Zhang and others, 2025](https://arxiv.org/html/2609.35811#bib.bib43);[Li and others, 2025](https://arxiv.org/html/2609.35811#bib.bib39)\), we enable the MCTS planner to optimize for the pareto frontier of accuracy and efficiency\([Zhou et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib13);[Liu et al\., 2025](https://arxiv.org/html/2609.35811#bib.bib42);[Zhang and others, 2024](https://arxiv.org/html/2609.35811#bib.bib18)\), allowing Lookahead\-R to operate effectively under strict latency budgets\.

## 3\.Method

The core challenge in agentic tool retrieval lies in the fundamental dichotomy betweenefficiencyandreliability\. While semantic retrievers offer low\-latency candidate generation, they suffer from the "semantic\-functional gap," often ranking hallucinatory or invalid tools highly\. Conversely, execution\-based validation ensures reliability but incurs prohibitive latency costs due to real\-world API interactions\. To bridge this gap, we proposeLookahead\-R, a decision\-centric framework that reformulates retrieval as a planning problem\. As shown in Figure[2](https://arxiv.org/html/2609.35811#S3.F2), the framework operates in three phases: \(1\)Student\-Teacher Data Synthesisto mine execution traces; \(2\)World Model Trainingto construct the execution\-aware surrogate; and \(3\) OnlineUncertainty\-Guided MCTSthat performs "virtual rollouts" to identify optimal tools under budget constraints\.

![Refer to caption](https://arxiv.org/html/2609.35811v1/figs/structure.png)Figure 2\.Overview of Lookahead\-R\. \(A\) Data Synthesis: A Student\-Teacher protocol constructs execution traces \(latency, errors\) to bridge data gaps\. \(B\) Model Training: A Llama\-3 backbone is fine\-tuned as a Predictive World Model\. \(C\) MCTS Inference: The planner utilizes structured JSON predictions to perform virtual rollouts, aggressively pruning high\-cost branches \(e\.g\., timeouts\) to ensure budget adherence\.### 3\.1\.Problem Formulation

We formalize budget\-aware tool retrieval as aResource\-Constrained Multi\-Objective Planning \(RC\-MOP\)problem\. Unlike static ranking, this formulation explicitly models the stochastic nature of tool execution and the trade\-off between utility and latency\. The problem is defined by the tuple𝒫=⟨𝒬,𝒯,𝒮,𝒜,𝒲,𝒞,B⟩\\mathcal\{P\}=\\langle\\mathcal\{Q\},\\mathcal\{T\},\\mathcal\{S\},\\mathcal\{A\},\\mathcal\{W\},\\mathcal\{C\},B\\rangle\. Our objective is to learn a policyπ\\pithat maximizes the expected utilityℛ\\mathcal\{R\}while strictly adhering to a latency budgetBB:

\(1\)π∗=arg​maxπ⁡𝔼τ∼π​\[∑t=0Kℛ⁡\(st,at\)\]s\.t\.∑t=0K𝒞⁡\(at\)≤B\\pi^\{\*\}=\\operatorname\*\{arg\\,max\}\_\{\\pi\}\\mathbb\{E\}\_\{\\tau\\sim\\pi\}\\left\[\\sum\_\{t=0\}^\{K\}\\mathcal\{R\}\(s\_\{t\},a\_\{t\}\)\\right\]\\quad\\text\{s\.t\.\}\\quad\\sum\_\{t=0\}^\{K\}\\mathcal\{C\}\(a\_\{t\}\)\\leq B
Key components of the tuple are defined as follows:

- •Query & Tool Space \(𝒬,𝒯\\mathcal\{Q\},\\mathcal\{T\}\):𝒬\\mathcal\{Q\}denotes the set of user intents\.𝒯\\mathcal\{T\}represents the repository of executable APIs, where each toolttincludes schema definitions\.
- •State & Action \(𝒮,𝒜\\mathcal\{S\},\\mathcal\{A\}\):A statesks\_\{k\}encodes the search history\. An actiona∈𝒜a\\in\\mathcal\{A\}represents the decision tosimulateorselecta specific tool\.
- •World Model \(𝒲\\mathcal\{W\}\):A learnable surrogate model𝒲⁡\(s,a\)→\(s′,r^,c^\)\\mathcal\{W\}\(s,a\)\\to\(s^\{\\prime\},\\hat\{r\},\\hat\{c\}\)that predicts the execution outcome, utilityr^\\hat\{r\}, and costc^\\hat\{c\}without invoking real APIs\. This enables low\-cost "lookahead" simulation\.
- •Unified Cost Metric \(𝒞\\mathcal\{C\}\):To penalize unreliable tools, we define the cost of an actionaaas: \(2\)𝒞⁡\(a\)=\{Latency​\(a\),if execution succeedsBmax,if execution fails\\mathcal\{C\}\(a\)=\\begin\{cases\}\\text\{Latency\}\(a\),&\\text\{if execution succeeds\}\\\\ B\_\{\\max\},&\\text\{if execution fails\}\\end\{cases\}whereBmaxB\_\{\\max\}is the budget limit\. This "Failure as Penalty" mechanism forces the planner to prune functionally invalid branches early\.

### 3\.2\.World Model with Critical Judging

To implement the transition function𝒲⁡\(s,a\)\\mathcal\{W\}\(s,a\)defined in Section[3\.1](https://arxiv.org/html/2609.35811#S3.SS1), we instantiate an instruction\-following Large Language Model \(LLM\) as aPredictive World Model\. Unlike discriminative approaches that output scalar scores, this model acts as a virtual surrogate environment, predicting the detailed physical outcomes of tool invocation—including specific error messages, latency costs, and utility scores\. This design enables the agent to "preview" execution consequences and estimate the riskr^\\hat\{r\}without incurring real\-world overhead\.

##### Input Representation\.

Given a user queryqq, a tool descriptiontt, and the execution historyHH, we construct a unified textual contextx=\[Icrit;q;H;t\]x=\[I\_\{\\text\{crit\}\};q;H;t\]\. Here,IcritI\_\{\\text\{crit\}\}is a specialized system instruction enforcing a "Critical Judge" persona\. The tool schema is serialized into a canonical natural language format, allowing the backbone LLM to jointly encode semantic intent and structural affordances of the tool within a single prompt\.

##### Probabilistic Formulation\.

We parametrize the world model as a conditional probability distributionPθ​\(y∣x\)P\_\{\\theta\}\(y\\mid x\)over a structured JSON outputyy\. The generation is factorized auto\-regressively:

\(3\)Pθ​\(y∣x\)=∏i=1\|y\|Pθ​\(yi∣y<i,x\),P\_\{\\theta\}\(y\\mid x\)=\\prod\_\{i=1\}^\{\|y\|\}P\_\{\\theta\}\(y\_\{i\}\\mid y\_\{<i\},x\),whereθ\\thetadenotes the model parameters\. Instead of scalar outputs, the targetyyis a structured tuple⟨resp,v^,r^,c^⟩\\langle\\text\{resp\},\\hat\{v\},\\hat\{r\},\\hat\{c\}\\rangle, providing comprehensive supervision:

1. \(1\)Simulated Response \(resp\)\.A textual hallucination of the API return \(e\.g\., specific error messages like"Missing argument: year"\)\. This allows the planner to reason about specific failure modes rather than just binary success\.
2. \(2\)Utility \(v^\\hat\{v\}\) & Risk \(r^\\hat\{r\}\)\.Scalar estimates normalized to\[0,1\]\[0,1\]\.v^\\hat\{v\}measures the functional progress towards solvingqq, whiler^\\hat\{r\}captures the probability of execution failure or hallucination, acting as a safety guardrail\.
3. \(3\)Latency Bucket \(c^\\hat\{c\}\)\.Predicting precise execution latency is inherently noisy due to stochastic system variance\. Therefore, we discretize the continuous cost values into categorical semantic tokensℬ=\{INSTANT,FAST,SLOW,TIMEOUT\}\\mathcal\{B\}=\\\{\\texttt\{INSTANT\},\\texttt\{FAST\},\\texttt\{SLOW\},\\texttt\{TIMEOUT\}\\\}\. Due to our failure\-penalty mechanism \(Section 3\.2\), theTIMEOUTtoken implicitly captures "high\-risk" tools, effectively transforming the raw latency prediction into a robust reliability metric\.

##### Robust Training Objective\.

Standard fine\-tuning often leads to overfitting on surface\-level tool descriptions\. To force the model to learn causal execution logic, we applyNoisy Embedding Instruction Fine Tuning \(NEFTune\)\. We optimize the negative log\-likelihood with uniform noiseϵ\\epsiloninjected into the embedding vectors:

\(4\)ℒ⁡\(θ\)=−𝔼\(x,y\)∼𝒟​\[log⁡Pθ​\(y∣Emb​\(x\)\+ϵ\)\],\\mathcal\{L\}\(\\theta\)=\-\\mathbb\{E\}\_\{\(x,y\)\\sim\\mathcal\{D\}\}\\left\[\\log P\_\{\\theta\}\(y\\mid\\text\{Emb\}\(x\)\+\\epsilon\)\\right\],whereϵ∼Unif​\[−αL​d,αL​d\]\\epsilon\\sim\\text\{Unif\}\[\-\\frac\{\\alpha\}\{\\sqrt\{Ld\}\},\\frac\{\\alpha\}\{\\sqrt\{Ld\}\}\]\. This regularization prevents the model from memorizing exact token patterns, significantly enhancing generalization to unseen tools\.

##### Critical Judge Alignment\.

To improve reliability under ambiguity, the system instructionIcritI\_\{\\text\{crit\}\}biases the generation towards risk aversion\. It explicitly penalizes parameter uncertainty by shifting the probability mass of the output towards high\-risk tokens \(r^→1\\hat\{r\}\\to 1\) when necessary arguments are missing, effectively aligning the model’s predictions with safety constraints\.

##### Implementation Details\.

We fine\-tune the Llama\-3\-8B backbone using QLoRA\([Dettmers et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib49)\)\(Quantized Low\-Rank Adaptation\) to maintain low memory overhead\. The model is trained on the Student\-Teacher execution traces withα=5\\alpha=5for NEFTune\([Jain et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib48)\)\. This design allows the world model to learn rich execution\-aware representations while maintaining the inference efficiency required for real\-time MCTS planning\.

Overall, this generative paradigm enables the model to learn not only whether a tool is correct, but also "why" it might fail, providing a holistic execution\-aware representation for downstream budget\-aware planning\.

Algorithm 1Lookahead\-R: Budget\-Aware Tool Retrieval1:Query

qq, Candidates

𝒞c​a​n​d\\mathcal\{C\}\_\{cand\}, Budget

BB, Model

𝒲θ\\mathcal\{W\}\_\{\\theta\}
2:Optimal Tool

t∗t^\{\*\}
3:

s0←Node​\(q\)s\_\{0\}\\leftarrow\\text\{Node\}\(q\),

Br​e​m​a​i​n←BB\_\{remain\}\\leftarrow B
4:Phase 1: Deep Tree Search

5:while

n<Nr​o​l​l​o​u​t​sn<N\_\{rollouts\}and

Br​e​m​a​i​n\>0B\_\{remain\}\>0do

6:

v←s0v\\leftarrow s\_\{0\}
7:while

vvis expandedand

vvis not terminaldo

8:

v←arg⁡maxv′∈v\.c​h​i​l​d​r​e​n​CSU\-UCB​\(v′\)v\\leftarrow\\arg\\max\_\{v^\{\\prime\}\\in v\.children\}\\text\{CSU\-UCB\}\(v^\{\\prime\}\)
9:endwhile

10:// Expansion \(Policy\)

11:if

vvis not terminalthen

12:

P\(a\|s\)←𝒲θ\.ComputePriors\(v\.state,𝒞c​a​n​d\)P\(a\|s\)\\leftarrow\\mathcal\{W\}\_\{\\theta\}\.\\text\{ComputePriors\}\(v\.state,\\mathcal\{C\}\_\{cand\}\)
13:Expand

vvwith children using

P⁡\(a\|s\)P\(a\|s\)
14:

vn​e​w←SelectChild​\(v\)v\_\{new\}\\leftarrow\\text\{SelectChild\}\(v\)
15:// Simulation \(Value\)

16:

ρ←𝒲θ\.GenerateParams\(v\.state,vn​e​w\.tool\)\\rho\\leftarrow\\mathcal\{W\}\_\{\\theta\}\.\\text\{GenerateParams\}\(v\.state,v\_\{new\}\.tool\)
17:

v^,r^,c^,resp←𝒲θ\.Simulate\(v\.state,vn​e​w\.tool,ρ\)\\hat\{v\},\\hat\{r\},\\hat\{c\},\\text\{resp\}\\leftarrow\\mathcal\{W\}\_\{\\theta\}\.\\text\{Simulate\}\(v\.state,v\_\{new\}\.tool,\\rho\)
18:// Budget Update

19:if

c^\>Br​e​m​a​i​n\\hat\{c\}\>B\_\{remain\}then

v^←−1\.0\\hat\{v\}\\leftarrow\-1\.0
20:elseBr​e​m​a​i​n←Br​e​m​a​i​n−c^B\_\{remain\}\\leftarrow B\_\{remain\}\-\\hat\{c\}

21:endif

22:

Backpropagate​\(vn​e​w,v^,r^,c^\)\\text\{Backpropagate\}\(v\_\{new\},\\hat\{v\},\\hat\{r\},\\hat\{c\}\)
23:Update state:

s′←s\+\(vn​e​w\.tool,resp\)s^\{\\prime\}\\leftarrow s\+\(v\_\{new\}\.tool,\\text\{resp\}\)
24:endif

25:endwhile

26:Phase 2: Robust Decision

27:return

argmaxc​h​i​l​d∈s0\.c​h​i​l​d​r​e​n\(child\.visits\)\\arg\\max\_\{child\\in s\_\{0\}\.children\}\(child\.visits\)

### 3\.3\.Uncertainty\-Guided MCTS Planning

With the World Model𝒲\\mathcal\{W\}serving as a low\-cost surrogate \(Section[3\.2](https://arxiv.org/html/2609.35811#S3.SS2)\), we transform retrieval into a dynamic search problem\. We propose anUncertainty\-Guided Monte Carlo Tree Search \(MCTS\)algorithm that leverages the predicted costc^\\hat\{c\}and riskr^\\hat\{r\}to optimize the objective in Eq\.[1](https://arxiv.org/html/2609.35811#S3.E1)\. By performing "virtual rollouts" via the model, this planner explicitly explores potential execution paths and prunes high\-risk branches before committing to a final tool selection, ensuring adherence to the latency budget\.

##### Decision Tree Formulation\.

We construct a search tree where the root represents the initial query states0s\_\{0\}, and each edge corresponds to a candidate tool actionaa\. Unlike standard MCTS which relies on random rollouts, our planner utilizes theGenerative World Model𝒲\\mathcal\{W\}to perform "virtual rollouts," predicting future statess′s^\{\\prime\}, rewardsv^\\hat\{v\}, and costsc^\\hat\{c\}without incurring physical API latency\.

##### Multi\-Objective Selection Strategy \(CSU\-UCB\)\.

Standard UCB assumes uniform action costs, which is unrealistic for API environments\. We propose a Cost\-Sensitive Uncertainty UCB \(CSU\-UCB\) rule to guide the tree traversal\. The selection score for nodejjis defined as:

\(5\)Score​\(j\)=Q⁡\(j\)⏟Exploitation\+Cp​u​c​t⋅P⁡\(j\)​∑Ni1\+Nj⏟Prior\-Guided Exploration−β⋅C¯​\(j\)⏟Cost Penalty\\text\{Score\}\(j\)=\\underbrace\{Q\(j\)\}\_\{\\text\{Exploitation\}\}\+\\underbrace\{C\_\{puct\}\\cdot P\(j\)\\frac\{\\sqrt\{\\sum N\_\{i\}\}\}\{1\+N\_\{j\}\}\}\_\{\\text\{Prior\-Guided Exploration\}\}\-\\underbrace\{\\beta\\cdot\\bar\{C\}\(j\)\}\_\{\\text\{Cost Penalty\}\}Here,Q⁡\(j\)Q\(j\)is the estimated value, aggregating both utility and risk:Q⁡\(j\)=V¯​\(j\)−λ​R¯​\(j\)Q\(j\)=\\bar\{V\}\(j\)\-\\lambda\\bar\{R\}\(j\), whereV¯\\bar\{V\}andR¯\\bar\{R\}are the average predicted utility and failure risk from the world model\. The term−β​C¯​\(j\)\-\\beta\\bar\{C\}\(j\)acts as aSafety\-Aware Pruningmechanism: since our world model is trained to assign high costs \(timeouts\) to irrelevant or unsafe tools, this term aggressively prunes risky branches early, concentrating the search budget on semantically plausible and functionally safe candidates\.

##### Virtual Lookahead Simulation\.

Upon expanding a leaf node, instead of executing the tool, we query the world model:⟨resp,v^,r^,c^⟩←𝒲⁡\(s,a\)\\langle\\text\{resp\},\\hat\{v\},\\hat\{r\},\\hat\{c\}\\rangle\\leftarrow\\mathcal\{W\}\(s,a\)\. This virtual feedback updates the node statistics\. Crucially, if the predicted costc^\\hat\{c\}exceeds the remaining budgetBremainB\_\{\\text\{remain\}\}, the branch is immediately penalized \(Q←−1Q\\leftarrow\-1\), preventing the planner from recommending feasible but unaffordable tools\.

##### Anytime Termination & Scalability\.

Our planner is designed as ananytime algorithm\. It maintains a valid solution at every step and iteratively refines it\. The search terminates when \(i\) the computational budget is exhausted \(Bremain≤0B\_\{\\text\{remain\}\}\\leq 0\), or \(ii\) the visit count distribution converges, indicating high confidence\. This property ensures strict adherence to Service Level Agreements \(SLA\) while allowing the system to scale its "thinking time" dynamically based on available resources\.

### 3\.4\.Student\-Teacher Data Synthesis

The predictive capability of our framework relies on high\-quality supervision grounded in physical execution dynamics, which is absent in standard semantic benchmarks\. To address this, we introduce a Student–Teacher Mining Protocol to construct a large\-scale dataset of execution traces\. This pipeline synthesizes inputs to probe APIs in a sandbox environment, capturing essential signals such as success status, latency, and error logs to train the World Model effectively\.

##### Hybrid Candidate Generation\.

Given a user queryqq, we first retrieve a coarse candidate tool set𝒞q\\mathcal\{C\}\_\{q\}from the repository𝒯\\mathcal\{T\}using a hybrid strategy:

\(6\)𝒞q=TopKk​\(λ⋅DenseSim​\(q,t\)\+\(1−λ\)⋅BM25​\(q,t\)\)\.\\mathcal\{C\}\_\{q\}=\\text\{TopK\}\_\{k\}\\big\(\\lambda\\cdot\\text\{DenseSim\}\(q,t\)\+\(1\-\\lambda\)\\cdot\\text\{BM25\}\(q,t\)\\big\)\.Here,qqdenotes the natural language intent,t∈𝒯t\\in\\mathcal\{T\}represents a specific tool document, andλ\\lambdais a hyperparameter balancing the dense semantic score \(capturing latent intent\([Karpukhin et al\., 2020](https://arxiv.org/html/2609.35811#bib.bib44)\)\) and the BM25 lexical score \(ensuring keyword coverage\)\. This strategy ensures high recall, naturally introducing hard negatives—tools that are semantically plausible but functionally incorrect\.

##### Student Planner with Parameter Hallucination\.

Offline queries often lack concrete parameters, leading to trivial execution failures\. To mitigate this*context gap*, we employ a lightweight Student agentℳS\\mathcal\{M\}\_\{S\}\(e\.g\., Gemini\-Flash\([DeepMind, 2024](https://arxiv.org/html/2609.35811#bib.bib50)\)\) to synthesize plausible dummy parameters conditioned on the tool schema:

\(7\)ρhallucinated←ℳS​\(q,t,Prompthallucinate\)\.\\rho\_\{\\text\{hallucinated\}\}\\leftarrow\\mathcal\{M\}\_\{S\}\(q,t,\\text\{Prompt\}\_\{\\text\{hallucinate\}\}\)\.In this formulation,qqprovides the context,ttprovides the required API schema constraints, andρhallucinated\\rho\_\{\\text\{hallucinated\}\}represents the generated parameter dictionary \(e\.g\., JSON\)\. The Student is explicitly instructed to respect type constraints, enabling systematic probing of API endpoints without real user data\([Wang et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib45)\)\.

##### Teacher Simulation and Execution Feedback\.

The hallucinated parameters are executed in a sandbox environment\([Yang et al\., 2023](https://arxiv.org/html/2609.35811#bib.bib47);[Wang et al\., 2024b](https://arxiv.org/html/2609.35811#bib.bib46)\)by a powerful Teacher agentℳT\\mathcal\{M\}\_\{T\}\(e\.g\., Qwen3\-Max\([Qwen Team, Alibaba Group, 2025](https://arxiv.org/html/2609.35811#bib.bib51)\)\), which records execution traces:

\(8\)y=\{s,l,u,e\}←Execute​\(t,ρhallucinated\),y=\\\{s,l,u,e\\\}\\leftarrow\\text\{Execute\}\(t,\\rho\_\{\\text\{hallucinated\}\}\),wheressdenotes execution success \(binary\),llis the wall\-clock latency,uuis a rubric\-based semantic utility score, andeerepresents the structured error category\. To reduce grading variance, responses are evaluated by three independent Teacher prompts and aggregated via median pooling\.

##### Contrastive Negative Sampling and Cost Augmentation\.

For each successful trace, we sample an irrelevant tooltnegt\_\{\\text\{neg\}\}from𝒯∖𝒞q\\mathcal\{T\}\\setminus\\mathcal\{C\}\_\{q\}\. Crucially, to enforce the "failure is expensive" logic in our cost metric𝒞\\mathcal\{C\}, we assign apenalty labelto negatives:\(s=0,l=ℬmax,u=0\)\(s=0,l=\\mathcal\{B\}\_\{\\max\},u=0\), whereℬmax\\mathcal\{B\}\_\{\\max\}is the maximum budget horizon\. This signals to the world model that functionally irrelevant tools incur maximum cost, enabling the cost component to act as a soft filter for correctness\.

##### Quality Control and Filtering\.

To mitigate synthetic noise, we apply automatic filters that remove schema\-inconsistent parameters, latency outliers, and traces with high inter\-Teacher disagreement, yielding a high\-fidelity dataset for training𝒲\\mathcal\{W\}\.

##### Reproducibility and Ethical Considerations\.

All parameters are synthetically generated and executed in sandboxed environments, ensuring no real user data is involved\. The mining pipeline is deterministic given random seeds, enabling reproducibility\.

Algorithm 2Student\-Teacher Data Mining Protocol1:Query set

𝒬\\mathcal\{Q\}, tool repository

𝒯\\mathcal\{T\}, Student

ℳS\\mathcal\{M\}\_\{S\}, Teacher

ℳT\\mathcal\{M\}\_\{T\}
2:Execution trace dataset

𝒟\\mathcal\{D\}
3:

𝒟←∅\\mathcal\{D\}\\leftarrow\\emptyset
4:for all

q∈𝒬q\\in\\mathcal\{Q\}do

5:

𝒞q←HybridRetrieve​\(q,𝒯\)\\mathcal\{C\}\_\{q\}\\leftarrow\\text\{HybridRetrieve\}\(q,\\mathcal\{T\}\)
6:for all

t∈𝒞qt\\in\\mathcal\{C\}\_\{q\}do

7:

ρ←ℳS\.Hallucinate​\(q,t\)\\rho\\leftarrow\\mathcal\{M\}\_\{S\}\.\\text\{Hallucinate\}\(q,t\)
8:if

ρ\\rhois validthen

9:

r​e​s​p,l←API\_Execute​\(t,ρ\)resp,l\\leftarrow\\text\{API\\\_Execute\}\(t,\\rho\)
10:

u←ℳT\.Grade​\(q,r​e​s​p\)u\\leftarrow\\mathcal\{M\}\_\{T\}\.\\text\{Grade\}\(q,resp\)
11:

𝒟\.add​\(\(,,,,,,,,,,,\)\)\\mathcal\{D\}\.\\text\{add\}\(\(q,t,\\rho,1,l,u\)\)
12:else

13:

𝒟\.add​\(\(,,,,,,,,,,,\)\)\\mathcal\{D\}\.\\text\{add\}\(\(q,t,\\emptyset,0,0,0\)\)
14:endif

15:endfor

16:endfor

17:

𝒟←FilterAndNormalize​\(𝒟\)\\mathcal\{D\}\\leftarrow\\text\{FilterAndNormalize\}\(\\mathcal\{D\}\)
18:return

𝒟\\mathcal\{D\}

## 4\.Experiments

### 4\.1\.Experimental Setup

#### 4\.1\.1\.Model Configuration

We utilize the pretrainedLlama\-3\-8B\-Instruct\([Dubey et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib21)\)as the backbone\. We selected this model for its optimal efficiency\-capability trade\-off, which enables the high\-throughput "virtual rollouts" essential for real\-time, budget\-aware MCTS planning\.

We fine\-tune the model using the Llama\-3 chat template with a cosine learning rate scheduler and a 3% warm\-up ratio\. The maximum learning rate is set to4×10−54\\times 10^\{\-5\}\. Training is conducted on a single NVIDIA H100 GPU with 80GB memory using DeepSpeed ZeRO\-2\([Rajbhandari et al\., 2020](https://arxiv.org/html/2609.35811#bib.bib52)\)for memory\-efficient optimization\. We train the world model for 8 epochs with early stopping based on validation loss\. Parameter\-efficient LoRA adapters are applied while freezing the backbone model parameters\.

#### Dataset

Our experiments are based on ToolBench, a real\-world tool benchmark containing more than 16k tool collections and 47k unique APIs\. Each API is documented with structured metadata, including name, description, and parameter schema\. Following prior work, we treat each API as an individual tool\.

For training, we use the G1, G2, and G3 instruction datasets \(single\-tool, intra\-category multi\-tool, and intra\-collection multi\-tool queries\)\. We randomly sample 10% of the combined G1/G2/G3 data as seed instructions and construct a large\-scale synthetic execution trace dataset using our Student\-Teacher Mining Protocol \(Section 3\.2\)\. This dataset provides execution status, latency, and semantic utility supervision for training the world model\.

For evaluation, we strictly follow the official ToolBench data split\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9)\), which includes 200k \(query, relevant API\) pairs divided into three categories: I1 \(single\-tool queries\), I2 \(intra\-category multi\-tool queries\), and I3 \(intra\-collection multi\-tool instructions\), containing 87,413, 84,815, and 25,251 instances, respectively\. These subsets are disjoint from the training instructions to avoid evaluation leakage\.

#### Baselines

We compare Lookahead\-R with the following baselines, consistent with ToolGen:

- •BM25: A classical unsupervised lexical retrieval method based on TF\-IDF\.
- •Long\-Context LLMs: We concatenate tool descriptions into a long prompt and prompt GPT\-4o to select tools from the pool\. Due to context length limitations, we use 2k candidate tools including ground truth tools\.
- •Embedding Similarity \(EmbSim\): Sentence embeddings generated using OpenAItext\-embedding\-3\-large\.
- •Re\-Invoke\([Chen et al\., 2024b](https://arxiv.org/html/2609.35811#bib.bib22)\): An unsupervised retrieval method with query rewriting and document expansion\.
- •IterFeedback\([Xu et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib40)\): A BERT\-based retriever with GPT\-3\.5\-turbo\-0125 as a feedback model with iterative refinement\.
- •ToolRetriever\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9)\): A BERT\-based retriever trained via contrastive learning\.
- •ToolGen\([Zhang et al\., 2024b](https://arxiv.org/html/2609.35811#bib.bib11)\): A generative retrieval framework treating tools as latent tokens\.

#### Settings

We train Lookahead\-R under a multi\-domain setting, where queries from G1, G2, and G3 are mixed during training to reflect realistic tool retrieval scenarios\.

During evaluation, we follow the standard ToolBench protocol and report results on I1, I2, and I3 separately\. This setup evaluates both single\-tool and multi\-tool retrieval performance and allows direct comparison with prior work\.

#### Metrics

Beyond standard ranking metrics likeNDCG@k\([Järvelin and Kekäläinen, 2002](https://arxiv.org/html/2609.35811#bib.bib23)\), we introduce three system\-level metrics to assess planning dynamics:\(1\)Failure Rate \(FR\): The percentage of selected tools triggering execution errors \(e\.g\., schema mismatches\), serving as a proxy for reliability; and \(2\)Win Rate: The percentage of test cases where Lookahead\-R outperforms the baseline in side\-by\-side comparisons\. We also report thePass Rate \(PR\)to measure the final task completion success\.

Table 1\.Main Results on ToolBench\.We report the retrieval performance usingNDCG@k \(k=1,3,5\)across three instruction complexity levels:I1\(Single\-tool\),I2\(Intra\-category Multi\-tool\), andI3\(Intra\-collection Multi\-tool\)\. The last columns report theAverage Pass Rate \(PR\)andWin Ratecompared to the standard ChatGPT\-ReAct baseline\.Boldindicates the best performance, andunderlinedindicates the second best\. Lookahead\-R demonstrates superior ranking capability, especially in complex I3 scenarios, significantly outperforming advanced iterative and generative retrieval baselines\.MethodBackboneI1: Single\-ToolI2: Intra\-CategoryI3: Intra\-CollectionOverall Performance@1@3@5@1@3@5@1@3@5Avg\. PRWin RateSparse & Dense RetrieversBM25\-29\.4631\.1233\.2724\.1325\.2927\.6532\.0025\.8829\.7830\.525\.4EmbSim \(OpenAI\)Ada\-00263\.6761\.0365\.3749\.1142\.2746\.5653\.0046\.4052\.7351\.240\.8ToolRetriever\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9)\)RoBERTa80\.5079\.5584\.3971\.1864\.8170\.3570\.0060\.4464\.7062\.553\.0Re\-Invoke\([Chen et al\., 2024b](https://arxiv.org/html/2609.35811#bib.bib22)\)LLaMA\-269\.47\-61\.1054\.56\-53\.7959\.65\-59\.5558\.048\.5Agentic & Iterative FrameworksIterFeedback\([Xu et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib40)\)GPT\-3\.590\.7090\.9592\.4789\.0185\.4687\.1091\.7487\.9490\.2073\.560\.4Long\-Context LLMs\([Qin et al\., 2024](https://arxiv.org/html/2609.35811#bib.bib9)\)GPT\-4o32\.2242\.8752\.1425\.3932\.5744\.0325\.1154\.558\.757\.145\.8ToolGen\([Zhang et al\., 2024b](https://arxiv.org/html/2609.35811#bib.bib11)\)LLaMA\-389\.1790\.8592\.6791\.4588\.7991\.1387\.0085\.5990\.1675\.863\.9OursLookahead\-RLLaMA\-389\.4289\.6589\.8090\.1289\.4591\.8588\.6087\.1591\.4077\.466\.8

### 4\.2\.Main Results

Table[1](https://arxiv.org/html/2609.35811#S4.T1)presents the retrieval performance and overall agent capability of Lookahead\-R\. We evaluate the ranking quality usingNDCG@kacross three instruction complexity levels \(I1, I2, I3\) and report the final executionPass Rate \(PR\)andWin Rate \(WR\)\.

##### Superior Ranking Capability\.

Lookahead\-R consistently outperforms all baselines in terms of NDCG metrics\. Notably, in the most challengingI3 \(Intra\-collection Multi\-tool\)scenarios, our method achieves anNDCG@5 of 91\.4%, surpassing the state\-of\-the\-art ToolGen by\+1\.24%\. This indicates that our world model\-guided planning effectively ranks the correct tools higher in the candidate list, even when the query requires coordinating diverse functions across different collections\.

##### Higher Success and Win Rates\.

Beyond pure retrieval ranking, Lookahead\-R translates better ranking into better execution\. It achieves an overallAverage Pass Rate of 77\.4%and aWin Rate of 66\.8%against standard baselines\. This confirms that ourBudget\-Aware MCTSnot only finds relevant tools but findsexecutableandreliabletools, directly contributing to task success\. Comparing the ablation variant \(w/o Cost Penalty\), we observe a significant drop in Win Rate \(from 78\.5% to 75\.2%\), validating that modeling tool cost is crucial for outperforming competitive baselines\.

### 4\.3\.Anytime Planning Characteristics

A distinguishing feature of Lookahead\-R, unlike traditional “one\-shot” retrievers, is its formulation as ananytime algorithm\. This property ensures that the planner can return a valid solution at any interruption point, with solution quality improving monotonically as the computational budget increases\. Figure[3](https://arxiv.org/html/2609.35811#S4.F3)contrasts the temporal behavior of our framework against varying baselines:

- •Static Baselines \(Latency\-Invariant\):Methods like ToolRetriever appear as flat lines\. Their performance is bounded by the initial semantic recall; allocating additional inference time yields no performance gain, rendering them inflexible for resource\-rich scenarios\.
- •Generative Baselines \(High Latency Floor\):ToolGen and IterFeedback exhibit a “step\-function” behavior\. They require a complete generation cycle to produce a valid tool call, resulting in a high latency floor \(e\.g\.,\>800\>800ms\)\. They offer zero utility in time\-critical windows \(e\.g\.,<500<500ms\)\.
- •Lookahead\-R \(Progressive Refinement\):Our method exhibits a logarithmic growth profile\. It achieves a high base success rate rapidly \(sub\-second\) by pruning obvious errors in the top\-k candidates, and then progressively refines its decision via deeper MCTS lookahead as the budget permits\. This profile confirms that Lookahead\-R effectively converts additional test\-time computation into improved decision reliability, making it uniquely suitable for real\-time systems with dynamic latency constraints\.

![Refer to caption](https://arxiv.org/html/2609.35811v1/figs/anytime_profile.png)Figure 3\.Anytime Performance Profile\. Lookahead\-R progressively refines tool selection accuracy as the latency budget increases\.
### 4\.4\.Mechanism\-Level Ablation Studies

To rigorously validate the internal mechanisms of Lookahead\-R, we conducted ablation studies on theI1 dataset \(1,000 queries\)\. We compare the full framework against three counterfactual variants to isolate the specific contributions of execution prediction, cost alignment, and uncertainty\-guided exploration\.To ensure a fair comparison, all system hyperparameters \(e\.g\., rollout budgetN=30N=30, exploration constantcp​u​c​tc\_\{puct\}, and decision weights\) remained fixed across all variants\. Ablation Variants:

1. \(1\)w/o Execution Prediction \(Blind Optimism\):The World Model continues to function, but itsstatus prediction componentis disabled\. All rollouts assume the chosen tool will execute successfully\. This isolates the benefit ofpredicting outcomesfrom the benefit of simply performing tree search\.
2. \(2\)Cost\-Shuffled \(Noisy Signal\):We retain the cost termC^\\hat\{C\}in Eq\. \(8\) but feed it with randomly shuffled latency labels from the training set\. This tests whether the planner benefits fromaccuratecost estimation or merely from a regularization term\.
3. \(3\)Entropy\-only Exploration \(Random\):We replace the epistemic uncertainty termU^\\hat\{U\}with standard policy entropy \(random noise\)\. This validates the necessity ofuncertainty\-awareexploration over simple randomized trial\-and\-error\.

Table 2\.Mechanism\-level ablation results on I1 dataset \(N=1,000\)\. Latency is measured using ground\-truth execution logs\. The high Success Rate of Cost\-Shuffled confirms it still identifies valid tools, but fails to optimize for efficiency\.Analysis of Mechanisms\.As shown in Table[2](https://arxiv.org/html/2609.35811#S4.T2), the results reveal three critical insights:

1\. Predictive Pruning & Backbone Independence \(w/o Exec\. Prediction\)\.Disabling the prediction component causes a sharp Success Rate drop \(−17\.0%\-17\.0\\%\) and a Failure Rate spike \(4\.1%→28\.3%4\.1\\%\\to 28\.3\\%\) despite retaining the Llama\-3 backbone\. This confirms that our SOTA performance stems from the World Model’s ability topreemptively prunefunctionally invalid tools, rather than merely the foundation model’s raw capabilities\.

2\. Latency Authenticity and Utility \(Cost\-Shuffled\)\.Crucially, we reportground\-truth wall\-clock latency\. When the cost signal is randomized, the real\-world Avg\. Latency more than doubles \(680​ms→1120​ms680\\text\{ms\}\\to 1120\\text\{ms\}\)\. This validates theauthenticityof our Latency Estimation: the planner actively leverages accurateC^\\hat\{C\}predictions to steer search away from physically slow tools\. The module is proven to be not just a regularization term, but a practical mechanism for time\-constrained optimization\.

3\. Epistemic vs\. Aleatoric Exploration \(Entropy\-only\)\.Relying on simple entropy\-based exploration results in lowerDiversity\(fewer unique tools explored\) and suboptimal performance\. The epistemic uncertainty termU^\\hat\{U\}effectively guides the agent to explore “unknown unknowns” \(tools with high potential information gain\) rather than randomly sampling known suboptimal actions, thereby avoiding local optima more efficiently\.

### 4\.5\.Case Study

Table 3\.Case Study\. The World Model simulates execution to prune text\-only tools that fail on multi\-modal inputs\.Table[3](https://arxiv.org/html/2609.35811#S4.T3)illustrates the decision\-making mechanics of Lookahead\-R for a multi\-modal query:\[User uploads a poster\] Who is the director?”Initially, the MCTS planner explores the toolSearch\_Director\_ByNamedue to its high semantic relevance to the question\. However, the World Model’s virtual simulation predicts aParameter Errorbecause the mandatorymovie\_nametext argument cannot be extracted directly from the raw image input\. Identifying this modality mismatch, the planner penalizes this branch via backpropagation and pivots to the alternative candidate,Visual\_Movie\_Lookup\. Since this tool supports image embeddings, the model predicts a successful execution\. This example demonstrates Lookahead\-R’s ability to use “mental simulation” to preemptively avoid failures, handling complex scenarios including multi\-modal tasks within ToolBench\.

## 5\.Conclusion

In this paper, we introduced Lookahead\-R, a planning\-based framework that reformulates tool retrieval from a static ranking problem into a resource\-constrained sequential decision process\. By leveraging aWorld Modeltrained via a Student\-Teacher Data Synthesis mining protocol, our agent performs low\-cost "mental simulations" to predict execution outcomes, including potential errors and latency\. These predictions drive a cost\-sensitive, uncertainty\-guided MCTS planner, enabling the system to navigate the accuracy\-efficiency trade\-off dynamically\. Extensive experiments on ToolBench demonstrate that Lookahead\-R significantly outperforms traditional semantic retrievers, achieving state\-of\-the\-art results while operating as an anytime algorithm suitable for real\-world deployment\. Future work will explore integrating this planning paradigm into end\-to\-end autonomous agents for multi\-step complex reasoning tasks\.

###### Acknowledgements\.

This research was partially supported by the 2024 Scientific Research Fund of Beijing University of Posts and Telecommunications Grant Number 510224070 and the 2024 Undergraduate Education and Teaching Reform Project of Beijing University of Posts and Telecommunications Grant Number 2024YB26\.

## References

- Chenet al\.\(2024a\)L\. Chen, M\. Zaharia, and J\. ZouFrugalGPT: how to use large language models while reducing cost and improving performance\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Vol\.36\.Cited by:[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p1.1)\.
- Chenet al\.\(2025\)X\. Chenet al\.Agent planning with world knowledge model\.InProceedings of the International Conference on Learning Representations \(ICLR\),Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p2.1)\.
- Chenet al\.\(2024b\)Y\. Chen, J\. Yoon, D\. S\. Sachan, Q\. Wang, V\. Cohen\-Addad, M\. Bateni, C\. Lee, and T\. PfisterRe\-invoke: tool invocation rewriting for zero\-shot tool retrieval\.InFindings of the Association for Computational Linguistics: EMNLP 2024,Miami, Florida, USA,pp\. 4705–4726\.Cited by:[4th item](https://arxiv.org/html/2609.35811#S4.I1.i4.p1.1),[Table 1](https://arxiv.org/html/2609.35811#S4.T1.20.1.7.1)\.
- DeepMind \(2024\)G\. DeepMindGemini 1\.5: unlocking multimodal understanding across millions of tokens\.Technical Report\.Cited by:[§3\.4](https://arxiv.org/html/2609.35811#S3.SS4.SSS0.Px2.p1.1)\.
- Dettmerset al\.\(2024\)T\. Dettmers, A\. Pagnoni, A\. Holtzman, and L\. ZettlemoyerQLoRA: efficient finetuning of quantized llms\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Vol\.36\.Cited by:[§3\.2](https://arxiv.org/html/2609.35811#S3.SS2.SSS0.Px5.p1.1)\.
- Duet al\.\(2024\)Y\. Du, F\. Li, S\. Wang,et al\.AnyTool: self\-reflective, hierarchical agents for large\-scale tool execution\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p2.1)\.
- Duet al\.\(2025\)Y\. Duet al\.WebSynthesis: world\-model\-guided mcts for efficient webui\-trajectory synthesis\.arXiv preprint arXiv:2507\.04370\.Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p2.1)\.
- Dubeyet al\.\(2024\)A\. Dubey, A\. Jauhri, A\. Pandey, A\. Kadian, A\. Al\-Dahle, A\. Letman, A\. Mathur, A\. Schelten, A\. Yang, A\. Fan,et al\.The llama 3 herd of models\.arXiv preprint arXiv:2407\.21783\.Note:Published online, not in a traditional venueCited by:[§4\.1\.1](https://arxiv.org/html/2609.35811#S4.SS1.SSS1.p1.1)\.
- Gouet al\.\(2024\)Z\. Gou, Z\. Shao, Y\. Gong, Y\. Yang, M\. Huang, N\. Duan, and W\. ChenCRITIC: large language models can self\-correct with tool\-interactive critiquing\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p1.1)\.
- Ha and Schmidhuber \(2018\)D\. Ha and J\. SchmidhuberWorld models\.Advances in Neural Information Processing Systems31\.Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p1.1)\.
- Hafneret al\.\(2020\)D\. Hafner, T\. Lillicrap, J\. Ba, and M\. NorouziDream to control: learning behaviors by latent imagination\.International Conference on Learning Representations\.Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p1.1)\.
- Haoet al\.\(2023\)S\. Hao, Y\. Gu, H\. Ma, J\. J\. Hong, Z\. Wang, D\. Z\. Wang, and Z\. HuReasoning with language model is planning with guided tree search\.Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing\.Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p1.1)\.
- Huanget al\.\(2025\)Z\. Huanget al\.LLMs as planning formalizers: a survey for leveraging large language models to construct automated planning models\.InFindings of the Association for Computational Linguistics: ACL 2025,Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p2.1)\.
- Izacardet al\.\(2022\)G\. Izacard, M\. Caron, L\. Hosseini, S\. Riedel, P\. Bojanowski, A\. Joulin, and E\. GraveUnsupervised dense information retrieval with contrastive learning\.Transactions on Machine Learning Research\.Cited by:[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p2.1)\.
- Jainet al\.\(2024\)N\. Jain, P\. Chiang, Y\. Wen, J\. Kirchenbauer, G\. Chu, B\. R\. Bartoldson, B\. Bhavsar, E\. Avi\-Aharon, and T\. GoldsteinNEFTune: noisy embeddings improve instruction finetuning\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§3\.2](https://arxiv.org/html/2609.35811#S3.SS2.SSS0.Px5.p1.1)\.
- Järvelin and Kekäläinen \(2002\)K\. Järvelin and J\. KekäläinenCumulated gain\-based evaluation of ir techniques\.ACM Transactions on Information Systems \(TOIS\)20\(4\),pp\. 422–446\.Cited by:[§4\.1](https://arxiv.org/html/2609.35811#S4.SS1.SSSx4.p1.1)\.
- Karpukhinet al\.\(2020\)V\. Karpukhin, B\. Oguz, S\. Min, P\. Lewis, L\. Wu, S\. Edunov, D\. Chen, and W\. YihDense passage retrieval for open\-domain question answering\.InProceedings of the 2020 Conference on Empirical Methods in Natural Language Processing \(EMNLP\),Cited by:[§2\.1](https://arxiv.org/html/2609.35811#S2.SS1.p1.1),[§3\.4](https://arxiv.org/html/2609.35811#S3.SS4.SSS0.Px1.p1.2)\.
- Liet al\.\(2025\)J\. Liet al\.Where llm agents fail and how they can learn from failures\.arXiv preprint arXiv:2509\.25370\.Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p2.1),[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Liet al\.\(2023\)M\. Li, F\. Song, B\. Yu, H\. Yu, Z\. Li, F\. Huang, and Y\. LiAPI\-bank: a comprehensive benchmark for tool\-augmented llms\.Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing\.Cited by:[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p1.1)\.
- Liuet al\.\(2025\)T\. Liu Z\. Wanget al\.Budget\-aware tool\-use enables effective agent scaling\.arXiv preprint arXiv:2511\.17006\.Cited by:[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Mialonet al\.\(2023\)G\. Mialon, R\. Dessì, M\. Lomeli,et al\.Augmented language models: a survey\.Transactions on Machine Learning Research \(TMLR\)\.Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p1.1),[§2\.1](https://arxiv.org/html/2609.35811#S2.SS1.p1.1)\.
- Miaoet al\.\(2025\)N\. Miaoet al\.Trajectory graph copilot: pre\-action error diagnosis in llm agents\.InProceedings of the International Conference on Learning Representations \(ICLR\),Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p2.1),[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Patilet al\.\(2024\)S\. G\. Patil, T\. Zhang, X\. Wang, and J\. E\. GonzalezGorilla: large language model connected with massive apis\.Advances in Neural Information Processing Systems36\.Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p1.1)\.
- Qinet al\.\(2024\)Y\. Qin, S\. Liang, Y\. Ye, K\. Zhu, L\. Yan, Y\. Lu, Y\. Lin, X\. Cong, X\. Xiang, H\. Xie,et al\.ToolLLM: facilitating large language models to master 16000\+ real\-world apis\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p1.1),[§1](https://arxiv.org/html/2609.35811#S1.p5.1),[§2\.1](https://arxiv.org/html/2609.35811#S2.SS1.p1.1),[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p1.1),[6th item](https://arxiv.org/html/2609.35811#S4.I1.i6.p1.1),[§4\.1](https://arxiv.org/html/2609.35811#S4.SS1.SSSx1.p3.1),[Table 1](https://arxiv.org/html/2609.35811#S4.T1.20.1.10.1),[Table 1](https://arxiv.org/html/2609.35811#S4.T1.20.1.6.1)\.
- Quet al\.\(2025\)C\. Quet al\.Benchmarking tool retrieval for large language models\.Findings of ACL\.Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p2.1)\.
- Qwen Team, Alibaba Group \(2025\)Qwen Team, Alibaba GroupQwen3 series: next\-generation large language models\.Note:[https://qwenlm\.github\.io/blog/qwen3/](https://qwenlm.github.io/blog/qwen3/)Official blog post, accessed 2026\-02Cited by:[§3\.4](https://arxiv.org/html/2609.35811#S3.SS4.SSS0.Px3.p1.1)\.
- Rajbhandariet al\.\(2020\)S\. Rajbhandari, J\. Rasley, O\. Ruwase, and Y\. HeZeRO: memory optimizations toward training trillion parameter models\.arXiv preprint arXiv:1910\.02054\.Cited by:[§4\.1\.1](https://arxiv.org/html/2609.35811#S4.SS1.SSS1.p2.1)\.
- Schicket al\.\(2023\)T\. Schick, J\. Dwivedi\-Yu, R\. Dessì, R\. Raileanu, M\. Lomeli, L\. Zettlemoyer, N\. Cancedda, and T\. ScialomToolformer: language models can teach themselves to use tools\.Advances in Neural Information Processing Systems36\.Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p1.1),[§2\.1](https://arxiv.org/html/2609.35811#S2.SS1.p1.1),[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p1.1)\.
- Shenet al\.\(2024\)Y\. Shen, K\. Song, X\. Tan,et al\.Confucius: iterative tool learning from introspection and reflection\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p2.1)\.
- \[30\]Z\. Shiet al\.ToolRet: a comprehensive benchmark for tool retrieval\.Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p2.1)\.
- Shiet al\.\(2025\)Z\. Shiet al\.MASTER: a multi\-agent system with llm specialized mcts\.InProceedings of the 2025 Conference of the North American Chapter of the Association for Computational Linguistics \(NAACL\),Cited by:[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Shinnet al\.\(2023\)N\. Shinn, F\. Cassano, A\. Gopinath, K\. Narasimhan, and S\. YaoReflexion: language agents with verbal reinforcement learning\.InNeurIPS,Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p3.1)\.
- Songet al\.\(2023\)Y\. Song, W\. Xiong, D\. Zhu, C\. Li,et al\.RestGPT: connecting large language models with real\-world restful apis\.InEMNLP,Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p3.1)\.
- Sunet al\.\(2023a\)H\. Sun, Y\. Zhuang, L\. Kong, B\. Dai, and C\. ZhangAdaPlanner: adaptive planning from feedback with language models\.InProceedings of the 37th Conference on Neural Information Processing Systems \(NeurIPS\),Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p4.1)\.
- Sunet al\.\(2023b\)W\. Sun, L\. Yan, X\. Ma, P\. Ren, D\. Yin, and Z\. RenGenerative relevance feedback with large language models\.Proceedings of the 46th International ACM SIGIR Conference on Research and Development in Information Retrieval\.Cited by:[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p2.1)\.
- Tanget al\.\(2024\)Q\. Tang, Z\. Deng, H\. Lin,et al\.ToolAlpaca: generalized tool learning for language models with 3000 simulated cases\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p3.1),[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p1.1)\.
- Wanget al\.\(2024a\)G\. Wang, Y\. Xie, Y\. Jiang, A\. Mandlekar, C\. Xiao, Y\. Zhu, L\. Fan, and A\. AnandkumarVoyager: an open\-ended embodied agent with large language models\.Transactions on Machine Learning Research \(TMLR\)\.Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p4.1)\.
- Wanget al\.\(2025\)L\. Wanget al\.Leveraging learned programmatic facts for enhanced llm agent planning and world modeling\.InProceedings of the 42nd International Conference on Machine Learning \(ICML\),Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p2.1),[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Wanget al\.\(2023\)Y\. Wang, Y\. Kordi, S\. Mishra, A\. Liu, N\. A\. Smith, D\. Khashabi, and H\. HajishirziSelf\-instruct: aligning language models with self\-generated instructions\.InProceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(ACL\),Cited by:[§3\.4](https://arxiv.org/html/2609.35811#S3.SS4.SSS0.Px2.p1.2)\.
- Wanget al\.\(2024b\)Z\. Wang, Y\. Lai, and X\. V\. a\. o\. LinMINT: evaluating llms in multi\-turn interaction with tools and language feedback\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§3\.4](https://arxiv.org/html/2609.35811#S3.SS4.SSS0.Px3.p1.1)\.
- Xuet al\.\(2024\)Q\. Xu, Y\. Li, H\. Xia, and W\. LiEnhancing tool retrieval with iterative feedback from large language models\.arXiv preprint arXiv:2406\.17465\.Cited by:[5th item](https://arxiv.org/html/2609.35811#S4.I1.i5.p1.1),[Table 1](https://arxiv.org/html/2609.35811#S4.T1.20.1.9.1)\.
- Xuet al\.\(2024\)Z\. Xuet al\.StableToolBench: towards stable large\-scale benchmarking on tool learning of large language models\.InFindings of the Association for Computational Linguistics: EMNLP 2024,Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p2.1),[§1](https://arxiv.org/html/2609.35811#S1.p5.1),[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Yanget al\.\(2023\)J\. Yang, A\. Prabhakar, K\. Narasimhan, and S\. YaoInterCode: standardizing and benchmarking interactive coding with execution feedback\.InProceedings of the 37th Conference on Neural Information Processing Systems \(NeurIPS\),Cited by:[§3\.4](https://arxiv.org/html/2609.35811#S3.SS4.SSS0.Px3.p1.1)\.
- Yaoet al\.\(2024\)S\. Yao, D\. Yu, J\. Zhao, I\. Shafran, T\. L\. Griffiths, Y\. Cao, and K\. NarasimhanTree of thoughts: deliberate problem solving with large language models\.Advances in Neural Information Processing Systems36\.Cited by:[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p1.1)\.
- Yaoet al\.\(2023\)S\. Yao, J\. Zhao, D\. Yu, N\. Du, I\. Shafran, K\. Narasimhan, and Y\. CaoReAct: synergizing reasoning and acting in language models\.International Conference on Learning Representations\.Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p3.1),[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p1.1),[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p2.1)\.
- Yuanet al\.\(2025\)S\. Yuan, K\. Song, J\. Chen, X\. Tan, Y\. Shen, K\. Ren, D\. Li, and D\. YangEASYTOOL: enhancing llm\-based agents with concise tool instruction\.InProceedings of the 2025 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies \(NAACL\),Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p2.1)\.
- Zhanget al\.\(2024\)D\. Zhanget al\.Rest\-mcts\*: process\-supervised self\-training for language agent planning\.InAdvances in Neural Information Processing Systems \(NeurIPS\),Cited by:[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Zhanget al\.\(2024a\)J\. Zhang X\. Zhanget al\.EcoAssistant: using llm assistant more affordably and accurately\.InFindings of the Association for Computational Linguistics: ACL 2024,Cited by:[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p1.1)\.
- Zhanget al\.\(2024b\)R\. Zhang J\. Wanget al\.ToolGen: unified tool retrieval and execution via virtual token generation\.InThe Twelfth International Conference on Learning Representations \(ICLR\),Cited by:[§2\.2](https://arxiv.org/html/2609.35811#S2.SS2.p2.1),[7th item](https://arxiv.org/html/2609.35811#S4.I1.i7.p1.1),[Table 1](https://arxiv.org/html/2609.35811#S4.T1.20.1.11.1)\.
- Zhanget al\.\(2025\)X\. Zhanget al\.Cost\-augmented monte carlo tree search for llm\-assisted planning\.arXiv preprint arXiv:2505\.14656\.Cited by:[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Zhouet al\.\(2024\)A\. Zhou, K\. Yan, M\. Shlapentokh\-Rothman, H\. Wang, and Y\. WangLanguage agent tree search unifies reasoning, acting, and planning\.InInternational Conference on Machine Learning \(ICML\),Cited by:[§1](https://arxiv.org/html/2609.35811#S1.p4.1),[§2\.3](https://arxiv.org/html/2609.35811#S2.SS3.p1.1),[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.
- Zhuet al\.\(2025\)W\. Zhuet al\.Enhancing the planning capabilities of large language models by building external world models\.InFindings of the Association for Computational Linguistics: ACL 2025,Cited by:[§2\.4](https://arxiv.org/html/2609.35811#S2.SS4.p2.1)\.

相似文章

TRACER:面向大语言模型智能体的轨迹感知工具检索

arXiv cs.CL

本文提出 Tracer,一种面向 LLM 智能体的轨迹感知工具检索前端,用 trie 索引历史工具调用序列并结合经验与上下文先验对下一步调用进行排序。在六个环境、四个模型上,它在 24 组对比中 21 组提升了工具选择准确率,同时每步输入 token 减少约 61%–80%。

TaReD:面向长时程任务的工具感知递归分解

arXiv cs.AI

TaReD 提出一种工具感知的递归分解方法,通过按功能关系将工具组织成能力层级,让智能体按需发现工具并将复杂长时程任务递归分解为子任务树,实验显示端到端任务成功率最高提升 40 个百分点。