Skip to content
ImagineWorld

Agentic-DPO: From Imitation to Agentic Policy Optimization on Expert Trajectories

node_idnode-paper_arxiv-2607.10601_agentic-dpo-from-imitation-to-agentic-policy-optimization-on-expert-trajectories
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2607.10601
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the preference-optimization field, the work extends direct preference optimization from imitation to agentic policy optimization on expert trajectories, so preference learning prices action sequences rather than single responses — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleAgentic-DPO: From Imitation to Agentic Policy Optimization on Expert Trajectories
paper_authorsYixiong Chen, Alan Yuille
arxiv_id2607.10601
arxiv_urlhttps://arxiv.org/abs/2607.10601
arxiv_categories{"primary":"cs.AI","secondary":[]}
arxiv_v1
arxiv_submitted_at2026-07-12
arxiv_updated_at2026-07-12
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:10:36Z
local graph

Agentic-DPO: From Imitation to Agentic Policy Optimization on Expert Trajectories

Section titled “Agentic-DPO: From Imitation to Agentic Policy Optimization on Expert Trajectories”

Authors: Yixiong Chen, Alan Yuille

arxiv: 2607.10601

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


Large Language Model (LLM) agents are commonly trained from expert trajectories using supervised fine-tuning (SFT), which treats multi-turn agent behavior as ordinary text imitation. This recipe is simple and low-cost, but it only learns to imitate the sequence of expert actions, rather than training the agent to choose the right action against plausible mistakes at each state. Existing methods to mitigate this problem include preference learning or reinforcement learning, but they usually need high-cost environment rollouts and reward models. We propose Agentic-DPO, a lightweight offline agent policy optimization method that turns expert trajectories into state-conditioned preference supervision. At each expert action state, Agentic-DPO samples a one-step action from the current state, treats plausible wrong actions as negatives, and contrasts them with the expert action using a DPO-style preference objective. To avoid mixing both policy and schema in preference learning, we introduce Policy-Preserving Augmentation (PPA), which renders the same latent trajectory under multiple schemas while keeping the expert policy fixed. Agentic-DPO requires no online environment rollout, reward model, or full-trajectory student exploration. We conduct experiments across StableToolBench, τ\tau-bench retail, and Mind2Web, where Agentic-DPO consistently improves agents at different model scales beyond imitation. In particular, it raises τ\tau-bench accuracy from 21.7%21.7\% (SFT) to 41.4%41.4\% for a 9B model, matching online GRPO under the same backbone with only step-level rollouts and without environment interaction during gradient steps. The results suggest that expert trajectories can support low-cost agentic policy optimization when converted from demonstrations into state-level action preferences. Code for Agentic-DPO is released at https://github.com/Schuture/Agentic-DPO.

Large Language Model (LLM) agents are increasingly used to solve tasks that require interacting with tools, users, web pages, or software environments over multiple turns [28, 15, 45, 10]. A common way to train such agents is to collect expert trajectories from stronger models or scripted policies, and then apply supervised fine-tuning (SFT) to imitate the full trajectory [21, 6]. This recipe is attractive because it is simple, stable, and does not require online interaction with the environment. However, it inherits a basic limitation of behavior cloning: SFT only imitates the token sequences of the expert trajectory.

This limitation is especially important for agent training, because an agent trajectory is not merely a text response; it is a sequence of state-conditioned decisions. At each step, the model must decide whether to call a tool or respond to the user, which tool or action to choose, and what arguments or grounding targets to provide. Recent work has started to address this mismatch by showing that policy can be learned better by algorithms that utilizes the structure of expert trajectories. A straightforward way is to improve SFT by selecting only valuable action steps to train, with heuristic rules (SWE-Lego [37]) or the help of external annotation models (ATLaS [6]). More sophisticated methods combine trajectory structure with preference learning or reinforcement learning (RL) like error step annotation (Step-DPO [18]), action grouping (HPL [13]), local on-policy rollouts (PivotRL [47]), and test-based failure feedback (Agent-RLVR [9]). These methods point to an important direction: agent training should use the decision structure inside trajectories, especially where the current policy would fail. However, they often recover this signal through costly step selection [18, 6], executable environments [47, 9], or even human feedback [18]. We ask whether expert trajectories alone can be converted into policy-level training signals at much lower cost.

Figure 1 : Illustration of the difference between SFT and Agentic-DPO for agent training. SFT treats an expert trajector

Figure 1 : Illustration of the difference between SFT and Agentic-DPO for agent training. SFT treats an expert trajectory as token-level supervision and trains the model to imitate demonstrated tokens. In contrast, Agentic-DPO treats each expert action as a state-conditioned policy decision. It contrasts the expert action with a one-step action sampled from the current student policy, and trains the model to prefer the expert action over the likely student mistake.

We propose Agentic-DPO, an offline agent policy optimization method that turns expert trajectories into state-conditioned action preferences. Figure 1 illustrates the core difference between Agentic-DPO and standard SFT. While SFT treats the expert trajectory as token-level supervision and trains the model to imitate demonstrated tokens, Agentic-DPO treats each expert action as a local policy decision. Given an expert trajectory, we view each expert action as the preferred action at its state. At the same state, we sample a one-step action from the current agent (namely student in the training) and use plausible wrong actions as negative samples. The expert action and the student negative then form a preference pair for a preference learning objective. We adopt DPO-style loss [29]. This gives the student direct feedback about its own likely mistakes: the model is not only trained to imitate the expert action, but also to assign lower probability to the wrong action it would have chosen at that state. Because the rollout stops after the current action and does not execute the environment, Agentic-DPO avoids online environment interaction, reward-model training, and full-trajectory exploration.

Naively applying Agentic-DPO to agent action strings is still poorly conditioned. The action text usually mixes the latent policy decision and the schema-specific rendering of that decision, thus the preferred and dispreferred sequences may differ along both axis, but the DPO loss does not distinguish them. To address this, Agentic-DPO uses two stabilizing designs. First, we keep an SFT anchor so that the model starts from valid expert behavior and does not need to discover the action format through preference learning alone. Second, we introduce Policy-Preserving Augmentation (PPA), which renders the same latent trajectory under multiple schemas while keeping the expert policy fixed. Across these views, the state-action decision is preserved, but the surface realization changes, making the Agentic-DPO preference direction better aligned with the latent agent policy.

We evaluate Agentic-DPO on three agent benchmarks StableToolBench [15], τ\tau-bench retail [45], and Mind2Web [10] that cover complementary action spaces and interaction patterns. Our results show that Agentic-DPO improves small agents beyond imitation across all three settings. On StableToolBench, Agentic-DPO raises a Qwen3.5-2B from 57.1%57.1\% SFT canonical accuracy to 90.9%90.9\%, surpassing strong agent training baselines. On τ\tau-bench retail, Agentic-DPO with Qwen3.5-9B reaches 41.4%41.4\% success, outperforming GRPO under the same backbone (40.0%40.0\%) without online RL rollouts. On Mind2Web, it achieves 64.4%64.4\% average step success across the cross-task, cross-website, and cross-domain held-out splits. These results suggest that expert trajectories can support strong and low-cost agentic policy optimization with only additional action-level rollout.

Our contributions are summarized as follows: (1) We introduce Agentic-DPO, a lightweight offline policy optimization method that constructs state-conditioned action preferences by contrasting expert actions with one-step student negatives. (2) We introduce Policy-Preserving Augmentation, which renders the same latent trajectory under multiple schemas to reduce schema-dominated preference gradients and stabilize action-level DPO. (3) We show that Agentic-DPO improves small agents across controlled tool use, long-horizon user-interleaved interaction, and web-GUI grounding, without online environment rollouts or reward-model training.

Beyond prompting-based scaffolding [46, 34, 23, 51, 32], open-source agents are typically trained by supervised fine-tuning over full expert trajectories [4, 49, 5, 28, 21, 50, 12]. Action-level robustness is added by function masking (Hammer [20]) or critical-step selection (ATLaS [6], SWE-Lego [37]). Across these methods the training signal is positive-only at the rendered action level: the student is told what the expert did, but not how its own likely mistake at the same state differs from it.

Preference optimization, self-play, and on-policy distillation.

Section titled “Preference optimization, self-play, and on-policy distillation.”

DPO [29] and its variants (IPO [2], SimPO [22], KTO [11], DPOP [25], BDPO [8]) optimize chosen–rejected pairs without a reward model. Multi-turn extensions move preference closer to the action level: DMPO [33] length-normalizes DPO over trajectories, DiaTool-DPO [17] adapts it to tool-augmented dialogue, Step-DPO [18] places preference at human/AI-labeled reasoning steps, ETO [36] contrasts full success/failure trajectories, and HPL [13] reports failure modes at both step and trajectory level. Self-play (SPIN [7], T-SPIN [38]), AI feedback (Self-Rewarding LM [48], RLAIF [19]), and on-policy distillation [1] construct negatives from the model’s own generations. Agentic-DPO is the minimal action-level variant: chosen and rejected share the same expert state, the rejected sample is one step from the current student (no per-step labels and no full-trajectory rollout), and no teacher is queried during training.

RLHF-style online RL [24, 30, 27, 3, 40, 39, 42] trains agents through environment rollouts on benchmarks such as WebShop [44], ALFWorld [35], and SWE-bench [16], requiring reward design and rollout workers; PivotRL [47] reduces this cost via informative pivot states. Agentic-DPO is offline and only samples one-step student actions at expert states, recovering part of the self-mistake signal of RL without environment rollouts, reward models, or full-trajectory exploration.

Agentic-DPO trains an agent from expert trajectories. Algorithm 1 summarizes the full procedure. We next describe the problem setting, the preference objective of Agentic-DPO, and the stabilization design including SFT anchor and PPA.

Algorithm 1 Agentic-DPO

1: Expert trajectories D_exp\mathcal{D}\_{\mathrm{exp}}, schema views Φ\Phi, base policy π_θ_0\pi\_{\theta\_{0}}, rounds RR, steps-per-round TT, batch size BB, candidates KK, coefficients β,α,λ\beta,\alpha,\lambda

