TL;DR
This paper introduces Active Task-Driving Memory (ATMem), shifting mobile GUI agents away from passive interaction histories toward an actively maintained, structured execution state. By combining this state tracking with a novel interventional reinforcement learning method (STR-GRPO), the authors train an 8B agent that achieves state-of-the-art performance on AndroidWorld, outperforming models 29 times its size.
What Problem Does This Paper Address?
Current mobile GUI agents struggle with long-horizon, data-intensive tasks—such as migrating multiple calendar events to a to-do list or deleting specific entries from an expense tracker. Traditional architectures treat memory as a passive dumping ground for past screenshots, text logs, or unstructured notes.
The core issue is that simply retrieving a past value does not tell the agent its current role or status in the workflow. The agent is forced to implicitly reconstruct whether a piece of data has already been processed, is waiting on a dependency, or should be ignored. In complex environments filled with similar-looking "distractor" data, this ambiguity causes agents to lose track of their progress, leading to missed steps or infinite "stuck loops" where they repeat the same action indefinitely.
Methods
The authors tackle this problem with a two-pronged approach spanning memory architecture and reinforcement learning:
- Active Task-Driving Memory (ATMem): Instead of a raw text log, ATMem maintains a structured, hierarchical JSON state updated at every step. It operates on two levels:
- Workflow Level: Tracks global progress macro-stages (e.g., "harvesting" data vs. "executing" actions) and global constraints.
- Schema Level: Defines the exact data fields required for the task and maintains an explicit status (
remaining,finished,skipped) for every single data item. - STR-GRPO (Structured Task-driven Reward GRPO): While supervised fine-tuning (SFT) can teach an agent how to format this memory, it doesn't teach the agent when memory is actually helpful. STR-GRPO is an online reinforcement learning framework that samples paired rollouts of the same task group—one with memory enabled (Memory-ON) and one masked (Memory-OFF). By comparing the outcomes, the framework isolates the true marginal utility of using memory. Crucially, it includes a memory-active cost penalty to discourage the agent from wasting context tokens on memory updates when a simple direct action would suffice.
Datasets
The authors evaluate their agent, ATMem-UI, across three benchmarks:
- AndroidWorld & MobileWorld: Standard, widely accepted environments for testing general mobile GUI automation.
- DataScope: A new, highly scalable benchmark introduced in this paper specifically designed to test data-centric workflows. It features 32 task families evaluated across three difficulty tiers (DC-V1 to DC-V3). As difficulty increases, the benchmark injects a massive volume of same-schema distractors (e.g., dozens of similar contact entries), raising the distractor-to-target ratio from 1.39× to 3.22× to rigorously test data isolation and scope control.
Key Insights and Ideas
- Structure Trumps Scale: The most striking takeaway is that explicit state tracking can compensate for massive gaps in raw parameter scaling. The 8B ATMem-UI model beats a 230B model on AndroidWorld, proving that long-horizon execution bottlenecks are often caused by state-tracking failures rather than a lack of raw reasoning capacity.
- RL as a Pruning Mechanism: Standard reinforcement learning often causes agents to overuse memory structures redundantly. By explicitly penalizing memory length and contrasting ON/OFF states, STR-GRPO successfully trains the agent to suppress low-utility memory updates, cutting down memory invocation rates significantly while simultaneously boosting success rates.
- Diagnosing the "Stuck Loop": Through their failure analysis on DataScope, the authors proved that "stuck loops" (repeating the same action) are the single dominant failure mode (40.9%) for traditional agents. Explicitly tracking item-level completion status is the direct antidote to this behavior.
Key Results
- AndroidWorld State-of-the-Art: ATMem-UI-8B achieved a 76.6% success rate, outperforming the massive UI-TARS-2-230B model by 3.3 percentage points and its baseline counterpart, MAI-UI-8B, by 5.9 points. Even the smaller 4B variant achieved 65.5%, matching the performance of several 72B models.
- MobileWorld Generalization: In entirely unseen environments, ATMem-UI-8B reached a 23.3% success rate, representing a 36.2% relative improvement over the strongest non-proprietary baseline (GELab-Zero-4B at 16.1%).
- DataScope Robustness: On the toughest DataScope tier (DC-V3), where dense distractors caused all standard end-to-end agents to crash to a 0% success rate, ATMem-UI maintained a stable lead, proving the efficacy of its explicit
Constraintsandskippedstatus tracking.
Limitations and Future Work
While ATMem largely mitigates state-tracking errors, the authors note that it does not fully solve wrong termination (the agent declaring a task finished before all subgoals are verified) or step cap failures (getting stuck in valid but unresolved states that exhaust the action budget). These issues point to broader, remaining challenges in long-horizon strategic planning and robust completion checking that item-level data tracking alone cannot solve. Future work will likely need to combine active data memory with more sophisticated hierarchical planning frameworks.
Summary updated