PG-Agent: An Agent Powered by Page Graph

Weizhi Chen, Ziwei Wang, Leyang Yang, Sheng Zhou, Xiaoxuan Tang, Jiajun Bu, Yong Li, Wei Jiang

Abstract

Current Graphical User Interface (GUI) agents often struggle with complex navigation because they perceive interactions as isolated, linear sequences. This "short-sighted" approach fails to capture the underlying structural relationships between different application states. We present PG-Agent, a framework that reconstructs discrete interaction episodes into a unified Page Graph. By utilizing Retrieval-Augmented Generation (RAG) to extract navigation guidelines from this graph, PG-Agent provides agents with a "mental map" of the environment. Our approach achieves state-of-the-art results across major benchmarks, including AITW, Mind2Web, and GUI Odyssey, demonstrating superior generalization in unseen and complex scenarios.

Overview of the PG-Agent framework, showing the transition from linear episodes to a unified Page Graph used by an agent group via RAG.

Introduction

Multimodal Large Language Models (MLLMs) have significantly advanced the capabilities of GUI agents. However, most existing models learn from sequential chains of actions (e.g., Page A → Click → Page B). This linear perspective limits an agent's ability to generalize; if a task requires a different path or encounters a known page in a new context, the agent often fails to pivot. PG-Agent addresses this by modeling app and website environments as web-like graphs, allowing for deeper environmental perception and more robust planning.

Methodology

PG-Agent consists of two primary components: an automated graph construction pipeline and a RAG-enhanced multi-agent navigation framework.

1. Page Graph Construction

The system transforms discrete interaction episodes into a unified graph through three steps:

  • Page Jump Determination: An MLLM evaluates whether an action triggered a new page or a minor in-page change (e.g., a dropdown menu).
  • Node Similarity Check: To maintain graph conciseness, the system employs a dual-level check—combining semantic summaries and pixel-level comparisons—to determine if a "new" page matches an existing node.
  • Graph Update: Pages are represented as nodes, while actions serve as directed edges, creating a structural map of possible transitions.

2. RAG-Enhanced Multi-Agent Workflow

Rather than relying on a single monolithic prompt, PG-Agent utilizes a specialized team of agents coordinated through a RAG pipeline. This pipeline retrieves "perception guidelines" from the Page Graph to inform the decision-making process.

The RAG-enhanced multi-agent workflow, detailing the interaction between the Page Graph, the planning agents, and the final decision agent.
  • Observation Agent: Converts visual screen elements into descriptive text.
  • Global Planning Agent: Decomposes the user's high-level goal into abstract sub-tasks.
  • Sub-Goal Planning Agent: Integrates retrieved RAG guidelines (e.g., "Action X leads to Page Y, which facilitates Goal Z") to select the optimal next step.
  • Decision Agent: Executes the final action, such as clicking, typing, or scrolling.

Experimental Results

PG-Agent was evaluated on three diverse benchmarks, consistently achieving state-of-the-art (SOTA) performance:

  • AITW (Android in the Wild): PG-Agent reached an overall score of 59.5%, surpassing OmniParser (57.5%) and GPT-4V (50.5%). Performance in the "GoogleApps" category was particularly notable, exceeding previous SOTA by 13.4%.
  • Mind2Web: In cross-domain generalization tests, the framework achieved 60.2% element accuracy, proving that the graph structure aids navigation even in unfamiliar web domains.
  • GUI Odyssey: On complex, multi-step tasks (averaging 15+ steps), PG-Agent reached 47.7% accuracy, a significant improvement over the base Qwen2.5-VL-72B model (42.4%).

Discussion and Key Insights

The success of PG-Agent stems from Knowledge Recombination. By converting linear paths into a graph, the agent can synthesize new solutions by following segments of different previously seen episodes. Furthermore, providing high-level "guidelines" via RAG—rather than raw HTML or exhaustive history—prevents the model from being overwhelmed by long-context noise, a common issue in large-scale GUI tasks.

Limitations

Despite its strengths, PG-Agent faces challenges with highly dynamic GUIs where page content changes in real-time. Additionally, while the graph construction is automated, scaling this to a "Global Page Graph" for the entire internet remains computationally intensive. Future research will focus on more efficient, on-the-fly graph expansion and handling real-time data updates within the graph structure.

Summary updated

BibTeX
@inproceedings{chen2025pg,
  author = {Weizhi Chen and Ziwei Wang and Leyang Yang and Sheng Zhou and Xiaoxuan Tang and Jiajun Bu and Yong Li and Wei Jiang},
  title = {{PG-Agent: An Agent Powered by Page Graph}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755189},
}
Figure