DIMGen: Dynamic Intent Macro Generation for Efficient LLM-Driven Mobile Automation
Abstract
Mobile automation agents driven by large language models (LLMs) often suffer from inefficient, repetitive tap-and-swipe sequences that inflate token usage, increase latency, and strain device resources. In this paper, we introduce DIMGen: a dynamic intent macro generator for efficient LLM-driven mobile automation. DIMGen automatically mines, validates, and semantically labels manifest-declared intent macros, including deep link URIs and component action commands, and extends them with dynamic parameters retrieved from users' instructions at runtime, such as email messages, search queries, and phone numbers. Our two-phase system first performs offline template generation, statically parsing each APK's AndroidManifest.xml to extract intent filters, assembling parameterized ADB command templates, and recording required slots. At runtime, user instructions are matched to templates, slot values are extracted via lightweight regex or LLM prompts, and precise commands are instantiated and launched on a device. Applied to 7 popular Android apps and evaluated over 20 high-level tasks with 156 subtasks, our approach yields up to 17.3% higher task success rate and 7.5× speedup compared with primitive-action baselines, with 26.8% median reduction total, one action can save up to 7 low-level steps. We will release our code and template library, demonstrating a robust, efficient, and extensible path toward next-generation mobile automation.
BibTeX
@misc{lu2025dimgen,
author = {Wenrui Lu and Bufang Yang},
title = {{DIMGen: Dynamic Intent Macro Generation for Efficient LLM-Driven Mobile Automation}},
year = {2025},
doi = {10.1145/3737904.3768533},
}Ask Althea to put this paper to the test.
Loading related content...