Archived This paper is outside Paper Radar's one-year feed. More archived papers
WebVIA: A Web-based Vision-Language Agentic Framework for Interactive and Verifiable UI-to-Code Generation
Reading guide · Based on sections of the original paper
Why read this
Read this if you build screenshot-to-code or GUI-agent systems and want a recipe for multi-state training data and interactivity-based evaluation, not static visual matching alone.
What the authors found
- On the authors' UIFlow2Code benchmark (50 synthetic pages, scored as the ratio of passed tasks to total tasks), the fine-tuned GLM-9B variant scored 84.9 and the Qwen-7B variant 75.9. Their base models produced no valid output. GLM edges past Claude-Sonnet-4 (82.1) but trails Gemini-2.5-pro (90.2). On static Design2Code, the gains were about 5 points (58.3→63.0 and 29.1→34.3), still far below Gemini (89.5). Training targets were code generated by Claude. 5.4 Interactive Code Generation Evaluation
- In pipeline-level exploration on 56 webpages, the SFT'd GLM-4.1V-9B agent had the highest weighted overall score (89.63 in the table) versus Claude-Sonnet-4 (87.87). The weights were set empirically. The agent's deduplication rate (72.73) is lower than GPT-5 (93.82) and Claude-Sonnet-4 (80.36). 5.3 Pipeline-Level Agent Evaluation
- Single-step results show small margins on small sets. Action-generation F1 was 85.30 versus 83.38 for Claude-Sonnet-4 (87 samples). Verification accuracy was 91.51 versus 90.57 for GPT-5 (53 samples). 5.2 Single-Step Agent Evaluation
Main limitation
The authors say exploration covers only click, enter and select actions, and that training mostly on synthetic pages limits real-world use. They report the agent struggles on calculator and plotting interfaces. Real-site generalization is shown only through qualitative demos. Limitations
Where to start
A.5 UIFlow2Code-Bench Construction · Check how UIFlow2Code is built: synthetic pages explored by the WebVIA agent, screenshots selected by humans, and pass criteria. This tells you whether the interactive scores transfer to your pages.
Abstract
User interface (UI) development requires translating design mockups into functional code, a process that remains repetitive and labor-intensive. While recent Vision-Language Models (VLMs) automate UI-to-Code generation, they generate only static HTML/CSS/JavaScript layouts lacking interactivity. To address this, we propose WebVIA, the first agentic framework for interactive UI-to-Code generation and validation. The framework comprises three components: 1) an exploration agent to capture multi-state UI screenshots; 2) a UI2Code model that generates executable interactive code; 3) a validation module that verifies the interactivity. Experiments demonstrate that WebVIA-Agent achieves more stable and accurate UI exploration than general-purpose agents (e.g., Gemini-2.5-Pro). In addition, our fine-tuned WebVIA-UI2Code models exhibit substantial improvements in generating executable and interactive HTML/CSS/JavaScript code, outperforming their base counterparts across both interactive and static UI2Code benchmarks. Our code and models are available at \href{https://zheny2751-dotcom.github.io/webvia.github.io/}{\texttt{https://webvia.github.io}}.