← Latest papers
🤖 AI

HTMLCure: Turning Browser Experience into State Guided Repair for Interactive HTML

HTMLCure introduces a state-guided browser experience framework that evaluates and repairs interactive HTML through deterministic interaction trajectories, significantly expanding a seed corpus into a high-quality dataset that enables a 27B model to achieve performance comparable to leading systems like Kimi-K2.6 and GPT-5.4 on interactive web benchmarks.

Original authors: Jiajun Wu, Jian Yang, Tuney Zheng, Wei Zhang, Haowen Wang, Yihang Lou, Xianglong Liu

Published 2026-05-27
📖 5 min read🧠 Deep dive

Original authors: Jiajun Wu, Jian Yang, Tuney Zheng, Wei Zhang, Haowen Wang, Yihang Lou, Xianglong Liu

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

The Big Problem: "Looks Good, But Broken"

Imagine you ask a very talented artist (an AI) to build a toy car. The artist hands you a beautiful model. It looks perfect in the photo. But when you try to push it, the wheels fall off. When you try to steer it, the steering wheel spins uselessly.

This is the current problem with AI-generated web pages (HTML). They often look great in a single snapshot (a screenshot), but when a real person tries to click buttons, scroll down, resize the window, or play a game, the page breaks.

  • The Old Way: Researchers used to take a photo of the page, check if it looked pretty, and decide if it was "good." This missed all the broken wheels.
  • The Result: They threw away thousands of pages that were actually fixable, or they kept pages that looked good but didn't work.

The Solution: HTMLCURE (The "Test Drive" Mechanic)

The authors built a system called HTMLCURE. Instead of just looking at a photo, HTMLCURE acts like a mechanic who takes the car for a test drive.

Here is how it works, step-by-step:

1. The Test Drive (Browser Experience)

Instead of just taking a picture, HTMLCURE loads the web page into a real browser. It doesn't just sit there; it actively interacts with it:

  • It scrolls up and down.
  • It resizes the window (like checking if a car fits in a small garage).
  • It clicks buttons, hovers over links, and tries to play games.
  • It records exactly what happens: "The button didn't work," "The game froze," or "The layout broke on mobile."

Analogy: Think of this as a driving test for a car. You don't just look at the paint job; you drive it to see if the engine starts, if the brakes work, and if the transmission shifts smoothly.

2. The Diagnosis (State Signal)

After the test drive, the system gives the page a "health score" and a diagnosis. It categorizes the page into three groups, like a doctor triaging patients:

  • Low Score (The Wreck): The page is a mess. It's missing big chunks of structure.
    • The Fix: Total Rewrite. Don't try to patch it; build a new car from scratch.
  • Mid Score (The Clunker): The page works mostly, but has specific broken parts (e.g., the radio doesn't work, or the door handle is stuck).
    • The Fix: Targeted Repair. Diagnose the specific broken part and fix just that.
  • High Score (The Sports Car): The page is already great.
    • The Fix: Polish Only. Don't touch the engine; maybe just wax the paint. If you try to "fix" something that isn't broken, you might break it.

Key Insight: The paper claims that using the same repair method for all pages is a mistake. You need a different strategy depending on how broken the page actually is.

3. The Repair Loop (The Feedback Cycle)

Once the system decides on a strategy (Rewrite, Patch, or Polish), it asks the AI to fix the page.

  • Crucial Step: The system doesn't just trust the AI's word. It takes the new version of the page and runs the Test Drive again.
  • The Gatekeeper: If the new version is better, it keeps it. If the new version is worse (a "regression"), it throws it away and tries again.
  • The Goal: It keeps doing this until the page passes a high-quality standard (a score of 97/100).

Analogy: Imagine a chef tasting a soup. If it's too salty, they add water. Then they taste it again. They don't just assume the water fixed it; they verify it. If they add too much water and it's now too bland, they stop and try a different recipe.

The Results: Building a Better Library

The authors used this system on a huge collection of 97,000 AI-generated pages.

  • They started with a small pile of "perfect" pages.
  • They used HTMLCURE to fix the "broken" ones.
  • They ended up with 63,000 high-quality, verified pages (up from the original small set).

They then used this new, cleaned-up library to train a new AI model (called HTMLCure-27B).

The Outcome:

  • The new model is significantly better at making working web pages.
  • It scored 50.6 on a strict test called HTMLBENCH, which is on par with top-tier commercial models (like Kimi-K2.6 and GPT-5.4).
  • On a different test (MiniAppBench), it improved by 15 points compared to the untrained version.

Summary in One Sentence

HTMLCURE is a system that stops AI from just "guessing" if a web page works; instead, it forces the AI to test-drive every page, diagnose exactly what is broken, repair it using the right strategy, and re-test it to ensure the fix actually worked, creating a massive library of high-quality, working code.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →