MRWeb:从UI设计生成多页面资源感知Web代码的探索
MRWeb: An Exploration of Generating Multi-Page Resource-Aware Web Code from UI Designs
AI总结:
本文提出多页面资源感知网页(MRWeb)生成任务,通过引入资源列表数据结构将UI设计转化为具有内外导航和后端路由的多页面Web UI,并构建500个网站数据集评估现有方法,发现资源列表可将导航功能提升至66%-80%。
摘要:
多页面网站在现代Web开发中占据主导地位。然而,现有的设计到代码方法依赖于简化的假设,局限于没有外部资源连接的单页面、自包含网页。为了弥补这一差距,我们引入了多页面资源感知网页(MRWeb)生成任务,该任务将UI设计转化为具有内部/外部导航、图像加载和后端路由的多页面、功能性Web UI。我们提出了一种新颖的资源列表数据结构,用于跟踪资源、链接和设计组件。我们的研究使用新策划的包含500个网站(300个合成网站,200个真实世界网站)的数据集,将现有方法应用于MRWeb问题。具体而言,我们确定了评估Web UI相似度的最佳指标,评估了资源列表对MRWeb生成的影响,分析了MLLM的局限性,并评估了MRWeb工具在真实世界工作流中的有效性。结果表明,资源列表将导航功能从0%提升至66%-80%,同时促进了视觉相似度。我们提出的指标和评估框架为MLLM在MRWeb任务上的性能提供了新见解。我们发布了MRWeb工具、数据集和评估框架以促进进一步研究。
英文摘要:
Multi-page websites dominate modern web development. However, existing design-to-code methods rely on simplified assumptions, limiting to single-page, self-contained webpages without external resource connection. To address this gap, we introduce the Multi-Page Resource-Aware Webpage (MRWeb) generation task, which transforms UI designs into multi-page, functional web UIs with internal/external navigation, image loading, and backend routing. We propose a novel resource list data structure to track resources, links, and design components. Our study applies existing methods to the MRWeb problem using a newly curated dataset of 500 websites (300 synthetic, 200 real-world). Specifically, we identify the best metric to evaluate the similarity of the web UI, assess the impact of the resource list on MRWeb generation, analyze MLLM limitations, and evaluate the effectiveness of the MRWeb tool in real-world workflows. The results show that resource lists boost navigation functionality from 0% to 66%-80% while facilitating visual similarity. Our proposed metrics and evaluation framework provide new insights into MLLM performance on MRWeb tasks. We release the MRWeb tool, dataset, and evaluation framework to promote further research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。