# Reuse, Rewrite, or Reject: Evidence-Constrained Trace Reuse for Repeated Mobile GUI Control

DevFeed: [Reuse, Rewrite, or Reject: Evidence-Constrained Trace Reuse for Repeated Mobile GUI Control](<https://devfeed.tech/articles/reuse-rewrite-or-reject-evidence-constrained-trace-reuse-for-repeated-mobile-gui-control-99497.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.31712>)

Author: Bingyu Bai, Cheng Zhang, Erhu Feng

Published: 2026-10-26T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [computer-use](<https://devfeed.tech/topics/computer-use.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [android](<https://devfeed.tech/tags/android.md>), [control](<https://devfeed.tech/tags/control.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [execution](<https://devfeed.tech/tags/execution.md>), [framework](<https://devfeed.tech/tags/framework.md>), [gui](<https://devfeed.tech/tags/gui.md>), [gui-agents](<https://devfeed.tech/tags/gui-agents.md>), [inference](<https://devfeed.tech/tags/inference.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-inference](<https://devfeed.tech/tags/llm-inference.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [token-consumption](<https://devfeed.tech/tags/token-consumption.md>), [trace](<https://devfeed.tech/tags/trace.md>), [ui](<https://devfeed.tech/tags/ui.md>)

## AI overview

The proposed framework reuses mobile GUI execution traces selectively, validating each action against the current task instruction and live interface state. Its graph-text templates represent UI states and transitions alongside task intent, procedure structure, and typed slots for variable content; a record-template-replay process can reuse, adapt, or discard individual transitions. On AndroidWorld, the authors report about 80% lower LLM token use across five base agents, with most achieving at least 1.5x speedup over LLM-only execution. Real-device tests on Android and HarmonyOS report 70.7-79.8% action reuse and over 2x speedup in most evaluated configurations. Results are reported for given execution traces and specific evaluation settings.

## Source excerpt

arXiv:2610.31712v1 Announce Type: cross Abstract: Mobile GUI agents frequently perform repetitive tasks with similar interaction procedures. Reusing previous executions can reduce redundant LLM inference and execution overhead, but variations in user instructions and execution environments may invalidate previously successful actions. We systematically characterize these variations into six representative categories and observe that such changes do not necessarily invalidate entire procedures: individual transitions can remain reusable when validated against the current task context and interface state. Based on this insight, we propose graph-text templates for selective execution-trace reuse. The graph captures UI states and action transitions, while the text encodes task intent, procedural structure, and typed slots for variable content. A record-template-replay framework constructs templates from verified executions and leverages the current instruction and live UI state to reuse, adapt, or discard individual transitions. Given an execution trace, our framework reduces LLM inference token consumption by approximately 80% on average across five base agents on AndroidWorld, with most agents achieving at least 1.5-fold execution speedup over LLM-only execution. In real-device evaluations on Android and HarmonyOS, our framework achieves action reuse ratios of 70.7-79.8% while maintaining over 2-fold execution speedup in most evaluated configurations.