Android GUI代理能否抵御运行时异常?AnTrap:在动态对抗环境中评估代理

·

研究论文 · 2026/08/27

GUI代理在Android设备上部署时常遇到动态异常,如意外弹窗或操作误用,但现有基准缺乏对运行时异常鲁棒性的系统评估。我们提出AnTrap,一个全面基准,通过向代理执行轨迹注入动态扰动来评估鲁棒性。我们提出一个分类法,将真实世界异常分为四层(状态、思考、动作和回合)及十个细粒度子类别,并开发了一个构建流程,在保持任务可解性的同时引入现实对抗条件。评估16个领先GUI模型,揭示了对动态异常的普遍脆弱性,即使最强模型也遭受显著性能下降。此外,我们在原始和对抗环境中进行GRPO训练以验证基准,区分环境可学习异常与推理瓶颈异常。我们的发现表明,虽然状态和动作层的单步陷阱可通过对抗强化学习解决,但深层上下文陷阱(如状态死锁)暴露了内在局限性,无法仅通过在含陷阱的环境中训练来解决。

该论文填补了Android GUI代理鲁棒性评估的空白,提出了系统化的基准和分类法,并通过实验揭示了现有模型的脆弱性及训练方法的局限性,对构建更可靠的GUI代理具有重要指导意义。

GUI agents often encounter dynamic anomalies when deployed on Android devices, from unexpected pop-ups to action misuse, yet existing benchmarks lack systematic evaluation of agent robustness against runtime anomalies. We introduce AnTrap, a comprehensive benchmark that injects dynamic perturbations into agent execution trajectories. We propose a taxonomy organizing real-world anomalies into four layers (State, Thinking, Action and Round) with ten fine-grained subcategories, and develop a construction pipeline that preserves task solvability while introducing realistic adversarial conditions. Evaluating 16 leading GUI models, we reveal universal vulnerability to dynamic anomalies, with even the strongest models suffering significant performance degradation. Furthermore, we conduct GRPO training in both original and adversarial environments to validate our benchmark, separating environment-learnable anomalies from reasoning-bottlenecked ones. Our findings show that while single-step traps at state and action layers are largely addressable through adversarial reinforcement learning, deep contextual traps, like state deadlock, expose intrinsic limitations that cannot be resolved by training in environments with traps alone.

阅读原文

参与讨论