Automatic Macro Mining from Interaction Traces at Scale
Forrest Huang, Gang Li, Tao Li, Yang Li
TL;DR
This work tackles the challenge of extracting high-level, executable macros that capture user tasks from large-scale mobile interaction traces. It introduces an LLM-grounded two-stage pipeline—task extraction and action/trace merging—to produce semantically described, replayable macros and a Macro Replayer for execution on Android devices. The authors demonstrate the approach on RICO and Rehearsal datasets, extracting tens of thousands of macros (e.g., 23,117 from RICO) and achieving meaningful task descriptions and a substantial live-execution success rate (76.7%). They also release open-source macro datasets and discuss applications in interactive task understanding, UI automation, and how-to knowledge sharing, while acknowledging limitations and outlining future improvements. Overall, the method enables scalable discovery and execution of cross-app tasks, with potential to empower automation and knowledge transfer in mobile UX research and practice.
Abstract
Macros are building block tasks of our everyday smartphone activity (e.g., "login", or "booking a flight"). Effectively extracting macros is important for understanding mobile interaction and enabling task automation. These macros are however difficult to extract at scale as they can be comprised of multiple steps yet hidden within programmatic components of mobile apps. In this paper, we introduce a novel approach based on Large Language Models (LLMs) to automatically extract semantically meaningful macros from both random and user-curated mobile interaction traces. The macros produced by our approach are automatically tagged with natural language descriptions and are fully executable. We conduct multiple studies to validate the quality of extracted macros, including user evaluation, comparative analysis against human-curated tasks, and automatic execution of these macros. These experiments and analyses show the effectiveness of our approach and the usefulness of extracted macros in various downstream applications.
