Abstract
Automating complex tasks on personal computers (PCs) presents unique challenges due to dense interfaces and long-horizon workflows. We present PC-Agent, a hierarchical multi-agent framework that decomposes complex instructions into manageable subtasks. Utilizing an Active Perception Module (APM) and a "Manager-Progress-Decision-Reflection" hierarchy, PC-Agent significantly outperforms existing single-agent and multi-agent systems. On the new PC-Eval benchmark, PC-Agent achieves a 56% success rate, representing a 32% absolute improvement over previous state-of-the-art methods.
Introduction
While Multimodal Large Language Models (MLLMs) have demonstrated proficiency in mobile automation, the PC environment remains a significant hurdle. PC interfaces are characterized by high information density, featuring numerous small icons without text labels and intricate text layouts. Current MLLMs often struggle with "grounding"—the ability to accurately locate specific UI elements—frequently failing to identify the correct interactive components.
Furthermore, PC tasks are typically long-horizon. A single user request, such as "Find travel dates in an email, search for attractions, and create a Word summary," can span multiple applications and dozens of discrete steps. Single-agent systems often lose track of progress or fail to manage data dependencies between these subtasks.
The PC-Agent Framework
To address these challenges, we propose PC-Agent, a framework based on a "divide-and-conquer" architecture organized across three levels: Instruction, Subtask, and Action.
Active Perception Module (APM)
The APM enhances the model's ability to perceive the environment. Instead of relying solely on raw screenshots, it leverages the Windows Accessibility (A11y) tree to identify interactive widgets. For text-heavy operations, the APM employs a dedicated MLLM to interpret intent and an OCR tool to determine precise coordinates, significantly improving grounding accuracy.
Hierarchical Multi-Agent Collaboration
The core of PC-Agent is its four-agent hierarchy:
- Manager Agent (MA): Acts as the central coordinator, decomposing complex instructions into parameterized subtasks and managing a "Communication Hub" to facilitate data transfer between subtasks.
- Progress Agent (PA): Monitors the execution history of the current subtask to prevent the system from entering infinite loops.
- Decision Agent (DA): The primary executor that determines specific actions (e.g., click, type, drag) based on the visual state and current progress.
- Reflection Agent (RA): Performs quality control by comparing the interface state before and after an action. If an action fails, the RA provides feedback to the DA for a corrective retry.
Evaluation
We evaluated PC-Agent using two new resources:
- PC-Eval: A benchmark of 25 complex, real-world instructions involving eight popular applications (e.g., Chrome, Word, Excel, Outlook). These tasks average over 20 steps, far exceeding the complexity of existing benchmarks.
- GUI Grounding Dataset: A collection of screenshots from common PC applications used to assess the model's ability to identify and locate UI elements.
Results and Discussion
PC-Agent demonstrates substantial performance improvements over baseline methods. Using GPT-4o, the framework achieved a 56.0% success rate (SR) on PC-Eval. In comparison, a single-agent GPT-4o reached only 8.0%, and the previous state-of-the-art multi-agent system, Agent-S, achieved 24.0%.
Key Insights
- Hierarchical Decomposition: Treating long-horizon tasks as a single prompt is ineffective. Breaking tasks into Instruction-Subtask-Action levels reduces cognitive load and increases reliability. Ablation studies show that removing the Manager Agent causes the success rate to drop to 12%.
- Active Perception: Grounding is a major bottleneck. While Claude-3.5 achieved only 24% accuracy on grounding tasks, the APM reached 88%, highlighting the necessity of combining metadata with visual tools.
- Dynamic Reflection: The Reflection Agent is vital for self-correction. Without it, agents often hallucinate task completion or repeat failing actions.
Conclusion
PC-Agent represents a significant step forward in PC task automation. By combining active perception with a hierarchical agent structure, it effectively manages the complexity of modern desktop environments. Future work will focus on improving efficiency, reducing computational costs, and expanding the framework's capabilities to more diverse domains like entertainment and social media, while addressing critical privacy concerns.
Summary updated