Manuscript Offprint

arXiv:2610.02617

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Evaluating WebUI code generation at scale is difficult: outputs may compile and look plausible yet fail under user interaction, and prior benchmarks largely rely on free-form prompts with static checks (build success, screenshots) that miss functional correctness. We introduce WebUIProof, an execution-oriented benchmark that provides structured specifications and dense, executable interaction tests for WebUI generation across two task families: general WebUIs (e.g., dashboards, game, interactive tools) and 3D interactive simulation (e.g., particle/galaxy systems, physics dynamics). WebUIProof includes a UI-agent harness that runs executable interaction tests in a headless browser using an iterative plan–act–observe loop: it locates DOM elements, performs actions, observes resulting UI/DOM changes, and checks the specified assertions. We evaluate across eight commercial LLMs and observe frequent failures on interaction-based requirements even when pages render successfully, especially on 3D simulation interfaces. Finally, we show the UI-agent harness can provide outcome-level training signals. Training compact models (e.g., Qwen2.5 14B and MIMO 7B) with RL rewards derived from executable interaction tests improves functional completion while reducing build failures. Project link: https://github.com/yunyuntsai/webuiproof-benchmark

1 Introduction

With LLMs increasingly integrate into the software development cycles, reliable evaluation for code generation becomes critical, motivating the benchmarks for real-world GitHub issues [10][10], programming competitions [11][11], multilingual coding tasks [27][27], and interview coding problems [9][9]. Frontend code generation (WebUI generation) differs fundamentally from backend code synthesis and remains comparatively underexplored. The correctness depends not only on whether code compiles, but on what the UI renders and how it behaves under interaction.

Existing WebUI benchmarks only partially address this challenge. WebDev-Arena [26] provides a large set of web prompts, but instructions are largely free-form and evaluation relies on human preference rather than executable functional verification. WebGen-Bench [13] introduces test cases for web prompts, but many requirements stated in instructions are left unchecked, resulting in incomplete coverage of instruction-following. More broadly, many benchmarks [20, 24, 19] depend on static checks such as build success, lint/type checks, or screenshots, which are insufficient to validate interactive behavior.

We introduce WebUIProof, an execution-oriented benchmark designed to measure functional, interactive correctness of WebUI code generation. WebUIProof replaces free-form prompts with structured

*Work done in internship at Meta

Preprint.

Figure

Figure 1: Examples of WebUI outputs in WebUIProof, spanning general applications (landing pages, code IDE, social/profile pages, games) and 3D simulation interfaces (physics dynamics, planetary scenes). These examples illustrate the benchmark’s emphasis on both visual fidelity and interaction-driven functionality. Each task is evaluated with executable interaction tests that check user actions (click/type/drag) and the resulting UI behavior.

specifications (website summary and UI element requirements) and pairs them with executable interaction tests that drive the UI agent to verify expected behavior. WebUIProof contains 219 tasks (149 general + 70 3D) paired with 3k executable interaction tests, enabling functional evaluation at much higher granularity than prompt-only benchmarks. The tasks span two families that cover standard UI workflows and richer interactive behaviors, including dashboards/games/tools and interactive 3D simulations such as physics dynamics and 3D scenes (see Fig. 1). Our evaluation protocol is automated and reproducible, with a fixed UI-agent execution harness that runs these tests in a headless browser by iteratively planning the next interaction, executing browser actions (e.g., click, select, type, scroll), observing DOM/visual state changes, and verifying test assertions.

While WebUIProof is primarily a benchmark contribution, the harness also provides outcome-level training signals by self-observing the rendered UI in training rollouts and deriving interactive tests from it. We therefore include VisRL (Visual-guided Reinforcement Learning), an execution-grounded RL approach that optimizes a compact model using composite rewards from build/runtime execution, visual quality, and UI-agent execution test success. In addition, we adopt several training strategies, such as multi-temperature sampling and fast-gate filtering, to improve rollout efficiency and stabilize learning under costly executable evaluation.

Our contributions are as follows:

  1. We introduce WebUIProof, an execution-oriented benchmark for WebUI code generation that pairs structured specifications with executable interaction tests and a fixed UI-agent evaluation protocol for functional correctness. It contains 219 tasks spanning (i) general WebUIs (e.g., dashboards, games, interactive tools) and (ii) 3D simulation WebUIs (e.g., physics-driven interactive scenes).

  2. We provide an agent-assisted construction pipeline for producing structured specs. and element-aligned executable tests at scale (Sec. 3).

  3. With our executable UI-agent protocol (DOM grounding + interaction execution + assertions), we benchmark eight commercial LLMs and show that many outputs build/render yet fail interaction requirements, especially on 3D simulation interfaces. (Sec. 4).

  4. We include VisRL as an execution-grounded RL approach enabled by the execution harness with composite rewards. Training compact model such as Qwen2.5 14B Instruct and MIMO 7B yield significant improvement of accuracy on general WebUI (+15.7% gain) and 3D simulation tasks (+4.9% gain) over SFT. We provide comprehensive ablations on evaluator robustness, benchmark quality analysis, and learning strategies (Sec. 5).

References (18)