WebVibe Reverse Synthesis: 9B Model Matches 1T Model in Web Generation

WebVibe uses reverse synthesis and token-level state-transition supervision so a 9B model matches a 1T coding agent with 1/100 the parameters.
The article introduces the WebVibe framework and Interactive-SDPO training method for generating interactive websites from design specs. It identifies two bottlenecks: forward synthesis produces unimplemented requirements as supervision noise, and scalar rewards in RL discard state-transition information. WebVibe flips synthesis to Y->X, verifying browser interactions before reverse-deriving specs, building the WebVibe-32K corpus with execution contracts covering 31,542 websites. Interactive-SDPO uses a weight-sharing self-teacher conditioned on replay trajectories and 2x2 state-transition collages for token-level supervision at zero inference cost. InteractiveCoder-9B raises Vision2Web L2 functional scores from 20.2 to 55.2, matching a 1T coding agent with 111x fewer parameters and 78x fewer tokens.
Multimodal large models can turn a screenshot into static HTML, but generating an interactive website with routing and multi-page navigation from a design spec is still a tough nut to crack. A recent paper proposed the WebVibe framework and the Interactive-SDPO training method, enabling the 9B-parameter InteractiveCoder to nearly match a 1T-parameter coding agent on public benchmarks—with 111x fewer total parameters and 78x less token consumption.

