WAFFLE: Finetuning Multi-Modal Models for Automated Front-End Development
Shanchao Liang, Nan Jiang, Shangshu Qian, Lin Tan

TL;DR
This paper introduces Waffle, a fine-tuning strategy for large language models that enhances their ability to generate HTML from UI designs by incorporating structure-aware attention and contrastive learning, leading to significant performance improvements.
Contribution
Waffle is a novel fine-tuning approach that improves multi-modal model understanding of HTML structure and UI-image to HTML translation, outperforming existing methods.
Findings
Up to 9.00 percentage points higher HTML match
Significant improvements in CW-SSIM, CLIP, and LLEM metrics
Outperforms current fine-tuning methods on WebSight-Test and Design2Code benchmarks
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFormal Methods in Verification · Model-Driven Software Engineering Techniques · Software Reliability and Analysis Research
MethodsSoftmax · Attention Is All You Need · ALIGN · Contrastive Language-Image Pre-training
