MCP
arXivarXiv
Preprint
Published: August 4, 2026
cs.AI

ToolLIFT: Lifting Tool-Specific Trajectories into Function-Level Graphs for Generalizable Tool Planning

Abstract
Historical tool-use trajectories provide valuable experience for large language model (LLM) agents to plan and coordinate tool usage. Existing approaches directly construct tool-level graphs from these trajectories, but the resulting graphs remain tied to specific tools and are hard to generalize across tool sets. To tackle this challenge, we find that despite differences in the tools involved, analogous tasks often share a common function-level workflow structure, which serves as a potentially more transferable abstraction for tool planning. Based on this insight, we propose ToolLIFT, a framework that lifts tool-specific trajectories into a function-level workflow graph (FWG) for generalizable tool planning. Specifically, we first propose a trajectory-lifting mechanism that encodes workflow structures in the FWG and shares collaboration experience across tools. Then, building on the global structure of the FWG, we introduce decoupled workflow planning and tool selection to align individual tool choices with the overall workflow. Lastly, to ensure reliable tool dataflow, we adopt Reinforcement Learning (RL) and propose source-gated and skill-specific rewards to maintain source-traceable information flow across tool calls. Experiments on two in-distribution (ID) and three out-of-distribution (OOD) benchmarks show that ToolLIFT consistently outperforms state-of-the-art baselines, demonstrating strong generalization to unseen tool sets.
0
AI overview
Reviews
Citation graph
References · 40
Structured
This preview uses generator v1; v2 is available

Overview

To address the problem that existing LLM agent tool planning methods build tool-level graphs directly from historical trajectories and thus generalize poorly across tool sets, this paper proposes the ToolLIFT framework, which lifts tool-specific trajectories into function-level workflow graphs, enabling tool collaboration experience to transfer across different tool sets.

The Existing Problem of Cross-Set Generalization in Tool Planning and the Core Observation

Historical tool usage trajectories can provide valuable experience for large language model agents to plan and coordinate tool use. Existing mainstream approaches build tool-level association graphs directly from these historical trajectories; such graph structures are strongly bound to specific tools and are difficult to generalize across different tool sets.

To address this pain point, the authors put forward a core observation: even when similar tasks use entirely different specific tools, they often share common function-level workflow structures. Such abstractions have stronger cross-scenario transfer potential than tool-level graphs, offering a new feasible path toward solving the cross-tool-set generalization problem.

Core Designs and Main Contributions of the ToolLIFT Framework

The paper proposes the ToolLIFT framework for LLM agents in cross-tool-set generalization scenarios. Its first core innovation is lifting execution trajectories originally bound to specific tools into function-level workflow graphs, breaking the tool-set binding limitation on experience reuse so that historical experience of tool collaboration can transfer across different tool sets.

ToolLIFT's second core innovation consists of two related designs: first, a decoupled mechanism of workflow planning and tool selection that keeps single-step action selection always aligned with the global workflow goal; second, a reinforcement learning-based data flow learning module that maintains traceable information flow throughout the entire process of multi-step tool calls.

The third core contribution is a systematic validation covering multiple LLM backbones, two in-distribution benchmarks, and three out-of-distribution benchmarks. Experimental results demonstrate that ToolLIFT achieves stable performance and strong generalization to unseen tool sets.

ToolLIFT's Operating Mechanism and Implementation Logic

ToolLIFT first lifts tool-specific trajectories from different tool sets into function-level workflow graphs (FWG). The graph takes functional roles as nodes, derives edge weights by counting co-occurrence transition frequencies between functional roles and applying row normalization, and retains self-transitions of functional roles to accommodate scenarios where the same function recurs within a workflow. The resulting directed weighted graph captures function collaboration structures shared across different specific tools. Please refer to the figure below to fully understand ToolLIFT's overall architecture logic, from trajectory lifting to decoupled planning and data flow modeling.

