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

Qiming Li, Shujie Hu, Haohan Liu, Xiaocheng Feng, Songxiang Liu, Guanglu WanarXiv 2026

TL;DR

MT-Web2Code is the first multimodal benchmark designed to evaluate coding agents in the realistic, iterative workflow of frontend engineering. By introducing a "Reverse-Corruption" engine to generate deterministic multi-turn repair trajectories, it challenges models to reconstruct missing regions and fix localized defects while strictly preserving unaffected page content.

What Problem Does This Paper Address?

Most current benchmarks for Large Vision-Language Models (LVLMs) in web development focus on "single-turn full-page generation"—essentially asking an AI to build a whole website from a single screenshot. However, real-world development is rarely a one-shot process. Developers typically work iteratively: they fix a broken navigation bar, adjust a button's padding, or add a new section to an existing codebase.

Existing benchmarks fail to capture two critical aspects of this workflow:

  1. Iterative Consistency: Can the agent modify one part of the code without accidentally breaking or restyling the rest of the page?
  2. Error Propagation: How do small mistakes in early turns "snowball" into catastrophic failures over multiple interactions?

As shown in Figure 1, MT-Web2Code shifts the focus from static replication to dynamic, multi-turn editing.

Figure 1: Comparison of task formulations. Unlike prior benchmarks that focus on single-turn full-page replication, MT-Web2Code evaluates multi-turn Regional Reconstruc- tion and Localized Modification within existing web pages.

Methods

The authors developed a framework to automate the creation of complex, multi-turn coding tasks without needing expensive human annotations. The core is the Reverse-Corruption Trajectory Engine (see Figure 3).

  • Forward Corruption: The engine starts with a "Golden Page" (a perfect, finished website) and systematically injects defects.
  • Macro-Level: It deletes entire semantic regions (like a <footer> or <nav>).
  • Micro-Level: It injects fine-grained stylistic or structural bugs (e.g., changing font sizes, swapping colors, or removing specific elements).
  • Reverse Repair: The coding agent is then given the corrupted state and tasked with reversing these steps one by one to reach the original "Golden" state.

To evaluate performance, the authors use a dual-axis protocol:

  • $S_{inbox}$ (Fidelity): Measures how accurately the agent repaired the target region. For macro-tasks, this uses a 5-dimensional VLM-based rubric; for micro-tasks, it uses deterministic pixel-grounded alignment.
  • $S_{outbox}$ (Preservation): Measures how well the agent left the rest of the page alone. This is crucial for preventing "hallucinated" global restyling.
Figure 3: Overview of MT-Web2Code. Starting from a golden page, the Reverse-Corruption Trajectory Engine generates two complementary evaluation tracks: (I) Macro-Level Regional Reconstruction, which evaluates regional visual grounding and structural reasoning capability using a rubric-based protocol; and (II) Micro-Level Localized Modification, which evaluates fine-grained visual grounding and visual-code alignment using a pixel alignment protocol.

Datasets

The benchmark, MT-Web2Code, consists of 102 high-quality web pages sampled across 16 vertical domains (e.g., Retail, News, ERP, AI Platforms) to ensure structural diversity.

Compared to existing benchmarks like Design2Code or Vision2Web, MT-Web2Code is unique in being both multimodal (using both code and images) and multi-turn. A comparison of these benchmarks is detailed in the table below.

Extracted table from page 2 comparing MT-Web2Code with representative coding and web UI benchmarks.

Key Insights and Ideas

  • The "Error Snowballing" Effect: One of the most significant findings is that agents suffer heavily from error propagation. As shown in Figure 4, when agents start each turn from their own (potentially flawed) previous output rather than a "clean" state, their performance degrades significantly as the turns progress.
  • Coding vs. Judging: Interestingly, the best coding models aren't necessarily the best judges. While Gemini-3.5-Flash was the top performer in reconstruction, it tended to be "overly optimistic" when grading, whereas Kimi-K2.6 provided stricter, more human-aligned evaluations.
  • Visual-Code Alignment is Hard: Models are generally good at not breaking the rest of the page ($S_{outbox}$), but they struggle with the precise visual-code alignment needed to fix specific, localized micro-defects.
Figure 4: Per-turn performance comparison of Kimi-K2.6 be- tween chain-based (default) and independent editing, along with the accumulated error gap across editing rounds.

Key Results

The authors evaluated 13 state-of-the-art coding agents, including proprietary models like GPT-4 and Gemini, and open-source ones like Qwen and GLM.

  • Macro-Level Leader: Gemini-3.5-Flash achieved the highest overall score (65.5), showing strong structural reasoning.
  • Micro-Level Leader: Doubao-Seed-2.0-Pro led with a score of 83.5, excelling at fine-grained edits.
  • General Trend: Most advanced models maintain high preservation scores (often >0.95), but their actual repair accuracy ($S_{inbox}$) varies wildly, highlighting a gap in fine-grained visual grounding.

Limitations and Future Work

The authors acknowledge that their data construction relies on a VLM judge (Kimi-K2.6) for difficulty filtering, which may have its own perceptual blind spots.

Looking forward, the deterministic metrics introduced in this paper (like the pixel-grounded alignment) provide a "verifiable reward signal." This opens the door for using Reinforcement Learning (RL) to train future agents specifically for iterative UI coding, moving away from a reliance on human preference annotations.

Summary updated

BibTeX
@misc{li2026mt,
  author = {Qiming Li and Shujie Hu and Haohan Liu and Xiaocheng Feng and Songxiang Liu and Guanglu Wan},
  title = {{MT-Web2Code: Benchmarking Coding Agents on Multi-Turn Regional Reconstruction and Localized Modification}},
  year = {2026},
  eprint = {2608.03474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.03474},
}
Figure