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

UICoder:通过自动化反馈微调大语言模型以生成用户界面代码

UICoder: Finetuning Large Language Models to Generate User Interface Code through Automated Feedback

Carnegie Mellon University(卡内基梅隆大学);Apple Inc.(苹果公司)

Jason Wu, Eldon Schoop, Alan Leung, Titus Barik, Jeffrey P. Bigham, Jeffrey Nichols

AI总结:

针对 LLM 生成可编译且视觉匹配的 UI 代码难题,提出利用编译器与多模态模型自动反馈构建精炼合成数据并迭代微调,多个开源模型因此超过可下载基线并接近大型专有模型。

摘要:

大语言模型(LLM)难以稳定生成能够编译并产生视觉相关设计的 UI 代码。现有改进生成的方法依赖昂贵的人类反馈,或蒸馏专有模型。本文探索使用自动化反馈(编译器和多模态模型)引导 LLM 生成高质量 UI 代码。该方法从现有 LLM 出发,利用原始模型自生成大规模合成数据集,并应用自动化工具对数据进行严格过滤、评分和去重,形成更精炼、更高质量的数据集,从而迭代得到改进模型;随后在该精炼数据集上微调原始 LLM。作者将该方法应用于若干开源 LLM,并通过自动化指标和人类偏好,将所得性能与基线模型进行比较。评估表明,所得模型优于所有其他可下载基线,并接近更大规模专有模型的性能。

英文摘要:

Large language models (LLMs) struggle to consistently generate UI code that compiles and produces visually relevant designs. Existing approaches to improve generation rely on expensive human feedback or distilling a proprietary model. In this paper, we explore the use of automated feedback (compilers and multi-modal models) to guide LLMs to generate high-quality UI code. Our method starts with an existing LLM and iteratively produces improved models by self-generating a large synthetic dataset using an original model, applying automated tools to aggressively filter, score, and de-duplicate the data into a refined higher quality dataset. The original LLM is improved by finetuning on this refined dataset. We applied our approach to several open-source LLMs and compared the resulting performance to baseline models with both automated metrics and human preferences. Our evaluation shows the resulting models outperform all other downloadable baselines and approach the performance of larger proprietary models.

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

↑