This paper proposes MT-Web2Code, the first multimodal coding benchmark targeting multi-turn web region reconstruction and local modification scenarios. Through a scalable reverse-corruption trajectory engine, it generates high-quality multi-turn evaluation data without costly per-turn human annotation, and validates the capability boundaries of current mainstream coding agents on iterative web editing tasks.
Advances in large vision-language models have significantly improved web UI generation, but the vast majority of existing web coding benchmarks restrict the task to single-turn full-page generation from scratch, without covering the actual workflow characteristics of real front-end engineering.
The existing single-turn full-page generation evaluation setting cannot measure the true performance of coding agents in such iterative editing scenarios. You can intuitively understand the workflow differences among web generation tasks through a comparison of the task paradigms.
Compared with existing representative general coding and web UI generation benchmarks, MT-Web2Code is the first multimodal web coding benchmark designed for multi-turn macro-level region reconstruction and micro-level local modification scenarios, filling a scenario coverage gap in existing evaluation systems.
To build high-quality multi-turn evaluation data without incurring high per-turn human annotation costs, the paper develops a scalable reverse-corruption trajectory engine. Starting from a completed golden page, the engine injects deterministic structural and style defects into the page, then reverses the corruption sequence to obtain the corresponding repair trajectory. This mechanism defines a clear target state for each turn, preserving the genuine dependencies between consecutive edits while supporting reproducible automated evaluation. You can combine this with the figure that follows to fully understand the end-to-end design of generating the two types of evaluation trajectories from golden pages, along with the corresponding scoring rules.
One of the fundamental challenges in generating multi-turn editing trajectories is stably tracking page elements across consecutive modifications: conventional DOM tree indexing fails under structural deletion operations, and visual coordinates shift during CSS reflow. To address this, before the corruption phase begins, the system parses the initial DOM tree and assigns each HTML node a position-independent element fingerprint injected into the page as a custom attribute. This persistent anchor can both strictly track the structural boundaries of macro-level region deletions and provide precise bounding-box localization for micro-level perturbations under layout reflow.
The MT-Web2Code benchmark adopts a unified scoring rule: regardless of whether the task granularity involves macro-level region perception judged by a vision-language model, or deterministic pixel alignment for micro-edits, the final score uses exactly the same weighting scheme, combining target-region repair effectiveness with global content preservation, according to the formula .
On macro-level multi-turn UI editing tasks, current mainstream coding agents show promising yet clearly limited capabilities, with Gemini-3.5-Flash achieving the highest overall score and Kimi-K2.6 close behind. Even with strong visual understanding, existing agents still struggle to perform high-fidelity specified-region reconstruction; some larger-parameter models actually underperform lighter versions of the same family, because when executing local reconstruction tasks, large models tend to introduce unnecessary global layout changes even when explicitly instructed to preserve unchanged regions.
Controlled experiments adding text descriptions to visual references of regions show that textual guidance does not reliably improve reconstruction: score changes go in completely different directions across models. This is because text descriptions introduce competing semantic priors that conflict with visual evidence—after abstracting away fine-grained spatial relationships, component hierarchies, and style details, models may over-rely on the language description and deviate from the actual visual structure. The study also finds that strong coding ability does not necessarily make an agent a reliable automated evaluation scorer: the best-performing reconstruction model gave scores that were generally too optimistic, while other models in the first tier of coding ability gave stricter, more discriminative evaluations that better match human perception.
To verify error propagation during multi-turn editing, the study designed two controlled settings: chained editing and independent editing. In the independent setting, each turn is given the corresponding golden prior state directly, rather than the model's output from the previous turn, to isolate the effect of error propagation, while task difficulty per turn is kept identical across the two settings. You can combine the figure that follows to intuitively compare the per-turn score changes under the two settings, and see how the error snowball effect amplifies as editing rounds increase.
MT-Web2Code is the first multi-turn multimodal benchmark for iterative web UI coding, covering two core task types: region reconstruction and local modification. It builds deterministic repair trajectories via a reverse-corruption trajectory engine, and its accompanying dual-axis evaluation protocol simultaneously assesses repair fidelity and preservation of unchanged content.
Experiments on 13 state-of-the-art coding agents show that under realistic long-horizon multi-turn interaction settings, existing approaches still exhibit persistent performance limitations in three dimensions: region reconstruction, fine-grained visual-code alignment, and cross-turn consistency.
Beyond evaluation capability, MT-Web2Code can also provide potential verifiable reward signals for training future UI coding agents, extending the research use boundaries of the benchmark.