about
Design2Code: How Far Are We from Automating Front-End Engineering? (arxiv.org)
2 points by taubek on Mar 13, 2024 | hide | past | pdf | discuss on HN

In plain words: A test set of 484 real webpages asks AI systems to turn a screenshot into code that renders the same page, scored automatically and by people. Current systems mostly miss visual elements and get the layout wrong.

Abstract · Design2Code: Benchmarking Multimodal Code Generation for Automated Front-End Engineering

Generative AI has made rapid advancements in recent years, achieving unprecedented capabilities in multimodal understanding and code generation. This can enable a new paradigm of front-end development in which multimodal large language models (MLLMs) directly convert visual designs into code implementations. In this work, we construct Design2Code - the first real-world benchmark for this task. Specifically, we manually curate 484 diverse real-world webpages as test cases and develop a set of automatic evaluation metrics to assess how well current multimodal LLMs can generate the code implementations that directly render into the given reference webpages, given the screenshots as input. We also complement automatic metrics with comprehensive human evaluations to validate the performance ranking. To rigorously benchmark MLLMs, we test various multimodal prompting methods on frontier models such as GPT-4o, GPT-4V, Gemini, and Claude. Our fine-grained break-down metrics indicate that models mostly lag in recalling visual elements from the input webpages and generating correct layout designs.

Chenglei Si, Yanzhe Zhang, Ryan Li, Zhengyuan Yang, Ruibo Liu, Diyi Yang
arXiv:2403.03163 · cs.CL, cs.CV, cs.CY · submitted Mar 5, 2024 · updated Feb 9, 2025
abstract · pdf · html · NAACL 2025; The first two authors contributed equally

add comment on HN
Also discussed: Mar 2024 (1 point, 0 comments)