paper-with-me

Papers

Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMs

2024-06-28 · Sukmin Yun, Haokun Lin, Rusiru Thushara, Mohammad Qazim Bhat, Yongxin Wang, Zutao Jiang, Mingkai Deng, Jinhong Wang, Tianhua Tao, Junbo Li, Haonan Li, Preslav Nakov, Timothy Baldwin, Zhengzhong Liu, Eric P. Xing, Xiaodan Liang, Zhiqiang Shen

Multimodal large language models (MLLMs) have shown impressive success across modalities such as image, video, and audio in a variety of understanding and generation tasks. However, current MLLMs are surprisingly poor at understanding webpage screenshots and generating their corresponding HTML code. To address this problem, we propose $\texttt{Web2Code}$, a benchmark consisting of a new large-scale webpage-to-code dataset for instruction tuning and an evaluation framework for the webpage understanding and HTML code translation abilities of MLLMs. For dataset construction, we leverage pretrained LLMs to enhance existing webpage-to-code datasets as well as generate a diverse pool of new webpages rendered into images. Specifically, the inputs are webpage images and instructions, while the responses are the webpage's HTML code. We further include diverse natural language QA pairs about the webpage content in the responses to enable a more comprehensive understanding of the web content. To evaluate model performance in these tasks, we develop an evaluation framework for testing MLLMs' abilities in webpage understanding and web-to-code generation. Extensive experiments show that our proposed dataset is beneficial not only to our proposed tasks but also in the general visual domain. We hope our work will contribute to the development of general MLLMs suitable for web-based content generation and task automation. Our data and code are available at https://github.com/MBZUAI-LLM/web2code.

📄 PDF Abstract BibTeX arXiv:2406.20098

Code (1)

mbzuai-llm/web2code 공식 구현 pytorch

Tasks

Code GenerationCode Translation

Similar Papers 제목 키워드 기반

WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs

2024-04-09 · Yi Gui, Zhen Li, Yao Wan, Yemin Shi 외

Automatically generating webpage code from webpage designs can significantly reduce the workload of front-end developers, and recent Multimodal Large Language Models (MLLMs) have shown promising potential in this area. H…

BenchmarkingCode Generation

CoVA: Context-aware Visual Attention for Webpage Information Extraction

2021-10-24 · ECNLP (ACL) 2022 5 · Anurendra Kumar, Keval Morabia, Jingjin Wang, Kevin Chen-Chuan Chang 외

Webpage information extraction (WIE) is an important step to create knowledge bases. For this, classical WIE methods leverage the Document Object Model (DOM) tree of a website. However, use of the DOM tree poses signific…

object-detectionObject DetectionWebpage Object Detection

Benchmarking Multimodal LLMs on Code Generation for Complex Interactive Webpages

2026-05-29 · Fan Wu, Lishuai Dong, Cuiyun Gao, Yujia Chen 외 arxiv

Recent advancements in multimodal large language models (MLLMs) have achieved remarkable progress in multimodal reasoning and code generation, catalyzing a new paradigm for front-end development. In particular, these mod…

Multimodal ReasoningCode Generation

Web Image Context Extraction with Graph Neural Networks and Sentence Embeddings on the DOM tree

2021-08-26 · Chen Dang, Hicham Randrianarivo, Raphaël Fournier-S'niehotta, Nicolas Audebert

Web Image Context Extraction (WICE) consists in obtaining the textual information describing an image using the content of the surrounding webpage. A common preprocessing step before performing WICE is to render the cont…

SentenceSentence Embeddings

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

2024-11-05 · Jingyu Xiao, Yuxuan Wan, Yintong Huo, Zixin Wang 외

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 eval…

BenchmarkingCode Generation