AndroidInTheWild: A Large-Scale Dataset For Android Device Control

Christopher Rawles, Alice Li, Daniel Rodriguez, Oriana Riva, Timothy P. Lillicrap

TL;DR

Android in the Wild (AITW) introduces a massive open-source dataset designed to teach AI agents how to navigate mobile interfaces using raw pixels and natural language. With over 715,000 episodes—orders of magnitude larger than previous benchmarks—it shifts the focus from brittle, metadata-dependent automation to robust, vision-based device control that "sees" the screen just like a human does.

What Problem Does This Paper Address?

While voice assistants like Siri and Google Assistant are ubiquitous, they often rely on back-end APIs that only work for a handful of supported applications. To create a truly universal "action agent," an AI needs to interact with the User Interface (UI) directly.

Until now, research in this area faced two major hurdles:

  1. Scale: Existing datasets were too small to train the "foundation models" necessary for generalized device control.
  2. Representation: Most models relied on "View Hierarchies" (the underlying code structure of an app). However, this metadata is often missing, messy, or inaccessible in real-world scenarios like mobile games or complex web views.

The authors argue that for an agent to be truly useful "in the wild," it must rely on visual appearance (screenshots) and precise gestures (coordinates) rather than hidden code.

Methods

The researchers built a comprehensive data collection pipeline using human raters and Android emulators to capture natural interactions.

Data collection pipeline and demonstration processing
  • Action Space: Instead of simple "click" or "type" commands, they used a dual-point gesture abstraction. By recording the (x, y) coordinates of where a finger touches and lifts, they can represent taps, swipes, and scrolls in a unified format.
  • Hindsight Relabeling: To maximize the data's utility, they took long, multi-step human demonstrations and had raters go back and label smaller, single-step sub-tasks (e.g., "open the settings menu").
  • Baselines: They evaluated two types of agents:
  • Behavioral Cloning (BC): A Transformer-based model trained to mimic human actions based on the current screen and a short history of previous steps.
  • LLM-based Agents: They used PaLM 2, converting the visual screen (via OCR and icon detection) into a text-based HTML-like representation to see if a Large Language Model could "reason" its way through a task.

Datasets

The paper introduces AITW, a dataset that dwarfs previous benchmarks. For comparison, AITW is roughly 150x larger than MoTIF, the previous state-of-the-art dataset in this niche.

It contains:

  • 715k episodes and 30k unique instructions.
  • 5.7 million screenshots across hundreds of apps and websites.
  • Data from 4 versions of Android (v10–13) and 8 different device types (Pixel 2 XL to Pixel 6).
  • Five sub-categories: GoogleApps, Install (app store tasks), WebShopping, General (Q&A/misc), and Single (single-step tasks).
Distribution of applications in the AITW dataset

Key Insights and Ideas

  • Pixels are the Universal Language: By forcing models to work from screenshots rather than UI metadata, the resulting agents are more robust to "UI drift"—the inevitable changes in app layouts and OS versions.
  • The "Dual-Point" Win: Representing all gestures as a simple start-and-stop coordinate pair is a highly efficient trade-off between data compression and the precision needed to operate complex widgets like carousels or sliders.
  • Generalization is the Real Test: The authors didn't just test on "seen" apps. They created specific "Out-of-Distribution" (OOD) splits to see if an agent could handle a brand-new app or a version of Android it had never encountered before.
  • LLMs are "Element-Bound": A surprising insight was that current LLMs struggle with this task because they are usually restricted to clicking on pre-detected elements. Humans (and the BC agent) can click anywhere, which is often necessary when OCR fails or icons aren't properly labeled.

Key Results

  • BC-History Wins: The Behavioral Cloning agent that utilized a history of the last two steps performed the best, achieving a 73.1% partial match score on the standard test set.
  • Generalization Performance: The BC agent proved surprisingly resilient, scoring 59.7% on entirely unseen domains (apps/websites not in the training set).
  • LLM Bottlenecks: The 5-shot Chain-of-Thought LLM (PaLM 2) achieved a 39.6% score. While lower than the BC agent, it showed promise in high-level reasoning, though it was frequently tripped up by the lack of precise coordinate output.
  • Human Validation: The researchers found that their automated "action matching" metric was a conservative lower bound; human evaluators often found the agent's actions successful even when they didn't perfectly match the rater's specific path.

Limitations and Future Work

  • Demographics & Language: The dataset is currently English-only and reflects the browsing habits of a specific group of paid raters, which may not represent global diversity.
  • Input Latency: Raters used a mouse and keyboard on an emulator, which creates slightly different interaction patterns than a finger on a physical touch screen.
  • The Multimodal Future: The authors suggest that the next big leap will come from Multimodal Foundation Models that can natively consume raw pixels and output precise (x, y) coordinates, bypassing the need to convert screens into text for an LLM.

Summary updated

BibTeX
@inproceedings{rawles2023androidinthewild,
  author = {Christopher Rawles and Alice Li and Daniel Rodriguez and Oriana Riva and Timothy P. Lillicrap},
  title = {{AndroidInTheWild: A Large-Scale Dataset For Android Device Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=2HvWoIzDaE},
}
Figure