arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.01606cs.SE
收藏

DesignRepair:基于大语言模型的双流设计指南感知前端修复

DesignRepair: Dual-Stream Design Guideline-Aware Frontend Repair with Large Language Models

Mingyue Yuan, Jieshan Chen, Zhenchang Xing, Aaron Quigley, Yuyu Luo, Tianqi Luo, Gelareh Mohammadi, Qinghua Lu, Liming Zhu

AI总结:

DesignRepair提出双流设计指南感知系统,结合知识库、LLM与检索增强生成,从代码和渲染页面两方面修复前端UI设计质量问题,显著提升设计规范遵循度、可访问性和用户体验。

摘要:

大语言模型(LLMs)的兴起通过Vercel的V0等工具简化了前端界面的创建,但也带来了设计质量(如可访问性和可用性)方面的挑战。现有解决方案通常受限于其关注点、泛化能力或数据依赖性,难以应对这些复杂性。此外,它们均未审视LLM生成的UI设计质量。在本工作中,我们引入了DesignRepair,一种新颖的双流设计指南感知系统,从代码层面和渲染页面层面同时检查和修复UI设计质量问题。我们利用成熟且流行的Material Design作为知识库来指导这一过程。具体而言,我们首先构建了一个全面的知识库,将Google的Material Design原则编码为底层组件知识库和顶层系统设计知识库。之后,DesignRepair采用LLM提取关键组件,并利用Playwright工具进行精确的页面分析,将这些与已建立的知识库对齐。最后,我们将检索增强生成与GPT-4等最先进的LLM集成,通过战略性的分而治之方法全面优化和修复前端代码。我们广泛的评估验证了该方法的有效性和实用性,展示了在设计指南遵循度、可访问性和用户体验指标方面的显著提升。

英文摘要:

The rise of Large Language Models (LLMs) has streamlined frontend interface creation through tools like Vercel's V0, yet surfaced challenges in design quality (e.g., accessibility, and usability). Current solutions, often limited by their focus, generalisability, or data dependency, fall short in addressing these complexities. Moreover, none of them examine the quality of LLM-generated UI design. In this work, we introduce DesignRepair, a novel dual-stream design guideline-aware system to examine and repair the UI design quality issues from both code aspect and rendered page aspect. We utilised the mature and popular Material Design as our knowledge base to guide this process. Specifically, we first constructed a comprehensive knowledge base encoding Google's Material Design principles into low-level component knowledge base and high-level system design knowledge base. After that, DesignRepair employs a LLM for the extraction of key components and utilizes the Playwright tool for precise page analysis, aligning these with the established knowledge bases. Finally, we integrate Retrieval-Augmented Generation with state-of-the-art LLMs like GPT-4 to holistically refine and repair frontend code through a strategic divide and conquer approach. Our extensive evaluations validated the efficacy and utility of our approach, demonstrating significant enhancements in adherence to design guidelines, accessibility, and user experience metrics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