Manuscript Offprint

arXiv:2610.16867

Davinci-Tool: Scaling Agentic Tool-Use Supervision with Verifiable Executable Environments

Xiaoyang Yuan, Ji Zhao, Xingyu Hu, Wenhan Wang, Yutao Hu, Qiaosheng Zhang, Pengfei Liu, Yu Qiao, Yi Bin, Wenqi Shao

ABSTRACT

Reliable agentic tool use requires training data that pair diverse multi-step workflows with executable evidence that the requested outcomes were achieved. Scaling either trajectory coverage or verification alone is insufficient as new environments introduce distinct states, rules, and dependencies that must also be reflected in the success criteria. To address this challenge, we introduce Davinci-Tool, a 30B tool-use model, and Davinci-ToolData, an execution-grounded dataset designed to scale environment coverage and outcome verification together. Davinci-ToolData preserves restorable states, execution traces, outcomes, and verifiers as a unified substrate for supervision. Two complementary pipelines populate this substrate: Execution-Grounded Task Synthesis (EGTS) derives verified demonstrations from independently authored systems, and Executable Environment Synthesis (EES) synthesizes auditable environments, state-grounded tasks, and executable verifiers across single and coordinated domains. These pipelines yield 30,395 verified trajectories spanning 2,260 invoked tool names. We first train on these demonstrations with supervised fine-tuning, then reuse EES states and verifiers to compare alternative actions and construct outcome-grounded preferences for Direct Preference Optimization. Davinci-Tool improves Qwen3-Coder-30B-A3B-Instruct from 52.4 to 88.2 on τ2\tau^{2}-bench, from 30.4 to 62.8 on BFCL v4 multi-turn, and from 16.9 to 56.2 on MCP-Atlas, outperforming Qwen3-Coder-480B-A35B-Instruct on all three benchmarks with only 1/16 of its total parameters. Code is available at https://github.com/MassLab-SII/Davinci-Tool.

1 INTRODUCTION

Tool use enables language models to move beyond generating responses and perform real-world tasks, powering applications such as coding agents (Yang et al., 2024) and deep research systems (Zheng et al., 2025; Li et al., 2026b). Such tasks require stateful multi-step interaction, where models select tools, interpret observations, and adapt actions toward desired outcomes (Zhou et al., 2024; Xie et al., 2024a; Patil et al., 2025; Yao et al., 2024). Training such behavior therefore requires data that connect user intent, multi-step execution, and verifiable environment outcomes.

However, scaling such data presents two coupled challenges: covering diverse tool-use workflows and verifying their outcomes. Prior efforts improve either workflow coverage through expanded tool inventories and synthetic interactions (Qin et al., 2024; Liu et al., 2025; Wang et al., 2026a) or reliability through execution validation and executable verification (Liu et al., 2025; Ouajdi et al., 2026; Song et al., 2026). As environments become more diverse and cross-domain, verification must capture environment-specific states, rules, and dependencies. Therefore, environment coverage and outcome verification need to scale together.

∗^{*}Equal contribution.

†^{\dagger}Corresponding author

†^{†}Project lead.

Figure

Figure 1: Performance on τ2\tau^{2}-bench, BFCL v4 multi-turn, and MCP-Atlas. Davinci-Tool-30B after DPO is shown with hatching, with its SFT checkpoint included for comparison. Detailed results and score provenance are reported in Table 2.

Environment expansion follows two complementary paradigms. Independently authored systems provide realistic tools and operational rules but require adaptation of reset, execution, and outcome-checking interfaces, as exemplified by ToolSandbox and AppWorld (Lu et al., 2025; Trivedi et al., 2024). Synthesized environments provide controllable states and executable criteria for systematic task generation but may inherit assumptions from the environment generator, as explored by EnvScaler and AutoWebWorld (Song et al., 2026; Wu et al., 2026a). These complementary sources motivate a unified execution-grounded framework that supports heterogeneous environments under shared outcome verification.

