Abstract
Training Vision-Language Models (VLMs) to navigate complex graphical user interfaces (GUIs) requires vast amounts of high-quality demonstration data. Traditional methods rely on expensive human collection or "task-driven" synthesis, where an LLM generates a task that an agent then attempts to solve—often leading to hallucinations and failed trajectories. We present OS-Genesis, an interaction-driven pipeline that automates trajectory construction through reverse task synthesis. By allowing agents to explore environments first and retroactively labeling their actions, OS-Genesis ensures task feasibility and increases data diversity. Our approach nearly doubles the performance of open-source agents on challenging benchmarks like AndroidWorld and WebArena.
Introduction: The Data Bottleneck in GUI Navigation
The development of digital assistants capable of managing emails, booking travel, or navigating enterprise software hinges on the availability of step-by-step trajectories. A trajectory typically consists of a high-level goal, visual screen states, a low-level thought process, and specific actions.
Current data collection methods face a significant bottleneck. Human annotation is prohibitively expensive and slow. Conversely, existing synthetic methods often fail because they are "task-driven": an LLM proposes a goal (e.g., "Delete the last email"), but the agent finds the environment state does not support that goal, resulting in unusable data. OS-Genesis addresses this by flipping the paradigm: explore first, synthesize later.
OS-Genesis: Reverse Task Synthesis
The core innovation of OS-Genesis is its interaction-driven approach. Instead of starting with a predefined goal, the system drops an agent into a dynamic environment—such as an Android emulator or a web browser—and allows it to systematically interact with UI elements.
The pipeline consists of three primary stages:
- Interaction-Driven Functional Discovery: The agent explores the UI by clicking, scrolling, and typing. It records "before" and "after" screenshots for every action, creating a grounded record of what is actually possible in the interface.
- Reverse Task Synthesis: These action triplets are fed to a powerful annotation model (e.g., GPT-4o). The model identifies the low-level action achieved (e.g., "Clicking the 'Event' button") and then synthesizes a plausible high-level user goal that would necessitate that sequence of actions (e.g., "Create a new calendar event for a team meeting").
- Trajectory Reward Model (TRM): To ensure quality, a TRM evaluates trajectories on a scale of 1 to 5. Unlike binary filtering, which discards any incomplete task, the TRM allows the system to retain partially successful trajectories that still offer valuable visual grounding and navigation logic.
Experimental Results and Insights
The authors evaluated OS-Genesis by fine-tuning open-source VLMs (InternVL2 and Qwen2-VL) on the generated data and testing them against rigorous benchmarks.
Performance Gains
On AndroidWorld, a dynamic mobile benchmark, training with OS-Genesis data nearly doubled the success rate of Qwen2-VL-7B, increasing it from 9.82% to 17.41%. Similar gains were observed in web environments; on WebArena, the success rate jumped from 5.39% to 10.79%.
Diversity and Feasibility
A key finding was that OS-Genesis produces more diverse data than human annotators. Humans tend to follow familiar, "happy paths," whereas systematic exploration uncovers edge cases and less common UI interactions. Furthermore, because every task is derived from an action that was actually performed, the "hallucination" problem inherent in task-driven synthesis is virtually eliminated.
Value of Partial Success
The use of a Trajectory Reward Model proved critical. By including trajectories that were logically sound but perhaps incomplete, the models learned more robust planning capabilities. Synthetic data generated via OS-Genesis retained over 80% of the performance of human-labeled "gold standard" data, a significant milestone for automated data generation.
Conclusion and Future Directions
OS-Genesis demonstrates that "exploring first and asking later" is a superior strategy for generating GUI navigation data. By grounding tasks in physical environment changes, it provides a scalable, high-fidelity alternative to human annotation. Future work will focus on reducing the reliance on proprietary models for the synthesis phase and expanding the pipeline to create "vision-only" agents that do not require underlying accessibility trees or HTML source code.
Summary updated