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.
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.
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 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.
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.
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 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 . 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() instead of out(), 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.
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 during tool call generator training, results on the DailyLifeAPIs and Multimedia datasets show that performance is optimal when 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.