Skip to main content
QUICK REVIEW

[Paper Review] AutoDroid: LLM-powered Task Automation in Android

Hao Wen, Yuanchun Li|arXiv (Cornell University)|Aug 29, 2023
Topic ModelingComputer Science12 citations
TL;DR

AutoDroid uses LLMs augmented with app-specific memory to automate arbitrary tasks on Android apps, achieving high action accuracy and task success with reduced query costs.

ABSTRACT

Mobile task automation is an attractive technique that aims to enable voice-based hands-free user interaction with smartphones. However, existing approaches suffer from poor scalability due to the limited language understanding ability and the non-trivial manual efforts required from developers or end-users. The recent advance of large language models (LLMs) in language understanding and reasoning inspires us to rethink the problem from a model-centric perspective, where task preparation, comprehension, and execution are handled by a unified language model. In this work, we introduce AutoDroid, a mobile task automation system capable of handling arbitrary tasks on any Android application without manual efforts. The key insight is to combine the commonsense knowledge of LLMs and domain-specific knowledge of apps through automated dynamic analysis. The main components include a functionality-aware UI representation method that bridges the UI with the LLM, exploration-based memory injection techniques that augment the app-specific domain knowledge of LLM, and a multi-granularity query optimization module that reduces the cost of model inference. We integrate AutoDroid with off-the-shelf LLMs including online GPT-4/GPT-3.5 and on-device Vicuna, and evaluate its performance on a new benchmark for memory-augmented Android task automation with 158 common tasks. The results demonstrated that AutoDroid is able to precisely generate actions with an accuracy of 90.9%, and complete tasks with a success rate of 71.3%, outperforming the GPT-4-powered baselines by 36.4% and 39.7%. The demo, benchmark suites, and source code of AutoDroid will be released at url{https://autodroid-sys.github.io/}.

Motivation & Objective

  • Motivate scalable mobile task automation without manual task-specific wiring or demonstrations.
  • Bridge smartphone GUI representations to LLMs via a structured HTML-like UI prompt.
  • Augment LLMs with app-specific knowledge through dynamic UI analysis and simulated task synthesis.
  • Reduce LLM query cost with memory-guided prompts, UI merging, and token pruning.
  • Demonstrate effectiveness on a new Android task automation benchmark with diverse apps.

Proposed method

  • Represent GUI states as simplified HTML-like prompts to guide LLMs.
  • Construct a UI Transition Graph by offline random exploration of apps.
  • Generate simulated tasks from the UTG to inject app knowledge into prompts.
  • Augment prompts with relevant app memory using similarity-based retrieval.
  • Tune local LLMs with app-specific data to improve cost-efficiency and accuracy.
  • Apply multi-granularity query optimization including token pruning and GUI merging.

Experimental results

Research questions

  • RQ1Can an LLM-powered agent complete unseen smartphone tasks with high accuracy across multiple apps?
  • RQ2How much can app-specific memory and simulated task synthesis improve planning and action selection for mobile task automation?
  • RQ3What is the trade-off between online LLM query cost and task success rate in AutoDroid?
  • RQ4How effective are prompt augmentation and local LLM tuning in reducing dependency on online LLMs?

Key findings

  • AutoDroid achieved an action accuracy of 90.9% on executed steps.
  • Task completion success rate reached 71.3% on GPT-4 powered usage.
  • AutoDroid outperformed GPT-4-powered baselines by 36.4% in task completion rate.
  • Cost of querying LLMs was reduced by 51.7% compared to baselines.
  • Benchmark comprised 158 tasks across 13 open-source Android apps.
  • Demonstrates the feasibility of combining LLMs with app-specific memory for scalable mobile task automation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.