MGA: Memory-Driven GUI Agent for Observation-Centric Interaction

Weihua Cheng, Ersheng Ni, Wenlong Wang, Yifei Sun, Junming Liu, Wangyu Shen, Yirong Chen, Botian Shi, Ding WangarXiv 2025 · DOI

Abstract

Current GUI agents often struggle with long-horizon tasks due to "trajectory inertia"—the tendency to repeat past mistakes stored in raw action logs—and "observation bias," where agents focus only on task-relevant elements while ignoring critical UI state changes. We present the Memory-Driven GUI Agent (MGA), a framework that shifts from a history-heavy approach to an observation-centric paradigm. MGA utilizes a task-agnostic observer to map the entire UI and a structured memory triad to distill past interactions into meaningful insights. On the OSWorld benchmark, MGA achieves a 54.6% success rate, significantly outperforming existing state-of-the-art models.

Introduction

Most existing GUI agents operate with a "decision-first, observation-later" mindset. They search for specific elements required by the current task step while often overlooking the broader context of the screen, such as unexpected pop-ups or loading indicators. Furthermore, these agents typically manage history by concatenating raw action sequences. This leads to bloated context windows and a failure to recover from errors, as the mistake remains a permanent part of the agent's input history.

System Architecture

MGA addresses these challenges by treating every interaction step as an independent, context-rich event. The system is composed of four specialized modules that work in concert to ensure robust navigation and error recovery.

The MGA architecture decouples observation, planning, and memory to improve interaction robustness.

Core Modules

  1. Task-Agnostic Observer: Before planning, this module constructs a complete "blueprint" of the UI. It identifies all interactive elements and layout structures regardless of the current goal, preventing "tunnel vision."
  2. Abstract Memory Agent: Instead of replaying raw clicks, this agent maintains a "Memory Triad." It distills history into five dimensions: state evolution, operation effects, behavioral patterns, issue identification, and state consistency.
  3. Planner Agent: Leveraging the observer's spatial data and the distilled memory, the planner reasons through high-level logic and concrete action specifications.
  4. GUI Grounding Agent: This module translates natural language plans into precise screen coordinates, optimized via Reinforcement Learning (RL).

Observation-Centric Reasoning

The strength of MGA lies in its ability to "reset" its thinking at each step. By forcing the agent to map the entire UI before planning, it can recognize environmental constraints—such as a dialog box blocking a target button—before attempting an action.

A detailed example of MGA agents processing a flight search task, showing structured memory and spatial layout extraction.

As shown in the figure above, the Memory Agent provides a summary of the current state and classifies issues (e.g., identifying redundant clicks), while the Observer Agent extracts semantic roles and spatial layouts. This structured data allows the Planner Agent to make informed decisions based on the outcome of previous actions rather than just the actions themselves.

Experimental Results

MGA was evaluated on the OSWorld benchmark, which includes over 300 tasks across Ubuntu, Windows, and macOS environments.

  • Overall Performance: MGA reached a success rate of 54.6%, surpassing the previous state-of-the-art, GTA1 (48.6%).
  • Complex Workflows: In professional applications like VS Code and GIMP, MGA achieved 83.0% accuracy.
  • Daily Tools: For applications like Chrome and VLC, MGA showed a significant improvement, scoring 62.8% compared to the 44.9% achieved by competitors.
  • Efficiency: MGA maintained high performance even under strict step budgets, demonstrating more efficient pathfinding through its "observe-first" strategy.

Conclusion

MGA demonstrates that shifting from raw history logs to structured, distilled memory and comprehensive UI observation significantly enhances the reliability of GUI agents. By decoupling the environment state from the action trajectory, MGA avoids the pitfalls of error propagation in long-horizon tasks. Future work will explore hybridizing this memory-driven reasoning with code-level execution to further improve efficiency in system-level operations.

Summary updated

BibTeX
@misc{cheng2025mga,
  author = {Weihua Cheng and Ersheng Ni and Wenlong Wang and Yifei Sun and Junming Liu and Wangyu Shen and Yirong Chen and Botian Shi and Ding Wang},
  title = {{MGA: Memory-Driven GUI Agent for Observation-Centric Interaction}},
  year = {2025},
  eprint = {2510.24168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.24168},
}
Figure