To address these settings, we introduce Davinci-Tool, a model for reliable multi-step tool use in stateful environments, together with Davinci-ToolData, an execution-grounded training dataset spanning diverse tool-use environments. Our central design principle is to preserve executable evidence throughout the training pipeline: each example is grounded in a restorable initial state, an action-observation trace, the resulting environment outcome, and an executable verification result. This common interface allows data from heterogeneous environment sources to be accepted under a shared outcome-based criterion and enables the same states and verifiers to support both supervised and preference learning.

To construct Davinci-ToolData, we combine independently authored systems with synthesized executable environments. For authored systems, Execution-Grounded Task Synthesis (EGTS) explores supported interactions to establish achievable outcomes and their evidence, synthesizes user tasks from these outcomes, and replays them from corresponding initial states to collect verified trajectories. This separates outcome discovery from demonstration construction: exploration determines what can be achieved, while replay collects trajectories conditioned on the synthesized user request. For synthesized environments, Executable Environment Synthesis (EES) constructs and audits rule-governed domains before generating state-grounded tasks and executable verifiers. EES produces scenarios within individual domains (EES-Single) and composes compatible domains through shared entities, policies, and state dependencies before generating coordinated tasks over the resulting executable world (EES-Cross). Together, these strategies provide complementary supervision from single-domain to cross-domain workflows. Davinci-ToolData contains 30,395 verified trajectories covering 2,260 distinct invoked tool names (Table 1).

We first fine-tune Qwen3-Coder-30B-A3B-Instruct (Yang et al., 2025a) on Davinci-ToolData, producing Davinci-Tool-30B-SFT. To complement successful demonstrations with comparisons between alternative decisions, we reuse restorable EES scenarios and their executable verifiers for decision-level preference learning. At selected points in SFT rollouts, we restore the same executable context, sample alternative decisions, and use verified downstream outcomes to construct preference pairs. Only divergent assistant turns are optimized with Direct Preference Optimization (DPO) (Rafailov et al., 2023). Unlike approaches that rely on tree search with intermediate self-evaluation (Xie et al., 2024b; Putta et al., 2024), our construction uses bounded sibling rollouts and executable outcome checks without an additional expert action generator or process evaluator.

Davinci-Tool-30B achieves substantial gains across three held-out tool-use benchmarks. SFT improves the base model from 52.4 to 85.1 on τ2\tau^{2}-bench, from 30.4 to 60.6 on BFCL v4 multi-turn, and from 16.9 to 52.8 on MCP-Atlas, while decision-level DPO further raises these scores to 88.2, 62.8, and 56.2, respectively. Despite using only 1/16 as many total parameters, Davinci-Tool-30B outperforms Qwen3-Coder-480B-A35B-Instruct (Yang et al., 2025a) on all three benchmarks. Source-composition studies further show that the full EGTS, EES-Single, and EES-Cross mixture provides the strongest SFT performance among evaluated configurations, while outcome-grounded preference learning provides additional gains after SFT.

Our contributions are:

• We introduce Davinci-Tool, a tool-use model trained through an executable-environment framework that connects verified demonstration construction with outcome-grounded, decision-level preference learning.

• We construct Davinci-ToolData, an execution-grounded dataset with 30,395 verified tool-use demonstrations and 2,260 invoked tool names. EGTS builds task-conditioned demonstrations through exploration and verified replay, while EES constructs and audits executable environments for single-domain and coordinated cross-domain tasks.

• We demonstrate strong tool-use performance at the 30B scale. Davinci-Tool-30B improves over its backbone by 35.8, 32.4, and 39.3 percentage points on τ2\tau^{2}-bench, BFCL v4 multi-turn, and MCP-Atlas, respectively, outperforming Qwen3-Coder-480B-A35B-Instruct across all three benchmarks. The same Davinci-ToolData supervision also substantially improves the tested smaller models.

