Lune

ISSTA2025Top-tier venue

MLLM-Based UI2Code Automation Guided by UI Layout Information

Fan Wu, Cuiyun Gao, Shuqing Li, Xin-Cheng Wen, Qing Liao

Abstract

Converting user interfaces into code (UI2Code) is a crucial step in website development, which is time-consuming and labor-intensive. The automation of UI2Code is essential to streamline this task, beneficial for improving the development efficiency. There exist deep learning-based methods for the task; however, they heavily rely on a large amount of labeled training data and struggle with generalizing to real-world, unseen web page designs. The advent of Multimodal Large Language Models (MLLMs) presents potential for alleviating the issue, but they are difficult to comprehend the complex layouts in UIs and generate the accurate code with layout preserved. To address these issues, we propose LayoutCoder, a novel MLLM-based framework generating UI code from real-world webpage images, which includes three key modules: (1) Element Relation Construction, which aims at capturing UI layout by identifying and grouping components with similar structures; (2) UI Layout Parsing, which aims at generating UI layout trees for guiding the subsequent code generation process; and (3) Layout-Guided Code Fusion, which aims at producing the accurate code with layout preserved. For evaluation, we build a new benchmark dataset which involves 350 real-world websites named Snap2Code, divided into seen and unseen parts for mitigating the data leakage issue, besides the popular dataset Design2Code. Extensive evaluation shows the superior performance of LayoutCoder over the state-of-the-art approaches. Compared with the best-performing baseline, LayoutCoder improves 10.14% in the BLEU score and 3.95% in the CLIP score on average across all datasets.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation cites EfficientUICoder: A Bidirectional Token Compression Framework for Efficient MLLM-Based UI Code Generation
  • MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation cites Widget2Code: From Visual Widgets to UI Code via Multimodal LLMs
  • MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation cites Learning Transferable Visual Models From Natural Language Supervision
  • MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation cites WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs
  • MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code Generation cites Divide-and-Conquer: Generating UI Code from Screenshots
  • EfficientUICoder: A Bidirectional Token Compression Framework for Efficient MLLM-Based UI Code Generation cites Learning Transferable Visual Models From Natural Language Supervision
  • EfficientUICoder: A Bidirectional Token Compression Framework for Efficient MLLM-Based UI Code Generation cites WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs
  • EfficientUICoder: A Bidirectional Token Compression Framework for Efficient MLLM-Based UI Code Generation cites Divide-and-Conquer: Generating UI Code from Screenshots
  • Deterministic Component Mining for Multi-Framework UI2Code Generation cites Learning Transferable Visual Models From Natural Language Supervision
  • Deterministic Component Mining for Multi-Framework UI2Code Generation cites WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs
  • Widget2Code: From Visual Widgets to UI Code via Multimodal LLMs cites WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs
  • Widget2Code: From Visual Widgets to UI Code via Multimodal LLMs cites Divide-and-Conquer: Generating UI Code from Screenshots
  • WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs cites CogAgent: A Visual Language Model for GUI Agents
  • WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs cites Learning Transferable Visual Models From Natural Language Supervision
  • 3D Software Synthesis Driven by Constraint-Expressive Intermediate Representation cites Learning Transferable Visual Models From Natural Language Supervision
  • 3D Software Synthesis Driven by Constraint-Expressive Intermediate Representation cites WebCode2M: A Real-World Dataset for Code Generation from Webpage Designs
  • 3D Software Synthesis Driven by Constraint-Expressive Intermediate Representation cites Divide-and-Conquer: Generating UI Code from Screenshots
  • Divide-and-Conquer: Generating UI Code from Screenshots cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Widget2Code: From Visual Widgets to UI Code via Multimodal LLMsHouston H. Zhang, Tao Zhang, Baoze Lin, Yuanqi Xue et al.CVPR 2026 · 9 citations
  2. MulFCoder: Framework-conditioned Multi-agent for MLLM-based Multi-framework Front-end Code GenerationJie Wu, Haoran Ma, Shisong Tang, Yulin Xu et al.ICML 2026
  3. EfficientUICoder: A Bidirectional Token Compression Framework for Efficient MLLM-Based UI Code GenerationJingyu Xiao, Zhongyi Zhang, Yuxuan Wan, Yintong Huo et al.FSE 2026
  4. Deterministic Component Mining for Multi-Framework UI2Code GenerationZixiong Yang, Linxiao Li, Jiaye Lin, Binrui Wu et al.ICML 2026
  5. 3D Software Synthesis Driven by Constraint-Expressive Intermediate RepresentationShuqing Li, Anson Y. Lam, Yun Peng, Wenxuan Wang et al.ICSE 2026

Builds on4

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. WebCode2M: A Real-World Dataset for Code Generation from Webpage DesignsYi Gui, Zhen Li, Yao Wan, Yemin Shi et al.WWW 2025 · 38 citations
  3. Divide-and-Conquer: Generating UI Code from ScreenshotsYuxuan Wan, Chaozheng Wang, Yi Dong, Wenxuan Wang et al.FSE 2025 · 10 citations
  4. CogAgent: A Visual Language Model for GUI AgentsWenyi Hong, Weihan Wang, Qingsong Lv, Jiazheng Xu et al.CVPR 2024

Related papers

  1. Component-based Reusable UI Code Generation for Complex Websites via Semantic Segmentation and Fine-grained FeedbackJingyu Xiao, Jiantong Qin, Shuoqi Li, Man Ho Lam et al.KDD 2026 · 1 citation
  2. LaTCoder: Converting Webpage Design to Code with Layout-as-ThoughtYi Gui, Zhen Li, Zhongyi Zhang, Guohao Wang et al.KDD 2025 · 1 citation
  3. UICopilot: Automating UI Synthesis via Hierarchical Code Generation from Webpage DesignsYi Gui, Yao Wan, Zhen Li, Zhongyi Zhang et al.WWW 2025 · 24 citations
  4. Interaction2Code: Benchmarking MLLM-based Interactive Webpage Code Generation from Interactive PrototypingJingyu Xiao, Yuxuan Wan, Yintong Huo, Zixin Wang et al.ASE 2025 · 1 citation
  5. Figma2Code: Automating Multimodal Design to Code in the WildYi Gui, Jiawan Zhang, Yina Wang, Tianran Ma et al.ICLR 2026 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines