AndroidLong: LLM-Based Android Agents Struggle with Long Looping Tasks

Xinghan Liu, Xiao Liu, Yifan Xu, Jiaqi Fu, Jiayu Huang, Yixuan Liu, Yuxiao Dong, Jie TangCVPR 2026 Findings 2026

TL;DR

While current mobile GUI agents excel at simple, short-horizon tasks, they completely fall apart when faced with complex, multi-step loops. This paper introduces AndroidLong, a new benchmark featuring tasks that are four times longer than existing benchmarks, and presents a novel training pipeline (SFT + Reinforcement Learning + Memory) that elevates a 9B open-source model to outperform commercial giants like GPT-4 and Claude.

What Problem Does This Paper Address?

Large Language Models (LLMs) have become remarkably good at navigating mobile interfaces for simple instructions like "open the clock app and set an alarm." However, real-world human workflows are rarely that brief. We frequently perform long-horizon, repetitive tasks—such as "turn off all active alarms between 8 AM and 10 AM" or "clear the company field for the first N contacts."

Existing mobile agent benchmarks primarily evaluate short-horizon interactions that take fewer than 10 steps. When agents attempt longer, loop-style tasks, they suffer from a lack of persistent planning, poor state tracking, and a tendency to get trapped in infinite loops or terminate prematurely. This paper addresses this evaluation gap by introducing a rigorous benchmark for long-horizon tasks and proposing a method to fix the catastrophic failure of open-source models in these environments.

Figure 2. Illustration of the contrast between a traditional Android GUI agent task(left) and a similar but much harder task in AndroidLong benchmark(right).

Methods

To bridge the massive performance gap on long tasks, the authors developed a two-stage post-training pipeline combined with a specialized memory mechanism:

  1. Cold-Start Supervised Fine-Tuning (SFT): The model is first trained on human-annotated GUI trajectories. Crucially, the training data forces the model to output explicit chain-of-thought (CoT) reasoning before predicting actions, familiarizing it with Android layouts and step-by-step logic.
  2. Online Reinforcement Learning (RL): The authors utilize Group Relative Policy Optimization (GRPO) to fine-tune the agent directly within the interactive Android environment. They implement a dynamic sampling strategy that filters out uninformative rollout groups (where rewards are entirely 0 or 1) to stabilize training.
  3. The Memory Module: Passing full historical screenshots or massive XML files into an LLM's context window at every step is computationally prohibitive. Instead, the authors introduce a lightweight, structured memory component inside the CoT process. Before taking an action, the model explicitly answers: Did the last action meet expectations? What needs to be retained for long-term memory? Are there overlooked elements on the current page?

Datasets

The primary contribution is AndroidLong, a benchmark consisting of 2,359 tasks (2,208 training, 151 testing) spanning six common Android applications (Bluecoins, Calendar, Clock, Contacts, Map, and Pimusic).

Unlike older datasets that rely on static screenshots, AndroidLong provides a fully interactive virtual environment with verifiable, code-based rewards and subgoal-level supervision. As shown in the benchmark comparison below, AndroidLong's average interaction length is 36 steps, roughly 4x longer than previous benchmarks like AndroidWorld or AndroidLab.

Table 1. Comparison of existing benchmarks on Android platform.

Key Insights and Ideas

  • The Open-Source Collapse: While advanced open-source models perform decently on short tasks, their performance drops to nearly 0% on AndroidLong without specialized training.
  • The Power of Structured Reflection: Simply telling a model to "think" isn't enough for long loops. Forcing the model to maintain a structured, self-updating text memory prevents it from clicking the same contact or button repeatedly.
  • RL and Memory Synergy: Online reinforcement learning becomes significantly more stable and effective when paired with the memory module, leading to steady improvements across training epochs.
Figure 3. Training subgoal success rate (SR) over epochs for GRPO with and without memory. The model equipped with memory consistently achieves higher subgoal SR across training.

Key Results

  • Proprietary Models Struggle: Top-tier commercial models achieve surprisingly low task success rates (SR) on AndroidLong: Gemini-2.5-Pro (28.4%), Claude-Sonnet-4 (27.8%), and GPT-4.1 (23.1%).
  • Open-Source Triumphs via Post-Training: By applying their SFT + GRPO + Memory pipeline to a 9B open-source foundation model, the authors achieved a 33.1% Task Success Rate, outperforming all evaluated proprietary models.
  • Strong Out-of-Distribution Generalization: When tested on a challenging, out-of-domain "hard subset" of AndroidWorld, the trained 9B model achieved a score of 60.8%, doubling the performance of Claude-Sonnet-4 (29.7%).

Limitations and Future Work

Despite outperforming GPT-4 and Claude, the absolute success rate of the best model on AndroidLong is still only 33.1%, leaving substantial room for improvement.

Error analysis revealed two primary bottlenecks:

  1. Insufficient Exploration: Agents often fail to proactively scroll down a page to check for additional actionable items once the visible items are processed.
  2. Insufficient Reflection: Models still occasionally fail to recognize when an action had no effect, leading to repetitive, wasteful cycles. Future work will focus on improving the agent's spatial exploration and self-correction capabilities.

Summary updated

BibTeX
@inproceedings{liu2026androidlong,
  author = {Xinghan Liu and Xiao Liu and Yifan Xu and Jiaqi Fu and Jiayu Huang and Yixuan Liu and Yuxiao Dong and Jie Tang},
  title = {{AndroidLong: LLM-Based Android Agents Struggle with Long Looping Tasks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=dbC5u3mDPi},
}
Figure