MCP
arXivarXiv
Preprint
Published: August 4, 2026
cs.CV

MT-Web2Code: Benchmarking Coding Agents on Multi-Turn Regional Reconstruction and Localized Modification

Abstract
Recent advances in Large Vision-Language Models (LVLMs) have demonstrated impressive capabilities in web UI generation. However, existing benchmarks predominantly focus on single-turn full-page generation from scratch, overlooking the iterative workflow of real-world frontend engineering, where developers repeatedly reconstruct missing regions and modify localized elements within existing codebases. To bridge this gap, we introduce MT-Web2Code, the first multimodal coding benchmark for multi-turn Macro-Level Regional Reconstruction and Micro-Level Localized Modification, which contains 102 tasks spanning 16 vertical domains. To construct deterministic repair trajectories without costly turn-level human annotation, we develop a scalable Reverse-Corruption Trajectory Engine that iteratively injects structural and stylistic defects into golden pages. We further propose a dual-axis evaluation protocol that measures target-region fidelity and the preservation of unaffected content, where regional reconstruction is assessed by a 5-dimensional VLM-based rubric and localized modification by deterministic pixel-grounded alignment. Experiments on 13 frontier coding agents reveal that current agents struggle to faithfully reconstruct target regions while preserving unaffected content, lack fine-grained visual-code alignment for localized edits, and suffer from error snowballing over multiple turns. Beyond benchmarking, our deterministic evaluation metrics provide fine-grained feedback signals that may facilitate future research on training iterative UI coding agents. Our evaluation code and data will soon be released.
0
AI overview
Reviews
Citation graph
References · 26
Structured
This preview uses generator v1; v2 is available

Overview

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.

Scenario Coverage Gap in Existing Web Coding Agent Benchmarks

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.

Fig. 1: Comparing the traditional single-turn full-page web replication task with the two task types proposed by MT-Web2Code: multi-turn region reconstruction and local modification.

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.

Core Design and Data Construction Mechanism of the MT-Web2Code Benchmark

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.

Fig. 2: The overall architecture of the MT-Web2Code benchmark, covering the full pipeline of data preprocessing, reverse-corruption trajectory generation, and the multi-dimensional evaluation protocol.

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.

Unified Evaluation Protocol and Empirical Analysis of Coding Agents

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 Score=0.8×Sinbox+0.2×SoutboxScore = 0.8 \times S_{inbox} + 0.2 \times S_{outbox}.

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.

Fig. 3: Per-turn performance comparison of Kimi-K2.6 under chained and independent editing modes, and the change in cumulative error gap as the number of editing rounds increases.

Core Conclusions and Final Takeaways

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.

Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first