MT-Web2Code: Benchmarking Coding Agents on Multi-Turn Regional Reconstruction and Localized Modification
This paper introduces MT-Web2Code, the first multimodal benchmark designed to evaluate coding agents on realistic multi-turn web UI tasks involving regional reconstruction and localized modifications, revealing significant limitations in current agents' ability to maintain fidelity and prevent error accumulation across iterative turns.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are teaching a robot to be a master web designer. In the past, we tested these robots by handing them a blank canvas and a picture of a website, asking them to build the whole thing from scratch in one go. It was like asking a chef to cook a full five-course meal instantly. But in the real world, web design is rarely that dramatic. Usually, a developer opens an existing website, finds a broken button, fixes a weird font, or adds a missing photo, all while making sure they don't accidentally delete the rest of the page. It's more like a game of "spot the difference" and "fix the glitch" played over and over again. This is the world of "iterative coding," where the robot has to remember what it did five minutes ago and not mess it up while fixing the new problem. The big question researchers are asking is: Can our smartest AI robots handle this messy, step-by-step reality, or do they only work well when given a clean slate?
This is exactly what the paper "MT-Web2Code" investigates. The authors created a brand-new, super-challenging test called MT-Web2Code to see how good AI coding agents really are at this "fix-it-as-you-go" style of work. Instead of asking the AI to build a whole page, they gave it 102 different web pages from 16 different categories (like shopping, news, and government sites) and asked it to perform two specific types of tasks over multiple turns. The first task is "Regional Reconstruction," which is like the robot being told, "Hey, this whole section of the page is missing; here's a picture of what it should look like, please rebuild just that part without touching the rest." The second is "Localized Modification," which is even trickier: "Here are three tiny things that look wrong (maybe a button is the wrong color or a line is too thick); please fix only those tiny spots."
To make this test fair and impossible to bypass, the researchers invented a clever "Reverse-Corruption" engine. Imagine they took a perfect, golden website and then deliberately broke it in specific ways—hiding a whole section or messing up a few fonts. Then, they recorded exactly how they broke it. The AI's job is to reverse that process: look at the broken page, figure out what's wrong, and fix it back to the perfect state. Because the researchers know exactly how the page was broken, they can measure the AI's success with extreme precision. They found that while these AI robots are getting better, they still struggle mightily with this multi-turn game.
The results were a bit of a reality check. When the AI tried to rebuild a missing region, it often did a decent job on the new part but accidentally messed up the surrounding content, like changing the background color of the whole page when it was only supposed to fix a menu. When asked to make tiny, precise edits, the robots often failed to align the code perfectly with the visual fix, showing they lack fine-grained control. Perhaps most worryingly, the paper found an "error snowball" effect. If the AI made a small mistake in the first turn, that mistake got carried over and amplified in the next turns, making the final result much worse than if it had started fresh each time. Interestingly, the researchers also discovered that giving the AI a written description of what the broken part looked like didn't always help; sometimes, it actually confused the robot, making it rely too much on the words and ignore the actual picture.
In short, this paper suggests that while AI is great at building websites from scratch, it is still learning how to be a careful, iterative editor. It shows that being good at one doesn't automatically mean you're good at the other. The authors hope that by using their new, super-precise scoring system—which checks both the fixed part and the untouched parts—they can help train future AI to become more reliable, step-by-step web designers who don't break the rest of the house while fixing a single window.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.