Agentic-DPO: From Imitation to Agentic Policy Optimization on Expert Trajectories
Agentic-DPO leverages expert trajectories with preference contrast for offline policy optimization, doubling accuracy from 21.7% to 41.4%.
Key Findings
Methodology
Agentic-DPO employs a preference contrast framework, sampling expert states and actions, generating negative samples from current policy, and optimizing via a DPO-style loss. Key components include:• Extracting state-action pairs from expert trajectories,• Sampling one-step model actions as negatives,• Applying multi-view schema rendering (PPA) for stability,• Using SFT anchors to maintain format consistency,• Leveraging preference loss to favor expert actions,• Operating fully offline without environment interaction.
Key Results
- On StableToolBench, a 9B model's accuracy rose from 21.7% (SFT) to 41.4%, surpassing online GRPO (40%) with only step-level sampling.
- In τ-bench retail, Qwen3.5-9B achieved 41.4% success, outperforming baseline SFT and matching online RL methods, with significantly lower cost.
- On Mind2Web, average step success increased to 64.4%, demonstrating strong cross-task and cross-domain generalization.
Significance
This approach addresses core limitations of behavior cloning by utilizing expert trajectories for low-cost, high-quality policy refinement. It circumvents costly environment interactions and reward models, offering a scalable solution for offline RL. Its success paves the way for deploying more robust, autonomous agents in real-world applications, from customer service to web automation, with reduced training costs and enhanced adaptability.
Technical Contribution
The paper introduces a novel state-conditioned preference contrast mechanism, combined with schema multi-view augmentation (PPA), to stabilize offline policy learning. It integrates SFT anchors to prevent format drift, enabling effective offline optimization without environment rollouts. This framework advances the state-of-the-art by achieving significant performance gains over existing methods like GRPO, DPO variants, and trajectory-level preference models, with theoretical guarantees on stability.
Novelty
This is the first work to convert expert trajectories into explicit state-level preferences via contrastive learning, combined with schema-based multi-view rendering. Unlike prior methods relying on environment interactions or full trajectory sampling, it achieves comparable or superior results purely offline, marking a fundamental innovation in low-cost policy optimization.
Limitations
- The method depends heavily on the quality and representativeness of expert trajectories; biased or sparse data can limit effectiveness.
- The schema rendering and PPA mechanisms may require task-specific tuning, affecting generalization to unseen environments.
- Training stability and hyperparameter sensitivity, especially in multi-schema settings, remain challenges for broader deployment.
Future Work
Future research will explore integrating multi-modal data, expanding multi-task capabilities, and combining online fine-tuning with preference signals. Enhancing schema generalization and reducing sensitivity to trajectory quality are key directions to make the approach more robust and widely applicable.
AI Executive Summary
The development of autonomous decision-making agents based on large language models (LLMs) has revolutionized AI applications across industries. Traditionally, these agents are trained via supervised fine-tuning (SFT), which involves mimicking expert trajectories. While effective in low-cost scenarios, this approach inherently limits the agent's ability to handle mistakes or adapt to complex environments, as it only learns to imitate sequences without understanding the decision context. Reinforcement learning with human feedback (RLHF) and preference-based methods have attempted to address this, but they often require costly environment interactions and reward models, restricting scalability.
In this context, the paper introduces Agentic-DPO, an innovative offline policy optimization framework that leverages expert trajectories by transforming them into state-conditioned preferences. Unlike behavior cloning, which treats each token as an independent imitation target, Agentic-DPO considers each expert action as a local decision point. It samples a one-step action from the current model, treats plausible wrong actions as negatives, and optimizes a preference loss to favor expert actions. To stabilize training, the authors incorporate a schema-based multi-view rendering (PPA), which ensures the same latent decision is represented under multiple surface forms, reducing schema-induced bias.
Experimental results across three benchmarks—StableToolBench, τ-bench retail, and Mind2Web—demonstrate that Agentic-DPO consistently outperforms baseline methods, including SFT, trajectory-level preference models, and online RL approaches. For instance, on a 9B model, accuracy on StableToolBench increased from 21.7% (SFT) to 41.4%, surpassing the online GRPO method with fewer resources. Similarly, on τ-bench retail, success rates doubled, confirming the method's efficiency and robustness.
This work signifies a major step toward scalable, low-cost offline reinforcement learning for complex decision-making tasks. By effectively utilizing expert demonstrations at the action level, it opens new avenues for deploying autonomous agents in real-world scenarios, reducing reliance on expensive environment interactions. The approach's flexibility and strong empirical performance suggest broad applicability, from web automation to interactive AI systems, with promising directions for future research in multi-task learning and schema generalization.
Deep Analysis
Background
Recent advances in large language models (LLMs) have enabled their deployment as autonomous agents capable of tool use, dialogue, and web interactions. Early training relied on behavior cloning (behavior imitation) using expert trajectories, which, while simple, often failed to produce robust decision-making in complex environments. To improve, methods like reinforcement learning with human feedback (RLHF) and preference learning emerged, but these require environment interaction and reward models, increasing costs. Recent works have explored trajectory structuring, local error correction, and self-play, yet these approaches still depend on costly online interactions or human annotations. The challenge remains: how to leverage expert data efficiently without environment calls, especially for low-resource settings.
Core Problem
The core issue is that behavior cloning only captures sequence imitation, lacking the ability to correct mistakes or adapt to new situations. Existing preference and reinforcement learning methods improve decision quality but are resource-intensive, requiring environment rollouts, reward models, and full trajectory exploration. This limits scalability, especially for large models and complex tasks. The key question is how to utilize expert trajectories offline, transforming them into actionable signals that guide policy improvement without environment interaction. Addressing this gap is crucial for deploying scalable, cost-effective AI agents capable of robust decision-making in real-world scenarios.
Innovation
The paper introduces several innovations: 1) Converting expert trajectories into state-conditioned preferences using a contrastive loss, 2) Sampling negative actions from the current model to provide local decision-level feedback, 3) Employing schema-based multi-view rendering (PPA) to stabilize preference signals across surface variations, 4) Incorporating SFT anchors to maintain format stability, 5) Achieving offline policy optimization without environment calls or reward models. These innovations collectively enable low-cost, high-performance agent training, addressing the limitations of prior methods that rely heavily on environment interactions or trajectory-level signals.
Methodology
- �� Extract expert trajectories comprising states and latent actions.
- �� At each expert state, sample a schema view and render the current state.
- �� Generate K candidate actions from the current model, parse them into latent actions, and select the most probable negative sample different from the expert.
- �� Construct preference triples (state, expert action, negative action) under multiple schemas.
- �� Use a DPO-style loss to optimize the model, encouraging preference for expert actions over negatives.
- �� Incorporate SFT anchors to stabilize format and schema consistency.
- �� Apply PPA to render multiple schema views, reducing schema bias.
- �� Repeat over multiple rounds, updating the policy offline, without environment interaction.
Experiments
The authors evaluate on three benchmarks: StableToolBench for tool use, τ-bench retail for long-horizon interactions, and Mind2Web for web GUI tasks. They compare against SFT, PPA+SFT, DPO variants, and online RL (GRPO). Metrics include accuracy, success rate, and step success. Models include Qwen3.5-2B/4B/9B and Gemma3-4B. Hyperparameters such as negative samples (K=4), preference coefficient (β), and refresh rounds (R=5) are tuned. Ablation studies assess the impact of each component, confirming the importance of SFT anchors and PPA. Results demonstrate consistent performance gains across scales and tasks, with statistical significance.
Results
Agentic-DPO achieves a 21.7% to 41.4% accuracy increase on StableToolBench for 9B models, surpassing online methods with fewer resources. On τ-bench retail, success rates double, reaching 41.4%. In Mind2Web, step success improves to 64.4%. Ablation studies show removing SFT anchors or PPA causes performance drops, validating their stabilizing role. The method maintains robustness under data scarcity and perturbations, indicating strong generalization. The results collectively demonstrate that expert trajectories, when processed via preference contrast and schema augmentation, can effectively guide offline policy learning.
Applications
This approach is immediately applicable to scenarios requiring low-cost, offline policy training, such as customer service bots, web automation, and interactive assistants. It only needs expert demonstrations, avoiding environment calls or reward models, thus reducing deployment costs. Long-term, integrating multi-modal data and multi-task learning could enable autonomous agents capable of complex reasoning and adaptation across domains, transforming industries like healthcare, finance, and manufacturing where data efficiency and robustness are critical.
Limitations & Outlook
Dependence on high-quality expert data limits applicability in domains with sparse or biased demonstrations. Schema rendering and PPA may require task-specific tuning, affecting generalization. The method's stability and hyperparameter sensitivity need further investigation. Additionally, while avoiding environment interaction reduces costs, training still demands significant computational resources, especially for larger models. Future work should focus on broadening task scope, improving schema generalization, and integrating online adaptation to address these limitations.
Plain Language Accessible to non-experts
想象你在学校学习做菜。老师教你每一步怎么操作,你跟着模仿,但遇到不同的食材或新菜谱时就不知道怎么调整。现在,假如你有个聪明的厨师朋友,他不仅记住了老师的做法,还能观察你每次做菜的细节,告诉你哪些步骤更好,哪些可以改进。每次你尝试后,他都会帮你分析,告诉你哪些操作更合适,哪些需要改正。这样,你就能在不同的厨房和不同的菜谱中都能做出好菜。这就像本文的Agentic-DPO,不只是模仿专家的动作,还能自己判断哪些操作更合理,避免盲目跟随,变得更聪明、更灵活。
ELI14 Explained like you're 14
想象你在学校学做手工。老师教你怎么折纸,你跟着做,学会了折出漂亮的作品。但如果老师只告诉你每一步怎么做,你可能在遇到不同的纸张或新设计时不知道怎么调整。现在,假如你有个聪明的朋友,他不仅教你怎么折,还会观察你每次折的样子,告诉你哪些折法更好,哪些不行。每次你试错,他都帮你分析,告诉你哪个步骤可以改进。这样,你就能用不同的纸张和设计折出漂亮的折纸。这就像Agentic-DPO,它不仅模仿专家的动作,还能自己判断哪些操作更合适,避免盲目跟随,从而变得更聪明、更灵活。
Glossary
Preference Contrast (偏好对比)
一种利用专家动作与模型采样动作的优劣进行比较,指导模型偏向专家行为的技术。通过偏好对比损失实现。
本文中用偏好对比引导模型偏向专家动作,避免全轨迹依赖。
Schema (模式)
动作或状态的多样化渲染模板,用于增强偏好学习的鲁棒性。技术上通过多视角渲染实现。
PPA机制利用Schema多视角增强偏好学习的稳定性。
Agentic Policy (主动策略)
基于偏好对比的离线策略优化方法,强调自主决策能力的提升。区别于传统模仿学习。
本文提出的核心方法,避免环境交互,实现低成本优化。
Offline Reinforcement Learning (离线强化学习)
在没有环境交互的情况下,利用历史数据优化策略的技术。通过偏好、对比等机制实现。
Agentic-DPO属于离线RL范畴,强调无需环境交互。
Open Questions Unanswered questions from this research
- 1 如何在多任务、多模态环境中提升偏好对比的效果,尤其在偏差轨迹和多模态融合方面仍需探索。
- 2 模型对Schema多视角渲染的敏感性及其在不同任务中的泛化能力仍待验证。
- 3 结合人类反馈和主动学习机制,提升偏好学习的效率和鲁棒性仍是未来方向。
Applications
Immediate Applications
智能客服机器人
利用专家对话轨迹,通过Agentic-DPO训练出能自主应答、处理复杂请求的客服系统,无需环境交互,降低成本。
自动化网页交互
在网页操作任务中,利用专家轨迹优化模型,实现高效、鲁棒的自动化操作,适应不同网页结构和内容变化。
Long-term Vision
自主决策系统
结合偏好学习和Schema多视角,打造能自主学习、适应多任务、多环境的智能体,推动AI在工业、医疗等领域的深度应用。
Abstract
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% (SFT) to 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.