2: SFT-warm-up π_θ\pi\_{\theta} on D_exp\mathcal{D}\_{\mathrm{exp}} with online PPA; freeze π_ref←π_θ\pi\_{\mathrm{ref}}\leftarrow\pi\_{\theta}

3: for r=1,…,Rr=1,\ldots,R do ▹\triangleright Refresh round

4:   Snapshot θ_student←θ\theta\_{\mathrm{student}}\leftarrow\theta; sample slice S_r ⁣⊂ ⁣D_exp\mathcal{S}\_{r}\!\subset\!\mathcal{D}\_{\mathrm{exp}} of size T ⁣⋅ ⁣BT\!\cdot\!B ▹\triangleright just enough for this round

5:   D_pref(r) ⁣← ⁣∅\mathcal{D}\_{\mathrm{pref}}^{(r)}\!\leftarrow\!\emptyset

6:   for each (s_t,u_t+)∈S_r(s\_{t},u\_{t}^{+})\in\mathcal{S}\_{r} do

7:    Sample ϕ ⁣∼ ⁣Unif(Φ)\phi\!\sim\!\mathrm{Unif}(\Phi), render s_tϕs\_{t}^{\phi}, draw KK candidates from π_θ_student(⋅∣s_tϕ)\pi\_{\theta\_{\mathrm{student}}}(\cdot\mid s\_{t}^{\phi})

8:    drop expert-equivalent; pick the highest-log-prob u_t−u\_{t}^{-} and append (s_t,u_t+,u_t−)(s\_{t},u\_{t}^{+},u\_{t}^{-}) to D_pref(r)\mathcal{D}\_{\mathrm{pref}}^{(r)}

9:   end for

10:   for TT gradient steps do ▹\triangleright Model update with PPA

11:    Minibatch from D_pref(r)\mathcal{D}\_{\mathrm{pref}}^{(r)}; for each triple sample ψ ⁣∼ ⁣Unif(Φ)\psi\!\sim\!\mathrm{Unif}(\Phi) and render (s_tψ,a_t+,ψ,a_t−,ψ)(s\_{t}^{\psi},a\_{t}^{+,\psi},a\_{t}^{-,\psi})

12:    Update θ\theta with L_train=L_ADPO+λL_SFT\mathcal{L}\_{\mathrm{train}}=\mathcal{L}\_{\mathrm{ADPO}}+\lambda\mathcal{L}\_{\mathrm{SFT}}

13:   end for

14: end for

15: return π_θ\pi\_{\theta}

The input to Agentic-DPO is an expert trajectory dataset

D_exp={τ_i}_i=1N,τ_i={(s_i,t,u_i,t+)}_t=1T_i.\mathcal{D}\_{\mathrm{exp}}=\{\tau\_{i}\}\_{i=1}^{N},\qquad\tau\_{i}=\{(s\_{i,t},u\_{i,t}^{+})\}\_{t=1}^{T\_{i}}.

Here s_i,ts\_{i,t} is the agent state at step tt, including the system instruction, conversation history, available tools or actions, previous observations, and any task-specific context. The latent expert action u_i,t+u\_{i,t}^{+} is the decision made by the expert policy at that state. We assume access only to these expert trajectories and do not execute the environment or call external model during training.

A rendered action is produced from a latent action through a schema view. Let ϕ∈Φ\phi\in\Phi denote a schema view. Each view defines a state renderer g_ϕg\_{\phi} and an action renderer r_ϕr\_{\phi}:

s_tϕ=g_ϕ(s_t),a_tϕ=r_ϕ(u_t).s\_{t}^{\phi}=g\_{\phi}(s\_{t}),\qquad a\_{t}^{\phi}=r\_{\phi}(u\_{t}).

For example, the same latent tool call can be rendered as a ReAct-style action or a JSON-list function call, as long as the underlying decision is unchanged. This distinction is important because agent actions are not plain text labels: the same latent decision may have multiple valid textual forms.

We train a student policy π_θ(a∣s)\pi\_{\theta}(a\mid s), which assigns probabilities to rendered action strings. The SFT objective optimizes

L_SFT(θ)=−E_(s_t,u_t+), ϕ[log⁡π_θ(r_ϕ(u_t+)∣g_ϕ(s_t))].\mathcal{L}\_{\mathrm{SFT}}(\theta)=-\mathbb{E}\_{(s\_{t},u\_{t}^{+}),\,\phi}\left[\log\pi\_{\theta}(r\_{\phi}(u\_{t}^{+})\mid g\_{\phi}(s\_{t}))\right].

SFT gives the student positive examples of expert behavior, but it does not compare the expert action with actions that the current student would choose at the same state. Agentic-DPO adds this missing contrast by constructing preference triples (s_t,u_t+,u_t−)(s\_{t},u\_{t}^{+},u\_{t}^{-}), where u_t+u\_{t}^{+} is the expert latent action and u_t−u\_{t}^{-} is a one-step negative action sampled from the current student at the same state. The negative is generated without taking the action in the environment, so the method stays offline.

3.2 Agentic-DPO: State-Conditioned Action Preferences

Section titled “3.2 Agentic-DPO: State-Conditioned Action Preferences”

At the beginning of each refresh round, Agentic-DPO uses the current student as the negative sampler. For an expert step (s_t,u_t+)(s\_{t},u\_{t}^{+}), we first sample a schema view ϕ\phi, render the state as s_tϕs\_{t}^{\phi}, and sample K=4K=4 one-step candidate actions from the current student: {a~_t(k),ϕ}_k=1K∼π_θ_student(⋅∣s_tϕ).\{\tilde{a}\_{t}^{(k),\phi}\}\_{k=1}^{K}\sim\pi\_{\theta\_{\mathrm{student}}}(\cdot\mid s\_{t}^{\phi}). We parse each valid candidate into a latent action u~_t(k)\tilde{u}\_{t}^{(k)}. Candidates that cannot be parsed or equivalent to the expert action are removed, where equivalence means that the latent decision is the same, such as the same tool and the same arguments after normalization. If no different valid candidate remains, the expert step is skipped in the current refresh round. This avoids turning the preference signal into a decision-irrelevant comparison, such as formatting and argument order.

Among the remaining candidates, we select the one with the highest student log probability:

u_t−=arg⁡max⁡_u~_t(k)≠u_t+log⁡π_θ_student(r_ϕ(u~_t(k))∣g_ϕ(s_t)).u\_{t}^{-}=\arg\max\_{\tilde{u}\_{t}^{(k)}\neq u\_{t}^{+}}\log\pi\_{\theta\_{\mathrm{student}}}\left(r\_{\phi}(\tilde{u}\_{t}^{(k)})\mid g\_{\phi}(s\_{t})\right).

This hardest-different-action rule selects a negative that the current student is likely to make, while still requiring that the negative correspond to a different latent decision from the expert. The resulting triples form the preference buffer D_pref\mathcal{D}\_{\mathrm{pref}}.

Given a rendered preference triple (s_tϕ,a_t+,ϕ,a_t−,ϕ)(s\_{t}^{\phi},a\_{t}^{+,\phi},a\_{t}^{-,\phi}), Agentic-DPO optimizes the action-level DPO loss

L_ADPO(θ)=−E_(s_t,u_t+,u_t−), ϕ[log⁡σ(β_eff(a_t+,ϕ,a_t−,ϕ)[log⁡π_θ(a_t+,ϕ∣s_tϕ)π_θ(a_t−,ϕ∣s_tϕ)−log⁡π_ref(a_t+,ϕ∣s_tϕ)π_ref(a_t−,ϕ∣s_tϕ)])].\mathcal{L}\_{\mathrm{ADPO}}(\theta)=-\mathbb{E}\_{(s\_{t},u\_{t}^{+},u\_{t}^{-}),\,\phi}\left[\log\sigma\left(\beta\_{\mathrm{eff}}(a\_{t}^{+,\phi},a\_{t}^{-,\phi})\left[\log\frac{\pi\_{\theta}(a\_{t}^{+,\phi}\mid s\_{t}^{\phi})}{\pi\_{\theta}(a\_{t}^{-,\phi}\mid s\_{t}^{\phi})}-\log\frac{\pi\_{\mathrm{ref}}(a\_{t}^{+,\phi}\mid s\_{t}^{\phi})}{\pi\_{\mathrm{ref}}(a\_{t}^{-,\phi}\mid s\_{t}^{\phi})}\right]\right)\right].(1)

The reference policy π_ref\pi\_{\mathrm{ref}} is the frozen SFT-warmed student. All log probabilities are summed only over the generated action tokens, not over the state tokens. Because action lengths can differ across tools, GUI actions, and natural-language replies, we use a length-scaled preference coefficient

