AI
Mobile AI Agents Learn to Reuse Past Actions, Cutting AI Inference by 80%
Researchers propose a template-based framework that lets mobile GUI agents selectively repeat successful past interactions, dramatically reducing computational overhead.
A new research paper from arXiv describes a method that allows mobile GUI agents—AI systems that control smartphone interfaces—to intelligently reuse previous task executions rather than recomputing everything from scratch, leading to substantial gains in speed and efficiency.
The Challenge: Varying Contexts#
Mobile agents often face repetitive tasks that appear similar on the surface but differ in their specifics. User instructions change, device states evolve, and screen layouts shift between sessions. When an agent has already completed a task successfully, starting over means running the language model again to reason through every step—burning expensive compute for work that's been done before. Yet blindly replaying old actions fails because the environment is different: a button may have moved, or the instruction may ask for something slightly new.
The Solution: Selective Trace Reuse#
Rather than all-or-nothing replay, the researchers categorized six representative types of variation that commonly occur and discovered that most changes don't invalidate entire workflows. Instead, individual steps within a procedure often remain valid when checked against the current task and screen state.
Their framework, built on a record-template-replay cycle, works by:
- Converting successful execution traces into graph-text templates that capture both UI structure (states and transitions) and task intent
- Encoding procedural logic and variable slots so actions can be adapted to new contexts
- Evaluating each step during replay: reuse it if it still fits, rewrite it if it needs tweaking, or reject it if the situation has changed too much
Real-World Impact#
Testing across five different base agents on AndroidWorld—a benchmark for mobile task automation—the framework reduced language model token consumption by roughly 80% on average and sped up execution by at least 1.5 times compared to pure LLM-only approaches. In tests on actual Android and HarmonyOS devices, the system achieved action reuse rates of 70.7–79.8% while maintaining over 2-fold speedups in most configurations.
Why It Matters#
This work addresses a core inefficiency in today's AI-driven mobile automation: redundant computation. By letting agents learn from their own past, the approach makes mobile GUI automation faster and cheaper, bringing practical automation solutions closer to real-world viability where latency and cost matter.

