UI-TARS-2 Technical Report: Advancing GUI Agent with Multi-Turn Reinforcement Learning

Paper · arXiv 2509.02544 · Published September 2, 2025
Visual and GUI Agents

The development of autonomous agents for graphical user interfaces (GUIs) presents major challenges in artificial intelligence. While recent advances in native agent models have shown promise by unifying perception, reasoning, action, and memory through end-to-end learning, open problems remain in data scalability, multi-turn reinforcement learning (RL), the limitations of GUI-only operation, and environment stability. In this technical report, we present UI-TARS-2, a native GUI-centered agent model that addresses these challenges through a systematic training methodology: a data flywheel for scalable data generation, a stabilized multi-turn RL framework, a hybrid GUI environment that integrates file systems and terminals, and a unified sandbox platform for large-scale rollouts. Empirical evaluation demonstrates that UI-TARS-2 achieves significant improvements over its predecessor UI-TARS-1.5. On GUI benchmarks, it reaches 88.2 on Online-Mind2Web, 47.5 on OSWorld, 50.6 on WindowsAgentArena, and 73.3 on AndroidWorld, outperforming strong baselines such as Claude and OpenAI agents. In game environments, it attains a mean normalized score of 59.8 across a 15-game suite-roughly 60% of human-level performanceand remains competitive with frontier proprietary models (e.g., OpenAI o3) on LMGame-Bench. Additionally, the model can generalize to long-horizon information-seeking tasks and software engineering benchmarks, highlighting its robustness across diverse agent tasks. Detailed analyses of training dynamics further provide insights into achieving stability and efficiency in large-scale agent RL. These results underscore UI-TARS-2’s potential to advance the state of GUI agents and exhibit strong generalization to real-world interactive scenarios.

Introduction. The development of agents that can operate seamlessly within graphical user interfaces (GUIs) has emerged as a central challenge in artificial intelligence [25, 40, 63, 70, 87]. Traditional approaches typically adopt modular pipelines with separately engineered components for perception, planning, memory, and action [34]. While such design-driven systems enable rapid progress in specific domains, they rely heavily on expert heuristics and task-specific rules, leaving them brittle and difficult to scale. Recent work on native agent models [49] shifts toward data-driven, end-to-end learning, where perception, reasoning, and control are unified within a single policy, offering a more scalable and adaptive path for GUI agents.

Despite recent progress, the development of robust GUI agents still faces several open challenges. (1) Data scarcity. While large-scale pre-training and reinforcement learning have proven effective in reasoning and chat domains [27, 41], scalable strategies for long-horizon GUI learning remain unclear. Unlike text or code corpora, large-scale trajectories that capture detailed reasoning, actions, environment states, and feedback are extremely costly to collect. (2) Scalable multi-turn RL. RL in interactive environments is notoriously difficult: rewards are often sparse or delayed, optimization can be unstable, and credit assignment across long sequences of actions remains challenging. These issues hinder scaling beyond short-horizon demonstrations and make it hard to achieve stable improvements in complex tasks. (3) Limitations of GUI-only operation. Pure GUI interaction is often insufficient for realistic workflows. Many tasks—such as data processing, software development, or system administration—are more naturally handled through file systems, terminals, or external tools rather than by simulating mouse clicks and keystrokes. Thus, advancing GUI agents requires environments that allow graphical actions to interoperate seamlessly with other resources, broadening the scope of tasks they can effectively solve. (4) Environment scalability and stability. Even with richer interaction capabilities, deploying large-scale RL environments remains an engineering bottleneck. Rollouts must be reproducible, fault-tolerant, and capable of supporting millions of interactive episodes across browsers, VMs, and simulators. In practice, such environments are fragile, resource-intensive, and prone to crashes, making stable large-scale training particularly challenging.