Two Bottlenecks in Existing Training Pipelines
The paper breaks down existing training workflows and identifies two structural problems.
The first bottleneck is in forward data synthesis. The conventional approach is to first write a design spec X, then generate code Y (X -> Y). But specs are often written before code execution, so X contains requirements that were never implemented or were changed. These requirements get fed to the model as supervision signals, becoming training noise—the model learns the "ideal spec" rather than a "real, runnable website."
The second bottleneck is in the reinforcement learning stage. When optimizing the model with scalar rewards, the rich state-transition information observed during replay is discarded. The difficulty of an interactive website lies precisely in how states change and how pages navigate—scalar rewards cannot express these details.
To address these two issues, the research team did two things: reverse the synthesis direction, and introduce state-transition signals into training.
SDPO (Self-Distillation Policy Optimization) is a variant of reinforcement learning fine-tuning. Its core idea is to replace the external reward model with a teacher copy of the model itself, providing denser supervision signals than scalar rewards during training. Traditional RLHF/PPO-style methods rely on a scalar reward to evaluate an entire output; the rich intermediate state information in the replay buffer gets compressed into a single number when computing gradients. SDPO instead has a "self-teacher" model that shares (or partially shares) weights with the policy model produce a token-level distribution under the same input conditions, and uses this as the policy model's learning target. Since teacher and student share the same origin, training stability is better, and the supervision granularity is refined from "one score per trajectory" to "one direction per token"—better suited for generation tasks sensitive to state transitions, such as interactive web pages.
Reverse Synthesis: Verify First, Then Generate the Spec
WebVibe's core idea is to flip X -> Y into Y -> X.
Specifically, it first verifies in the browser whether cross-page and intra-page interactions actually work, then reverse-engineers the multimodal input from the confirmed replay states to build the training corpus. The resulting spec X naturally corresponds to verified, executable behavior—no noise from "spec written but code not implemented."
According to the paper, this pipeline built the WebVibe-32K corpus, covering 31,542 websites and carrying reusable execution contracts. The role of execution contracts is to make each sample's interactive behavior reproducible and verifiable, rather than a one-off artifact.
Execution contract borrows the concept of "Design by Contract" from software engineering, referring to verifiable declarations of the preconditions, post-states, and interaction side effects that a piece of code or a page should satisfy at runtime. In WebVibe's context, the execution contract attached to each sample records the state changes actually triggered in the browser by the website's cross-page navigation and intra-page interactions—for example, how routing switches and how the DOM updates after clicking a button. With contracts, the same training sample can be re-executed and compared across different environments or time points, distinguishing "the behavior the spec claims" from "the behavior the code actually produces." This is also the key to reverse synthesis guaranteeing noise-free supervision signals: the spec X is reverse-engineered from replays that have passed contract validation, rather than pre-written by hand.
Interactive-SDPO: Token-Level Supervision at Zero Inference Cost
The second component, Interactive-SDPO, solves the problem of RL signals being too coarse.
Its approach is to condition a weight-sharing self-teacher model on the replay trajectory and a 2x2 state-transition collage, thereby providing token-level supervision signals. Crucially, this supervision only happens during training—there is no extra overhead at inference; the deployed model runs as fast as a normal model.
The design logic here: since scalar rewards discard state-transition information, feed the state transitions directly to the teacher model as conditional input, letting it give finer guidance at each token. The 2x2 collage is an engineering trick to compress multiple state frames into a single visual input.
Token-level supervision vs. scalar rewards: In autoregressive generation, the model outputs a probability distribution over tokens at each step. A scalar reward only gives a total score after the entire sequence is generated; credit assignment must backpropagate along the time axis via policy gradients, which has high variance and coarse granularity. Token-level supervision instead provides a target distribution or preference signal directly at each generation position—essentially splitting "is the whole thing good?" into "which way should this step go?" Interactive-SDPO has the teacher model give per-token guidance conditioned on the replay trajectory and state-transition collage, turning the hardest thing to learn in interactive websites—"which page to jump to next / which state to trigger"—into a per-token classification problem. Training signals are thus denser and convergence more stable. At inference, the teacher is removed and the student model generates independently, so there is no extra overhead.
Benchmark Results: Small Model Matches Large Model
On the public Vision2Web L2 benchmark, single-pass inference with InteractiveCoder-9B raised the functional score from the base model's 20.2 to 55.2 FS—nearly 3x. The paper emphasizes that this result matches a 1T-parameter coding agent in a single generation, with 111x fewer total parameters and 78x fewer tokens.
On the team's self-built WebVibeBench, both InteractiveCoder-4B and 9B exceed all evaluated baselines by more than 23 points.
It should be noted that WebVibeBench is an author-built benchmark with limited comparability to public benchmarks; while the Vision2Web L2 comparison is impressive, the specific configuration and evaluation conditions for "matching a 1T coding agent" need to be checked against the original paper. Still, in terms of order of magnitude, the direction of improvement in parameter efficiency and token efficiency is clear.
Implications for the Web Generation Direction
What's noteworthy about this work is not any single score, but the way training data is constructed.
Forward synthesis treats unverified specs as supervision, while reverse synthesis treats verified execution results as supervision—this flip changes the source of supervision signal reliability. Combined with token-level state-transition supervision, the model learns not just "what the page looks like" but also "how interactions happen."
For teams building AI coding and low-code generation tools, this approach offers a lesson: rather than spending effort writing more detailed spec documents, first record runnable interactions, then reverse-engineer training data from the replays.
One-line Summary
WebVibe uses reverse synthesis and token-level state-transition supervision to let a 9B model match a 1T coding agent with one-hundredth the parameters.
Paragraph Summary
The article introduces the WebVibe framework and Interactive-SDPO training method, aimed at solving the training challenge of generating interactive websites from design specs with multimodal large models. The authors point out that in forward synthesis, specs are produced before code, causing unimplemented requirements to become supervision noise; in the RL stage, scalar rewards discard state-transition information. WebVibe flips the synthesis direction to Y->X, first verifying interactions in the browser and then reverse-deriving specs from replays, building the WebVibe-32K corpus covering 31,542 websites with execution contracts; Interactive-SDPO uses a weight-sharing self-teacher model conditioned on replay trajectories and a 2x2 state-transition collage to provide token-level supervision with zero inference overhead. InteractiveCoder-9B raises the functional score on Vision2Web L2 from 20.2 to 55.2, matching a 1T coding agent with 111x fewer parameters and 78x fewer tokens; on the self-built WebVibeBench, both 4B and 9B exceed baselines by more than 23 points.
Related articles

Stop Debugging Manually! A Hands-On Comparison of Cursor and Claude
Comparing Cursor and Claude for AI-assisted debugging: Cursor locates and fixes errors directly in the editor and supports cross-file review; Claude excels at explaining complex error logic and suggesting corrections. Includes selection advice and a reminder that AI fixes need human verification.

Air-Breathing Engines Race Toward Very Low Earth Orbit: The Satellite Competition Heats Up
An international race is underway in very low Earth orbit, with multiple teams developing air-breathing engines that collect thin atmosphere as propellant to enable long-term satellite residence at extremely low altitudes. This article analyzes the technical principles, challenges, and competition landscape.

AI Is Hijacking Pharma from the Inside: Anthropic's Ambitions and the Industry Shakeup
After its IPO, Anthropic is accelerating into pharma as AI penetrates drug R&D from target discovery to clinical trials. We analyze how AI companies are changing pharma from within, plus the power struggle and regulatory challenges between drugmakers and AI labs.