arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.06251cs.SEcs.AI

WebVIA:一个基于Web的视觉-语言智能体框架,用于可交互且可验证的UI到代码生成

WebVIA: A Web-based Vision-Language Agentic Framework for Interactive and Verifiable UI-to-Code Generation

  • Faculty of Mathematics, University of Waterloo(滑铁卢大学数学系)
  • The Knowledge Engineering Group (KEG), Tsinghua University(清华大学知识工程集团)
  • Zhipu AI(智谱AI)

机构由 AI 辅助整理,请以论文原文为准。

Mingde Xu, Zhen Yang, Wenyi Hong, Lihang Pan, Xinyue Fan, Yan Wang, Xiaotao Gu, Bin Xu, Jie Tang

更新

AI总结:

WebVIA提出首个面向交互式UI到代码生成的智能体框架,通过探索智能体、UI2Code模型和验证模块实现多状态UI捕获、可执行交互代码生成与交互性验证,实验表明其在探索稳定性和代码生成性能上优于通用智能体及基础模型。

AI中文摘要:

用户界面(UI)开发需要将设计原型转化为功能代码,这一过程仍然重复且劳动密集。尽管最近的视觉-语言模型(VLMs)自动化了UI到代码生成,但它们仅生成缺乏交互性的静态HTML/CSS/JavaScript布局。为了解决这一问题,我们提出了WebVIA,这是首个用于交互式UI到代码生成与验证的智能体框架。该框架包含三个组件:1)一个探索智能体,用于捕获多状态UI截图;2)一个UI2Code模型,用于生成可执行的交互式代码;3)一个验证模块,用于验证交互性。实验表明,WebVIA-Agent比通用智能体(如Gemini-2.5-Pro)实现了更稳定和准确的UI探索。此外,我们微调后的WebVIA-UI2Code模型在生成可执行且交互式的HTML/CSS/JavaScript代码方面表现出显著改进,在交互式和静态UI2Code基准测试中均优于其基础模型。我们的代码和模型可在https://webvia.github.io获取。

英文摘要:

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}}.

补充信息

↑