To address these challenges, we introduce a systematic methodology built on four pillars. First, to mitigate data scarcity, we design a scalable Data Flywheel that co-evolves the model and its training corpus through continual pre-training, supervised fine-tuning, rejection sampling, and multi-turn RL. This framework supplies a steady stream of diverse, high-quality trajectories and ensures that both the model and the data improve iteratively in a self-reinforcing cycle. Second, to overcome the difficulties of scalable multi-turn RL, we design a training framework that stabilizes optimization in long-horizon settings. This includes asynchronous rollouts with stateful environments to preserve context, streaming updates to avoid bottlenecks from long-tail trajectories, and enhanced proximal policy optimization [55] with reward shaping, adaptive advantage estimation, and value pretraining. Third, to move beyond the limitations of pure GUI interaction, we construct a hybrid GUI-centered environment that augments on-screen actions with access to complementary resources such as file systems, terminals, and other external tools, enabling agents to solve a broader spectrum of realistic workflows. Fourth, to support large-scale training and evaluation, we build a unified sandbox platform capable of orchestrating heterogeneous environments—ranging from cloud VMs for GUI interaction to browser-based sandboxes for games—under a consistent API. The platform is engineered for reproducibility, stability, and high throughput, making it possible to run millions of interactive rollouts reliably.

Empirical evaluation shows that UI-TARS-2 delivers significant improvements over UI-TARS-1.5 [56], achieving strong results in both GUI-based interaction and game environments. On GUI benchmarks, the model reaches 88.2 on Online-Mind2Web [77], 47.5 on OSWorld [75], 50.6 on WindowsAgentArena [10], and 73.3 on AndroidWorld [52], representing clear gains over the previous generation and outperforming strong baselines such as Claude and OpenAI agents in multiple cases. In game environments, UI-TARS-2 attains a mean normalized score of 59.8 across a 15-game suite—roughly 60% of human-level performance—and surpasses strong baselines such as OpenAI CUA and Claude Computer Use by factors of 2.4× and 2.8×, respectively. On LMGame-Bench [24], UI-TARS-2 remains competitive with frontier proprietary models, further highlighting its robustness in long-horizon game reasoning.

Related work. Early LLM-based agents were primarily generic systems driven by prompting recipes that couple reasoning and acting, or by tool-augmented interfaces. Representative examples include ReAct, which interleaves chain-ofthought with environment actions [79], MRKL, a modular neuro-symbolic tool hub [29], and Toolformer, which self-supervises API calls to external tools [54]. In parallel, DeepMind’s Gato demonstrated a single multi-task policy acting across diverse embodiments [53]. Building on these ideas, research soon specialized into vertical domains with dedicated benchmarks and interaction environments. For web/GUI interaction, Mind2Web and WebArena provide realistic websites and tasks for web agents [16, 89], while OSWorld enables execution-based evaluation on desktop applications [75]. For software engineering, SWE-bench frames end-to-end repositorylevel bug fixing and has spawned a series of agentic systems such as SWE-agent with agent–computer interfaces (ACI) [28, 78], and RepoAgent for repository-level documentation and maintenance [36].

GUI Agents. Research on GUI agents has advanced rapidly since the release of early grounding datasets such as ScreenSpot [13]. Within a short time, these datasets reached saturation, prompting a shift of focus from grounding individual elements to developing end-to-end agents capable of performing complete GUI-based tasks. Open-source efforts were the first to drive this transition, with systems such as CogAgent [23], OS- Atlas [74], and Aguvis [76]. This momentum was soon joined by industry initiatives, including OpenAI [46], Anthropic [3], and Bytedance [49], leading to the rapid proliferation of computer-use agents. Early approaches were largely data-driven, relying on diverse human demonstrations for supervised fine-tuning. While these methods enabled the first generation of GUI agents, they suffered from limited generalization and poor robustness in complex environments. More recently, reinforcement learning (RL) has emerged as a promising direction, with systems such as ARPO [35] and Mobile-GUI-R1 [58] applying RL-based training.

Game Agents. Game environments provide a natural testbed for studying interactive decision-making, where long-horizon control and strategic exploration are essential. Digital games have historically been central to AI research due to their complexity, diversity, and controllability. Seminal work ranges from classical board games such as Go [60], to Atari benchmarks [9], to large-scale strategy games like StarCraft II [37], and open-ended environments such as Minecraft [17].

Method. 2.1 Formulation We adopt a native agent perspective [49], where an agent is modeled as a parameterized policy that maps historical context, memory states, and the current environment into behavioral outputs. At timestep t, the agent follows the ReAct paradigm [79], which interleaves reasoning, action, and observation in a structured loop:

• Reasoning (tt): internal cognitive processing, including context analysis, memory recall, planning, and self-reflection.

• Action (at): external interaction, such as GUI manipulation, system commands, or tool invocation.

• Observation (ot): feedback from the environment used to update the agent’s state.

Our action space spans multiple categories of operations:

