Abstract
Most current mobile GUI agents operate under the assumption that user instructions are complete and the environment is static. However, real-world interactions are often plagued by ambiguity, evolving requirements, and environmental conflicts. We present ReInAgent, a multi-agent framework that integrates a human-in-the-loop approach with a slot-based information management system. By proactively clarifying intent and resolving conflicts, ReInAgent achieves a 25% higher success rate on complex mobile tasks compared to existing state-of-the-art agents like Mobile-Agent-v2.
Introduction
Mobile GUI automation has seen significant progress with the advent of Large Language Models (LLMs). Despite this, a major gap remains: the "perfect instruction" assumption. In practice, users often provide vague requests such as "Order me a coffee" without specifying a delivery address or preferred customization. Traditional agents, when faced with such missing information, often default to invalid addresses or enter ineffective loops, leading to task failure.
ReInAgent addresses three specific information dilemmas:
- Ambiguous initial instructions: Critical details missing at the start of a task.
- Incremental information requirements: Details that only become necessary upon reaching specific app screens (e.g., selecting sugar levels or ice amounts).
- Conflicting information: Discrepancies between user requests and app reality (e.g., a requested item being out of stock or exceeding a budget).
System Architecture
ReInAgent utilizes a multi-agent architecture where cognitive load is distributed across three specialized roles, coordinated through a shared memory module and a slot-based tracking system.
Specialized Agent Roles
- Information-managing Agent (ImA): This agent serves as the primary interface with the user. It employs a slot-based mechanism to track task-related information as key-value pairs. By monitoring these "Task Slots," the ImA can identify missing information and proactively query the user for clarification.
- Decision-making Agent (DmA): The DmA acts as the executor, decomposing instructions into actionable subtasks. To maintain focus during long sequences, it utilizes a sliding trajectory window, focusing only on the four most recent actions to avoid the "lost in the middle" phenomenon common in LLMs.
- Reflecting Agent (RA): Serving as a critic, the RA evaluates the success of each action. It ensures the current screen state aligns with the established task slots and provides summaries to keep the context window efficient.
The Two-Stage Execution Process
The workflow is divided into Task Pre-processing and Iterative Task Execution. In the first stage, the ImA clarifies the initial intent. In the second stage, the agents act, reflect, and dynamically update slots as new information requirements emerge from the GUI.
Experimental Evaluation
ReInAgent was evaluated using GPT-4o as the foundation model and OS-Atlas-base-7B for UI element localization. Testing was conducted in real-time on Android devices across four high-stakes daily scenarios: takeaway ordering (Meituan), hotel reservations (Ctrip, Booking.com), flight booking (Skyscanner), and online shopping (JD.com).
Key Results
- Success Rate (SR): ReInAgent demonstrated a 25% improvement in success rate over Mobile-Agent-v2 in scenarios involving information dilemmas.
- Information Consistency (IC): ReInAgent achieved an IC score of 0.85, significantly higher than AppAgent (0.30) and Mobile-Agent-v2 (0.38), proving its superior ability to adhere to user preferences.
- Ablation Insights: Removing the Reflecting Agent led to a sharp decline in performance, highlighting the necessity of explicit self-correction in dynamic mobile environments.
Discussion and Future Work
A core innovation of ReInAgent is the introduction of the HELP meta-action. When the DmA encounters a dilemma it cannot resolve autonomously—such as a price conflict—it triggers the ImA to engage the user. This human-in-the-loop design transforms the agent from a passive executor into a proactive collaborator.
While highly effective, ReInAgent can still struggle with extremely dense UI screens or very subtle information conflicts. Future research will explore framing information management as a Partially Observable Markov Decision Process (POMDP) and utilizing Reinforcement Learning to optimize the timing of user queries versus autonomous exploration.
Summary updated