Widget2Code: From Visual Widgets to UI Code via Multimodal LLMs
On the map: Multimodal LLMs / vision-language models → Embodied and 3D vision-language models
Abstract (arXiv)
User interface to code (UI2Code) aims to generate executable code that can faithfully reconstruct a given input UI. Prior work focuses largely on web pages and mobile screens, leaving app widgets underexplored. Unlike web or mobile UIs with rich hierarchical context, widgets are compact, context-free micro-interfaces that summarize key information through dense layouts and iconography under strict spatial constraints. Moreover, while (image, code) pairs are widely available for web or mobile UIs, widget designs are proprietary and lack accessible markup. We formalize this setting as the Widget-to-Code (Widget2Code) and introduce an image-only widget benchmark with fine-grained, multi-dimensional evaluation metrics. Benchmarking shows that although generalized multimodal large language models (MLLMs) outperform specialized UI2Code methods, they still produce unreliable and visually inconsistent code. To address these limitations, we develop a baseline that jointly advances perceptual understanding and structured code generation. At the perceptual level, we follow widget design principles to assemble atomic components into complete layouts, equipped with icon retrieval and reusable visualization modules. At the system level, we design an end-to-end infrastructure, WidgetFactory, which includes a framework-agnostic widget-tailored domain-specific language (WidgetDSL) and a compiler that translates it into multiple front-end implementations (e.g., React, HTML/CSS). An adaptive rendering module further refines spatial dimensions to satisfy compactness constraints. Together, these contributions substantially enhance visual fidelity, establishing a strong baseline and unified infrastructure for future Widget2Code research.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Embodied and 3D vision-language models, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 39 of its 52 references that are in the map. First posted on arXiv 22 Dec 2025.
Builds on
39 of 52 references.
Closest ancestors · 1
Same direction, newest first
Other references · 38
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2024GPT-4o System Cardcited by 4,467
- 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
- 2025Qwen3-VL Technical Reportcited by 2,534
- 2025SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Featurescited by 1,127
- 2023ShareGPT4V: Improving Large Multi-Modal Models with Better Captionscited by 1,000
- 2023A Survey on Multimodal Large Language Modelscited by 898
- 2024Yi: Open Foundation Models by 01.AIcited by 706
26 more
- 2023LLaMA-VID: An Image is Worth 2 Tokens in Large Language Modelscited by 539
- 2025Seed1.5-VL Technical Reportcited by 367
- 2023Monkey: Image Resolution and Text Label Are Important Things for Large Multi-modal Modelscited by 356
- 2024Design2Code: Benchmarking Multimodal Code Generation for Automated Front-End Engineeringcited by 146
- 2024Boosting Multimodal Large Language Models with Visual Tokens Withdrawal for Rapid Inferencecited by 137
- 2024Unlocking the conversion of Web Screenshots into HTML Code with the WebSight Datasetcited by 126
- 2017pix2code: Generating Code from a Graphical User Interface Screenshotcited by 113
- 2024VoCo-LLaMA: Towards Vision Compression with Large Language Modelscited by 78
- 2024Interaction2Code: Benchmarking MLLM-based Interactive Webpage Code Generation from Interactive Prototypingcited by 50
- 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designscited by 43
- 2023MetaGCD: Learning to Continually Learn in Generalized Category Discoverycited by 40
- 2023Test-Time Domain Adaptation by Learning Domain-Aware Batch Normalizationcited by 31
- 2024Accelerating Multimodal Large Language Models by Searching Optimal Vision Token Reductioncited by 28
- 2024Bayes Conditional Distribution Estimation for Knowledge Distillation Based on Conditional Mutual Informationcited by 25
- 2024Adapting to Distribution Shift by Visual Domain Prompt Generationcited by 23
- 2025ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agentscited by 23
- 2025UICopilot: Automating UI Synthesis via Hierarchical Code Generation from Webpage Designscited by 22
- 2019Sketch2Code: Transformation of Sketches to UI in Real-time Using Deep Neural Networkcited by 21
- 2025MLLM-Based UI2Code Automation Guided by UI Layout Informationcited by 17
- 2025Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptationcited by 14
- 2024Distribution Alignment for Fully Test-Time Adaptation with Dynamic Online Data Streamscited by 13
- 2024How to Train the Teacher Model for Effective Knowledge Distillationcited by 13
- 2025Plug-in Feedback Self-adaptive Attention in CLIP for Training-free Open-Vocabulary Segmentationcited by 12
- 2025LaTCoder: Converting Webpage Design to Code with Layout-as-Thoughtcited by 9
- 2025Connector-S: A Survey of Connectors in Multi-modal Large Language Modelscited by 7
- 2025Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Developmentcited by 5
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026Generalization in Online Reinforcement Learning for Mobile Agentscited by 6
- 2026ASMIL: Attention-Stabilized Multiple Instance Learning for Whole Slide Imagingcited by 5
- 2026SPRITE: From Static Mockups to Engine-Ready Game UIcited by 0
- 2026UI2App: Benchmarking Visual Interaction Inference in Executable Web Application Generationcited by 0
- 2026MV-Bench: Benchmarking Multimodal Large Language Models for Coordinated Multi-View Interface Constructioncited by 0
- 2026From Visual Widgets to UI Code: Efficient Tool-Grounded Generationcited by 0
- 2026SchemaGUI: A Schema-Driven Benchmark for Controllable GUI Generation Evaluationcited by 0
- 2026CARA: Collision-Aware Resolution Adaptation for Multiresolution Hash Encoding Based Image Fittingcited by 0
- 2026CARA: Collision-Aware Resolution Adaptation for Multiresolution Hash Encoding Based Image Fitting16 Sep 2026
- 2026SchemaGUI: A Schema-Driven Benchmark for Controllable GUI Generation Evaluation23 Aug 2026
- 2026From Visual Widgets to UI Code: Efficient Tool-Grounded Generation12 Aug 2026
- 2026MV-Bench: Benchmarking Multimodal Large Language Models for Coordinated Multi-View Interface Construction22 Jul 2026
- 2026UI2App: Benchmarking Visual Interaction Inference in Executable Web Application Generation7 Jul 2026
- 2026SPRITE: From Static Mockups to Engine-Ready Game UI18 Mar 2026
- 2026Generalization in Online Reinforcement Learning for Mobile Agents8 Mar 2026
- 2026ASMIL: Attention-Stabilized Multiple Instance Learning for Whole Slide Imaging1 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2025CANVAS: A Benchmark for Vision-Language Models on Tool-Based User Interface Design
- 2026AppDeltaWorld: Transition-Grounded Delta Code World Model for Mobile GUI Agents
- 2024Ferret-UI: Grounded Mobile UI Understanding with Multimodal LLMs
- 2026TaoD2C-Bench: Benchmarking MLLMs for Industrial UI Code Generation Beyond Visual Fidelity
- 2025Leveraging Multimodal LLM for Inspirational User Interface Search
- 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence
- 2026Pattern over Pixels: Measuring Pattern Completion Bias in Multimodal Code Generation
- 2025WebVIA: A Web-based Vision-Language Agentic Framework for Interactive and Verifiable UI-to-Code Generation