paperbot · PL 论文追踪

全部论文 待读 收藏

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

DesignRepair:基于大语言模型的双流设计规范感知前端修复
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 2/10 · 论文将 LLM 与 RAG 用于前端 UI 设计质量修复,属于 LLM 辅助代码修复/生成范畴,但不涉及静态分析、形式化验证、浮点程序分析或贝叶斯程序分析,也未讨论 Agentic 程序或 ML 系统程序分析,因此与研究方向核心不匹配。引用 4 inbox
Mingyue Yuan, Jieshan Chen, Zhenchang Xing, Aaron Quigley, Yuyu Luo, Tianqi Luo, Gelareh Mohammadi, Qinghua Lu, Liming Zhu
crossref: 2026-09-12

AI 速览

一句话:提出 DesignRepair,用代码与渲染页面双流视角结合 Material Design 知识库和 RAG,让 LLM 修复前端 UI 设计质量问题

LLM 生成前端界面(如 Vercel v0)虽便捷,却带来可访问性、可用性等设计质量隐患,现有方法受限于关注面窄、泛化性差或数据依赖,也少有工作考察 LLM 生成 UI 的设计质量。本文提出 DesignRepair,从代码与渲染页面两个视角检查并修复 UI 设计质量问题,以 Google Material Design 为知识库,构建底层组件知识库与高层系统设计知识库;随后用 LLM 抽取关键组件、用 Playwright 精确分析页面并与知识库对齐,最后以检索增强生成结合 GPT-4 等先进模型,通过分而治之策略整体精修前端代码。大量评估验证了方法的有效性与实用性,在规范遵循度、可访问性和用户体验指标上均有显著提升。

问题
LLM 自动生成的前端界面存在可访问性、可用性等设计质量问题,而现有修复方案受限于关注面单一、泛化能力不足或依赖特定数据,且缺乏对 LLM 生成 UI 设计质量的系统考察。
方法
以 Google Material Design 为知识库,构建底层组件与高层系统设计两级知识库;用 LLM 抽取关键组件并以 Playwright 分析渲染页面,与知识库对齐后,结合检索增强生成和 GPT-4 等模型以分而治之策略修复前端代码。
评估
开展了广泛的实证评估,结果表明该方法有效且实用,在遵循设计规范、可访问性与用户体验指标上均带来显著提升。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8755,
  title = {DesignRepair: Dual-Stream Design Guideline-Aware Frontend Repair with Large Language Models},
  author = {Mingyue Yuan and Jieshan Chen and Zhenchang Xing and Aaron Quigley and Yuyu Luo and Tianqi Luo and Gelareh Mohammadi and Qinghua Lu and Liming Zhu},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00109}
}