WebUIProof: Benchmarking WebUI Code Generators with UI-Agent Execution Harness

Yun-Yun Tsai, Yuning Mao, Shiqi Wang, Junfeng Yang, Sinong WangarXiv 2026

TL;DR

WebUIProof is a new execution-oriented benchmark that moves beyond static screenshots to verify the functional correctness of generated frontend code through automated interaction testing. By pairing structured specifications with a UI-agent execution harness, the authors demonstrate that even state-of-the-art LLMs frequently fail interactive requirements and show how these tests can serve as a powerful reinforcement learning signal to boost the performance of smaller, compact models.

What Problem Does This Paper Address?

Large Language Models (LLMs) have become remarkably good at generating code, but evaluating frontend development (WebUI generation) remains a significant challenge. Unlike backend code, which can be verified with unit tests, a WebUI's "correctness" depends on two subjective and dynamic factors: how it looks and how it behaves.

Existing benchmarks typically rely on static checks, such as whether the code compiles or if a screenshot matches a reference image. However, a page can look perfect but be completely broken—a "Save" button might not trigger an API call, or a 3D simulation might not respond to mouse drags. This "functional-interactive gap" means we lack a reliable way to measure if LLMs are actually building usable software or just plausible-looking mockups.

Methods

The authors introduce two major components to bridge this gap:

  1. WebUIProof Benchmark: A collection of 219 tasks spanning general WebUIs (dashboards, games, tools) and complex 3D interactive simulations (physics dynamics, particle systems). Each task includes a structured specification and a suite of executable interaction tests.
  2. UI-Agent Execution Harness: Instead of human testers, the authors use an automated UI agent. This agent operates in a headless browser using an iterative Plan–Act–Observe loop. It locates Document Object Model (DOM) elements, performs actions (click, type, drag), observes the resulting changes, and verifies assertions to determine if a requirement was truly met.
The WebUIProof instance format, showing how structured specs are paired with executable test cases.

Furthermore, the authors propose VisRL (Visual-guided Reinforcement Learning). This training approach uses the execution harness to provide "outcome-level" rewards. A model is optimized using a composite reward function that balances:

  • Code Validity: Does it build and run?
  • Visual Quality: Does it look professional and coherent?
  • Functional Success: Does it pass the UI-agent’s interaction tests?
Overview of the VisRL training pipeline.

Datasets

  • WebUIProof (Evaluation): 219 tasks (149 General + 70 3D) paired with approximately 3,000 executable interaction tests. It achieves a high element-level Test Coverage Rate (TCR) of 97.23%.
  • Training Data: For the VisRL experiments, the authors used a 6,000-sample training set for general tasks (derived from WebGen-Bench) and a custom-scraped dataset of 1,600 prompts based on official Three.js examples for 3D simulations.

Key Insights and Ideas

  • Rendering $\neq$ Working: A key finding is that many commercial LLMs generate pages that render successfully but fail interaction-based requirements. This is especially prevalent in 3D simulations where spatial reasoning and event handling are complex.
  • The Necessity of Composite Rewards: The authors observed that optimizing for interaction tests alone produces "minimalist" UIs that work but look terrible. Conversely, optimizing only for visual scores produces "pretty" UIs that are non-functional. The most balanced improvements come from combining build, visual, and interaction signals.
  • Instruction Complexity Bottleneck: By defining an Instruction Complexity Index (ICI), the researchers showed that as the number of required elements and interaction verbs increases, model performance drops significantly, highlighting a clear area for future architectural improvement.
UI-agent execution traces showing the agent grounding to DOM elements to validate behavior.

Key Results

  • Frontier Model Performance: Claude Sonnet 4 (as named in the paper) emerged as the top performer on general tasks with 46.10% accuracy, though it still suffered from a ~30% build failure rate.
  • VisRL Gains: Training compact models with VisRL yielded massive improvements. Qwen2.5 14B saw a +15.7% accuracy gain on general tasks and a +4.9% gain on 3D tasks compared to standard Supervised Fine-Tuning (SFT).
  • Build Failure Reduction: VisRL significantly improved reliability, reducing build failures for the MIMO 7B model by over 18% on general tasks.

Limitations and Future Work

The authors acknowledge that while the UI-agent evaluator is robust (achieving >80% agreement with humans), it is not perfect. Disagreements often stem from resource limitations (timeouts) or "brittle" element grounding where the agent fails to find a correctly generated but oddly labeled button.

Future work includes improving reward assignment for multi-step tasks, developing even more robust evaluation agents for dynamic 3D environments, and exploring how to handle increasingly complex, multi-page repository-level generation.

Summary updated

BibTeX
@misc{tsai2026webuiproof,
  author = {Yun-Yun Tsai and Yuning Mao and Shiqi Wang and Junfeng Yang and Sinong Wang},
  title = {{WebUIProof: Benchmarking WebUI Code Generators with UI-Agent Execution Harness}},
  year = {2026},
  eprint = {2610.02617},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.02617},
}
Figure