Introduction
To build effective mobile agents, researchers rely on World Models (WMs)—simulators that predict the next visual state of a device given a current screen and a specific action (e.g., "What does the screen look like after I tap 'Add to Cart'?").
However, existing approaches suffer from a "Goldilocks" problem:
- Text-based models are fast but discard crucial visual information such as layout, colors, and iconography.
- Pixel-based models (like diffusion models) capture visual layouts but struggle to render legible text. Furthermore, they require complex, multi-stage pipelines that are computationally heavy and painfully slow.
There is a critical gap for a representation that is as precise as text for content, yet as rich as images for layout—all while remaining computationally efficient. Enter gWorld, a novel paradigm that bridges this gap by predicting the next state as renderable web code.
The Core Innovation: Code as the Intermediate
Instead of training a model to "paint" raw pixels or output abstract text, the authors of gWorld train a Vision-Language Model (VLM) to "write" the HTML and CSS that would render the next screen.
Code serves as the perfect intermediate representation: it is structured enough for Large Language Models (LLMs) to handle easily, yet detailed enough to render "pixel-perfect" text and accurate layouts. This completely bypasses the "blurry text" issue commonly seen in diffusion models. Furthermore, rendering the generated HTML into an image takes only ~0.3 seconds, making the visual generation virtually free compared to the heavy compute required for diffusion-based pipelines.
The gWorld Pipeline
The authors built gWorld (available in 8B and 32B parameters) using a specialized data generation framework:
- Repurposed Trajectories: Existing mobile agent data (an action leading to a subsequent image) is transformed into world-modeling triplets.
- Synthetic Cross-modal Relabeling: Because original datasets lack underlying code, a frontier model (Gemini 3 Flash) is used to convert ground-truth images into high-quality, renderable web code.
- Look-ahead Reasoning: To help the model learn why a screen changes, reasoning traces are generated by giving the data-generation model "look-ahead" access to the actual next state.
- Model Training: The researchers fine-tuned Qwen3 VL (8B and 32B) on this code-based data. Because VLMs are pre-trained on massive amounts of web code, they possess a natural inductive bias for this task.
Benchmarking with MWMBENCH
To evaluate gWorld, the authors introduce MWMBENCH, a comprehensive benchmark for mobile GUI world modeling.
- In-Distribution (ID): Derived from datasets like AitW, GUIOdyssey, AndroidControl, and AMEX.
- Out-of-Distribution (OOD): Includes AndroidWorld and KApps, a newly curated dataset of popular Korean apps designed to test multilingual generalization.
Unlike prior benchmarks that simplify actions into text, MWMBENCH uses native coordinate-based actions, providing a much truer test of real-world deployment.
Key Results and Insights
The gWorld models demonstrate remarkable efficiency and accuracy, setting a new standard for mobile GUI world modeling:
- A New Pareto Frontier: gWorld establishes a new state-of-the-art in Instruction Accuracy (IAcc). Remarkably, the 8B model outperforms massive frontier models like Llama 4 402B and GLM-4.6V 106B, despite being a fraction of their size (over 50x smaller).
- Massive Speedups: Compared to VIMO, a leading pixel-based WM, gWorld is 123x to 291x faster. It reduces per-state latency from a sluggish 160 seconds down to just 0.55–1.3 seconds.
- Avoiding the "Identity Mapping" Trap: Standard image-generation models often cheat by simply copying the input image with minor edits. gWorld shows a much weaker correlation between input and output similarity, proving it genuinely models UI dynamics rather than just copying pixels.
- Downstream Efficacy: When integrated as a "value function"—allowing an agent to "imagine" the result of an action before taking it—gWorld improved the success rate of existing agents by over 20% on average.
- Multilingual Robustness: Despite being trained predominantly on English data, gWorld generalized surprisingly well to the Korean-based KApps dataset.
Limitations and Future Work
While gWorld represents a massive leap forward, the authors note a few limitations. First, while HTML is excellent for UI elements like buttons and text, it struggles to represent complex natural imagery (e.g., a video player or camera viewfinder). Hybrid techniques may be required for these edge cases.
Second, the current model operates under a Markovian assumption—it is a "single-frame" model that does not remember past states. Future iterations will focus on adding explicit working memory to handle long-term dependencies, such as tracking a shopping cart across multiple screens. Finally, the authors note that gWorld's performance follows a predictable power law, and they have only utilized about 7% of the 3.7 million available public data transitions. Scaling up the training data promises even more massive gains in the future.
Summary updated