Towards Lightweight Visual Routing for Mobile Agents via Fine-Grained Screenshot Synthesis

Digital Innovation Laboratory, Chunghwa Telecom Laboratories, Taoyuan, Taiwan
NeurIPS 2026 Workshop on On-Device Intelligence: Foundation Models under Real-World Constraints
TL;DR: A 2.3M-parameter router trained with zero real privacy-sensitive screenshots reaches 71.62% on real-world screenshots, above four zero-shot sVLMs up to 1,800× larger (best: PaliGemma 2 3B, 57.98%).

Visual routing with a general sVLM versus our lightweight router.

Visual routing decides which tool a mobile agent should call. Left: a mainstream sVLM misclassifies an instant-messaging screenshot as "Others" under zero-shot prompting. Right: our lightweight router, trained with the proposed synthesis pipeline, correctly classifies it as "IM".

Abstract

Mobile agents rely heavily on visual routing—a perception-level decision task that determines the UI context of the current screen in order to decide which downstream tool to invoke. For such high-frequency, narrowly-scoped routing subtasks, continual reliance on general-purpose small vision-language models (sVLMs) may impose disproportionate latency and resource overhead on edge devices; we further find that mainstream sVLMs exhibit markedly limited zero-shot performance on this structured task. We therefore argue for replacing sVLMs with a task-specific, ultra-lightweight model (<5M parameters) as the router. Training such a model, however, requires labeled data, and real screenshots involving privacy-sensitive categories (SMS, instant messaging) are difficult to obtain at scale—this data scarcity, not model architecture, is the central challenge this paper addresses. We propose a diagnosis-driven, fine-grained screenshot synthesis methodology: unlike content-agnostic conventional augmentation, we first characterize the visual distribution gap between synthetic and real screenshots using multiple distribution-distance metrics, identifying conversation background style and modern system UI rendering as two dominant sources. We hypothesize that reducing these two gaps improves generalization, and accordingly design two targeted mechanisms—Bubble-blending and modern SVG UI rendering—both of which are shown to reduce the identified gaps. A three-stage progressive evaluation (learnability on synthetic data, transferability to unseen public apps, and generalizability to real screenshots) yields results consistent with this hypothesis, with the combined configuration giving the largest and most consistent gains across backbones, particularly on real data. As one measure of the resulting model's practical utility, a 2.3M-parameter lightweight model trained entirely on synthetic and public data—without a single privacy-sensitive real screenshot—achieves 71.62% accuracy on a real-world test set, outperforming four general-purpose sVLMs with over 100× as many parameters evaluated under zero-shot prompting (e.g., PaliGemma 2 (3B), at 57.98%). These results support diagnosis-driven synthesis as a practical route to training task-specific, edge-deployable models under real-world data-access constraints.

Diagnosis: Where Is the Gap?

We diagnose before we augment. Our pipeline first uses Playwright to render naïve conversation layouts across 10 phone brands × 10 resolutions. Comparing these naïve synthetic screenshots with real ones, both qualitatively and with distribution-distance metrics (FID, MMD, Cosine Distance), reveals two dominant gaps:

  • Gap 1: Background style. Naïve synthesis uses plain backgrounds, while real chats feature diverse themed wallpapers.
  • Gap 2: UI rendering. Naïve synthesis uses text placeholders, while real Android/iOS screens have modern status, navigation, and action bars.
Naive synthesized screenshot versus a redacted real IM screenshot.

Naïve synthesized screenshot (left) vs. a real IM screenshot (right; redacted).

ConfigurationFID ↓MMD ↓Cos. Dist. ↓
Naïve108.020.14580.1066
+ Bubble-blending107.320.10340.0839
+ SVG UI Rendering105.910.13760.0998
Full100.560.10450.0819

Distribution distance to real screenshots. Both mechanisms narrow the gap.

Method: Two Targeted Mechanisms

The same conversation under Naive, +SVG UI, +Bubble-blending, and Full configurations.
Naïve+SVG UI+Bubble-blendingFull

The same conversation rendered under the four synthesis configurations. Content and layout are held fixed.


(A) Bubble-blending → closes Gap 1

Chat bubbles are blended with 124 real themed backgrounds (69 Instagram, 55 LINE). The bubble color is darkened in HSL space based on the background's dominant hue to keep text readable. This applies to instant messaging only, since SMS backgrounds are fixed to the system default.

(B) Modern SVG UI Rendering → closes Gap 2

Character and emoji placeholders are replaced with fine-grained vector reconstructions of the status bar (signal, battery, time), the navigation bar (call, video, camera), and the action bar (microphone, gallery, stickers).

Privacy-safe training data. SMS and IM screenshots are fully synthesized, and the Other category comes from public datasets (RICO, MobileViews-600K). The resulting 8,100-image training set contains zero real conversational screenshots.

Results: Three-Stage Evaluation

We evaluate three lightweight backbones (EfficientViT-M0, MobileViT-XS, MobileNetV4-Conv-Small 0.5×) on progressively harder test sets: Synthesized (learnability) → Public UI (unseen apps) → Wild Anti-Fraud (821 real screenshots).

  • Synthesized: Full improves F1 by more than 13 points on average over Naïve.
  • Public UI: Precision stays at 1.00 for every configuration; no unseen-app screen is mistaken for IM.
  • Wild (real): Full beats Naïve on all three backbones (+6.1 to +9.2 F1). The best model, EfficientViT-M0, reaches 71.62% accuracy.
  • Complementary mechanisms: only Full drives both IM→Other and IM→SMS errors to their lowest points.
Accuracy and F1 on the Wild Anti-Fraud test set for three backbones under four synthesis configurations.

Accuracy (left) and F1 (right) on the Wild Anti-Fraud test set (821 real screenshots).


ModelParamsAccPrec.Rec.F1
EfficientViT-M0 (Ours, Full)2.3M0.71620.55610.66530.5496
Moondream 20.5B0.36660.46950.32220.1987
InternVL2.51B0.45680.50930.56040.3508
PaliGemma 23B0.57980.50920.62240.4577
Phi-3.5-vision4.2B0.30690.42080.55710.2330

Comparison with sVLMs on the Wild Anti-Fraud test set. sVLMs use zero-shot CoT prompting; ours is trained on synthetic and public data only.

BibTeX

@inproceedings{lee2026towards,
  author    = {Lee, Cheng-Che and Cheng, Chia-Pin and Chang, Hsu-Sheng and Chou, Chia-Lin},
  title     = {Towards Lightweight Visual Routing for Mobile Agents via Fine-Grained Screenshot Synthesis},
  booktitle = {On-Device Intelligence: Foundation Models under Real-World Constraints},
  year      = {2026},
  url       = {https://openreview.net/forum?id=umdC2BfHOe}
}