Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jiang, Yilei, Zheng, Yaozhi, Wan, Yuxuan, Han, Jiaming, Wang, Qunzhong, Lyu, Michael R., Yue, Xiangyu
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2507.22827
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918164132003840
author Jiang, Yilei
Zheng, Yaozhi
Wan, Yuxuan
Han, Jiaming
Wang, Qunzhong
Lyu, Michael R.
Yue, Xiangyu
author_facet Jiang, Yilei
Zheng, Yaozhi
Wan, Yuxuan
Han, Jiaming
Wang, Qunzhong
Lyu, Michael R.
Yue, Xiangyu
contents Automating the transformation of user interface (UI) designs into front-end code holds significant promise for accelerating software development and democratizing design workflows. While multimodal large language models (MLLMs) can translate images to code, they often fail on complex UIs, struggling to unify visual perception, layout planning, and code synthesis within a single monolithic model, which leads to frequent perception and planning errors. To address this, we propose ScreenCoder, a modular multi-agent framework that decomposes the task into three interpretable stages: grounding, planning, and generation. By assigning these distinct responsibilities to specialized agents, our framework achieves significantly higher robustness and fidelity than end-to-end approaches. Furthermore, ScreenCoder serves as a scalable data engine, enabling us to generate high-quality image-code pairs. We use this data to fine-tune open-source MLLM via a dual-stage pipeline of supervised fine-tuning and reinforcement learning, demonstrating substantial gains in its UI generation capabilities. Extensive experiments demonstrate that our approach achieves state-of-the-art performance in layout accuracy, structural coherence, and code correctness. Our code is made publicly available at https://github.com/leigest519/ScreenCoder.
format Preprint
id arxiv_https___arxiv_org_abs_2507_22827
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agents
Jiang, Yilei
Zheng, Yaozhi
Wan, Yuxuan
Han, Jiaming
Wang, Qunzhong
Lyu, Michael R.
Yue, Xiangyu
Computer Vision and Pattern Recognition
Automating the transformation of user interface (UI) designs into front-end code holds significant promise for accelerating software development and democratizing design workflows. While multimodal large language models (MLLMs) can translate images to code, they often fail on complex UIs, struggling to unify visual perception, layout planning, and code synthesis within a single monolithic model, which leads to frequent perception and planning errors. To address this, we propose ScreenCoder, a modular multi-agent framework that decomposes the task into three interpretable stages: grounding, planning, and generation. By assigning these distinct responsibilities to specialized agents, our framework achieves significantly higher robustness and fidelity than end-to-end approaches. Furthermore, ScreenCoder serves as a scalable data engine, enabling us to generate high-quality image-code pairs. We use this data to fine-tune open-source MLLM via a dual-stage pipeline of supervised fine-tuning and reinforcement learning, demonstrating substantial gains in its UI generation capabilities. Extensive experiments demonstrate that our approach achieves state-of-the-art performance in layout accuracy, structural coherence, and code correctness. Our code is made publicly available at https://github.com/leigest519/ScreenCoder.
title ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agents
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2507.22827