arXiv:2608.30530cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.30530

WebWorld: The Browser as a World Model for Self-Improving Web Code

Jiajun Wu, Jian Yang, Yaxin Du, Wei Zhang, Haowen Wang, Junhang Cheng, Yuxuan Zhang, Tuney Zheng, Xianglong Liu, Ming Zhou

Abstract

VLM-driven self-improvement of web code has a structural flaw: the model that proposes the repair is the model that judges it, and visual plausibility under that judge is a poor proxy for whether the page actually works. What the loop is missing is a counterparty the VLM cannot fool, and the browser already is that counterparty: a deterministic, executable simulator of how an HTML artifact behaves under user actions, and in everything but name a world model for web code. We present WEBWORLD, the interface that lets a VLM prior interact with this browser-as-world-model autonomously and decides which interactions become supervision. Each round, the VLM emits a critique that the planner compiles into a typed interaction contract; the browser re-executes the candidate and issues an acceptance certificate only when both target progress and preservation of every previously verified capability hold; certified transitions accumulate as a quality ratchet that is the only thing the SFT export ever sees. Under matched training, WEBWORLD-27B improves Raw-27B by 5.3 points on HTMLBench-400 and 14.9 points on MiniAppBench-Val, and reaches the level of strong frontier systems such as Kimi-K2.6 and GPT-5.4 on interactive HTML generation. Equal-size ablations show that browser-backed admission carries the gain: without the certificate, the matched 9B lift nearly disappears.

1 Introduction

LLMs and VLMs can now produce complete front-end artifacts from a short prompt, but a page that looks right at first render is not the same page that works. Submit buttons can be inert, games can ignore keyboard input, and a repair can polish one region while silently removing a previously working control. The natural response, closing the loop with a VLM critique-and-rewrite cycle, does not by itself solve this. In our experiments (section 3), the closest re-implementation of that naive loop, which keeps VLM critique and skill routing but drops the browser-issued certificate, lifts HTMLBench by only 0.4 points over Raw, more than ten times less than the full WEBWORLD gate. Most of what the loop calls progress is noise unless something outside the VLM admits it.

The reason is structural. The VLM is doing two jobs at once: it is the proposer, broad in coverage and useful at suggesting plausible repairs, and also the judge that decides which repair to keep. Both judgments live in screenshot space, so a winning candidate is one that wins visually, exactly the wrong criterion when the failures are behavioral. Better prompting cannot close this gap, because closure has to come from evidence the VLM did not produce. The proposer needs a counterparty it cannot fool: a browser that re-executes the artifact.

The browser is that counterparty, already built. It is a deterministic, executable simulator of how an HTML artifact behaves under user actions, and in everything but name a world model for web code (Figure 1). We do not have to train one, which is what makes this problem unusually clean: the world model is fully specified by the platform, and the open question is the interface that lets a VLM prior interact with it autonomously and decides which interactions become supervision.

We present WEBWORLD as this interface, sketched in Figure 2. At each round, the runtime executes the artifact and records GUI evidence. The VLM proposes a critique; the planner compiles it into a typed interaction contract with a target predicate, replay action, preserve set, and evidence path. The browser re-executes the candidate and issues an acceptance certificate only when target progress holds and every previously verified capability is preserved. Certified transitions form a quality ratchet and the SFT export. Hypothesis and proof are split by construction: the VLM proposes, and only the browser world model admits, so that failure cannot contaminate supervision.

Figure

Figure 1: When the VLM judges by screenshot, edits that look improved can fail under browser re-execution: the proposer-judge gap our audit measures.

(1) Browser as a ready-made world model for web code. We re-frame autonomous HTML improvement as a world-model agent problem and resolve it without training a world model. The browser already plays that role, and the unit of supervision becomes a certified state transition rather than a final screenshot or scalar preference.

(2) Contract, certificate, and ratchet. Three coupled artifacts let the VLM prior and browser world model communicate: a typed interaction contract that constrains repair, an acceptance certificate issued only when re-execution proves target progress and preservation, and a quality ratchet that admits certified transitions to the next baseline and training pool.

(3) Evidence from browser proof. The results show the world model is doing the work: WEB-WORLD-27B reaches 52.7 on HTMLBench-400 and 85.5 on MiniAppBench-Val, improving over Raw-27B by 5.3 and 14.9 points while matching frontier systems such as Kimi-K2.6 and GPT-5.4 on interactive HTML generation. 9B ablations show re-execution is essential: without the certificate, the gain over Raw is only 0.4 point. The browser is the certifying world model, not a passive viewer.