ShowUI-$π$: Flow-based Generative Models as GUI Dexterous Hands

Siyuan Hu, Kevin Qinghong Lin, Mike Zheng ShouarXiv 2025 · arXiv

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 (up or down). 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-450M architecture, 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:

  1. 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.
  2. 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.
Figure 1. Drag refers to a continuous interaction where the cursor maintains contact with the UI element while moving along a trajectory, rather than a single discrete click. Left: Visualization of ScreenDrag data domains. Right: ShowUI-π is a lightweight flow-based generative model for GUI Automation that handles dragging actions requiring on-the-fly observation, such as drawing and Captcha solving. Given a query, ShowUI-π efficiently generates corresponding continuous trajectory from streaming visual observations.

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

Abstract

Building intelligent agents capable of dexterous manipulation is essential for achieving human-like automation in both robotics and digital environments. However, existing GUI agents rely on discrete click predictions (x,y), which prohibits free-form, closed-loop trajectories (e.g. dragging a progress bar) that require continuous, on-the-fly perception and adjustment. In this work, we develop ShowUI-$π$, the first flow-based generative model as GUI dexterous hand, featuring the following designs: (i) Unified Discrete-Continuous Actions, integrating discrete clicks and continuous drags within a shared model, enabling flexible adaptation across diverse interaction modes; (ii) Flow-based Action Generation for drag modeling, which predicts incremental cursor adjustments from continuous visual observations via a lightweight action expert, ensuring smooth and stable trajectories; (iii) Drag Training data and Benchmark, where we manually collect and synthesize 20K drag trajectories across five domains (e.g. PowerPoint, Adobe Premiere Pro), and introduce ScreenDrag, a benchmark with comprehensive online and offline evaluation protocols for assessing GUI agents' drag capabilities. Our experiments show that proprietary GUI agents still struggle on ScreenDrag (e.g. Operator scores 13.27, and the best Gemini-2.5-CUA reaches 22.18). In contrast, ShowUI-$π$ achieves 26.98 with only 450M parameters, underscoring both the difficulty of the task and the effectiveness of our approach. We hope this work advances GUI agents toward human-like dexterous control in digital world. The code is available at https://github.com/showlab/showui-pi.
BibTeX
@misc{hu2025showui,
  author = {Siyuan Hu and Kevin Qinghong Lin and Mike Zheng Shou},
  title = {{ShowUI-$π$: Flow-based Generative Models as GUI Dexterous Hands}},
  year = {2025},
  eprint = {2512.24965},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.24965},
}
Figure