NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Code2World: A GUI World Model via Renderable Code Generation

Yuhao Zheng, Li'an Zhong, Yi Wang, Rui Dai, Kaikui Liu, Xiangxiang Chu, Linyuan Lü, Philip Torr, Kevin Qinghong Lin

NeurIPS page · OpenReview · Open on the map

Category: Robotics, VLA & World Models › Unified World Modeling · Type: new method · Keywords: GUI world model, renderable code generation, vision-language models, reinforcement learning for UI prediction, AndroidCode dataset, GUI agent navigation

Areas: Code & Coding Agents › Code Generation and Optimization › Agentic Generation; AI Agents › Vision-Language-Action Systems › Embodied Agents; Multimodal › Action and World Models › World Models; Robotics & Embodied AI › Robotic Autonomy › World Models and Navigation

Summary

Code2World is a vision-language coder that predicts next UI states by generating renderable code, improving GUI agent navigation.

Explained to a 5-year-old

A computer program learns to guess what a screen will look like after you press a button. It does this by writing little instructions that can draw the new screen. The program is taught using many examples of old screens and what happened after actions. It also gets feedback when its drawings look wrong, so it gets better. This helps robots that move around on screens to succeed more often.

Explained to a 5-year-old, longer

Imagine a computer that wants to know what will appear on the screen after you click a button. It tries to draw the new picture by writing code that can create the screen. To learn how to do this, it looks at lots of old pictures of screens and the actions that made them change. A special dataset called AndroidCode was built from real phone screens and the steps users took. The program first learns to follow a format for writing code, then improves with a reward system. When the program makes a drawing, it checks if the picture matches what should be there and gets a small reward for being correct. If the picture is wrong, it gets a penalty and tries again. This cycle of trying, checking, and improving helps the program get better at predicting screens. The final result is a system that can guess future screens accurately, which helps agents navigate through interfaces more successfully. It also works with other models, boosting their performance on tasks like moving through a phone’s menu. The whole process is designed to be flexible, so it can be applied to many different kinds of graphical interfaces.

For a technical reader

The system uses a vision-language model fine-tuned to output executable code that renders UI states. It leverages a large-scale AndroidCode dataset built from real GUI trajectories and refines code via visual feedback. A render-aware reinforcement learning loop optimizes both visual fidelity and action consistency. The result is a next-step UI predictor that matches leading models and improves downstream navigation success.

Problem

Agents interacting with graphical interfaces need to anticipate future visual states with high fidelity and precise control, a task that existing text or pixel-based models struggle with.

Method

The approach uses a vision-language model fine-tuned to generate executable code that can render UI states, combined with a visual-feedback revision loop to improve code quality and a render-aware reinforcement learning stage that optimizes visual fidelity and action consistency.

Results

The approach achieves state-of-the-art next UI prediction, matching GPT-5 and Gemini-3-Pro-Image, and raises Gemini-2.5-Flash navigation success by 9.5% on AndroidWorld.

Contributions

A vision-language coder that generates renderable UI code, a large-scale AndroidCode dataset with visual feedback revision, and a render-aware reinforcement learning scheme that improves both visual fidelity and downstream navigation.

Practical relevance

It enables more reliable GUI agents for real-world tasks by providing high-fidelity UI simulation and improved navigation performance.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction