paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Generating reusable web components from mockups

从界面原型(mockup)生成可复用的 Web 组件
ASE Proceedings of the 33rd ACM/IEEE International Conference on Automated Software Engineering2018匹配度 2/10 · 该论文属于机器学习与程序语言交叉中的代码生成,但方向是从UI mockup生成Web组件,不涉及静态分析、形式化验证、浮点程序分析、贝叶斯程序分析,也不涉及LLM/Agentic程序。因此与用户核心研究方向基本无关。引用 22 inbox
Mohammad Bajammal, Davood Mazinanian, Ali Mesbah
crossref: 2026-09-12

AI 速览

一句话:提出 VizMod,通过视觉分析与无监督学习从 UI mockup 自动生成可复用 Web 组件(如 React 组件)。

论文旨在自动化将图形设计师的 UI mockup 转换为最终 Web 应用中可复用组件这一耗时手工过程。方法上,VizMod 对 mockup 进行视觉分析,并通过无监督学习从视觉线索中识别可复用 Web 组件(如 React 组件),进而生成相应代码与重构。评估在五个真实 Web mockup 上进行,将变换与生成组件同 Web 开发专家的判断比较:平均精确率 94%、召回率 75%,重构带来的代码复用率平均为 22%。

问题
将图形设计师的 UI mockup 转换为最终 Web 应用中的可复用 Web 组件通常过程繁琐、依赖人工且耗时。
方法
对 mockup 进行视觉分析,并用无监督学习从视觉线索中识别可复用组件(如 React 组件),自动生成组件代码与重构。
评估
在五个真实 Web mockup 上实现并评估 VizMod,与 Web 开发专家的判断进行比较;平均精确率 94%、召回率 75%,重构平均带来 22% 代码复用率。
原文摘要(Abstract)

The transformation of a user interface mockup designed by a graphic designer to web components in the final app built by a web developer is often laborious, involving manual and time consuming steps. We propose an approach to automate this aspect of web development by generating reusable web components from a mockup. Our approach employs visual analysis of the mockup, and unsupervised learning of visual cues to create reusable web components (e.g., React components). We evaluated our approach, implemented in a tool called VizMod, on five real-world web mockups, and assessed the transformations and generated components through comparison with web development experts. The results show that VizMod achieves on average 94% precision and 75% recall in terms of agreement with the developers' assessment. Furthermore, the refactorings yielded 22% code reusability, on average.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot4765,
  title = {Generating reusable web components from mockups},
  author = {Mohammad Bajammal and Davood Mazinanian and Ali Mesbah},
  booktitle = {ASE},
  year = {2018},
  doi = {10.1145/3238147.3238194}
}