arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.18362cs.SEcs.CLcs.CV
收藏

WAFFLE:针对自动化前端开发的多模态模型微调

WAFFLE: Finetuning Multi-Modal Models for Automated Front-End Development

Purdue University(普渡大学)

Shanchao Liang, Nan Jiang, Shangshu Qian, Lin Tan

AI总结:

WAFFLE通过结构感知注意力机制和对比微调方法,提升多模态模型在UI到HTML代码生成中的表现。

摘要:

网页开发涉及将UI设计转化为功能网页,这对初学者和有经验的开发者来说都具有挑战性,因为HTML的层次结构和样式复杂。尽管大型语言模型(LLMs)在生成源代码方面显示出潜力,但在UI到HTML代码生成中仍存在两个主要挑战:(1)有效表示HTML的层次结构以供LLMs使用,(2)弥合UI设计的视觉性质与HTML代码的文本格式之间的差距。为了解决这些挑战,我们引入了Waffle,一种新的微调策略,它使用结构感知的注意力机制来提高LLMs对HTML结构的理解,并采用对比微调方法来对齐LLMs对UI图像和HTML代码的理解。使用Waffle微调的模型在我们新的基准WebSight-Test和现有的Design2Code基准上,显示出高达9.00个百分点更高的HTML匹配度,0.0982更高的CW-SSIM,32.99更高的CLIP,以及27.12个百分点更高的LLEM,优于当前的微调方法。

英文摘要:

Web development involves turning UI designs into functional webpages, which can be difficult for both beginners and experienced developers due to the complexity of HTML's hierarchical structures and styles. While Large Language Models (LLMs) have shown promise in generating source code, two major challenges persist in UI-to-HTML code generation: (1) effectively representing HTML's hierarchical structure for LLMs, and (2) bridging the gap between the visual nature of UI designs and the text-based format of HTML code. To tackle these challenges, we introduce Waffle, a new fine-tuning strategy that uses a structure-aware attention mechanism to improve LLMs' understanding of HTML's structure and a contrastive fine-tuning approach to align LLMs' understanding of UI images and HTML code. Models fine-tuned with Waffle show up to 9.00 pp (percentage point) higher HTML match, 0.0982 higher CW-SSIM, 32.99 higher CLIP, and 27.12 pp higher LLEM on our new benchmark WebSight-Test and an existing benchmark Design2Code, outperforming current fine-tuning methods.

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

↑