mlsanityData to 7 Oct 2026

Widget2Code: From Visual Widgets to UI Code via Multimodal LLMs

arXiv 2512.19918 ↗First posted 22 Dec 2025cs.CVcited by 8

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

  1. 2025UI-UG: A Unified MLLM for UI Understanding and Generation29 Sep

Other references · 38

  1. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
  2. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  3. 2024GPT-4o System Cardcited by 4,467
  4. 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
  5. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  6. 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
  7. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,655
  8. 2025Qwen3-VL Technical Reportcited by 2,534
  9. 2025SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Featurescited by 1,127
  10. 2023ShareGPT4V: Improving Large Multi-Modal Models with Better Captionscited by 1,000
  11. 2023A Survey on Multimodal Large Language Modelscited by 898
  12. 2024Yi: Open Foundation Models by 01.AIcited by 706
26 more
  1. 2023LLaMA-VID: An Image is Worth 2 Tokens in Large Language Modelscited by 539
  2. 2025Seed1.5-VL Technical Reportcited by 367
  3. 2023Monkey: Image Resolution and Text Label Are Important Things for Large Multi-modal Modelscited by 356
  4. 2024Design2Code: Benchmarking Multimodal Code Generation for Automated Front-End Engineeringcited by 146
  5. 2024Boosting Multimodal Large Language Models with Visual Tokens Withdrawal for Rapid Inferencecited by 137
  6. 2024Unlocking the conversion of Web Screenshots into HTML Code with the WebSight Datasetcited by 126
  7. 2017pix2code: Generating Code from a Graphical User Interface Screenshotcited by 113
  8. 2024VoCo-LLaMA: Towards Vision Compression with Large Language Modelscited by 78
  9. 2024Interaction2Code: Benchmarking MLLM-based Interactive Webpage Code Generation from Interactive Prototypingcited by 50
  10. 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designscited by 43
  11. 2023MetaGCD: Learning to Continually Learn in Generalized Category Discoverycited by 40
  12. 2023Test-Time Domain Adaptation by Learning Domain-Aware Batch Normalizationcited by 31
  13. 2024Accelerating Multimodal Large Language Models by Searching Optimal Vision Token Reductioncited by 28
  14. 2024Bayes Conditional Distribution Estimation for Knowledge Distillation Based on Conditional Mutual Informationcited by 25
  15. 2024Adapting to Distribution Shift by Visual Domain Prompt Generationcited by 23
  16. 2025ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agentscited by 23
  17. 2025UICopilot: Automating UI Synthesis via Hierarchical Code Generation from Webpage Designscited by 22
  18. 2019Sketch2Code: Transformation of Sketches to UI in Real-time Using Deep Neural Networkcited by 21
  19. 2025MLLM-Based UI2Code Automation Guided by UI Layout Informationcited by 17
  20. 2025Learning to Adapt Frozen CLIP for Few-Shot Test-Time Domain Adaptationcited by 14
  21. 2024Distribution Alignment for Fully Test-Time Adaptation with Dynamic Online Data Streamscited by 13
  22. 2024How to Train the Teacher Model for Effective Knowledge Distillationcited by 13
  23. 2025Plug-in Feedback Self-adaptive Attention in CLIP for Training-free Open-Vocabulary Segmentationcited by 12
  24. 2025LaTCoder: Converting Webpage Design to Code with Layout-as-Thoughtcited by 9
  25. 2025Connector-S: A Survey of Connectors in Multi-modal Large Language Modelscited by 7
  26. 2025Automatically Generating Web Applications from Requirements Via Multi-Agent Test-Driven Developmentcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 8.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025CANVAS: A Benchmark for Vision-Language Models on Tool-Based User Interface Design
  2. 2026AppDeltaWorld: Transition-Grounded Delta Code World Model for Mobile GUI Agents
  3. 2024Ferret-UI: Grounded Mobile UI Understanding with Multimodal LLMs
  4. 2026TaoD2C-Bench: Benchmarking MLLMs for Industrial UI Code Generation Beyond Visual Fidelity
  5. 2025Leveraging Multimodal LLM for Inspirational User Interface Search
  6. 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence
  7. 2026Pattern over Pixels: Measuring Pattern Completion Bias in Multimodal Code Generation
  8. 2025WebVIA: A Web-based Vision-Language Agentic Framework for Interactive and Verifiable UI-to-Code Generation