TL;DR
This paper introduces Agent S2, a novel framework for computer use agents that breaks down complex tasks by composing specialized AI models. By using a "Mixture of Grounding" and "Proactive Hierarchical Planning," Agent S2 achieves state-of-the-art performance on various benchmarks, outperforming monolithic models.
What Problem Does This Paper Address?
Current AI agents designed to automate tasks on computers and mobile devices (computer use agents) face several significant hurdles. Firstly, they struggle with imprecise grounding, meaning they have trouble accurately identifying and locating specific elements on a graphical user interface (GUI). Secondly, they face challenges with long-horizon task planning, especially when dealing with complex sequences of actions, distractions, or evolving user needs. Finally, many existing agents rely on a single, large "generalist" model for all tasks. While these models are versatile, they often underperform compared to specialized models on specific subtasks, creating a bottleneck for overall performance. This paper aims to overcome these limitations by proposing a more modular and intelligent approach.
Methods
Agent S2 is built upon a compositional, hierarchical framework that delegates cognitive responsibilities to different modules. The core innovations are:
- Mixture of Grounding (MoG): This technique addresses the imprecise grounding problem. Instead of a single model trying to locate everything, MoG acts as a "gating mechanism" that routes specific grounding tasks to specialized "grounding experts." These experts are tailored for different types of UI elements (visual, textual, structural), allowing for more precise localization. This is analogous to the "Mixture-of-Experts" concept.
- Proactive Hierarchical Planning: This approach tackles the long-horizon planning challenge. Agent S2 uses a "Manager" module to break down tasks into subgoals and a "Worker" module to execute them. Crucially, the Manager proactively re-evaluates and updates the plan after each subgoal is completed, adapting to new observations and evolving contexts. This contrasts with "reactive" planning, which only adjusts after a failure.
The framework also leverages a knowledge base from a previous work (Agent S) for high-level task interaction experience.
Datasets
The paper evaluates Agent S2 on three prominent benchmarks:
- OSWorld: A structured environment for desktop control in Ubuntu, covering tasks like file management and document editing.
- WindowsAgentArena: Extends OSWorld tasks to a parallelizable Windows environment.
- AndroidWorld: Includes mobile UI navigation tasks on Android devices.
The paper also mentions using a subset of OSWorld for ablation studies.
Key Insights and Ideas
- Specialization Trumps Generalization (in a smart way): The paper strongly suggests that composing specialized models, even if each is slightly suboptimal on its own, can outperform a single, monolithic generalist model. This highlights the power of modularity and task-specific expertise.
- Proactive Planning is Key for Robustness: The ability to dynamically replan and adapt to new information before a failure occurs significantly improves performance, especially in complex, long-horizon tasks. This makes agents more resilient to unexpected changes.
- Grounding is Still a Bottleneck, but MoG Helps: While grounding remains a challenge, the Mixture of Grounding approach effectively distributes the cognitive load and allows for more precise localization by leveraging specialized experts.
- Smaller Models Can Shine in Modular Systems: The study shows that smaller, open-sourced visual grounding models can outperform large, close-sourced reasoning models when integrated into a well-designed modular framework like Agent S2.
Key Results
Agent S2 achieves state-of-the-art (SOTA) performance across the evaluated benchmarks:
- OSWorld: Achieved 18.9% and 32.7% relative improvements over leading baselines on 15-step and 50-step evaluations, respectively. For example, with Claude-3.7-Sonnet, it reached 27.0% (15-step) and 34.5% (50-step) success rates.
- WindowsAgentArena: Surpassed previous best methods by 52.8% on the test set.
- AndroidWorld: Achieved a 16.52% relative improvement over the previous SOTA.
Ablation studies confirmed the significant contributions of both the Mixture of Grounding and Proactive Hierarchical Planning strategies.
Limitations and Future Work
The authors acknowledge the following limitations and suggest future directions:
- Planning Failures: While grounding errors are reduced, planning failures (inadequate plans due to inaccurate/noisy subtask information) are now the most frequent cause of failure.
- Interaction and Navigation Failures: Although less common than planning failures, these still indicate areas for improvement in understanding GUI interactions and layouts.
- Test-Time Exploration: The paper suggests that Agent S2 adapts over longer horizons through test-time exploration, implying that further improvements could come from more sophisticated exploration strategies.
- Generalization to Diverse Environments: While strong generalization is shown, future work could explore even broader ranges of operating systems, applications, and task complexities.
Summary updated