Introduction
Developing autonomous agents capable of navigating mobile operating systems—performing tasks like booking flights, setting alarms, or managing communications—represents a significant frontier in AI research. However, the field has historically lacked standardized, reproducible environments for training and evaluation. Many existing benchmarks rely on static screenshots or evaluate closed-source models via prompt engineering, often failing to capture the dynamic nature of real-world interaction. Furthermore, traditional evaluation metrics frequently penalize agents for taking non-human paths, even if the final objective is achieved.
AndroidLab addresses these challenges by providing an open-source, dynamic framework for training and systematically benchmarking Android autonomous agents. It shifts the focus from sequence matching to state-based evaluation, ensuring that success is measured by the actual outcome on the device.
The AndroidLab Framework
AndroidLab introduces a comprehensive pipeline designed for both text-only Large Language Models (LLMs) and Vision-Language Models (VLMs). The framework is built upon several core components:
- Unified Action Space: Agents interact with the device using a standardized set of commands: Tap, Swipe, Type, Long Press, Home, Back, and a Finish action to signal task completion.
- Dual Operation Modes: To accommodate different model architectures, the environment supports XML Mode (compressing the UI tree into text for LLMs) and Set-of-Mark (SoM) Mode (overlaying visual markers on screenshots for VLMs).
- State-Based Evaluation: Success is determined by checking the device's UI tree for specific sub-goals (e.g., verifying if an alarm is set to the correct time and labeled appropriately), rather than matching a human's click sequence.
Data-Driven Performance Gains
A central contribution of this work is the Android Instruct Dataset, a high-quality collection of human-annotated operation traces. While the full dataset contains over 10,000 traces, a targeted subset of 726 traces (6,208 actions) aligned with the benchmark's offline applications was used for supervised fine-tuning (SFT).
The results of this fine-tuning are transformative. Open-source models, which often struggle in zero-shot settings, saw massive performance leaps. For instance, the average success rate of open-source LLMs jumped from 4.59% to 21.50% after SFT. This demonstrates that high-quality trajectory data can make smaller, open-source models highly competitive with proprietary giants.
Key Insights and Results
- Proprietary Performance: In zero-shot evaluations, GPT-4o and GPT-4-1106-Preview lead the benchmark with success rates of approximately 31%.
- Efficiency and Reasoning: Fine-tuning does more than just increase success; it improves efficiency. The fine-tuned GLM4-9B model achieved a 93.25% "Reasonable Operation Ratio," indicating that nearly every action taken resulted in a meaningful state change, reducing hallucinated or redundant clicks.
- Model Sensitivity: The research found that Vision-Language Models can be confused by complex prompting frameworks like ReAct, which may waste tokens without improving outcomes. Additionally, agents showed a performance bias toward standard smartphone resolutions, struggling with the unexpected layouts of tablet-sized screens.
Conclusion and Future Work
AndroidLab provides a robust foundation for mobile agent research, proving that fine-tuned open-source models can approach the performance of leading proprietary systems. However, limitations remain, including the manual effort required to integrate new tasks and the fixed wait times between actions. Future developments will focus on scaling task generation and implementing safety protocols for sensitive operations, such as messaging or financial transactions, to ensure autonomous agents can be safely deployed in real-world scenarios.
Summary updated