• GUI Actions: direct interface manipulation following UI-TARS [49], e.g., clicks for element selection, typing for text input, and scrolling for navigation. Gameplay interactions also reuse these same primitives.

• Pre-defined SDK Functions: supplementary operations that extend beyond GUI manipulation, including direct terminal commands for file management and software development, as well as MCP tool invocations for orchestrating external services and multi-tool reasoning.

Mt = (Wt, Et), (2) where Working Memory Wt stores recent steps (tt−k, at−k, ot−k) in high fidelity for short-term reasoning, while Episodic Memory Et maintains semantically compressed summaries of past episodes, preserving key intentions, and outcomes. To remain efficient under long trajectories, we restrict direct context to the last N steps from Wt, while conditioning on Et for longer-term recall. At each timestep, the policy predicts the next thought and action as: P(tn, an | instruction, Wn, on, En). (3) This highlights that agent behavior arises not from isolated predictions, but from an evolving loop of reasoning, action, feedback, and memory integration.

2.2 Environment: All-in-One GUI Sandbox Training a general-purpose computer agent that seamlessly integrates a a wide range of computational capabilities imposes exceptionally demanding environmental requirements. Unlike single-domain simulators, such new environments must support diverse task types, integrate heterogeneous tools, and preserve long-lived state across complex, multi-step interactions.

To address these challenges, we engineered a universal sandbox that merges GUI operations and SDK functions (e.g., file system and tool calling) into a cohesive and versatile platform. A core innovation is the shared file system, which allows an GUI agent to, for instance, download a file via the browser and immediately process it using shell commands within the same containerized instance. The sandbox maintains the stability and reproducibility essential for complex tasks and allows for not only high-throughput training on a distributed computing backbone, but also a consistent environment for annotation, evaluation, and inference. Here we highlight the design of GUI and game sandbox.

Beyond GUI interaction, the platform extends the agent’s capabilities with tool calling and coding support, enabling cross-domain workflows such as web browsing, file manipulation, and software development. An integrated endpoint pre-loads essential local services for browsing, file access, and terminal use, ensuring that tools are available out-of-the-box. The sandbox also enhances the coding environment by allowing services launched from the terminal to be exposed via proxy URLs, enabling the GUI agent to preview both front-end and back-end components. For human-in-the-loop debugging and annotation, the environment further provides VNC, a remote VS Code editor, Jupyter, and terminal previews directly in the browser.

2.3 Data Flywheel Overview As shown in Figure 3, we introduce the data flywheel that continually improves both model capabilities and data quality through repeated training cycles. In each cycle, the latest model generates new agent trajectories, which are filtered and redistributed to the most suitable training stages. High-quality outputs are promoted to later stages (e.g., SFT), while lower-quality outputs are recycled into earlier stages (e.g., CT).

Conclusion. In this work, we presented UI-TARS-2, a native GUI-centered agent model designed to handle both structured computer-use tasks and dynamic, game-like interactive environments. The model is trained through an iterative pipeline that combines multi-turn reinforcement learning, supervised fine-tuning, rejection sampling, and continual pre-training, enabling continual improvement across heterogeneous domains. Our experiments show that while domain-specialized variants can achieve peak scores on individual benchmarks, UI-TARS-2 attains balanced and competitive performance across GUI, browser, mobile, and game tasks within a single unified system. Beyond benchmark results, our analysis (e.g., training dynamics and interaction scaling) yields practical insights into multi-turn agent RL. We also demonstrate that training on diverse environments promotes parameter sharing and capability transfer, giving rise to hybrid skills that integrate graphical interaction with more complex forms of reasoning and decision-making. Taken together, UI-TARS-2 represents a step toward more capable, reliable, and versatile computer-use agents, offering both empirical evidence and methodological principles to guide future research.

Lines of inquiry this paper opens 24

Research framings built by reading the notes related to this paper — the questions it feeds into.

Can RL enable genuinely new reasoning or just optimize existing capabilities? How do inference costs and infrastructure economics shape AI adoption? What perception approach enables GUI agents to work most effectively? What prevents AI agents from achieving claimed real-world autonomy? Can single-axis benchmarks accurately measure deployment-ready agent capability? How well do LLM user simulators replicate authentic human dialogue patterns? How important is reward engineering relative to pretraining for reasoning? How should reinforcement learning training be optimized for language models?