Component-based Reusable UI Code Generation for Complex Websites via Semantic Segmentation and Fine-grained Feedback

Multimodal Large Language Models (MLLMs) have demonstrated strong performance on the UI-to-code task, which aims to generate UI code from design mock-ups. However, when applied to long and complex websites, they often struggle with fragmented segmentation, redundant code generation for repetitive components, and frequent UI inconsistencies. To systematically investigate and address these challenges, we introduce ComUIBench, a new multi-page complex webpage benchmark with component annotations, designed to evaluate MLLMs' ability to generate reusable UI code in realistic website scenarios. Building upon this benchmark, we propose ComUICoder, a component-based UI code generation framework that emphasizes semantic-aware segmentation, code reuse, and fine-grained refinement. Specifically, ComUICoder incorporates (1) Hybrid Semantic-aware Block Segmentation for accurate UI semantic coherent block detection, (2) Visual-aware Graph-based Block Merge to consolidate structurally similar components within and across webpages for reusable implementation, and (3) Priority-based Element-wise Feedback to refine generated code and reduce element-level inconsistencies. Extensive experiments demonstrate that ComUICoder significantly improves overall generation quality and code reusability on complex multipage websites. Our datasets and code are publicly available at https://github.com/WebPAI/ComUICoder.

Link
https://www.semanticscholar.org/paper/9e2d055650c54a43ee6ae2144be1a978644959f5
Found by
Semantic Scholar
Authors
Jingyu Xiao, Jiantong Qin, ShuoQiu Li, Man Ho Lam, Yuxuan Wan, Jen-Tse Huang, Yintong Huo, Michael R. Lyu
Categories
benchmark, evaluation, dataset
Published
2026-08-08
Last seen by the radar
2026-08-08
Citations
0
Influential citations
0
Radar score
56.04 / 100 (how it is scored)
Why it scored so
Matched: benchmark, dataset, evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3770855.3817689
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar