UI-UG (A Unified MLLM for UI Understanding and Generation) is a multimodal large model that simultaneously supports both UI understanding and UI generation. It supports various tasks including referring, grounding, captioning and generation.
UI-UG Model Demo Overview
Figure 1: Overview of UI-UG. The workflow includes 1) Data preparation (UI image collection + element detection + DSL generation); 2) Two-stage training: SFT with VQA dataset, then RL optimization using GRPO and DPO for each task. The model supports UI understanding tasks (referring and grounding) and enables both offline and real-time UI generation.
🚀 Core Features
🔍 1. UI Description Generation (Referring)
Element Description: Automatically generate element descriptions based on coordinate regions
Semantic Understanding: Understand the function, style, and interaction meaning of UI elements
Multi-dimensional Analysis: Include text, color, clickability, and other attributes
📍 2. UI Element Detection (Grounding)
Object Detection: Automatically identify and locate various UI elements in interfaces
Classification: Support for 20+ categories including text, button, icon, image, etc.
Coordinate Annotation: Precisely generate bounding box coordinates for elements
🎨 3. UI Code Generation (Generation)
DSL Generation: Generate structured DSL code from requirement descriptions
Mock Data: Automatically generate accompanying mock data
Multi-language Support: Support for generating UI code from Chinese and English descriptions
If you find this work useful, please consider citing:
bibtex
1@misc{yang2025uiugunifiedmllmui,
2 title={UI-UG: A Unified MLLM for UI Understanding and Generation},
3 author={Hao Yang and Weijie Qiu and Ru Zhang and Zhou Fang and Ruichao Mao and Xiaoyu Lin and Maji Huang and Zhaosong Huang and Teng Guo and Shuoyang Liu and Hai Rao},
4 year={2025},
5 eprint={2509.24361},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV},
8 url={https://arxiv.org/abs/2509.24361},
9}