arXiv:2608.22577cs.AIAug 2026

Manuscript Offprint

arXiv:2608.22577

CausalCache: Conditional High-Fidelity Restoration for Long-Horizon GUI Agents

Jiaxuan Luo, Zhanfeng Liao, Jiayao Teng, Yuan Wang

Abstract

Long-horizon GUI agents can retain complete action histories as compact text, but only a few historical screenshots fit in active context. We formulate this as budgeted fidelity restoration: every event remains summarized, while a fixed budget B determines which events regain their archived screenshots. Recent-B assigns all visual slots to the latest events. CAUSAL-CACHE instead scores the complete history and swaps in an older event only when its predicted utility exceeds that of a recent event. A history-gated key/value adapter modifies only restored history-image tokens and is exactly bypassed when no history image is active, preserving current-screen processing. The adapter and selector are trained with matched-budget interventions on desktop trajectories and evaluated zero-shot on mobile. On OSWorld-Verified, activating historical screenshots improves success by about 13 percentage points over summary-only memory. Under the official 15-step limit, CAUSALCACHE and Recent-4 are statistically indistinguishable; in a 30-step diagnostic, CAUSALCACHE achieves 46.7% success versus 42.4% (+4.3 points). Zero-shot on 117 MobileWorld tasks, CAUSALCACHE improves over Recent-4 from 30.2% to 36.8%. The gain is concentrated on a predefined cross-app memory-candidate split (30.6% vs. 19.4%, +11.2 points), while single-app controls show no detectable difference (43.6% vs. 42.4%). These results show that selecting which past events regain pixels is more effective than spending a fixed visual budget entirely on recency.

Introduction

Autonomous agents that follow natural-language instructions and operate graphical user interfaces promise broad practical value: they can automate repetitive digital chores, carry out multi-application workflows on behalf of their users, and extend what a single person can accomplish on desktop and mobile devices (Xie et al. 2024; Rawles et al. 2025; Xu et al. 2026). Delivering that value on long tasks turns memory into a first-order design problem: GUI agents accumulate screenshots, actions, text arguments, coordinates, and interface changes over many decisions. A complete action trace persists cheaply as compressed text, but keeping every screenshot active is costly and distracting. Each past event therefore has two policy-visible fidelities: a summary-only record and, when needed, that same record with its archived screenshot reattached. The memory-control question is not only which events remain recorded, but which recorded events should be exposed again in high-fidelity pixels (Lu et al. 2025; Zeng et al. 2026; Shi et al. 2026).

Our central claim is that the object of control is event fidelity, not event inclusion. Existing controllers retain recent events, retrieve visually similar screenshots, or learn salience from task supervision (Zeng et al. 2026; Shi et al. 2026; Liu et al. 2026). Yet the value of promoting a summarized event back to pixels depends on which images are already active: without recent images, a distant screenshot may lack local grounding; with a saturated recent window, another image may be redundant. Moreover, the action policy must consume the reattached pixels. Our experiments show that a strong frozen policy exhibits weak and unreliable average selectivity under matched replacement probes, although it can still benefit from restored evidence on a subset of states; HGKV sharpens this content sensitivity and provides a more reliable utility signal for training and deployment.

CAUSALCACHE accordingly treats GUI memory as conditional high-fidelity restoration (“causal” denotes policy-specific effects of matched prompt interventions, rather than structural causal discovery). Every event remains in the complete low-fidelity action trace, and an archived screenshot is reattached only when that event is promoted into the active visual context; no pixels are reconstructed from text. Under a budget of B high-fidelity history images, Recent-B promotes the latest B events. CAUSALCACHE reallocates the same B promotions over the complete trace, with recent events as the default: a distant event enters only by displacing a recent image whose conditional marginal utility it exceeds. Because every compared allocation carries the same number of images, the contrast isolates fidelity allocation from visual capacity, and how many non-recent events are actually promoted is measured as a result, never preset. Figure 1 illustrates this reallocation on a real cross-application episode.

Learning to use reattached pixels must not corrupt the base agent. Full-layer adaptation simultaneously changes current-screen understanding, action syntax, and grounding. CAUSALCACHE instead trains a history-gated KV interface (HGKV) that touches only restored history-image tokens and is structurally bypassed at zero budget, with a per-arm-anchored difference-of-differences (DiD) objective in which every arm is anchored to its own frozen score: uniform amplification of any history cancels exactly, and only selective use of target-relevant content reduces the loss.

Figure

same budget: exactly B events carry pixels

recent restored distant summary only frozen policy

Figure 1: CAUSALCACHE on a real cross-app episode (schematic; drawn with B=4). The agent must compose an SMS containing the order number it saw earlier in a shopping app. Every event persists as a one-line text summary; a budget of B events may additionally carry their archived pixels. After the app switch the evidence frame e7e_7 lies outside the recent window: Recent-B spends every slot on the latest events and types the wrong number, while CAUSALCACHE swaps one recent slot for e7e_7 at the same budget and succeeds.

Our contributions are:

• a conditional fidelity-restoration formulation of GUI memory: all events persist as compressed action records, while Recent-B and CAUSALCACHE allocate the same B summary-plus-image promotions over that complete trace;

• a policy-preserving HGKV interface trained on matched-budget replacement groups with per-arm-anchored DiD supervision, exact no-history parity, and pre-specified drift caps;

• a budget-aware restoration selector over the complete summarized trace, trained on desktop data only and evaluated zero-shot on mobile and desktop benchmarks.

References (43)