Succeed or Learn Slowly: Sample Efficient Off-Policy Reinforcement Learning for Mobile App Control

Georgios Papoudakis, Thomas Coste, Jianye Hao, Jun Wang, Kun Shao

Abstract

Automating mobile app interactions remains a significant challenge for artificial intelligence due to sparse rewards, vast action spaces, and the high computational cost of environment simulation. While large-scale models like GPT-4o have shown promise through zero-shot prompting, they are often slow, expensive, and raise privacy concerns. This paper presents Succeed or Learn Slowly (SoLS), a sample-efficient reinforcement learning (RL) framework that enables smaller, local models (e.g., Llama-3-8B) to outperform significantly larger counterparts. By employing asymmetric policy updates and a specialized replay buffer, SoLS achieves a 51.3% success rate on the AndroidWorld benchmark, operating up to 60x faster than prompting-based alternatives.

Introduction

Mobile app control is a "holy grail" for digital assistants, requiring an agent to navigate complex UIs to fulfill user requests like "book a flight" or "schedule a meeting." However, three primary obstacles hinder progress:

  1. Sparse Rewards: Feedback is typically only available at the end of a multi-step task.
  2. Action Space Complexity: Agents must choose from hundreds of UI elements (buttons, text fields, sliders) at every step.
  3. Simulation Latency: Unlike games or synthetic environments, Android emulators are slow, making the millions of trials required by traditional RL prohibitively expensive.

To address these, we introduce a two-phase pipeline: initial Supervised Fine-Tuning (SFT) on human demonstrations, followed by targeted RL fine-tuning using the SoLS algorithm.

Methodology

Succeed or Learn Slowly (SoLS)

The core innovation of this work is the asymmetric policy update. In standard RL, negative feedback can be destructive for Large Language Models (LLMs). When a model is penalized for a "bad" action, the probability of those specific tokens is lowered, which mathematically increases the probability of all other tokens in the vocabulary—often leading to incoherent or "broken" behavior.

SoLS mitigates this by treating success and failure differently:

  • Aggressive Success Updates: When an agent achieves a positive outcome, the policy is updated aggressively to reinforce the winning strategy.
  • Conservative Failure Updates: When an action leads to failure, the model applies a cautious, PPO-like regularized update. This "slow learning" prevents the model from distorting its internal representations or forgetting its base capabilities during exploration.

Successful Transition Replay (STR)

Because successful trajectories are rare in complex mobile environments, we utilize Successful Transition Replay (STR). This specialized experience replay buffer prioritizes individual successful timesteps from previous attempts. By allowing the agent to revisit and solidify successful transitions even during periods of poor exploration, STR significantly improves sample efficiency.

Experimental Setup

We utilized Llama-3-8B-Instruct as our base model, augmented with a small "value head" to estimate state values. The model processes the UI as a textual accessibility tree rather than raw pixels, which reduces token overhead and improves inference speed.

Training and evaluation were conducted across two primary datasets:

  • AndroidControl: 13,000 tasks across 833 apps used for initial SFT to teach the model UI interaction fundamentals.
  • AndroidWorld: A rigorous benchmark of real-world tasks. We evaluated on an 80-task subset that is out-of-distribution (OOD) relative to the SFT data, testing the model's ability to generalize to unseen apps.

Results

Our approach demonstrates that specialized RL can bridge the gap between small and large models:

  • Performance: SoLS-STR achieved a 51.3% success rate on AndroidWorld, representing a 17% relative improvement over the best GPT-4o-based prompting methods.
  • Efficiency: The 8B model requires only ~0.9 seconds per inference step. This is 5x to 60x faster than GPT-4o agents, which often rely on high-latency API calls and multi-step "chain-of-thought" reasoning.
  • Ablation Studies: Results indicate that STR is critical for performance on "Medium" and "Hard" tasks; without replaying successful transitions, the agent's ability to solve complex, multi-step problems drops significantly.

Limitations and Future Work

Despite its efficiency, the current model faces several challenges:

  1. Memory Constraints: The model currently tracks action history but lacks a history of previous observations, making it difficult to solve tasks requiring cross-screen information (e.g., copying a code from one app to another).
  2. Visual Blind Spots: As a text-only model, it cannot interpret visual-only UI elements or perform tasks requiring spatial reasoning (e.g., navigating a map or gallery).
  3. Interaction Gaps: Rare UI actions, such as "long-press," remain difficult for the model to execute reliably.

Future research will focus on integrating state summarization for better long-term memory and transitioning toward Vision-Language Models (VLMs) to incorporate visual context into the decision-making process.

Conclusion

SoLS demonstrates that for specialized domains like mobile app control, algorithmic efficiency and smart regularization are more impactful than raw parameter count. By learning aggressively from success and cautiously from failure, an 8B model can provide a faster, more accurate, and more private alternative to massive proprietary models.

Summary updated

BibTeX
@inproceedings{papoudakis2025succeed,
  author = {Georgios Papoudakis and Thomas Coste and Jianye HAO and Jun Wang and Kun Shao},
  title = {{Succeed or Learn Slowly: Sample Efficient Off-Policy Reinforcement Learning for Mobile App Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4t8dYmu5vG},
}
Figure