On-Device AI Agents: The Evolution and Roadmap of GUI Agents
GUI Agents are reshaping how humans interact with devices by letting AI models operate graphical interfaces directly. This article traces the technology's evolution through three distinct paradigms—from prompt-engineered text-reasoning frameworks, to imitation-learning-based vision-language models, to reinforcement-learning agents with planning capabilities—and outlines why on-device deployment matters for privacy, latency, and personalization, along with the key engineering directions to watch over the next few years.
On-Device AI Agents: The Evolution and Roadmap of GUI Agents
From “Talking” to “Operating”: Why GUI Agents Matter
For the past decade, the dominant thread in human-computer interaction has been “humans adapting to machines”—users must learn an app’s button layouts, menu hierarchies, and interaction logic. The maturation of large language models now makes a fundamental reversal possible: an agent performs interface operations on the user’s behalf, while the human simply expresses intent.
The GUI (graphical user interface) has been the primary interaction medium of the mobile internet era, but it was fundamentally designed for human eyes and hands: information is rendered as pixels, actions depend on touch coordinates, and there is no unified programmatic interface. Early attempts at automation relied on custom APIs built for each app, but this approach suffered from low interface coverage, high maintenance costs, and the fact that many apps simply expose no external interfaces at all. Enabling models to directly “read” a screen and click, swipe, and type like a human has therefore become the central challenge of on-device intelligence.
Between 2023 and 2025, GUI Agent technology progressed through three distinct paradigm stages. Understanding this evolution is essential for developers who need to judge where the technology is heading and choose an architecture.
Stage 1: Bolt-On Frameworks—Prompt-Engineered Text-Reasoning Agents (2023–2024)
1.1 The Core Idea
The guiding principle of this stage was “don’t change the model, change the environment.” Since LLMs of that era lacked visual capabilities, researchers built a translation layer around the model that converted the UI into structured text the model could read:
- DOM/View-tree serialization: Nodes, attributes, and interactive elements from the UI’s render tree were extracted into a text sequence and fed to the model as part of the prompt; the model then output action instructions that an external executor performed.
- Set-of-Mark screenshot labeling: Each interactive element in a screenshot was overlaid with a numbered bounding box. The model indirectly expressed actions such as “click element 3,” and a coordinate mapping table translated these into real screen coordinates.
1.2 Capability Limits
This paradigm had a low engineering barrier, required no model training, and allowed rapid validation of use cases. But its ceiling was equally clear:
- The model never truly “saw” the interface. It processed a lossy textual transformation in which layout, icon semantics, and visual hierarchy were largely lost. Performance collapsed on non-standard controls and custom-rendered surfaces, such as UIs drawn by game engines.
- Performance was bottlenecked by the external toolchain. OCR errors, incomplete view-tree extraction, or shifted detection boxes cascaded into decision errors.
- Prompt engineering became hidden complexity. With limited context windows, full UI descriptions often exceeded the budget, requiring elaborate compression and truncation strategies that made the system brittle and hard to generalize.
In essence, agents at this stage performed logical reasoning over text summaries rather than genuine interface understanding. The stage validated that model-driven UI operation was feasible, but it quickly hit a ceiling.
Stage 2: Imitation-Learning VLMs—Native Perception (2024)
2.1 The Paradigm Shift
As vision-language model (VLM) pretraining capabilities leaped forward, the technical route shifted from “bolt-on conversion” to “built into the model.” New work began to:
- Take raw screen pixels as input, dropping the dependency on XML, DOM trees, or auxiliary detection models;
- Output atomic actions such as screen coordinates directly, rather than expressing them through intermediate representations;
- Perform imitation learning (behavioral cloning) on large-scale screenshot–action pairs, teaching the model how humans operate interfaces.
This meant the model began to “look” at screens the way people do: understanding icon semantics, recognizing visual hierarchy, and inferring spatial relationships between elements. It gained genuine adaptability to unstructured, text-free interfaces. This “nativeness” at the perception layer was a critical step toward practical GUI Agents.
2.2 Remaining Gaps
Imitation learning solved “seeing” and “clicking,” but complex tasks also require “thinking.” Pure imitation has two structural shortcomings:
- Out-of-distribution fragility: On UI states not covered by training data, the model degrades quickly, and errors compound across multi-step tasks.
- No planning or error recovery: Imitation captures the distribution of single-step actions, not a long-horizon, goal-driven decision policy. Tasks that require exploration, backtracking, and trade-offs—such as completing an order across multiple apps—remain out of reach.
Stage 3: RL-Driven Vision-Language Agents—The Decision-Making Breakthrough (2024–2025)
3.1 The Core Breakthrough
The key innovation of the current mainstream paradigm is the introduction of reinforcement learning (RL) to tackle complex decision-making. Early work demonstrated the feasibility of training GUI Agents with RL in both simulated and real-device environments, and multiple teams have since validated its effectiveness on large-scale, long-horizon GUI tasks:
- Online interactive learning: The agent executes tasks in real or sandboxed environments and receives sparse rewards based on task completion, progressively optimizing its policy rather than merely imitating human trajectories.
- Emergent long-horizon planning: Through reward signals on multi-step tasks, models learn to decompose goals, tolerate intermediate failures, and backtrack from wrong paths.
- Improved data efficiency: Unlike imitation learning, which depends on costly human-annotated trajectories, RL can continuously generate training signals through self-directed exploration.
3.2 Engineering Challenges
Introducing RL also brings a set of engineering problems: the cost of building device farms and environment sandboxes, exploration efficiency under sparse rewards, training stability and action safety (avoiding误操作 that produce real-world side effects), and model compression and distillation when on-device inference compute is constrained. These are precisely the main battlegrounds for the next stage of competition.
The Vision: Why On-Device Agents Matter
Deploying GUI Agents on-device offers three unique advantages over pure cloud-based approaches:
- Privacy and compliance: Sensitive operations—payments, messaging, health data—are perceived and decided locally, so raw screen content never leaves the device, dramatically reducing data-flow risks.
- Low latency and high availability: Eliminating network round trips makes interactions faster and keeps the agent usable even on weak or unstable connections.
- Deep personalization: On-device models can be continuously fine-tuned on local usage patterns, creating a personal assistant that genuinely understands the user.
At the infrastructure level, a cloud-edge collaboration model is the pragmatic path: small on-device models handle frequent, sensitive, immediate operations, while large cloud models handle complex planning and knowledge retrieval. Cloud-side teams can leverage general-purpose capabilities—object storage, message queues, container platforms, logging services, and monitoring and alerting—to build complete pipelines for model training, staged rollouts, and behavioral auditing.
Roadmap Ahead
Taken together, the evolution of GUI Agents follows a clear upward spiral: from external conversion to native perception, from imitation to autonomous decision-making. Over the next two to three years, the directions worth watching include inference optimization for lightweight on-device models, reliable execution of long-horizon cross-app tasks, safety guardrails and permission governance, and unified on-device agent architectures that integrate perception, planning, memory, and execution. For developers, this is the window to enter on-device intelligence: the paradigm is established, and the engineering dividends are only beginning to materialize.
