atlas

Research map / Vision-language and multimodal / Multimodal LLMs

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

NeurIPS 2024 · Vision-language and multimodal › Multimodal LLMs · approach: Unified any-modality language models · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces Web2Code, a ~1.18M-example webpage-to-HTML instruction tuning dataset plus an evaluation suite (WUB yes/no QA and WCGB GPT-4V-judged render comparison), showing gains on webpage tasks and general MLLM benchmarks when training LLaVA-style models on multiple LLM backbones.

Problem

Existing MLLMs are poor at understanding webpage screenshots and generating corresponding HTML code, and existing webpage-to-code datasets lack instruction format and do not suit general-purpose MLLM training; text similarity metrics also fail to assess code fidelity.

Approach

Build an instruction-formatted webpage-to-code dataset by generating new HTML pages with GPT-3.5, refining Pix2Code and WebSight and WebSRC with GPT-4, adding GPT-4-generated webpage QA pairs, and evaluate code by rendering predicted HTML to screenshots and scoring them with GPT-4V on 10 criteria.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add DWCG to general-domain instruction tuning (ablation)LLaMA3-8B · WCGBOverall: 1.79→6.402Helped
Add DWU to DWCG training (ablation)LLaMA3-8B · WCGBOverall: 6.402→6.716Helped
Add DWCG_R to DWCG + DWU training (ablation)LLaMA3-8B · WCGBOverall: 6.716→7.806Helped
Add DWU_R to DWCG + DWU + DWCG_R training (ablation)LLaMA3-8B · WCGBOverall: 7.806→8.530Helped
Add DWCG to general-domain instruction tuning (ablation)LLaMA3-8B · WUBAccuracy (%): 65.56→60.00Hurt
Add DWU to DWCG training (ablation)LLaMA3-8B · WUBAccuracy (%): 60.00→69.33Helped
Add DWCG_R to DWCG + DWU training (ablation)LLaMA3-8B · WUBAccuracy (%): 69.33→68.68Hurt
Add all Web2Code components to general-domain instruction tuning (ablation)LLaMA3-8B · WUBAccuracy (%): 65.56→74.84Helped
Add DWU to DWCG training (ablation)CrystalCoder-7B · WUBAccuracy (%): 71.81→73.74Helped
Use Web2Code instead of WebSight v0.1LLaMA3-8B · WCGBOverall: 4.125→8.530Helped
Use Web2Code instead of WebSight v0.2LLaMA3-8B · WUBAccuracy (%): 57.33→74.84Helped
Add DWU to CrystalChat-7B training (ablation)CrystalChat-7B with general-domain data · POPEscore: 86.86→87.10Helped

Surprising findings

Limitations

Experimental setup

Datasets: Web2Code (DWCG, DWU, DWCG_R, DWU_R) WebSight Pix2Code WebSRC LLaVA instruction data

Benchmarks: WUB WCGB Design2Code metrics MME POPE ScienceQA TextVQA

Metrics: accuracy GPT-4V 0-10 criteria score block-match text position color CLIP score

Baselines: LLaVA-1.5 WebSight v0.1 WebSight v0.2 Vicuna1.5-7B CrystalCoder-7B CodeLlama-7B LLaMA2-7B

Builds on: LLaVA-1.5 CodeAlpaca Design2Code WebSRC Pix2Code

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy