Mobile-Bench: An Evaluation Benchmark for LLM-based Mobile Agents

Shihan Deng, Weikai Xu, Hongda Sun, Wei Liu, Tao Tan, Jianfeng Liu, Ang Li, Jian Luan, Bin Wang, Rui Yan, Shuo Shang

Abstract

Mobile-Bench is a comprehensive evaluation benchmark designed to bridge the gap between Large Language Models (LLMs) and mobile agent performance. By integrating 103 functional APIs alongside traditional UI interactions, it addresses the inefficiencies and complexities of current mobile benchmarks. The framework introduces a granular "CheckPoint" metric and a diverse dataset of 832 tasks, ranging from single-app operations to complex multi-app scenarios, providing a more nuanced evaluation of agent planning and execution in real-world mobile environments.

Introduction

While Large Language Models (LLMs) have demonstrated remarkable proficiency in web-based tasks, their application as mobile agents has faced significant hurdles. Existing benchmarks often rely solely on slow UI-only interactions (clicks, scrolls), focus on overly simplistic single-app instructions, and utilize binary "success rate" metrics that fail to capture the logical progression of an agent's actions.

To address these challenges, we present Mobile-Bench, a framework that supports hybrid API/UI interactions and introduces a sophisticated evaluation methodology to measure agent reasoning and planning more accurately.

Methodology

The Mobile-Bench platform is built upon an Android 14.0 emulator and Appium, incorporating several key innovations to enhance agent performance and evaluation.

Hybrid Action Space

A core feature of Mobile-Bench is its hybrid action space. Agents are not limited to standard UI actions; they can also invoke 103 specific functional APIs for common tasks such as searching, system calls, or navigating to specific pages. This significantly improves efficiency—for instance, setting an alarm can be reduced from multiple UI steps to a single API call.

Comparison of UI-based interaction versus API-based execution for setting an alarm.

UI Representation and Architecture

To better leverage the pre-training of LLMs, the platform converts raw XML UI trees into a simplified HTML format. The agent follows a sensor-controller-executor architecture, where the LLM generates a high-level plan, executes actions iteratively, and reflects on state changes to decide subsequent steps.

The CheckPoint Metric

Moving beyond binary success metrics, Mobile-Bench introduces the CheckPoint metric. This evaluates the agent's action history against predefined sequences of packages, key phrases, and APIs. By using logical operators (sequential, conjunctive, and disjunctive), the metric determines if the agent reached essential intermediate milestones required for task completion.

Example of a CheckPoint definition for a flight booking task, specifying required packages, key phrases, and API calls.

Dataset and Experimental Setup

The benchmark consists of 832 data entries categorized by complexity:

  • SAST (Single-App-Single-Task): 332 entries for basic operations.
  • SAMT (Single-App-Multi-Task): 300 entries for complex tasks within one application.
  • MAMT (Multi-App-Multi-Task): 200 entries requiring cross-app collaboration.

Tasks were derived from real user queries and augmented using GPT-4 to cover 29 different applications.

Key Insights and Results

Benchmarking models like GPT-4, GPT-3.5-turbo, and LLaMA revealed several critical findings:

  • API Integration: APIs act as force multipliers. Ablation studies showed that removing API support caused GPT-4's PassRate for single-app tasks to drop from approximately 81% to 74%.
  • The Multi-App Challenge: Performance declines sharply in multi-app scenarios. GPT-4’s PassRate plummeted from 80.96% in SAST tasks to just 26.5% in MAMT tasks, highlighting a significant gap in current LLM planning capabilities.
  • Premature Termination: Advanced models like GPT-4 are occasionally more prone to "misjudging" their progress, terminating tasks early under the false assumption of completion.
  • Planning is Essential: The "observation-thought-action" paradigm proved superior; removing the planning step led to massive performance degradation.

Conclusion and Future Work

Mobile-Bench highlights the necessity of hybrid interaction spaces and more granular evaluation metrics for mobile agents. While APIs improve reliability and speed, challenges remain regarding API "hallucinations" and the complexity of multi-app reasoning. Future research should focus on fine-tuning models on mobile-centric datasets to improve planning and reduce execution errors.

Summary updated

BibTeX
@inproceedings{deng2024mobile,
  author = {Shihan Deng and Weikai Xu and Hongda Sun and Wei Liu and Tao Tan and Jianfeng Liu and Ang Li and Jian Luan and Bin Wang and Rui Yan and Shuo Shang},
  title = {{Mobile-Bench: An Evaluation Benchmark for LLM-based Mobile Agents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.478},
}
Figure