Jul 2026Zhan Qu

SPECTRA: On-Device Cognitive Perturbation and Trajectory Analysis for Autonomous Edge-Cloud GUI Grounding

GUI AgentGUI GroundingDevice-Cloud CollaborationOn-device AIACM MM 2026

We are happy to share that SPECTRA has been accepted to ACM MM 2026.

GUI grounding maps a natural-language instruction to the coordinates of the correct UI element. Powerful cloud agents perform well, but sending every task to the cloud increases latency and cost. A practical device–cloud system should solve easy tasks locally and request cloud assistance only when the edge agent is likely to fail.

The challenge is that lightweight GUI agents can be confidently wrong. User interfaces contain tiny icons, repeated list items, and visually similar controls, so an incorrect coordinate may still receive high confidence. SPECTRA therefore asks a different question: rather than trusting what the agent reports, can we actively test whether its internal decision is stable?

Cognitive instability

We observe that while edge agents may output coordinates with high confidence based on priors, their anchoring on critical visual cues is often fragile. An agent that truly understands the instruction establishes robust alignment between the target and the global GUI context, whereas a guessing or hallucinating agent may overfit to spurious visual correlations. Under minute perturbations, these fragile correlations collapse, causing significant drift in the agent's latent states. We call this behavior cognitive instability.

SPECTRA adopts an active introspection paradigm to expose this instability. Instead of passively observing the output distribution, it stress tests the agent's visual cognition and measures the dispersion of its hidden state trajectories. Greater topological divergence suggests unreliable grounding and triggers a request for cloud assistance before any coordinates are decoded.

SPECTRA design

SPECTRA consists of two target designs:

  1. Saliency-Guided Targeted Perturbation computes a norm saliency map during visual reasoning to identify visual anchors—the GUI regions activated by the edge agent for prediction. A sliding window preserves local spatial continuity, after which independently sampled binary masks are injected into selected layers of the visual encoder and the merger module to simulate diverse cognitive stress tests.
  2. Efficient Cognitive Trajectory Analysis performs a batch of parallel forward passes during the prefill phase. From these passes, it extracts the hidden states of the last token from the penultimate language model layer as cognitive trajectories in a high dimensional space, then uses a lightweight transformer-based predictor to quantify their topological divergence.

SPECTRA constructs adversarial masks on critical visual anchors, extracts latent cognitive trajectories from parallel prefill passes, and autonomously decides between local action and a cloud request.

During deployment, the score produced by the predictor is compared with a threshold to determine whether the edge prediction should be adopted or the task should be offloaded to the cloud. The threshold can also be adjusted dynamically when cloud availability changes.

Main results and analysis

We evaluate SPECTRA on MMBench-GUI, ScreenSpot-Pro, and UI-I2E-Bench, using InfiGUI-G1-3B and Holo1.5-3B as edge agents and GTA1-32B as the cloud agent. AUC measures request decision discrimination, SRCC measures correlation between request scores and spatial grounding error, and AUCG measures collaborative gain across different request rates. The table below reproduces the paper's main results; bold denotes the best result and italic the second best. MMB and SSP abbreviate MMBench-GUI and ScreenSpot-Pro.

Edge agentMethodMMB AUCMMB SRCCMMB AUCGSSP AUCSSP SRCCSSP AUCGUI-I2E AUCUI-I2E SRCCUI-I2E AUCG
InfiGUI-G1-3BRandom51.051.8652.3049.901.6248.6947.69-4.2647.22
InfiGUI-G1-3BLN-Confidence57.379.4953.0362.828.6953.2751.65-1.6638.24
InfiGUI-G1-3BLN-Entropy63.1117.8257.2165.0816.7753.6254.604.0348.84
InfiGUI-G1-3BCoT60.5617.8157.4156.8914.4949.4558.2214.0569.58
InfiGUI-G1-3BEigenScore55.778.3856.0256.8610.0852.1553.905.9553.29
InfiGUI-G1-3BSelf-Consistency61.3015.5563.4466.6515.1657.0357.447.5045.57
InfiGUI-G1-3BSPECTRA (Ours)74.5735.4468.4069.1536.7256.3267.2922.6071.39
Holo1.5-3BRandom50.12-0.7452.2549.96-1.8452.4549.55-2.6951.15
Holo1.5-3BLN-Confidence49.22-9.6254.6070.825.7272.1848.75-10.3440.65
Holo1.5-3BLN-Entropy69.2619.0569.4383.6226.5879.7969.1321.0960.55
Holo1.5-3BCoT---------
Holo1.5-3BEigenScore62.2812.9463.4172.8816.4869.3758.2210.3850.49
Holo1.5-3BSelf-Consistency61.1810.4163.4773.9021.2473.2856.705.3948.26
Holo1.5-3BSPECTRA (Ours)75.6234.9270.2576.5426.0565.9272.3732.5263.82

SPECTRA outperforms competing baselines across most request decision metrics. On MMBench-GUI with InfiGUI-G1-3B, it surpasses the strongest baseline by 11.46% in AUC and 17.62% in SRCC, demonstrating effective request decisions across edge agents and benchmarks.

For collaborative performance, SPECTRA achieves the highest AUCG on MMBench-GUI and UI-I2E-Bench with both edge agents. When paired with GTA1-32B, InfiGUI-G1-3B and Holo1.5-3B retain 93.44% and 95.60% of the cloud agent's performance at average request rates of 37.58% and 39.24%, respectively.

Cost analysis

Benefiting from parallel prefill, SPECTRA maintains latency comparable to baselines that rely on outputs in the local execution path. In the cloud execution path, completing request assessment during prefill avoids costly local decoding and reduces edge latency by over 97%. Baselines must generate complete response sequences before making a request decision.

Perturbations (NN)Mean latency (s)p95 latency (s)Compute (TFLOPs)
14.71 ± 0.355.2614.99 ± 0.37
35.50 ± 0.376.1944.98 ± 1.12
56.44 ± 0.467.0774.97 ± 1.86
76.79 ± 0.377.39104.95 ± 2.60

The table reports actual edge deployment costs on ScreenSpot-Pro with InfiGUI-G1-3B. p95 denotes 95th percentile latency. As NN increases, compute grows linearly while mean latency increases sublinearly. The mean latency at N=5N=5 increases by only 36.7% relative to N=1N=1. The complete edge deployment occupies approximately 7.97 GB of VRAM. The trajectory predictor adds only approximately 1.9 ms of latency and 46 MB of VRAM, making its practical overhead negligible.

Takeaway

SPECTRA establishes an active introspection paradigm for edge agents by amplifying their inherent cognitive instability. Saliency-Guided Targeted Perturbation masks salient GUI regions to simulate visual cognitive stress, while Efficient Cognitive Trajectory Analysis quantifies the topological divergence of the trajectories without autoregressive decoding. The results demonstrate that SPECTRA provides reliable and efficient cloud request assessment, enabling edge agents to identify their capability boundaries and use cloud resources only when necessary.

Further reading