Emerging from Ground: Addressing Intent Deviation in Tool-Using Agents via Deriving Real Calls into Virtual Trajectories
Qian Xiong, Yuekai Huang, Bo Yang, Yujia Zheng, Tianhao Li, Ziyou Jiang, Zhiyuan Chang, Zhaoyang Li, Huanxiang Feng, Mingyang Li
TL;DR
This work tackles the subtle problem of intent deviation in tool-using LLM agents by introducing RISE, a Real-to-Virtual data synthesis framework anchored to verified real tool primitives. RISE generates realistic virtual trajectories and diverse negative samples through ICP mutations, then applies a two-stage training process (SFT followed by DPO) to align model behavior with user intent. Across data-quality, intent-alignment, and generalization experiments, RISE yields substantial improvements (e.g., average Acc_task +35.28% and Acc_intent +23.27%) and strong performance on unseen domains, outperforming state-of-the-art baselines. The approach provides a principled, scalable path to robust tool use in LLMs and includes open-source resources to facilitate future research and benchmarking.
Abstract
LLMs have advanced tool-using agents for real-world applications, yet they often lead to unexpected behaviors or results. Beyond obvious failures, the subtle issue of "intent deviation" severely hinders reliable evaluation and performance improvement. Existing post-training methods generally leverage either real system samples or virtual data simulated by LLMs. However, the former is costly due to reliance on hand-crafted user requests, while the latter suffers from distribution shift from the real tools in the wild. Additionally, both methods lack negative samples tailored to intent deviation scenarios, hindering effective guidance on preference learning. We introduce RISE, a "Real-to-Virtual" method designed to mitigate intent deviation. Anchoring on verified tool primitives, RISE synthesizes virtual trajectories and generates diverse negative samples through mutation on critical parameters. With synthetic data, RISE fine-tunes backbone LLMs via the two-stage training for intent alignment. Evaluation results demonstrate that data synthesized by RISE achieve promising results in eight metrics covering user requires, execution trajectories and agent responses. Integrating with training, RISE achieves an average 35.28% improvement in Acctask (task completion) and 23.27% in Accintent (intent alignment), outperforming SOTA baselines by 1.20--42.09% and 1.17--54.93% respectively.
