VisRefiner: Learning from Visual Differences for Screenshot-to-Code Generation
Not on the map. Why?
Abstract (arXiv)
Screenshot-to-code generation aims to translate user interface screenshots into executable frontend code that faithfully reproduces the target layout and style. Existing multimodal large language models perform this mapping directly from screenshots but are trained without observing the visual outcomes of their generated code. In contrast, human developers iteratively render their implementation, compare it with the design, and learn how visual differences relate to code changes. Inspired by this process, we propose VisRefiner, a training framework that enables models to learn from visual differences between rendered predictions and reference designs. We construct difference-aligned supervision that associates visual discrepancies with corresponding code edits, allowing the model to understand how appearance variations arise from implementation changes. Building on this, we introduce a reinforcement learning stage for self-refinement, where the model improves its generated code by observing both the rendered output and the target design, identifying their visual differences, and updating the code accordingly. Experiments show that VisRefiner substantially improves single-step generation quality and layout fidelity, while also endowing models with strong self-refinement ability. These results demonstrate the effectiveness of learning from visual differences for advancing screenshot-to-code generation.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 32 of its 44 references that are in the map. First posted on arXiv 5 Feb 2026.
Builds on
32 of 44 references.
References · 32
- 2023GPT-4 Technical Reportcited by 18,396
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2023Visual Instruction Tuningcited by 7,869
- 2025Qwen2.5-VL Technical Reportcited by 5,587
- 2023MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Modelscited by 2,711
- 2023InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Taskscited by 2,565
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2024DeepSeek-VL: Towards Real-World Vision-Language Understandingcited by 733
20 more
- 2023CogAgent: A Visual Language Model for GUI Agentscited by 704
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 366
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
- 2024InternLM-XComposer-2.5: A Versatile Large Vision Language Model Supporting Long-Contextual Input and Outputcited by 195
- 2024Unlocking the conversion of Web Screenshots into HTML Code with the WebSight Datasetcited by 129
- 2017pix2code: Generating Code from a Graphical User Interface Screenshotcited by 114
- 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 112
- 2023StarVector: Generating Scalable Vector Graphics Code from Images and Textcited by 102
- 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
- 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generationcited by 92
- 2025Rendering-Aware Reinforcement Learning for Vector Graphics Generationcited by 39
- 2024UICoder: Finetuning Large Language Models to Generate User Interface Code through Automated Feedbackcited by 27
- 2025V-Thinker: Interactive Thinking with Imagescited by 26
- 2025UICopilot: Automating UI Synthesis via Hierarchical Code Generation from Webpage Designscited by 22
- 2025VinciCoder: Unifying Multimodal Code Generation via Coarse-to-fine Visual Reinforcement Learningcited by 21
- 2019Sketch2code: Generating a website from a paper mockupcited by 20
- 2024Bridging Design and Development with Automated Declarative UI Code Generationcited by 19
- 2021GUIGAN: Learning to Generate GUI Designs Using Generative Adversarial Networkscited by 17
- 2024Self-Training Large Language Models for Improved Visual Program Synthesis With Visual Reinforcementcited by 12
- 2024Prototype2Code: End-to-end Front-end Code Generation from UI Design Prototypescited by 10
Built on by
Citing papers per year: 2026: 9.
9 papers.
- 2026Rubrics as Visual-Repair Context for Self-Evolving UI-to-Code Generationcited by 2
- 2026Agentic Visual Generation: From Generative Models to Agentic Controlcited by 1
- 2026The reach of a verification tool decides its value: A controlled study of verification surface, artifact quality, and cost in AI coding agentscited by 0
- 2026Rendering-in-the-Loop: An Execution-Driven Agent for Interactive Web Developmentcited by 0
- 2026ViCo: Visual-oriented Coding with Self-Reflection for Chart Replicationcited by 0
- 2026Reinforcement Learning from Intermediate Renders for Image-to-Code Generationcited by 0
- 2026TaoD2C-Bench: Benchmarking MLLMs for Industrial UI Code Generation Beyond Visual Fidelitycited by 0
- 2026ExeWorldBench: Benchmarking Code-Based Executable 3D World Modelingcited by 0
- 2026AesCode: Aesthetic Code Generation with Decoupled Cross-Modal Rewardscited by 0
- 2026AesCode: Aesthetic Code Generation with Decoupled Cross-Modal Rewards13 Oct 2026
- 2026ExeWorldBench: Benchmarking Code-Based Executable 3D World Modeling10 Oct 2026
- 2026TaoD2C-Bench: Benchmarking MLLMs for Industrial UI Code Generation Beyond Visual Fidelity7 Oct 2026
- 2026Reinforcement Learning from Intermediate Renders for Image-to-Code Generation28 Sep 2026
- 2026Agentic Visual Generation: From Generative Models to Agentic Control6 Sep 2026
- 2026Rendering-in-the-Loop: An Execution-Driven Agent for Interactive Web Development2 Sep 2026
- 2026ViCo: Visual-oriented Coding with Self-Reflection for Chart Replication31 Aug 2026
- 2026The reach of a verification tool decides its value: A controlled study of verification surface, artifact quality, and cost in AI coding agents28 Aug 2026
- 2026Rubrics as Visual-Repair Context for Self-Evolving UI-to-Code Generation25 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2025UI2Code^N: UI-to-Code Generation as Interactive Visual Optimization
- 2025ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agents
- 20261D-Bench: A Benchmark for Iterative UI Code Generation with Visual Feedback in Real-World
- 2026Self-Distillation Policy Optimization via Visual Feedback: Bridging Code and Visual Artifacts
- 2026Pattern over Pixels: Measuring Pattern Completion Bias in Multimodal Code Generation
- 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence
- 2026Vision-Guided Iterative Refinement for Frontend Code Generation
- 2026VisEditBench: Can Vision-Language Models Edit Visualization Code from Multimodal Feedback?