Interaction2Code: Benchmarking MLLM-based Interactive Webpage Code Generation from Interactive Prototyping

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Xiao, Jingyu, Wan, Yuxuan, Huo, Yintong, Wang, Zixin, Xu, Xinyi, Wang, Wenxuan, Xu, Zhiyao, Wang, Yuhang, Lyu, Michael R.
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911474809569280
author Xiao, Jingyu
Wan, Yuxuan
Huo, Yintong
Wang, Zixin
Xu, Xinyi
Wang, Wenxuan
Xu, Zhiyao
Wang, Yuhang
Lyu, Michael R.
author_facet Xiao, Jingyu
Wan, Yuxuan
Huo, Yintong
Wang, Zixin
Xu, Xinyi
Wang, Wenxuan
Xu, Zhiyao
Wang, Yuhang
Lyu, Michael R.
contents Multimodal Large Language Models (MLLMs) have demonstrated remarkable performance on the design-to-code task, i.e., generating UI code from UI mock-ups. However, existing benchmarks only contain static web pages for evaluation and ignore the dynamic interaction, limiting the practicality, usability and user engagement of the generated webpages. To bridge these gaps, we present the first systematic investigation of MLLMs in generating interactive webpages. Specifically, we formulate the Interaction-to-Code task and establish the Interaction2Code benchmark, encompassing 127 unique webpages and 374 distinct interactions across 15 webpage types and 31 interaction categories. Through comprehensive experiments utilizing state-of-the-art (SOTA) MLLMs, evaluated via both automatic metrics and human assessments, we identify four critical limitations of MLLM on Interaction-to-Code task: (1) inadequate generation of interaction compared with full page, (2) prone to ten types of failure, (3) poor performance on visually subtle interactions, and (4) insufficient undestanding on interaction when limited to single-modality visual descriptions. To address these limitations, we propose four enhancement strategies: Interactive Element Highlighting, Failureaware Prompting (FAP), Visual Saliency Enhancement, and Visual-Textual Descriptions Combination, all aiming at improving MLLMs' performance on the Interaction-toCode task. The Interaction2Code benchmark and code are available in https://github. com/WebPAI/Interaction2Code.
format Preprint
id arxiv_https___arxiv_org_abs_2411_03292
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Interaction2Code: Benchmarking MLLM-based Interactive Webpage Code Generation from Interactive Prototyping
Xiao, Jingyu
Wan, Yuxuan
Huo, Yintong
Wang, Zixin
Xu, Xinyi
Wang, Wenxuan
Xu, Zhiyao
Wang, Yuhang
Lyu, Michael R.
Software Engineering
Artificial Intelligence
Human-Computer Interaction
Multimodal Large Language Models (MLLMs) have demonstrated remarkable performance on the design-to-code task, i.e., generating UI code from UI mock-ups. However, existing benchmarks only contain static web pages for evaluation and ignore the dynamic interaction, limiting the practicality, usability and user engagement of the generated webpages. To bridge these gaps, we present the first systematic investigation of MLLMs in generating interactive webpages. Specifically, we formulate the Interaction-to-Code task and establish the Interaction2Code benchmark, encompassing 127 unique webpages and 374 distinct interactions across 15 webpage types and 31 interaction categories. Through comprehensive experiments utilizing state-of-the-art (SOTA) MLLMs, evaluated via both automatic metrics and human assessments, we identify four critical limitations of MLLM on Interaction-to-Code task: (1) inadequate generation of interaction compared with full page, (2) prone to ten types of failure, (3) poor performance on visually subtle interactions, and (4) insufficient undestanding on interaction when limited to single-modality visual descriptions. To address these limitations, we propose four enhancement strategies: Interactive Element Highlighting, Failureaware Prompting (FAP), Visual Saliency Enhancement, and Visual-Textual Descriptions Combination, all aiming at improving MLLMs' performance on the Interaction-toCode task. The Interaction2Code benchmark and code are available in https://github. com/WebPAI/Interaction2Code.
title Interaction2Code: Benchmarking MLLM-based Interactive Webpage Code Generation from Interactive Prototyping
topic Software Engineering
Artificial Intelligence
Human-Computer Interaction
url https://arxiv.org/abs/2411.03292