Latent memory is gaining ground as a lightweight history supplement for GUI agents. It supplies history to a frozen vision-language model via prefix vectors trained with step-wise cross-entropy (CE). While resulting gains are naturally attributed to encoded history, our controlled experiments show they primarily stem from action revision. The prefix learns to alter the model's default actions. However, this revision is unscoped because step-wise CE pushes outputs toward reference actions at every step without explicitly preserving correct decisions. Consequently, it repairs errors but also breaks 8-13% of initially correct answers. Overall accuracy metrics hide these losses. We therefore propose ScopeMem, a latent-memory method for scoped revision. Its encoder conditions prefix generation on the model's initial answer and is trained to correct errors while preserving correct decisions. On the controlled ablation set, ScopeMem reduces the share of broken correct decisions to 5.6% while repairing more errors than any evaluated CE-trained prefix. On AndroidControl, GUI-Odyssey, and zero-shot AITW, ScopeMem outperforms all evaluated prompting and latent-memory baselines, enabling a frozen Qwen3-VL-8B to match or surpass GUI-specialized agents and Qwen3-VL-32B.
Figures & tables
Figure 1: Revision cuts both ways. Of the frozen actor’s 1,463 decisions (centre), a fixed-query latent-memory prefix (left) repairs 196 errors but harms 115 correct decisions. Its 5.5-point accuracy gain (pp: percentage points) hides these harms. ScopeMem (right) learns to focus revisions on the actor’s errors, repairing 254 and harming 49.
Figure 2: ScopeMem gives the frozen actor a second opinion on its first. The actor 1 observes the context and 2 answers alone in a first pass. The encoder Eϕ 3 reads the first opinion, its confidence, the task and textual history to generate a prefix. This prefix is 4 prepended to the same context, and the actor 5 answers again. Gold parts exist only in training: 6 the preservation term is active when the first opinion matches the reference action, and 7 gradients update Eϕ only.
Table 1: Only ScopeMem combines learned revision, access to the first opinion, and an objective for preserving correct decisions. Reads : sees the first opinion; learned : trained; prevented : preservation is a training objective; reported : repairs and harms reported; : partially.
Figure 3: Prefixes trained with cross-entropy alone also change correct decisions, and confidence barely separates repairs from harms. (a) Ablation set: gain over the plain actor (pp), share of correct actions changed, and harm rate. Shading marks ScopeMem . (b) AUC of confidence signals and expanded features for detecting the plain actor’s errors and separating ScopeMem ’s repairs from harms.
Method
AndroidControl
GUI-Odyssey
AITW (zero-shot)
EM
TM
EM
TM
Gen.
Inst.
Google
Single
Shop
Macro
General-purpose models
Qwen3-VL-4B
60.64
76.42
57.18
78.06
54.19
68.05
57.40
66.67
53.44
59.95
Qwen3-VL-32B
61.88
78.37
61.84
80.30
57.54
69.82
62.13
63.16
56.87
61.90
InternVL3.5-8B
35.28
57.80
29.52
60.41
40.22
39.64
28.99
47.37
34.35
38.12
GLM-4.1V-9B
40.96
70.74
35.80
67.56
37.43
44.97
39.05
40.35
35.88
39.54
Table 2: On the frozen actor, only ScopeMem matches or beats GUI-specialised models on all three benchmarks. Step accuracy (%) on the main test sets; EM: full action; TM: action type; AITW subsets General, Install, GoogleApps, Single, WebShopping and their mean (Macro). ↪ : on the frozen plain actor ( † : on Qwen2.5-VL-7B); last row: gain in pp.
Benchmark
Repairs / harms
Only one system
Advantage (95% CI)
ScopeMem
Mem-W
keeps
repairs
AndroidControl
57/27
55/36
16/7
13/11
+1.95 [ − 0.56, 4.62]
GUI-Odyssey
264/36
218/59
33/10
71/25
+4.29 [2.76, 5.84]
AITW
87/32
82/44
17/5
15/10
+2.03 [0.36, 3.77]
Table 3: Mem-W breaks more correct decisions than ScopeMem . Counts on the main test sets are relative to the plain actor. “Only one system” counts correct steps only one preserves or errors only one repairs ( ScopeMem /Mem-W). Advantage: ScopeMem ’s accuracy minus Mem-W’s (pp, 95% CI).
Second epoch
R
H
Rate (%)
Acc
Gain
repair
harm
Fixed-query prefix
cross-entropy alone
196
115
33.6
13.1
65.62
+5.54
Task-only encoder
cross-entropy alone
246
71
42.1
8.1
72.04
+11.96
scoped
242
58
41.4
6.6
72.66
+12.58
Table 4: Scoped preservation lowers harms for every encoder. Matched variants on the ablation set ( first epoch only : checkpoint before the second epoch). Rates: R over 584 errors, H over 879 correct steps; Acc: accuracy (%); Gain: over the plain actor (pp).
Figure 4: On the ablation set, arrows compare the same encoder trained with cross-entropy alone and with scoped (solid) or unscoped (dashed) preservation. Only ScopeMem lowers harms and raises repairs together, reaching the shaded region. The fixed-query prefix (harm rate 13.1%, repair rate 33.6%) lies outside the plotted range.
Figure 5: Case study: one recalled episode repairs step 7 and breaks step 9 for Mem-W, whereas ScopeMem revises step 7 and keeps step 9.
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Variant
Main
Second
Third
Task only, CE
246/71
250/70
241/70
Task only, scoped
242/58
248/57
234/58
History, CE
240/68
243/66
242/67
History, scoped
235/53
236/50
234/54
First opinion, CE
243/67
246/64
249/64
First opinion, unscoped
212/47
217/45
217/48
Appendix
Table 9: Scoped preservation reduces harms for every encoder in all three runs. Repairs/harms on the ablation set in each training run.
Recent advances in vision-language models (VLMs) have substantially improved the capabilities of GUI agents, while memory augmentation has emerged as a promising approach for reusing knowledge from past interactions. However, existing memory augmented GUI agents typically adopt a fixed representation strategy, providing retrieved experience as a static modality. It remains unclear whether a single memory modality is consistently optimal, or how modality preference changes across interaction steps. In this work, we conduct a systematic study of memory modality in VLM based GUI agents. Across GUI benchmarks, we find that the preferred memory representation is strongly step dependent. Motivated by the finding, we introduce SwitchMem, a routing framework that dynamically selects between textual and visual memory representations at each step. Across three GUI benchmarks, SwitchMem outperforms memory augmented baselines that rely on static memory representations. Our findings validate our claim that memory modality is a step dependent decision rather than a fixed design choice. Code and project resources are available at https://txxnrd.github.io/switchmem
Taeyun Roh, Suhyeong Park, Gijin Kim +2
Korea University · Myongji University · AIGEN Sciences
GUI agents are beginning to operate the web, mobile, and desktop as interactive worlds, where successful control depends on carrying forward visual, procedural, and task-level evidence beyond the fleeting present screen. Yet most agents still treat memory as an external, human-readable artifact: histories are summarized, categorized, retrieved, and reinserted as text or structured records before being encoded again by the policy. This creates a mismatch between the representational form in which experience is stored and the latent embedding sequence over which modern GUI policies actually act. We introduce Mem-W, a series of latent-memory-native GUI agents that treat memory as part of the agent's continuous context rather than as an auxiliary symbolic scaffold. Mem-W weaves both historical trajectories (as experiential memory) and in-session segments (as working memory) into compact memory tokens through a shared trajectory-to-latent compressor. These tokens are woven with the current GUI observation and local context into one continuous embedding sequence, allowing the agent to read successes, failures, and unfinished progress through the same machine-native interface. Mem-W is trained with self-distillation and outcome-aware supervision to preserve decision-relevant state while filtering memory toward evidence that truly supports task success. Across four web and mobile navigation benchmarks, Mem-W consistently improves diverse backbones and memory-enhanced baselines, with gains of up to +30.0, suggesting that latent-context-native memory can serve as a scalable foundation for long-horizon GUI agency.
The remarkable progress of vision-language models (VLMs) has enabled GUI agents to interact with computers in a human-like manner. Yet real-world computer-use tasks remain difficult due to long-horizon workflows, diverse interfaces, and frequent intermediate errors. Prior work equips agents with external memory built from large collections of trajectories, but relies on flat retrieval over discrete summaries or continuous embeddings, falling short of the structured organization and self-evolving characteristics of human memory. Inspired by the brain, we propose Hybrid Self-evolving Structured Memory (HyMEM), a graph-based memory that couples discrete high-level symbolic nodes with continuous trajectory embeddings. HyMEM maintains a graph structure to support multi-hop retrieval, self-evolution via node update operations, and on-the-fly working-memory refreshing during inference. Extensive experiments show that HyMEM consistently improves open-source GUI agents, enabling 7B/8B backbones to match or surpass strong closed-source models; notably, it boosts Qwen2.5-VL-7B by +22.5% and outperforms Gemini2.5-Pro-Vision and GPT-4o.