History-Aware Reasoning for GUI Agents
Ziwei Wang, Leyang Yang, Xiaoxuan Tang, Sheng Zhou, Dajun Chen, Wei Jiang, Yong Li
TL;DR
This work tackles the challenge of history-aware reasoning for GUI agents by introducing the History-Aware Reasoning (HAR) framework, which injects GUI-domain knowledge and error-guided corrections to cultivate stable short-term memory for long-horizon tasks. HAR combines a reflective learning setup, tailored correction guidelines, and a hybrid RL reward (including a Memory-Aware component) across two training rounds, culminating in HAR-GUI-3B, a native GUI model. Across extensive benchmarks for GUI episodic reasoning, grounding, and understanding, HAR-GUI-3B consistently outperforms state-of-the-art methods with similar or smaller parameter budgets and shows strong out-of-distribution generalization. The approach advances GUI automation by enabling explicit historical-context perception and robust error-driven improvement, with practical impact for accessibility, automated testing, and complex device interactions.
Abstract
Advances in Multimodal Large Language Models have significantly enhanced Graphical User Interface (GUI) automation. Equipping GUI agents with reliable episodic reasoning capabilities is essential for bridging the gap between users' concise task descriptions and the complexities of real-world execution. Current methods integrate Reinforcement Learning (RL) with System-2 Chain-of-Thought, yielding notable gains in reasoning enhancement. For long-horizon GUI tasks, historical interactions connect each screen to the goal-oriented episode chain, and effectively leveraging these clues is crucial for the current decision. However, existing native GUI agents exhibit weak short-term memory in their explicit reasoning, interpreting the chained interactions as discrete screen understanding, i.e., unawareness of the historical interactions within the episode. This history-agnostic reasoning challenges their performance in GUI automation. To alleviate this weakness, we propose a History-Aware Reasoning (HAR) framework, which encourages an agent to reflect on its own errors and acquire episodic reasoning knowledge from them via tailored strategies that enhance short-term memory in long-horizon interaction. The framework mainly comprises constructing a reflective learning scenario, synthesizing tailored correction guidelines, and designing a hybrid RL reward function. Using the HAR framework, we develop a native end-to-end model, HAR-GUI-3B, which alters the inherent reasoning mode from history-agnostic to history-aware, equipping the GUI agent with stable short-term memory and reliable perception of screen details. Comprehensive evaluations across a range of GUI-related benchmarks demonstrate the effectiveness and generalization of our method.