$$\beta_{\mathrm{eff}}(a^{+},a^{-})=\frac{\beta}{\max(a^{+}

Here ∣a∣|a| is the number of action tokens. The scalar β\beta is fixed across runs, while the length scaling prevents long actions from dominating short actions only because they contain more tokens.

Unlike trajectory-level preference learning, both the chosen and rejected actions share the same expert state. The loss therefore does not ask the model to prefer one full trajectory over another. It asks the model to prefer the expert action over a specific wrong action that the current student is likely to take at that state.

A direct application of Eq. (1) can be unstable because agent actions are represented as rendered text. A preference pair may differ both in the latent decision and in the schema-specific surface form. If this is not controlled, the DPO gradient can partly optimize for the rendering style rather than the action decision. Agentic-DPO uses SFT anchor and PPA.

The SFT warm-up gives the student basic format validity and expert-action coverage before any preference optimization. After warm-up, we freeze the reference policy π_ref\pi\_{\mathrm{ref}}, and then use the current student in each refresh round to generate negatives. During preference training, we keep an SFT anchor:

L_train(θ)=L_ADPO(θ)+λL_SFT(θ),\mathcal{L}\_{\mathrm{train}}(\theta)=\mathcal{L}\_{\mathrm{ADPO}}(\theta)+\lambda\mathcal{L}\_{\mathrm{SFT}}(\theta),

where λ>0\lambda>0. The anchor keeps the expert action probability from being pushed down when the preference loss suppresses a negative action. It also keeps the policy close to valid action syntax while the DPO term changes the relative preference between expert and student actions.

PPA renders the same latent decision under multiple schema views. PPA is applied to both the expert action and the selected student negative, so each preference pair stays schema-consistent:

(s_tϕ,a_t+,ϕ,a_t−,ϕ)=(g_ϕ(s_t),r_ϕ(u_t+),r_ϕ(u_t−)).(s\_{t}^{\phi},a\_{t}^{+,\phi},a\_{t}^{-,\phi})=(g\_{\phi}(s\_{t}),r\_{\phi}(u\_{t}^{+}),r\_{\phi}(u\_{t}^{-})).

The first PPA family is action-rendering rewrites. These transformations change how actions are serialized while preserving the action choice. For tool-use agents, we render the same tool call in formats such as ReAct-style calls and JSON-list calls. We also use tool renamings, where the tool names and tool descriptions in the state are renamed consistently with the action string.

The second PPA family is state-context rewrites. These transformations change the rendered history before the current expert step while preserving the current target action. In recovery-style contexts, we inject an earlier erroneous action and its correction into the history, and then ask the model to choose the same current expert action. This creates states where the agent has already recovered from a local mistake, but the latent decision at the current step remains fixed.

During training, PPA is sampled online. For each preference triple in a minibatch, we sample a view ϕ∼Unif(Φ)\phi\sim\mathrm{Unif}(\Phi), render the state, expert action, and negative action under that same view, and compute Eq. (1). Across updates, the same latent preference can be seen under several schemas. Detailed examples of PPA can be found in Appendix D.

We give two local observations that motivate the SFT anchor and PPA. Full assumptions, proofs, the hard-negative extension, and refresh-round diagnostics are given in Appendix B.

The SFT anchor is aligned with Agentic-DPO.

Section titled “The SFT anchor is aligned with Agentic-DPO.”

Fix an expert state ss with a finite latent action set A(s)\mathcal{A}(s), logits z_θ(s)z\_{\theta}(s), and policy π_θ(⋅∣s)=softmax(z_θ(s))\pi\_{\theta}(\cdot\mid s)=\mathrm{softmax}(z\_{\theta}(s)). Let q_sq\_{s} be the expert action distribution, and let π_ref\pi\_{\mathrm{ref}} be the frozen SFT-warmed reference policy with π_θ_0=π_ref\pi\_{\theta\_{0}}=\pi\_{\mathrm{ref}}. For a+∼q_sa^{+}\sim q\_{s} and a−∼π_ref(⋅∣s)a^{-}\sim\pi\_{\mathrm{ref}}(\cdot\mid s), let L_con\mathcal{L}\_{\mathrm{con}} be the per-state DPO contrastive loss and L_SFT\mathcal{L}\_{\mathrm{SFT}} be the per-state SFT loss.

At initialization π_θ_0=π_ref\pi\_{\theta\_{0}}=\pi\_{\mathrm{ref}}, the contrastive and SFT gradients in logit space satisfy

∇_z_θ_0(s)L_con(θ_0;s)=β2(π_ref(⋅∣s)−q_s),∇_z_θ_0(s)L_SFT(θ_0;s)=π_ref(⋅∣s)−q_s.\nabla\_{z\_{\theta\_{0}}(s)}\mathcal{L}\_{\mathrm{con}}(\theta\_{0};s)=\tfrac{\beta}{2}\bigl(\pi\_{\mathrm{ref}}(\cdot\mid s)-q\_{s}\bigr),\qquad\nabla\_{z\_{\theta\_{0}}(s)}\mathcal{L}\_{\mathrm{SFT}}(\theta\_{0};s)=\pi\_{\mathrm{ref}}(\cdot\mid s)-q\_{s}.(2)

Therefore, the anchored objective L_con+λL_SFT\mathcal{L}\_{\mathrm{con}}+\lambda\mathcal{L}\_{\mathrm{SFT}} has gradient

(λ+β2)(π_ref(⋅∣s)−q_s).\left(\lambda+\tfrac{\beta}{2}\right)\bigl(\pi\_{\mathrm{ref}}(\cdot\mid s)-q\_{s}\bigr).

At initialization, the SFT anchor and the Agentic-DPO contrastive term push probability mass in the same logit-space direction. Thus the anchor does not oppose preference optimization; it reinforces the expert-directed update while preventing expert-action likelihood from being displaced. A sufficiently small step along the anchored gradient gives a first-order decrease of the expert KL V_s(z)=KL(q_s∥π_z(⋅∣s))V\_{s}(z)=\mathrm{KL}(q\_{s}\|\pi\_{z}(\cdot\mid s)), and Appendix B extends the statement to the hard-negative rule used in Algorithm 1.

For a policy-preserving view ϕ\phi, write the stylized decomposition

log⁡π_θ(r_ϕ(u)∣g_ϕ(s))=G_θ(u∣s)+H_θ(ϕ∣s,u)+ϵ_θ,\log\pi\_{\theta}(r\_{\phi}(u)\mid g\_{\phi}(s))=G\_{\theta}(u\mid s)+H\_{\theta}(\phi\mid s,u)+\epsilon\_{\theta},

where G_θG\_{\theta} scores the latent decision, H_θH\_{\theta} scores schema-specific form, and ϵ_θ\epsilon\_{\theta} is a residual independent of uu and ϕ\phi. The corresponding Agentic-DPO margin is

Δ_θϕ=G_θ(u+∣s)−G_θ(u−∣s)⏟_latent-decision margin+H_θ(ϕ∣s,u+)−H_θ(ϕ∣s,u−)⏟_schema-form margin+ϵ_θ.\Delta\_{\theta}^{\phi}=\underbrace{G\_{\theta}(u^{+}\mid s)-G\_{\theta}(u^{-}\mid s)}\_{\text{latent-decision margin}}+\underbrace{H\_{\theta}(\phi\mid s,u^{+})-H\_{\theta}(\phi\mid s,u^{-})}\_{\text{schema-form margin}}+\epsilon\_{\theta}.

With a single schema, the schema-form margin can dominate the gradient, making DPO prefer a rendering style rather than the latent expert action. PPA instead samples multiple views for the same latent preference pair. If these views are balanced so that

E_ϕ∼Φ[∇_θ(H_θ(ϕ∣s,u+)−H_θ(ϕ∣s,u−))]≈0,\mathbb{E}\_{\phi\sim\Phi}\left[\nabla\_{\theta}\bigl(H\_{\theta}(\phi\mid s,u^{+})-H\_{\theta}(\phi\mid s,u^{-})\bigr)\right]\approx 0,

then the expected preference gradient is dominated by the shared latent-decision margin. This is why PPA uses both action-rendering rewrites and state-context rewrites: the surface form and local history vary across views, while the expert-over-negative latent decision stays fixed. Together, these two observations predict that removing either the SFT anchor or PPA should produce visible regressions in seed stability and the canonical–perturbation gap, which we test in Section 4.3.

We evaluate Agentic-DPO on three agent benchmarks: StableToolBench [15] for tool use, τ\tau-bench retail [45] for long-horizon user-interleaved tool interaction, and Mind2Web [10] for web-GUI grounding. We report canonical and perturbed accuracy on StableToolBench (perturbation set in Appendix C), task success on the original released τ\tau-bench retail tasks, and average step success across the cross-task, cross-website, and cross-domain held-out splits of Mind2Web. All results are averaged over three random seeds.

Backbones are Qwen3.5-2B/4B/9B [43], plus Gemma3-4B [14] in ablations. We compare against SFT, PPA+SFT, DFT [41] (a reward-rectified SFT variant), ETO [36] (trajectory-level DPO), and GRPO [31] (online RL with grouped rollouts) on a shared backbone, expert traces, and evaluation protocol per benchmark; GRPO is run only on StableToolBench and τ\tau-bench retail (Mind2Web’s static traces lack the step-level reward GRPO needs). Agentic-DPO is trained on 4 A6000 GPUs with hyperparameters λ=0.5\lambda=0.5, β=0.008\beta=0.008, K=4K=4 student samples, R=5R=5 negative-refresh rounds, and effective batch size 1616 across all benchmarks and backbones; the remaining loss-coefficient details and the per-round dynamics are reported in Appendix and Section 4.6.

Table 1 compares Agentic-DPO with baselines across the three benchmarks and three model sizes.

Table 1: Performance comparison of Agentic-DPO and baselines across agent benchmarks. The best and second-best results within each model group are highlighted in bold and with an underline.

MethodStableToolBenchτ\tau-bench RetailMind2WebAverage
CanonPertSuccess RateAvg. Step Success
Qwen3.5-2B
Base45.2±2.142.1±2.312.5±1.525.6±1.831.4
SFT57.1±3.252.3±3.018.0±2.035.4±2.240.7
PPA+SFT83.4±2.581.1±2.822.1±3.142.1±2.557.2
DFT85.2±6.579.6±6.625.4±2.849.2±2.759.9
ETO85.3±2.281.3±2.728.5±2.248.5±2.460.9
GRPO85.0±2.979.8±4.232.1±1.9––
Agentic-DPO90.9±1.385.5±1.535.2±1.652.3±1.866.0
Qwen3.5-4B
Base50.5±2.248.2±2.414.5±1.628.4±1.935.4
SFT65.2±2.860.5±2.920.4±2.138.6±2.346.2
PPA+SFT82.0±2.177.0±8.526.5±3.246.1±2.857.9
DFT85.4±1.881.2±2.529.8±2.149.0±2.461.4
ETO88.5±1.585.1±2.032.6±1.950.5±2.264.2
GRPO86.4±2.382.1±5.335.4±1.8––
Agentic-DPO91.3±1.089.4±1.238.5±1.454.5±9.068.4
Qwen3.5-9B
Base65.2±2.362.1±2.516.5±1.835.2±2.144.8
SFT78.5±2.574.2±2.621.7±2.245.6±2.455.0
PPA+SFT92.2±1.690.1±0.723.8±4.252.4±2.164.6
DFT93.0±1.890.7±2.333.0±3.055.6±1.867.9
ETO92.5±2.191.1±1.920.9±11.856.8±2.565.5
GRPO88.6±1.184.9±3.040.0±2.5––
Agentic-DPO94.1±0.192.0±0.141.4±3.564.4±1.273.0

Agentic-DPO is the best method on every metric and scale, with the largest gains over plain SFT (avg. +25.3+25.3/+22.2+22.2/+18.0+18.0 on 2B/4B/9B). It also consistently improves over PPA+SFT, isolating the contribution of expert-vs-student-mistake contrast beyond multi-view positives. On StableToolBench, GRPO improves over SFT but trails ETO and Agentic-DPO at every scale, since on many states the group of G=4G=4 rollouts shares the same correctness label and yields zero advantage signal. On τ\tau-bench retail, where the agent interacts with a user simulator over long horizons, Agentic-DPO lifts Qwen3.5-9B from 21.7%21.7\% to 41.4%41.4\% success and matches GRPO (40.0%40.0\%) with overlapping confidence intervals at a fraction of its rollout cost (Section 5); ETO’s ±11.8\pm 11.8 standard deviation at this scale reflects the high variance of full-trajectory preference learning, which Agentic-DPO sidesteps by anchoring each pair to a single expert state. On Mind2Web, Agentic-DPO gives the largest relative gain at 9B, raising average step success from 45.6%45.6\% (SFT) and 56.8%56.8\% (ETO) to 64.4%64.4\%.

Table 2 ablates the four stabilizing components on StableToolBench for Qwen3.5-2B and Gemma3-4B. The SFT warm-up is load-bearing: removing it drops accuracy to 0.0%0.0\% on both backbones, reflecting a 100%100\% parser-rejection floor where student samples drift away from the action schema and produce ungradeable strings before any preference signal can act. With the warm-up in place, removing the SFT anchor during preference training partially recovers (72.572.5/62.562.5 canonical on 2B/Gemma) but trails the full recipe by 1414–1818 points and shows higher seed variance, indicating the contrastive term alone is not enough to stabilize action-level DPO. Removing either PPA family keeps canonical accuracy high but widens the canonical–perturbation gap from ∼\sim4 points (full recipe) to 1111–1515 points; action-rendering PPA contributes slightly more to perturbation robustness than recovery-context PPA, and removing both collapses the gap to the same level. Only the full recipe combines high canonical accuracy with a small perturbation gap on both backbones.

Table 2: Ablation study on StableToolBench. The full Agentic-DPO recipe uses SFT warm-up, an SFT anchor during DPO training, action-rendering PPA, and recovery-context PPA.

MethodQwen3.5-2BGemma3-4B
CanonicalPerturb.GapCanonicalPerturb.Gap
SFT57.1±3.252.3±3.04.865.4±3.550.1±3.815.3
PPA+SFT83.4±2.581.1±2.802.372.4±2.870.1±3.102.3
Agentic-DPO w/o SFT warm-up00.0±0.000.0±0.000.000.0±0.000.0±0.000.0
Agentic-DPO w/o SFT anchor72.5±4.268.2±4.504.362.5±4.858.1±5.204.4
Agentic-DPO w/o action-rendering PPA88.5±2.175.3±2.913.275.8±2.461.2±3.314.6
Agentic-DPO w/o recovery-context PPA89.2±1.978.5±2.610.776.1±2.265.3±2.910.8
Agentic-DPO w/o PPA88.0±1.476.6±1.911.474.4±3.164.0±3.910.4
Full Agentic-DPO90.9±1.385.5±1.505.476.5±1.872.8±2.103.7

4.4 Robustness and Out-of-Distribution Generalization

Section titled “4.4 Robustness and Out-of-Distribution Generalization”

We test whether the gains come from learning the training-time PPA views or from improving the latent action policy. StableToolBench-Perturbed has nine evaluation operators; two (rename_tool, format_switch) overlap with training-time PPA and seven are held out (full list in Appendix C). As Table 3 shows, Agentic-DPO improves both in-class and held-out accuracy with only a 2.72.7-point gap between them, so the robustness gain does not collapse on perturbations absent from training-time PPA; the much smaller seed standard deviations also indicate that the anchored objective stabilizes training across seeds. Table 4 tests zero-shot OOD generalization: a Qwen3.5-9B agent trained on the publicly released ToolACE [21] corpus and evaluated on BFCL-v3 [26]. SFT slightly hurts the frozen base model on the Live split, while Agentic-DPO improves both Non-Live and Live scores, matching the held-out finding that PPA-stabilized preference optimization preserves OOD tool-use better than positive-only SFT.

Table 3 : Held-out robustness on StableToolBench-Perturbed with Qwen3.5-2B. In-class uses the 2 perturbation operators related to PPA, while held-out uses the 7 operators not used by PPA.

Table 4 : Zero-shot BFCL-v3 evaluation for Qwen3.5-9B trained on ToolACE.

4.5 Scaling Up: Sampled Negatives and Expert Data

Section titled “4.5 Scaling Up: Sampled Negatives and Expert Data”

Figure 2 : Scaling behavior of Agentic-DPO on StableToolBench with Qwen3.5-2B. Shaded bands show min–max. Left: increasing the number of sampled negatives K K improves performance up to K = 2 K=2 – 4 4 , after which the curve saturates. Right: Agentic-DPO is more data efficient than PPA+SFT, it has better performance and stability with low data.

We study two scaling axes on StableToolBench with Qwen3.5-2B: the number of one-step sampled negatives per expert state, and the fraction of expert trajectories used for training. The KK-scaling curve in Figure 2 (left) saturates quickly. Moving from K=1K=1 to K=2K=2–44 improves performance, but larger KK gives little extra gain. This suggests that the main benefit comes from finding one plausible local mistake at each expert state, rather than from approximating a large rollout distribution. The data-scaling curve in Figure 2 (right) shows a complementary effect: Agentic-DPO trained on only 25%25\% of the expert trajectories already matches PPA+SFT trained on 100%100\% of the data. And Agentic-DPO has stable performance across all data sizes, while PPA+SFT is unstable with lower than 50% data.

4.6 Training Dynamics: Negative-Refresh Rounds

Section titled “4.6 Training Dynamics: Negative-Refresh Rounds”

A refresh round resamples one-step negatives at expert states using the current student and then continues training with the same anchored objective. We sweep R∈{0,1,…,5}R\in\{0,1,\ldots,5\}, where R=0R=0 is PPA+SFT without Agentic-DPO. Figure 3 shows that the useful number of refresh rounds depends on model scale. The 2B model benefits from several refreshes but begins to overfit after its peak. The 4B model does not show the same clear overfitting pattern, but it converges more slowly. The 9B model converges fastest, one refresh round is enough to reach its best performance, and additional rounds mostly plateau. This pattern suggests that larger students need fewer negative-refresh rounds because their first set of one-step negatives is already close to the useful decision boundary.

Figure 3 : Effect of negative-refresh rounds R R on StableToolBench for Qwen3.5-2B/4B/9B. Lines show per-round medians over seeds, and shaded bands show min–max. R = 0 R=0 is PPA+SFT only. Smaller models benefit from more refreshes, while the 9B model reaches its best performance after one refresh round.

Training cost. Agentic-DPO is more expensive than SFT, but much cheaper than online RL. On τ\tau-bench with Qwen3.5-9B, taking SFT’s per-step wall time as 1×1\times, Agentic-DPO costs 1.6×1.6\times per step (two forwards on expert and negative per step), while GRPO costs 13.6×13.6\times per step because every gradient step requires fresh multi-turn rollouts. Thus Agentic-DPO recovers a student-aware training signal while avoiding the dominant cost of RL: repeated full-trajectory environment rollouts.

Limitations. Agentic-DPO is still an offline method. It constructs preferences only at states that already appear in the expert trajectories, so it cannot discover new states induced by the student’s own long-horizon behavior. This is the main difference from online RL. Agentic-DPO instead trades off this feedback for lower cost and simpler training. As a result, it is best suited when expert trajectories cover the important decision states, while tasks that require exploration far beyond the expert data may still benefit from online environment interaction.

We presented Agentic-DPO, an offline policy optimization method that converts each expert action step into a state-conditioned preference by contrasting the expert action with a one-step negative sampled from the current student, stabilized by an SFT anchor and Policy-Preserving Augmentation. Across StableToolBench, τ\tau-bench retail, and Mind2Web, Agentic-DPO improves small agents beyond SFT and strong RL/preference baselines without environment rollouts, reward-model training, or full-trajectory exploration, suggesting expert trajectories can support low-cost agentic policy optimization when their state-action structure is used directly.

  • [1] R. Agarwal, N. Vieillard, Y. Zhou, P. Stanczyk, S. R. Garea, M. Geist, and O. Bachem (2024) On-policy distillation of language models: learning from self-generated mistakes. In The twelfth international conference on learning representations, Cited by: §2.
  • [2] M. G. Azar, Z. D. Guo, B. Piot, R. Munos, M. Rowland, M. Valko, and D. Calandriello (2024) A general theoretical paradigm to understand learning from human preferences. In International Conference on Artificial Intelligence and Statistics, pp. 4447–4455. Cited by: §2.
  • [3] H. Bai, Y. Zhou, M. Cemri, J. Pan, A. Suhr, S. Levine, and A. Kumar (2024) Digirl: training in-the-wild device-control agents with autonomous reinforcement learning. Advances in Neural Information Processing Systems 37, pp. 12461–12495. Cited by: §2.
  • [4] B. Chen, C. Shu, E. Shareghi, N. Collier, K. Narasimhan, and S. Yao (2023) Fireact: toward language agent fine-tuning. arXiv preprint arXiv:2310.05915. Cited by: §2.
  • [5] Z. Chen, K. Liu, Q. Wang, W. Zhang, J. Liu, D. Lin, K. Chen, and F. Zhao (2024) Agent-FLAN: designing data and methods of effective agent tuning for large language models. arXiv preprint arXiv:2403.12881. Cited by: §2.
  • [6] Z. Chen, M. Li, Y. Huang, Y. Du, M. Fang, and T. Zhou (2025) ATLaS: agent tuning via learning critical steps. arXiv preprint arXiv:2503.02197. Note: Findings of ACL 2025. Cited by: §1, §1, §2.
  • [7] Z. Chen, Y. Deng, H. Yuan, K. Ji, and Q. Gu (2024) Self-play fine-tuning converts weak language models to strong language models. In ICML, Cited by: §2.
  • [8] J. H. Cho, J. Oh, M. Kim, and B. Lee (2025) Rethinking DPO: the role of rejected responses in preference misalignment. arXiv preprint arXiv:2506.12725. Note: Proposes Bounded-DPO (BDPO). Cited by: §2.
  • [9] J. Da, C. Wang, X. Deng, Y. Ma, N. Barhate, and S. Hendryx (2025) Agent-rlvr: training software engineering agents via guidance and environment rewards. arXiv preprint arXiv:2506.11425. Cited by: §1.
  • [10] X. Deng, Y. Gu, B. Zheng, S. Chen, S. Stevens, B. Wang, H. Sun, and Y. Su (2023) Mind2Web: towards a generalist agent for the web. In Advances in Neural Information Processing Systems, Cited by: Table 5, §1, §1, §4.1.
  • [11] K. Ethayarajh, W. Xu, N. Muennighoff, D. Jurafsky, and D. Kiela (2024) KTO: model alignment as prospect theoretic optimization. International Conference on Machine Learning (ICML). Note: arXiv:2402.01306 Cited by: §2.
  • [12] D. Fu, K. He, Y. Wang, W. Hong, Z. Gongque, W. Zeng, W. Wang, J. Wang, X. Cai, and W. Xu (2025) AgentRefine: enhancing agent generalization through refinement tuning. arXiv preprint arXiv:2501.01702. Note: ICLR 2025. Cited by: §2.
  • [13] H. Gao, Z. Sun, E. Min, H. Cai, S. Wang, D. Yin, and X. Chen (2025) Solving the granularity mismatch: hierarchical preference learning for long-horizon llm agents. arXiv preprint arXiv:2510.03253. Cited by: §1, §2.
  • [14] Gemma Team (2025) Gemma 3 technical report. Technical report Google DeepMind. Note: arXiv:2503.19786 Cited by: §4.1.
  • [15] Z. Guo, S. Cheng, H. Wang, S. Liang, Y. Qin, P. Li, Z. Liu, M. Sun, and Y. Liu (2024) StableToolBench: towards stable large-scale benchmarking on tool learning of large language models. In Findings of ACL, Note: arXiv:2403.07714 Cited by: Table 5, §1, §1, §4.1.
  • [16] C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan (2024) SWE-bench: can language models resolve real-world GitHub issues?. In International Conference on Learning Representations (ICLR), Note: arXiv:2310.06770 Cited by: §2.
  • [17] S. Jung, D. Park, S. Jeon, J. Lee, E. Yang, and P. Kang (2025) DiaTool-DPO: multi-turn direct preference optimization for tool-augmented large language models. Annual Meeting of the Association for Computational Linguistics (ACL). Note: arXiv:2504.02882 Cited by: §2.
  • [18] X. Lai, Z. Tian, Y. Chen, S. Yang, X. Peng, and J. Jia (2024) Step-dpo: step-wise preference optimization for long-chain reasoning of llms. arXiv preprint arXiv:2406.18629. Cited by: §1, §2.
  • [19] H. Lee, S. Phatale, H. Mansoor, T. Mesnard, J. Ferret, K. Lu, C. Bishop, E. Hall, V. Carbune, A. Rastogi, and S. Prakash (2024) RLAIF vs. RLHF: scaling reinforcement learning from human feedback with ai feedback. International Conference on Machine Learning (ICML). Note: arXiv:2309.00267 Cited by: §2.
  • [20] Q. Lin, M. Wen, Q. Peng, G. Nie, J. Liao, J. Wang, X. Mo, J. Zhou, C. Cheng, Y. Zhao, J. Wang, and W. Zhang (2024) Hammer: robust function-calling for on-device language models via function masking. arXiv preprint arXiv:2410.04587. Cited by: §2.
  • [21] W. Liu, X. Huang, X. Zeng, X. Hao, S. Yu, D. Li, S. Wang, W. Gan, Z. Liu, Y. Hou, B. Wang, C. Wu, X. Wang, Y. Liu, Y. Wang, D. Tang, L. Shang, X. Jiang, R. Tang, D. Lian, Q. Liu, and E. Chen (2025) ToolACE: winning the points of LLM function calling. In ICLR, Note: arXiv:2409.00920 Cited by: Table 5, §1, §2, §4.4.
  • [22] Y. Meng, M. Xia, and D. Chen (2024) Simpo: simple preference optimization with a reference-free reward. Advances in Neural Information Processing Systems 37, pp. 124198–124235. Cited by: §2.
  • [23] D. Nguyen, J. Chen, Y. Wang, G. Wu, N. Park, Z. Hu, H. Lyu, J. Wu, R. Aponte, Y. Xia, et al. (2025) Gui agents: a survey. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 22522–22538. Cited by: §2.
  • [24] L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. L. Wainwright, P. Mishkin, C. Zhang, S. Agarwal, K. Slama, A. Ray, J. Schulman, J. Hilton, F. Kelton, L. Miller, M. Simens, A. Askell, P. Welinder, P. Christiano, J. Leike, and R. Lowe (2022) Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems (NeurIPS). Note: arXiv:2203.02155 Cited by: §2.
  • [25] A. Pal, D. Karkhanis, S. Dooley, M. Roberts, S. Naidu, and C. White (2024) Smaug: fixing failure modes of preference optimisation with DPO-positive. arXiv preprint arXiv:2402.13228. Cited by: §2.
  • [26] S. G. Patil, H. Mao, F. Yan, C. C. Ji, V. Suresh, I. Stoica, and J. E. Gonzalez (2025) The berkeley function calling leaderboard (BFCL): from tool use to agentic evaluation of large language models. In ICML, Cited by: Table 5, §4.4.
  • [27] Z. Qi, X. Liu, I. L. Iong, H. Lai, X. Sun, X. Yang, J. Sun, Y. Yang, S. Yao, T. Zhang, W. Xu, J. Tang, and Y. Dong (2025) WebRL: training LLM web agents via self-evolving online curriculum reinforcement learning. In ICLR, Note: arXiv:2411.02337 Cited by: §2.
  • [28] Y. Qin, S. Liang, Y. Ye, K. Zhu, L. Yan, Y. Lu, Y. Lin, X. Cong, X. Tang, B. Qian, S. Zhao, L. Hong, R. Tian, R. Xie, J. Zhou, M. Gerstein, D. Li, Z. Liu, and M. Sun (2024) ToolLLM: facilitating large language models to master 16000+ real-world APIs. In ICLR, Note: Spotlight. arXiv:2307.16789. Cited by: Table 5, §1, §2.
  • [29] R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn (2023) Direct preference optimization: your language model is secretly a reward model. Advances in neural information processing systems 36, pp. 53728–53741. Cited by: §1, §2.
  • [30] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov (2017) Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347. Cited by: §2.
  • [31] Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo (2024) DeepSeekMath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: §4.1.
  • [32] J. Shen, A. Jain, Z. Xiao, I. Amlekar, M. Hadji, A. Podolny, and A. Talwalkar (2024) ScribeAgent: towards specialized web agents using production-scale workflow data. arXiv preprint arXiv:2411.15004. Cited by: §2.
  • [33] W. Shi, M. Yuan, J. Wu, Q. Wang, and F. Feng (2024) Direct multi-turn preference optimization for language agents. In Conference on Empirical Methods in Natural Language Processing (EMNLP), Note: arXiv:2406.14868 Cited by: §2.
  • [34] N. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, and S. Yao (2023) Reflexion: language agents with verbal reinforcement learning. Advances in neural information processing systems 36, pp. 8634–8652. Cited by: §2.
  • [35] M. Shridhar, X. Yuan, M. Côté, Y. Bisk, A. Trischler, and M. Hausknecht (2021) ALFWorld: aligning text and embodied environments for interactive learning. In International Conference on Learning Representations (ICLR), Note: arXiv:2010.03768 Cited by: §2.
  • [36] Y. Song, D. Yin, X. Yue, J. Huang, S. Li, and B. Y. Lin (2024) Trial and error: exploration-based trajectory optimization for LLM agents. arXiv preprint arXiv:2403.02502. Cited by: §2, §4.1.
  • [37] C. Tao, J. Chen, Y. Jiang, K. Kou, S. Wang, R. Wang, X. Li, S. Yang, Y. Du, J. Dai, et al. (2026) Swe-lego: pushing the limits of supervised fine-tuning for software issue resolving. arXiv preprint arXiv:2601.01426. Cited by: §1, §2.
  • [38] Y. Wang, H. Sun, G. Huzhang, Q. Chen, Z. Xu, W. Luo, K. Zhang, and L. Zhang (2025) Triplets better than pairs: towards stable and effective self-play fine-tuning for LLMs. In NeurIPS, Cited by: §2.
  • [39] Z. Wang, K. Wang, Q. Wang, P. Zhang, L. Li, Z. Yang, X. Jin, K. Yu, M. N. Nguyen, L. Liu, et al. (2025) Ragen: understanding self-evolution in llm agents via multi-turn reinforcement learning. arXiv preprint arXiv:2504.20073. Cited by: §2.
  • [40] Z. Wei, W. Yao, Y. Liu, W. Zhang, Q. Lu, L. Qiu, C. Yu, P. Xu, C. Zhang, B. Yin, et al. (2025) Webagent-r1: training web agents via end-to-end multi-turn reinforcement learning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 7920–7939. Cited by: §2.
  • [41] Y. Wu, Y. Zhou, Z. Ziheng, Y. Peng, X. Ye, X. Hu, W. Zhu, L. Qi, M. Yang, and X. Yang (2025) On the generalization of SFT: a reinforcement learning perspective with reward rectification. arXiv preprint arXiv:2508.05629. Note: ICLR 2026. Referred to in text as DFT (Dynamic Fine-Tuning). Cited by: §4.1.
  • [42] Z. Xi, J. Huang, C. Liao, B. Huang, H. Guo, J. Liu, R. Zheng, J. Ye, J. Zhang, W. Chen, et al. (2025) Agentgym-rl: training llm agents for long-horizon decision making through multi-turn reinforcement learning. arXiv preprint arXiv:2509.08755. Cited by: §2.
  • [43] A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al. (2025) Qwen3 technical report. arXiv preprint arXiv:2505.09388. Cited by: §4.1.
  • [44] S. Yao, H. Chen, J. Yang, and K. Narasimhan (2022) WebShop: towards scalable real-world web interaction with grounded language agents. In Advances in Neural Information Processing Systems (NeurIPS), Note: arXiv:2207.01206 Cited by: §2.
  • [45] S. Yao, N. Shinn, P. Razavi, and K. Narasimhan (2024) τ\tau-Bench: a benchmark for tool-agent-user interaction in real-world domains. arXiv preprint arXiv:2406.12045. Cited by: Table 5, §1, §1, §4.1.
  • [46] S. Yao, J. Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan, and Y. Cao (2023) ReAct: synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), Cited by: §2.
  • [47] J. Yi, D. Mosk-Aoyama, B. Huang, R. Gala, C. Wang, S. D. Devare, K. Bhardwaj, A. Gupta, O. Kuchaiev, J. Jiao, et al. (2026) PivotRL: high accuracy agentic post-training at low compute cost. arXiv preprint arXiv:2603.21383. Cited by: §1, §2.
  • [48] W. Yuan, R. Y. Pang, K. Cho, S. Sukhbaatar, J. Xu, and J. Weston (2024) Self-rewarding language models. International Conference on Machine Learning (ICML). Note: arXiv:2401.10020 Cited by: §2.
  • [49] A. Zeng, M. Liu, R. Lu, B. Wang, X. Liu, Y. Dong, and J. Tang (2024) Agenttuning: enabling generalized agent abilities for llms. In Findings of the Association for Computational Linguistics: ACL 2024, pp. 3053–3077. Cited by: §2.
  • [50] X. Zeng, W. Liu, X. Huang, Z. Wang, L. Wang, L. Li, Y. Wang, L. Shang, X. Jiang, R. Tang, and Q. Liu (2025) ToolACE-R: model-aware iterative training and adaptive refinement for tool learning. arXiv preprint arXiv:2504.01400. Cited by: §2.
  • [51] B. Zheng, B. Gou, J. Kil, H. Sun, and Y. Su (2024) SeeAct: gpt-4v(ision) is a generalist web agent, if grounded. In International Conference on Machine Learning (ICML), Cited by: §2.

Each benchmark’s expert traces and the resulting Agentic-DPO training pool are summarized in Table 5.

Table 5: Expert trajectory sources and the resulting Agentic-DPO training pool.

BenchmarkSourceTraining pool (canonical pairs)
StableToolBench [15]ToolBench traces [28]3,7863{,}786
τ\tau-bench retail [45]released retail trajectories3,7863{,}786
Mind2Web [10]released static action sequences7,3627{,}362
BFCL-v3 (OOD eval) [26]ToolACE corpus [21] (training only)ToolACE pool

For each source, the expert action at a step is the ground-truth action shipped with the dataset: a tool call from the released trajectory (StableToolBench, τ\tau-bench, ToolACE) or a CLICK/TYPE/SELECT on a target element (Mind2Web). τ\tau-bench dialog turns without a tool call are mapped to a respond action, matching the released τ\tau-bench evaluator. BFCL-v3 is used only at evaluation time.

This appendix provides the full statements and proofs of the two local results in Section 3.4: (i) at initialization, the step-level contrastive gradient is collinear with the SFT gradient in logit space (Proposition 1); and (ii) a single anchored Agentic-DPO step produces a first-order decrease of the expert KL (Corollary 2). We then extend the statement to the hard-negative rule used by Agentic-DPO.

This analysis uses a latent-action softmax abstraction. It treats each rendered action as the surface form of a latent action and writes the DPO coefficient as a fixed positive scalar β\beta. In the implementation, this scalar is replaced by the length-scaled β_eff\beta\_{\mathrm{eff}} in Eq. (3.2); for a fixed action pair, this only changes the local gradient scale and not its direction.

Fix an expert decision state ss with finite action set A(s)\mathcal{A}(s). Let z_θ(s)∈R∣A(s)∣z\_{\theta}(s)\in\mathbb{R}^{|\mathcal{A}(s)|} denote the pre-softmax logits and π_θ(a∣s)=softmax(z_θ(s))_a\pi\_{\theta}(a\mid s)=\mathrm{softmax}(z\_{\theta}(s))\_{a}. We write e_ae\_{a} for the standard basis vector of action aa. Let π_ref\pi\_{\mathrm{ref}} be the frozen reference policy, and assume initialization satisfies

π_θ_0(⋅∣s)  =  π_ref(⋅∣s).\pi\_{\theta\_{0}}(\cdot\mid s)\;=\;\pi\_{\mathrm{ref}}(\cdot\mid s).

Let q_sq\_{s} denote the expert positive-action distribution at ss (a Dirac δ_a\*(s)\delta\_{a^{\*}(s)} in the deterministic trajectory setting). For each state we sample a positive a+∼q_sa^{+}\sim q\_{s} and a negative a−∼π_ref(⋅∣s)a^{-}\sim\pi\_{\mathrm{ref}}(\cdot\mid s) independently; we assume π_ref(a∣s)>0\pi\_{\mathrm{ref}}(a\mid s)>0 on supp(q_s)\mathrm{supp}(q\_{s}).

Define the reference-subtracted margin

Δ_θ(s,a+,a−)  ≜  [z_θ(a+ ⁣∣ ⁣s)−z_θ(a− ⁣∣ ⁣s)]−[z_ref(a+ ⁣∣ ⁣s)−z_ref(a− ⁣∣ ⁣s)],\Delta\_{\theta}(s,a^{+},a^{-})\;\triangleq\;\bigl[z\_{\theta}(a^{+}\!\mid\!s)-z\_{\theta}(a^{-}\!\mid\!s)\bigr]-\bigl[z\_{\mathrm{ref}}(a^{+}\!\mid\!s)-z\_{\mathrm{ref}}(a^{-}\!\mid\!s)\bigr],

the per-pair contrastive loss L_con(θ;s,a+,a−)=−log⁡σ(β Δ_θ(s,a+,a−))\mathcal{L}\_{\mathrm{con}}(\theta;s,a^{+},a^{-})=-\log\sigma(\beta\,\Delta\_{\theta}(s,a^{+},a^{-})), and the per-state expected losses

Lˉ_con(θ;s)  ≜  E_a+∼q_s, a−∼π_ref ⁣[L_con],Lˉ_SFT(θ;s)  ≜  E_a+∼q_s ⁣[−log⁡π_θ(a+ ⁣∣ ⁣s)].\bar{\mathcal{L}}\_{\mathrm{con}}(\theta;s)\;\triangleq\;\mathbb{E}\_{a^{+}\sim q\_{s},\,a^{-}\sim\pi\_{\mathrm{ref}}}\!\bigl[\mathcal{L}\_{\mathrm{con}}\bigr],\qquad\bar{\mathcal{L}}\_{\mathrm{SFT}}(\theta;s)\;\triangleq\;\mathbb{E}\_{a^{+}\sim q\_{s}}\!\bigl[-\log\pi\_{\theta}(a^{+}\!\mid\!s)\bigr].

The joint anchored Agentic-DPO objective is Lˉ_train(θ;s)≜Lˉ_con(θ;s)+λLˉ_SFT(θ;s)\bar{\mathcal{L}}\_{\mathrm{train}}(\theta;s)\triangleq\bar{\mathcal{L}}\_{\mathrm{con}}(\theta;s)+\lambda\bar{\mathcal{L}}\_{\mathrm{SFT}}(\theta;s) with λ>0\lambda>0, matching Eq. (3.3) in the main paper.

Restatement of Proposition 1 (logit-space alignment at initialization).

Section titled “Restatement of Proposition 1 (logit-space alignment at initialization).”

Under the setup above, at π_θ_0=π_ref\pi\_{\theta\_{0}}=\pi\_{\mathrm{ref}} we have

∇_z_θ_0(s)Lˉ_con(θ_0;s)  =  β2(π_ref(⋅ ⁣∣ ⁣s)−q_s),∇_z_θ_0(s)Lˉ_SFT(θ_0;s)  =  π_ref(⋅ ⁣∣ ⁣s)−q_s,\nabla\_{z\_{\theta\_{0}}(s)}\bar{\mathcal{L}}\_{\mathrm{con}}(\theta\_{0};s)\;=\;\tfrac{\beta}{2}\bigl(\pi\_{\mathrm{ref}}(\cdot\!\mid\!s)-q\_{s}\bigr),\qquad\nabla\_{z\_{\theta\_{0}}(s)}\bar{\mathcal{L}}\_{\mathrm{SFT}}(\theta\_{0};s)\;=\;\pi\_{\mathrm{ref}}(\cdot\!\mid\!s)-q\_{s},

and therefore

∇_z_θ_0(s)Lˉ_train(θ_0;s)  =  (λ+β2)(π_ref(⋅ ⁣∣ ⁣s)−q_s).\nabla\_{z\_{\theta\_{0}}(s)}\bar{\mathcal{L}}\_{\mathrm{train}}(\theta\_{0};s)\;=\;\Bigl(\lambda+\tfrac{\beta}{2}\Bigr)\bigl(\pi\_{\mathrm{ref}}(\cdot\!\mid\!s)-q\_{s}\bigr).
Corollary 2 (First-order decrease of expert KL).
Section titled “Corollary 2 (First-order decrease of expert KL).”

Let V_s(z)≜KL(q_s ∥ π_z(⋅ ⁣∣ ⁣s))V\_{s}(z)\triangleq\mathrm{KL}(q\_{s}\,\|\,\pi\_{z}(\cdot\!\mid\!s)) and z′=z_θ_0(s)−η ∇_z_θ_0(s)Lˉ_train(θ_0;s)z^{\prime}=z\_{\theta\_{0}}(s)-\eta\,\nabla\_{z\_{\theta\_{0}}(s)}\bar{\mathcal{L}}\_{\mathrm{train}}(\theta\_{0};s) for sufficiently small η>0\eta>0. Then

V_s(z′)  =  V_s(z_θ_0(s))−η(λ+β2)∥π_ref(⋅ ⁣∣ ⁣s)−q_s∥_22+O(η2).V\_{s}(z^{\prime})\;=\;V\_{s}(z\_{\theta\_{0}}(s))-\eta\bigl(\lambda+\tfrac{\beta}{2}\bigr)\bigl\|\pi\_{\mathrm{ref}}(\cdot\!\mid\!s)-q\_{s}\bigr\|\_{2}^{2}+O(\eta^{2}).

In particular, V_s(z′)<V_s(z_θ_0(s))V\_{s}(z^{\prime})<V\_{s}(z\_{\theta\_{0}}(s)) whenever π_ref(⋅ ⁣∣ ⁣s)≠q_s\pi\_{\mathrm{ref}}(\cdot\!\mid\!s)\neq q\_{s}.

The hard-negative variant of Corollary 2 (Proposition 3) is stated and proved in §B.3.

V_s(z)=KL(q_s ∥ π_z)V\_{s}(z)=\mathrm{KL}(q\_{s}\,\|\,\pi\_{z}) differs from the cross-entropy −∑_aq_s(a)log⁡π_z(a∣s)-\sum\_{a}q\_{s}(a)\log\pi\_{z}(a\mid s) by a zz-independent constant, so by the softmax identity ∇_zV_s(z)=π_z−q_s\nabla\_{z}V\_{s}(z)=\pi\_{z}-q\_{s}. At initialization this is π_ref−q_s\pi\_{\mathrm{ref}}-q\_{s}. By Proposition 1, ∇_z_0Lˉ_train=(λ+β/2)∇_zV_s(z_0)\nabla\_{z\_{0}}\bar{\mathcal{L}}\_{\mathrm{train}}=(\lambda+\beta/2)\nabla\_{z}V\_{s}(z\_{0}). A first-order Taylor expansion of V_sV\_{s} along z′=z_0−η∇_z_0Lˉ_trainz^{\prime}=z\_{0}-\eta\nabla\_{z\_{0}}\bar{\mathcal{L}}\_{\mathrm{train}} gives

V_s(z′)  =  V_s(z_0)−η(λ+β2)∥π_ref−q_s∥_22+O(η2),V\_{s}(z^{\prime})\;=\;V\_{s}(z\_{0})-\eta\bigl(\lambda+\tfrac{\beta}{2}\bigr)\|\pi\_{\mathrm{ref}}-q\_{s}\|\_{2}^{2}+O(\eta^{2}),

which is strictly below V_s(z_0)V\_{s}(z\_{0}) for sufficiently small η\eta whenever π_ref≠q_s\pi\_{\mathrm{ref}}\neq q\_{s}. ∎

We now extend the first-order KL-decrease statement to the hard-negative rule used in Agentic-DPO. The main text constructs negatives by sampling KK candidates from the current student, removing invalid candidates and candidates equivalent to the expert action, and selecting the remaining candidate with the highest student log probability. For the local analysis, we study this rule at initialization and in the deterministic expert setting, which matches the expert trajectories used in our experiments.

Let q_s=δ_a\*(s)q\_{s}=\delta\_{a^{\*}(s)} be a point mass on the expert action. Let q~_s−\tilde{q}\_{s}^{-} denote the distribution of the selected hard negative after filtering, conditioned on the event that at least one valid non-expert candidate remains. By construction, q~_s−(a\*(s))=0\tilde{q}\_{s}^{-}(a^{\*}(s))=0.

Proposition 3 (Hard-negative gradient at initialization).
Section titled “Proposition 3 (Hard-negative gradient at initialization).”

Assume q_s=δ_a\*(s)q\_{s}=\delta\_{a^{\*}(s)}, q~_s−(a\*(s))=0\tilde{q}\_{s}^{-}(a^{\*}(s))=0, and π_θ_0=π_ref\pi\_{\theta\_{0}}=\pi\_{\mathrm{ref}}. Then

∇_z_θ_0(s)Lˉ_con(θ_0;s)=β2(q~_s−−δ_a\*(s)).\nabla\_{z\_{\theta\_{0}}(s)}\bar{\mathcal{L}}\_{\mathrm{con}}(\theta\_{0};s)=\tfrac{\beta}{2}\bigl(\tilde{q}\_{s}^{-}-\delta\_{a^{\*}(s)}\bigr).

Moreover,

⟨∇_zV_s(z_θ_0(s)),∇_z_θ_0(s)Lˉ_con(θ_0;s)⟩=β2(1−π_ref(a\*(s)∣s)+E_a−∼q~_s−[π_ref(a−∣s)])≥0.\left\langle\nabla\_{z}V\_{s}(z\_{\theta\_{0}}(s)),\nabla\_{z\_{\theta\_{0}}(s)}\bar{\mathcal{L}}\_{\mathrm{con}}(\theta\_{0};s)\right\rangle=\tfrac{\beta}{2}\left(1-\pi\_{\mathrm{ref}}(a^{\*}(s)\mid s)+\mathbb{E}\_{a^{-}\sim\tilde{q}\_{s}^{-}}[\pi\_{\mathrm{ref}}(a^{-}\mid s)]\right)\geq 0.

Therefore, for the anchored objective Lˉ_train=Lˉ_con+λLˉ_SFT\bar{\mathcal{L}}\_{\mathrm{train}}=\bar{\mathcal{L}}\_{\mathrm{con}}+\lambda\bar{\mathcal{L}}\_{\mathrm{SFT}} with λ>0\lambda>0, a sufficiently small gradient step produces a first-order decrease of V_s(z)=KL(δ_a\*(s)∥π_z(⋅∣s))V\_{s}(z)=\mathrm{KL}(\delta\_{a^{\*}(s)}\|\pi\_{z}(\cdot\mid s)) whenever π_ref(⋅∣s)≠δ_a\*(s)\pi\_{\mathrm{ref}}(\cdot\mid s)\neq\delta\_{a^{\*}(s)}.

At initialization π_θ_0=π_ref\pi\_{\theta\_{0}}=\pi\_{\mathrm{ref}}, the reference-subtracted margin is zero for every selected pair. Thus the same pointwise identity used in the proof of Proposition 1 applies:

∇_z_θ_0(s)L_con=−β2(e_a\*−e_a−)=β2(e_a−−e_a\*).\nabla\_{z\_{\theta\_{0}}(s)}\mathcal{L}\_{\mathrm{con}}=-\tfrac{\beta}{2}(e\_{a^{\*}}-e\_{a^{-}})=\tfrac{\beta}{2}(e\_{a^{-}}-e\_{a^{\*}}).

Taking expectation over a−∼q~_s−a^{-}\sim\tilde{q}\_{s}^{-} gives

∇_z_θ_0(s)Lˉ_con(θ_0;s)=β2(q~_s−−δ_a\*(s)).\nabla\_{z\_{\theta\_{0}}(s)}\bar{\mathcal{L}}\_{\mathrm{con}}(\theta\_{0};s)=\tfrac{\beta}{2}\bigl(\tilde{q}\_{s}^{-}-\delta\_{a^{\*}(s)}\bigr).

For V_s(z)=KL(δ_a\*(s)∥π_z(⋅∣s))V\_{s}(z)=\mathrm{KL}(\delta\_{a^{\*}(s)}\|\pi\_{z}(\cdot\mid s)), we have

∇_zV_s(z_θ_0(s))=π_ref(⋅∣s)−δ_a\*(s).\nabla\_{z}V\_{s}(z\_{\theta\_{0}}(s))=\pi\_{\mathrm{ref}}(\cdot\mid s)-\delta\_{a^{\*}(s)}.

Therefore

⟨π_ref−δ_a\*,β2(q~_s−−δ_a\*)⟩\displaystyle\left\langle\pi\_{\mathrm{ref}}-\delta\_{a^{\*}},\tfrac{\beta}{2}(\tilde{q}\_{s}^{-}-\delta\_{a^{\*}})\right\rangle=β2(⟨π_ref,q~_s−⟩−π_ref(a\*∣s)−q~_s−(a\*)+1)\displaystyle=\tfrac{\beta}{2}\left(\langle\pi\_{\mathrm{ref}},\tilde{q}\_{s}^{-}\rangle-\pi\_{\mathrm{ref}}(a^{\*}\mid s)-\tilde{q}\_{s}^{-}(a^{\*})+1\right)
------------
=β2(1−π_ref(a\*∣s)+E_a−∼q~_s−[π_ref(a−∣s)])≥0,\displaystyle=\tfrac{\beta}{2}\left(1-\pi\_{\mathrm{ref}}(a^{\*}\mid s)+\mathbb{E}\_{a^{-}\sim\tilde{q}\_{s}^{-}}[\pi\_{\mathrm{ref}}(a^{-}\mid s)]\right)\geq 0,

where the equality uses q~_s−(a\*)=0\tilde{q}\_{s}^{-}(a^{\*})=0. The SFT part adds

λ∥π_ref(⋅∣s)−δ_a\*(s)∥_22≥0\lambda\left\|\pi\_{\mathrm{ref}}(\cdot\mid s)-\delta\_{a^{\*}(s)}\right\|\_{2}^{2}\geq 0

to the inner product with the KL gradient, and it is strictly positive whenever π_ref(⋅∣s)≠δ_a\*(s)\pi\_{\mathrm{ref}}(\cdot\mid s)\neq\delta\_{a^{\*}(s)}. A first-order Taylor expansion of V_sV\_{s} along the negative anchored-gradient direction then gives the claimed decrease. ∎

This proposition is intentionally stated for deterministic expert actions. For stochastic expert distributions, the same conclusion requires additional conditions on how the hard negative distribution relates to the support of q_sq\_{s}, which we do not need for the trajectory setting studied in this paper.

All main experiments use a single fixed β=0.008\beta=0.008, combined with the length-scaled coefficient β_eff(a+,a−)=β/max⁡(∣a+∣,∣a−∣)α\beta\_{\mathrm{eff}}(a^{+},a^{-})=\beta/\max(|a^{+}|,|a^{-}|)^{\alpha} at α=0.5\alpha=0.5 (Eq. 3.2). The same value is used across Qwen3.5-2B/4B/9B, Gemma3-4B, and the three benchmarks. From Proposition 1, the per-sample contrastive gradient at initialization has norm ∥∇_zL_con∥=β/2\|\nabla\_{z}\mathcal{L}\_{\mathrm{con}}\|=\beta/\sqrt{2} (when a+ ⁣≠ ⁣a−a^{+}\!\neq\!a^{-}); with λ=0.5\lambda=0.5, this contrastive update is an order of magnitude below the SFT-anchor gradient, consistent with the SFT anchor playing a stabilizing rather than competing role.

Appendix C Construction of the StableToolBench-Perturbed Evaluation Set

Section titled “Appendix C Construction of the StableToolBench-Perturbed Evaluation Set”

The “Pert.” columns in Table 1 and Table 2 are evaluated on a perturbed variant of StableToolBench. This appendix documents its construction and reports per-operator accuracy.

We define nine perturbation operators that act on a StableToolBench instance (system prompt + tool list + user query) without changing the latent decision needed to answer the query. Each operator is parameterized by a difficulty level L ⁣∈ ⁣{1,2,3}L\!\in\!\{1,2,3\}; a higher level applies a more aggressive transformation. Concretely, the nine operators are:

    rename_tool – rename each tool’s name field. L1: case changes only; L2: synonym substitution; L3: aggressive rewrite.

    rename_fields – rename argument fields. L1: case changes; L2: synonyms; L3: synonyms plus decoy fields the model must ignore.

    reorder_args – shuffle argument order in the tool spec. L1: shuffle optional fields; L2: shuffle all fields and reverse tool list order; L3: merge required/optional and shuffle.

    format_switch – reword the system prompt and tool spec. L1: minor wording; L2: style shifts and restructure; L3: convert tool spec to OpenAI function-calling JSON, YAML, or prose.

    verbosity – add filler context. L1: one extra sentence; L2: roughly double-length redundant context; L3: roughly five-times longer with misleading capability claims.

    info_position – move the relevant information within the prompt. L1: middle of the prompt; L2: end of the prompt with a long preamble; L3: bury the relevant information among unrelated content.

    distractor – add unrelated tools. L1: 3 distractors; L2: 5 distractors from same/other categories; L3: 8 distractors with name similarity to the correct tool.

    desc_degrade – shorten or remove descriptions. L1: drop optional-argument descriptions; L2: drop all argument descriptions; L3: drop tool and argument descriptions.

    alias_rename – rename to opaque aliases. L1: light synonyms; L2: domain aliases; L3: opaque IDs (e.g., tool_17, forcing pure description-based selection).

The set is generated by the script in our code release with a single fixed seed seed ⁣= ⁣42\texttt{seed}\!=\!42, and stored as one JSON file per (operator, level, original subset) combination. The full Cartesian product yields 9 ⁣× ⁣3 ⁣× ⁣6 ⁣= ⁣1629\!\times\!3\!\times\!6\!=\!162 files (the six original StableToolBench evaluation subsets G1_category / G1_instruction / G1_tool / G2_category / G2_instruction / G3_instruction). The aggregate “Pert.” number reported in the main text is the unweighted mean over the level-2 subset of these files, which we found gives a representative middle-of-distribution perturbation difficulty.

StableToolBench Agentic-DPO is trained with the four-variant PPA set described in Appendix D (base, json, rename, combined). Two evaluation operators overlap in spirit with these training views (rename_tool matches rename; format_switch matches json/combined); the other seven (rename_fields, reorder_args, verbosity, info_position, distractor, desc_degrade, alias_rename) target classes outside training-time PPA, and the held-out comparison in Section 4.4 aggregates exactly these seven.

Table 6 reports per-operator accuracy at level L=2L=2 for Qwen3.5-2B (mean over three seeds), separated into the two PPA-overlapping operators (In-class) and the seven held-out operators.

Table 6: Per-operator perturbation accuracy at L=2L=2 on StableToolBench-Perturbed for Qwen3.5-2B (mean over three seeds).

In-classHeld-out
Methodrename_toolformat_switchrename_fieldsreorder_argsverbosityinfo_positiondistractordesc_degradealias_rename
SFT54.152.353.655.753.251.849.252.749.4
PPA+SFT62.560.961.762.461.560.759.062.161.0
Agentic-DPO90.488.788.287.987.186.484.587.686.6

Appendix D Policy-Preserving Augmentation: Worked Examples

Section titled “Appendix D Policy-Preserving Augmentation: Worked Examples”

This appendix gives concrete worked examples of each Policy-Preserving Augmentation variant on τ\tau-bench retail and Mind2Web, together with the recovery-context PPA used by both.

For each canonical pair (s_t,a_t+)(s\_{t},a\_{t}^{+}), we draw a view ϕ ⁣∼ ⁣Unif(Φ)\phi\!\sim\!\mathrm{Unif}(\Phi) from a four-element set Φ={base,json,rename,combined}\Phi=\{\texttt{base},\texttt{json},\texttt{rename},\texttt{combined}\}. The rendered state s_tϕs\_{t}^{\phi} uses the corresponding tool spec and chat format; the rendered expert action a_t+,ϕa\_{t}^{+,\phi} is the same latent decision under the chosen schema. We illustrate by rendering one canonical τ\tau-bench retail pair and one canonical Mind2Web pair under all four views.

Canonical pair: expert tool find_user_id_by_name_zip with arguments {“first_name”:“Yusuf”,“last_name”:“Rossi”,“zip”:“19122”}.

  • •

    base (ReAct, canonical tool names):

    Action:
    {"name": "find_user_id_by_name_zip",
    "arguments": {"first_name": "Yusuf", "last_name": "Rossi", "zip": "19122"}}
  • •

    json (Hermes-style <tool_call> tags, canonical tool names):

    <tool_call>
    {"name": "find_user_id_by_name_zip",
    "arguments": {"first_name": "Yusuf", "last_name": "Rossi", "zip": "19122"}}
    </tool_call>
  • •

    rename (ReAct, renamed tool from TOOL_RENAME_MAP):

    Action:
    {"name": "lookup_customer_by_name_zip",
    "arguments": {"first_name": "Yusuf", "last_name": "Rossi", "zip": "19122"}}
  • •

    combined (Hermes <tool_call> tags + renamed tool):

    <tool_call>
    {"name": "lookup_customer_by_name_zip",
    "arguments": {"first_name": "Yusuf", "last_name": "Rossi", "zip": "19122"}}
    </tool_call>

The state messages and tool spec headers used by the system prompt are rewritten consistently with each view, so the rename and combined variants present a tool spec with the renamed tool names; the model never sees the canonical name during a rename-rendered step.

Canonical pair: expert operation SELECT with arguments {“choice”:“C”,“value”:“Pickup”}.

  • •

    base (ReAct, canonical operation names):

    Action:
    {"name": "SELECT", "arguments": {"choice": "C", "value": "Pickup"}}
  • •

    json (Hermes-style <tool_call> tags, canonical operation names):

    <tool_call>
    {"name": "SELECT", "arguments": {"choice": "C", "value": "Pickup"}}
    </tool_call>
  • •

    rename (ReAct, renamed operation):

    Action:
    {"name": "pick_option", "arguments": {"choice": "C", "value": "Pickup"}}
  • •

    combined (Hermes <tool_call> tags + renamed operation):

    <tool_call>
    {"name": "pick_option", "arguments": {"choice": "C", "value": "Pickup"}}
    </tool_call>

The renaming used by the rename and combined variants is a single fixed dictionary per benchmark, applied consistently across the tool spec and the expert action so that the latent decision is preserved.

  • •

    τ\tau-bench retail: TOOL_RENAME_MAP renames the 16 retail tools (the dialog-only respond action is never renamed). A 5-of-16 slice:

    find_user_id_by_email -> lookup_customer_by_email
    find_user_id_by_name_zip -> lookup_customer_by_name_zip
    get_user_details -> fetch_user_profile
    get_order_details -> fetch_order_info
    get_product_details -> fetch_product_info
  • •

    Mind2Web: the operation set is small (3 entries), and the rename is total:

    CLICK -> tap
    TYPE -> input_text
    SELECT -> pick_option

The recovery-context variant inserts an erroneous earlier action and its correction into the trajectory’s state_messages before a randomly chosen expert step. The corrected step then becomes the positive at training time, simulating the situation in which the agent had previously taken a wrong action and must recover. The injected wrong action is always a legal tool from the trajectory’s own toolset (never a hallucinated name), which avoids breaking the single-turn exact-match evaluation.

Suppose the canonical trajectory contains the slice:

[2] assistant: Action: find_user
Action Input: {"name": "Alice"}
[3] user: Observation: {"user_id": "123"}
[4] assistant: Action: get_order
Action Input: {"user_id": "123"}

After applying recovery-context PPA at index 4, the trajectory becomes:

[2] assistant: Action: find_user
Action Input: {"name": "Alice"}
[3] user: Observation: {"user_id": "123"}
[4] assistant: Thought: Let me try using get_product... [INJECTED]
Action: get_product
Action Input: {"user_id": "123"}
[5] user: Observation: {"error": "Tool returned no results"} [INJECTED]
[6] assistant: Thought: The previous tool call failed. Let me try
a different approach. [RECOVERY]
Action: get_order
Action Input: {"user_id": "123"}

Indices 4 and 5 are the injected mistake and its observation; index 6 is the original expert action with a prepended recovery thought, now serving as the expert positive at this step. The latent decision (call get_order with the user id from the previous step) is preserved.

The decision the model is asked to make at the rendered step (call get_order on user_id: 123) is identical in the canonical and recovery-context views. The difference is only in the conversation history that precedes this state. As long as the injected wrong action draws from the trajectory’s legal toolset, the recovery-context view does not change the set of valid expert actions at the current state; it only changes the surface context the model conditions on.