Fig. 1: Overview of the ToolLIFT framework: (a) lifting tool-specific trajectories into function-level workflow graphs (FWG) that capture function-level collaboration structures shared across tool sets; (b) planning function-level workflows on the global structure of the FWG, then instantiating them with specific tools; (c) explicitly assigning parameter sources to achieve traceable data flow, jointly optimizing parameter filling and source tracing through source gating and skill-specific rewards.

After obtaining the global function-level workflow graph, the framework first plans function-level workflows on the FWG's global structure, then instantiates abstract functional nodes into specific tools under constraints, ensuring that every tool selection step aligns with the overall workflow logic, achieving decoupling of workflow planning and tool selection.

ToolLIFT explicitly assigns parameter sources to generated tool calls, enabling traceable data flow modeling. It adopts a two-stage training scheme based on Group Relative Policy Optimization (GRPO): the first stage trains the workflow planner based on the FWG, and the second stage trains the tool call generator, jointly completing tool selection and explicit data flow modeling. During this process, skill-specific reward signals designed separately for parameter filling and source tracing are used to complete the joint optimization.

Analysis of Benchmark Evaluations and Ablation Experiments

In in-distribution (ID) benchmark tests, ToolLIFT achieved the highest tool planning accuracy with both backbone models. Using Llama as the backbone, it outperformed the strongest baseline by 1.37 and 1.50 points on the HuggingFace and Multimedia datasets, respectively, and consistent performance advantages persisted after switching to the Qwen backbone. The framework also achieved the best n-F1 and l-F1 scores in all ID settings, corresponding to improvements in the two core dimensions of tool selection and dependency prediction. In out-of-distribution (OOD) evaluation scenarios, ToolLIFT's performance advantage is even more pronounced.

Ablation results verify the actual role of each core module: after removing the function workflow graph (FWG), the accuracy drop on DailyLifeAPIs is significantly larger than on HuggingFace, directly demonstrating this module's ability to transfer collaboration structures to unseen tool sets. Removing the workflow planning module likewise causes greater performance degradation on DailyLifeAPIs, showing that function-level planning provides effective task-level contextual support for tool selection and dependency prediction. Using rEMr^{EM} as the validation metric weakens the learning signal for parameter source identification, while removing the workflow perturbation operation causes the most severe OOD performance degradation and also reduces ID performance, indicating that this module effectively prevents minor workflow errors from propagating into subsequent tool call plans.

Case comparison results show that ToolLIFT correctly instantiates the complete function-level workflow, fully preserving the specified data flow p1→p2→p3→p4p_{1} \to p_2 \to p_3 \to p_4. In contrast, the compared ToolRL method replaces the PDF conversion operation with print_document, whose native function is to print an existing document rather than convert it to PDF, and its final call takes out(p2p_{2}) instead of out(p3p_{3}), skipping the third call and directly sending the transcript that has not completed conversion. This comparison intuitively shows that locally plausible tool selections may break the global workflow logic and generate inconsistent parameter dependencies, whereas ToolLIFT ensures that both specific tool selection and traceable data flow are fully aligned with the target functional structure.

Experimental Boundaries, Parameter Sensitivity, and Known Limitations

The paper uniformly applies two preprocessing rules across all five evaluation datasets: first, samples are removed if their target parameters require information that cannot be inferred from the user request or preceding tool outputs; second, single-tool samples are downsampled to focus the evaluation on the multi-tool planning scenario that this study concerns; all retained samples are converted into a unified representation.

When tuning the workflow perturbation probability ϵpert\epsilon_{pert} during tool call generator training, results on the DailyLifeAPIs and Multimedia datasets show that performance is optimal when ϵpert\epsilon_{pert} is 0.2. A value too low leads to insufficient exposure to erroneous scenarios, while a value too high exposes the model excessively to perturbed workflows, weakening its adherence to correct workflow guidance.

The current framework has a known failure mode: when user queries contain redundant but executable information, the model exhibits sensitivity to redundant information and its presentation order. In a typical case, the user explicitly requests an email, but the query also provides an email address and an alternative phone number; the model preferentially selects the send_sms tool corresponding to the later-appearing phone number. Such errors do not fall into the categories of global workflow recovery or cross-call data flow failures.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first