Abstract
Mobile GUI agents have shown strong potential in real-world automation and practical applications. However, most existing agents remain reactive, making decisions mainly from the current screen, which limits their performance on long-horizon tasks. Building a world model from repeated interactions enables forecasting action outcomes and supports better decision-making. This is challenging because the model must predict post-action states with spatial awareness while remaining efficient enough for practical deployment. In this paper, we propose MobileDreamer, an efficient world-model-based lookahead framework to equip GUI agents with future imagination. It consists of a textual sketch world model and a rollout imagination strategy. The textual sketch world model forecasts post-action states by transforming digital images into key task-related sketches and uses a novel order-invariant learning strategy to preserve spatial information. Experiments on Android World show that MobileDreamer achieves state-of-the-art performance, improving task success by up to 5.25%.
Introduction
Most current mobile GUI agents are reactive: they perceive the current screen, select an action, and execute it without an internal understanding of how the environment will change. This lack of a "world model" makes long-horizon tasks, such as booking a flight or navigating complex app settings, difficult because agents cannot anticipate "dead ends" or evaluate which candidate actions lead to a better future state.
Existing attempts to bridge this gap typically use either text-based models, which are fast but lose critical spatial information, or image-based models (like diffusion), which are computationally expensive and waste resources on task-irrelevant visual details. MobileDreamer introduces a "Goldilocks" representation: a structured textual sketch that preserves spatial structure while remaining computationally efficient for real-time deployment.
Methodology
MobileDreamer operates through a two-stage framework designed to provide agents with predictive capabilities.
1. Textual Sketch World Model (TSWM)
Instead of predicting raw pixels, the TSWM predicts a textual sketch. A sketch is a structured list of UI elements, each defined by its label (e.g., "button"), text content, and bounding box coordinates. To train this model effectively, the authors introduced Order-Invariant Learning. Standard language model training penalizes reordering of elements, even if the content is correct. MobileDreamer uses a novel loss function based on optimal transport, matching predicted elements to ground-truth elements using an IoU-aware cost. This makes training robust to element reordering and minor positional shifts.
2. Rollout Imagination
With a trained TSWM, the agent can perform a Tree-of-Prediction. For any given state, the agent generates $M$ candidate actions. The TSWM then "imagines" the resulting screen for each action. This process can repeat recursively to a depth $d$, creating a tree of potential futures. The agent evaluates these imagined trajectories to select the action most likely to lead to the final goal, effectively transforming the agent from a reactive "System 1" processor into a deliberate "System 2" planner.
Experimental Results
The framework was evaluated on Android World, a high-fidelity benchmark containing 116 distinct navigation tasks across 20 real-world apps. The training data consisted of 110.1k state transitions, including samples from the Android Control dataset and manual annotations.
Key findings include:
- Performance Boost: MobileDreamer consistently improved the success rate (SR) of various LLM backbones. For instance, Claude-Sonnet-4.5 improved from 60.53% to 65.78% (+5.25%), and Gemini-3-Flash saw a +6.66% increase.
- Superior Prediction Accuracy: In future-state forecasting, MobileDreamer achieved a 0.8564 mIoU (mean Intersection over Union), significantly outperforming raw LLMs like GPT-4 (0.5512).
- Spatial Awareness: Ablation studies confirmed that including bounding boxes and using Order-Invariant Learning were critical to the model's success; removing the latter dropped the world model's F1-score from 0.76 to 0.74.
Conclusion and Future Work
MobileDreamer demonstrates that abstracting UI states into textual sketches allows for efficient and spatially aware world modeling. While the system currently relies on external OCR tools, which can be a point of failure, it provides a scalable path toward more intelligent, planning-capable mobile agents. Future work will focus on incorporating visual cues like icon embeddings to support scenarios where text is sparse and further optimizing tree-search efficiency for deeper lookahead planning.
Summary updated