Web agents struggle to adapt to new websites due to the scarcity of environment specific tasks and demonstrations. Recent works have explored synthetic data generation to address this challenge, however, they suffer from data quality issues where synthesized tasks contain hallucinations that cannot be executed, and collected trajectories are noisy with redundant or misaligned actions. In this paper, we propose SynthAgent, a fully synthetic supervision framework that aims at improving synthetic data quality via dual refinement of both tasks and trajectories. Our approach begins by synthesizing diverse tasks through categorized exploration of web elements, ensuring efficient coverage of the target environment. During trajectory collection, tasks are refined only when conflicts with observations are detected, which mitigates hallucinations while preserving task consistency. After collection, we conduct trajectory refinement with global context to mitigate potential noise or misalignments. Finally, we fine-tune open-source web agents on the refined synthetic data to adapt them to the target environment. Experimental results demonstrate that SynthAgent outperforms existing synthetic data methods, validating the importance of high-quality synthetic supervision. The code is publicly available at https://github.com/aiming-lab/SynthAgent.
翻译:网页智能体因缺乏针对特定环境设计的任务与演示样本而难以适应新网站。近期研究尝试通过合成数据生成应对这一挑战,但存在数据质量问题:合成任务常包含无法执行的幻觉内容,而采集的行为轨迹则存在冗余或动作错位等噪声。本文提出SynthAgent——一种通过任务与轨迹双重优化提升合成数据质量的完全合成监督框架。该方法首先通过对网页元素进行分类型探索来合成多样化任务,确保对目标环境的高效覆盖。在轨迹采集阶段,仅当检测到任务与观察结果冲突时才进行任务优化,从而在保持任务一致性的同时减少幻觉。采集完成后,我们利用全局上下文进行轨迹优化以消除潜在噪声与错位。最后,我们在优化后的合成数据上对开源网页智能体进行微调,使其适应目标环境。实验结果表明,SynthAgent优于现有合成数据方法,验证了高质量合成监督的重要性。代码已公开于 https://github.com/aiming-lab/SynthAgent。