References (100)

  • Synthesize and reward–reinforcement learning for multi-step tool use in live environments (opens arXiv in a new tab)
  • A large-scale benchmark for tool-use competency with real mcp servers (opens arXiv in a new tab)
  • $τ^2$-Bench: Evaluating Conversational Agents in a Dual-Control Environment
  • Training deep nets with sublinear memory cost (opens arXiv in a new tab)
  • Flashattention: Fast and memory-efficient exact attention with io-awareness
  • Stabletoolbench: Towards stable large-scale benchmarking on tool learning of large language models
  • Discoveryworld: A virtual environment for developing and evaluating automated scientific discovery agents
  • Benchmarking language agents for diverse, realistic, and long-horizon task execution
  • Api-bank: A comprehensive benchmark for tool-augmented llms
  • Webthinker: Empowering large reasoning models with deep research capability
  • Winning the points of llm function calling
  • Decoupled Weight Decay Regularization
  • A stateful, conversational, interactive evaluation benchmark for llm tool use capabilities
  • Benchmarking agents on hard, realistic tasks in command line interfaces
  • Execution-first synthetic tool-use trace generation for llm agents (opens arXiv in a new tab)
  • The berkeley function calling leaderboard (bfcl): From tool use to agentic evaluation of large language models
  • Yarn: Efficient context window extension of large language models
  • Agent q: Advanced reasoning and learning for autonomous ai agents (opens arXiv in a new tab)
  • Facilitating large language models to master 16000+ real-world apis
  • Direct preference optimization: Your language model is secretly a reward model
  • Zero: Memory optimizations toward training trillion parameter models
  • Scaling synthetic task generation for agents via exploration
  • Toolformer: Language models can teach themselves to use tools
  • World of bits: An open-domain platform for web-based agents
  • Envscaler: Scaling tool-interactive environments for llm agent via programmatic synthesis
  • Trial and error: Exploration-based trajectory optimization of llm agents
  • Kimi K2: Open Agentic Intelligence
  • Automated synthesis of agentic trajectories and reinforcement arenas (opens arXiv in a new tab)
  • Appworld: A controllable world of apps and people for benchmarking interactive coding agents
  • Scienceworld: Is your agent smarter than a 5th grader? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 11279–11298, 2022
  • Facilitating llm agents to master real-world, diverse and scaling mcp tools
  • Towards self-improvement of llms via mcts: Leveraging stepwise knowledge with curriculum preference learning (opens arXiv in a new tab)
  • Training robust tool-calling agents with synthesized yet verifiable data for complex user intents
  • Synthesizing infinite verifiable web environments via finite state machines (opens arXiv in a new tab)
  • A benchmark for stress-testing realistic and comprehensive mcp use
  • Benchmarking multimodal agents for open-ended tasks in real computer environments
  • Monte carlo tree search boosts reasoning via iterative preference learning (opens arXiv in a new tab)
  • DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence
  • Agenttrek: Agent trajectory synthesis via guiding replay with web tutorials
  • Toucan: Synthesizing 1.5 m tool-agentic data from real-world mcp environments (opens arXiv in a new tab)
  • Qwen3 Technical Report
  • Swe-agent: Agent-computer interfaces enable automated software engineering
  • Automated skill discovery for language agents through exploration and iterative feedback (opens arXiv in a new tab)
  • Webshop: Towards scalable real-world web interaction with grounded language agents
  • $τ$-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains
  • Towards efficient self-evolving agent system (opens arXiv in a new tab)
  • Deepresearcher: Scaling deep research via reinforcement learning in real-world environments
  • A realistic web environment for building autonomous agents
  • For a task $q$, a trajectory $\tau = (a_1, o_1, \ldots, a_H, o_H)$ maps an initial state $s_0$ to a terminal state $s_H$
  • Depending on the underlying system, restoration may use a container lifecycle, filesystem image, database snapshot, service endpoint, or another source-specific mechanism
  • During execution, it records ordered actions, observations, and execution status:
  • Volatile fields such as timestamps, transient identifiers, and execution metadata are removed when they do not affect task semantics, enabling consistent comparison across repeated executions
  • For retrieval-oriented trajectories, it conditions on successful reads and their grounded answer evidence
  • This yields a replay guide
  • Unlike an exploratory trace, the replay trajectory is generated after the user request has been fixed and is therefore organized around fulfilling that request
  • Each serialized example contains messages and tools and uses the standard task-solving system prompt
  • Structural validation enforces valid message-tool-call pairing, executable tool invocation, final-response presence, and failure constraints
  • This contract provides shared semantics for tool execution, scenario construction, and verification
  • Audited domains are used for scenario construction
  • For each audited domain, EES instantiates an initial state $s_{0}$ consistent with its entity schemas and domain rules
  • A target already satisfied in $s_0$ is regenerated or revised so that completing the task requires an interaction-induced state change
  • For each audited domain, embedding retrieval proposes semantically related candidates
  • For each selected domain $d_i$, namespace injection $\pi_i$ transforms tool names, entity types, identifiers, and state attributes before composition
  • EES-Cross constructs a shared world context over the merged domains
  • A consistency judge further evaluates the generated roles, policies, linking relations, and shared entities
  • Cross-domain tasks are conditioned on the shared world context, user role, initialized state, and applicable policies, with required operations and success criteria spanning multiple systems
  • Task-level verification then evaluates the observed calls, state changes, terminal outcome, and applicable policy constraints against the scenario requirements
  • Table 4 summarizes the represented environment families and their interaction scope
  • Evaluation queries and states from BFCL v4, $\tau^{2}$-bench, and MCP-Atlas are excluded from trajectory construction
  • The EES catalog contains 191 executable domain definitions organized into 19 application categories, ranging from healthcare and software infrastructure to commerce, education, and document management
  • A domain slot is one occurrence of a constituent domain within one composed environment
  • $D_{c}$ is the number of domain definitions in category $c$, and $S_{c}$ counts their occurrences across the 246 retained EES-Cross compositions
  • The mean composition size is 2.87 domains
  • Other recurring combinations include E-commerce with Travel and Enterprise operations with Productivity, each appearing in six compositions
  • The goal is to distinguish cross-domain supervision from simply longer interaction sequences
  • We identify domain transitions when two consecutive tool calls originate from different executable domains
  • For an entity $e$, let $p(e)$ and $c(e)$ denote the producing and consuming tool calls, respectively
  • For each EES-Cross trajectory, we select EES-Single trajectories with matched tool-call counts and similar serialized interaction lengths, and compute the structural statistics on the matched subsets
  • Cross-domain metrics measure execution coordination beyond interaction length
  • The analysis does not imply that every dimension of structural depth increases; instead, EES-Cross changes the dependency topology of tool-use workflows by introducing interactions among otherwise independent executable domains
  • Table 7 reports selected operations and rules from their domain definitions
  • Cryo-EM Vendor Call
  • Call BioScope about January cryo-EM slots
  • 13,824 from EGTS, 8,026 from EES-Single, and 8,545 from EES-Cross
  • Inventories
  • The latter is the tool-coverage statistic reported in the main text
  • Token counts use the SFT checkpoint's tokenizer and chat template, including the system prompt, tool definitions, and complete conversation
  • Token lengths describe complete serialized examples before training-time length handling
  • >Source</td><td colspan=
  • Each synthetic and benchmark trajectory is normalized into three views: the task intent, the available tool capabilities, and the executed action chain
  • For benchmark trajectory $b$, we measure source alignment by the mean cosine similarity of its $K$ nearest source trajectories:
  • To prevent a larger source from receiving an artificial nearest-neighbor advantage, we deduplicate exact representations and sample equally sized candidate pools from EGTS, EES-Single, and EES-Cross over ten repeats
  • Values are mean Top-5 cosine similarities under equal candidate budgets; bold marks the strongest source for each benchmark
  • Table 12 reports the resulting transition counts
  • Let $C_i^{ref}$ denote the normalized reference call signatures for task i
  • These measurements characterize the executed trajectory and are not used as alternative benchmark scores
  • Immediately before each assistant decision, the collector records the restorable environment state together with the interaction prefix and visible tool schemas
  • (b) shows that, among recovered $\tau^{2}$-bench tasks, explicit tool-error rates decrease from 11.11% to 0.99% on Retail and from 12.72% to 0 on Telecom
  • For the preference data used in the main experiments, we set $K = 3$, yielding one greedy trunk decision and two sampled sibling decisions per fork
  • Each candidate decision $u_t^{(k)}$ is executed from the recorded state $s_t$ under the shared model-visible context $x_t = (q, m_{<t}, \mathcal{T}_t)$, producing a candidate-specific next state $s_{t+1}^{(k)}$

Couldn't load all references. Reload the page to try again.