TL;DR
Existing graphical user interface (GUI) agents are largely limited to discrete "click" actions, making them clumsy at continuous tasks like dragging sliders, rotating objects, or drawing. ShowUI-$\pi$ bridges this gap by introducing a lightweight (450M parameter) flow-based generative model that unifies discrete clicks and continuous drags into a single framework, enabling smooth, real-time, closed-loop cursor control.
What Problem Does This Paper Address?
While large vision-language models (VLMs) have made massive strides in digital automation, their action spaces remain fundamentally constrained. Most current GUI agents treat actions as discrete text tokens (e.g., predicting a single (x, y) coordinate to click or a simple (start, end) pair for a linear drag).
This discrete formulation fails in dynamic or high-degree-of-freedom scenarios that humans navigate effortlessly. Tasks like solving a rotational Captcha, tracking a video timeline in Adobe Premiere, or sketching on a digital canvas require continuous, on-the-fly visual feedback and incremental cursor adjustments. Without a way to process streaming visual observations and generate fluid trajectories, current agents remain "clunky" and prone to compounding errors.
Methods
ShowUI-$\pi$ adapts flow-matching techniques—originally popularized in physical robotics—to the digital realm, treating the cursor as a "digital dexterous hand."
Streaming Screenshots + Query
│
▼
┌──────────────────────────┐
│ SmolVLM Backbone │
└────────────┬─────────────┘
│ Interleaved Attention
▼
┌──────────────────────────┐
│ Flow Matching Expert │ ──► Incremental Velocity Field (v_θ)
└──────────────────────────┘
Key architectural and training innovations include:
- Unified Action Representation: Instead of using separate heads or token formats for different actions, the authors elegantly unify clicks and drags. Every interaction is represented as a sequence of $(x, y, m)$ triplets, where $m$ indicates the mouse button state (
upordown). A click simply becomes a minimal, two-step drag trajectory:[(x, y, down), (x, y, up)]. - Flow-Based Action Generation: Built on top of a
SmolVLA-450Marchitecture, the model uses a lightweight transformer-based action expert. Instead of predicting absolute positions directly, it learns a time-conditioned velocity field ($v_\theta$) via flow matching, generating stable and precise trajectories from streaming visual inputs. - Loss Reweighting & Directional Regularization: To ensure the cursor lands exactly where it needs to, the authors apply a reweighting scheme that penalizes errors heavily at the critical start and end points of a trajectory. Additionally, they introduce a directional regularization loss based on cosine similarity to prevent cursor jitter and orientation errors.
Datasets
To train and evaluate this continuous control paradigm, the authors introduced two major resources:
- ScreenDrag Dataset: A dataset containing 20K manually collected and synthesized drag trajectories across 11 task categories. It spans five diverse domains: PowerPoint, OS Desktop/File Manager, Handwriting, Adobe Premiere Pro, and Captcha solving.
- ScreenDrag Benchmark: A evaluation suite consisting of 505 real-world drag tasks. Crucially, it supports both offline open-loop evaluation (measuring Average Trajectory Error and Endpoint Accuracy) and online closed-loop evaluation (measuring Task Success Rate) using a data-driven simulator that updates the screen state based on the agent's intermediate cursor positions.
Key Insights and Ideas
- The "Alignment Tax" on GUI Agents: During evaluation, proprietary models like OpenAI's Operator completely failed the Captcha tasks because their safety filters/RLHF training caused them to explicitly refuse the action (e.g., stating "I am unable to solve CAPTCHAs").
- The Limits of Pure Language Modeling: Traditional language-based GUI agents often suffer from a "wrong primitive choice" bias. Because they are pre-trained predominantly on discrete click data, they frequently attempt to approximate a continuous drag by spamming a series of local left-clicks, failing the task entirely.
- Flow Matching > Diffusion & Language for GUI: Flow matching delivered significantly better trajectory precision and lower error rates compared to diffusion policies or discrete tokenization, highlighting its superior training stability for digital cursor tracking.
- Frequent Re-observation is Critical: Ablation studies showed that fewer execution steps per predicted action chunk yield the highest accuracy, proving that frequent visual feedback loops are essential for fine-grained digital manipulation.
Key Results
ShowUI-$\pi$ achieved state-of-the-art results on the ScreenDrag benchmark despite its compact size:
- Online Success Rate: ShowUI-$\pi$ achieved an overall success rate of 26.98%, outperforming the best proprietary baseline, Gemini-2.5-CUA (22.18%), and OpenAI's Operator (13.27%).
- Domain Strengths: It showed massive improvements in highly non-linear domains, such as PowerPoint rotation tasks and Handwriting, where traditional agents struggle to formulate continuous paths.
- Offline Accuracy: The model achieved an 78.55% endpoint accuracy and the lowest overall trajectory error (159.05 pixels) compared to diffusion and language baselines.
Limitations and Future Work
While ShowUI-$\pi$ proves the viability of flow-based models for GUI automation, it has a few notable limitations:
- Model and Data Scale: The model is highly compact (450M parameters) and trained on a relatively modest 20K trajectories.
- Weakened Grounding Capacity: Due to its small size, its pure visual grounding performance on standard click-based benchmarks (like ScreenSpot-Pro) lags behind massive multi-billion parameter models.
Future Directions: The authors plan to scale up both the parameter count and the training dataset size, alongside exploring ways to integrate high-level text-centric planning with ShowUI-$\pi$'s low-level motor control.
Summary updated