mlsanityData to 14 Oct 2026

VisRefiner: Learning from Visual Differences for Screenshot-to-Code Generation

arXiv 2602.05998 ↗First posted 5 Feb 2026cs.CVcited by 9

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

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2023Visual Instruction Tuningcited by 7,869
  4. 2025Qwen2.5-VL Technical Reportcited by 5,587
  5. 2023MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Modelscited by 2,711
  6. 2023InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Taskscited by 2,565
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  9. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  10. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  11. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  12. 2024DeepSeek-VL: Towards Real-World Vision-Language Understandingcited by 733
20 more
  1. 2023CogAgent: A Visual Language Model for GUI Agentscited by 704
  2. 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 366
  3. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
  4. 2024InternLM-XComposer-2.5: A Versatile Large Vision Language Model Supporting Long-Contextual Input and Outputcited by 195
  5. 2024Unlocking the conversion of Web Screenshots into HTML Code with the WebSight Datasetcited by 129
  6. 2017pix2code: Generating Code from a Graphical User Interface Screenshotcited by 114
  7. 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 112
  8. 2023StarVector: Generating Scalable Vector Graphics Code from Images and Textcited by 102
  9. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
  10. 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generationcited by 92
  11. 2025Rendering-Aware Reinforcement Learning for Vector Graphics Generationcited by 39
  12. 2024UICoder: Finetuning Large Language Models to Generate User Interface Code through Automated Feedbackcited by 27
  13. 2025V-Thinker: Interactive Thinking with Imagescited by 26
  14. 2025UICopilot: Automating UI Synthesis via Hierarchical Code Generation from Webpage Designscited by 22
  15. 2025VinciCoder: Unifying Multimodal Code Generation via Coarse-to-fine Visual Reinforcement Learningcited by 21
  16. 2019Sketch2code: Generating a website from a paper mockupcited by 20
  17. 2024Bridging Design and Development with Automated Declarative UI Code Generationcited by 19
  18. 2021GUIGAN: Learning to Generate GUI Designs Using Generative Adversarial Networkscited by 17
  19. 2024Self-Training Large Language Models for Improved Visual Program Synthesis With Visual Reinforcementcited by 12
  20. 2024Prototype2Code: End-to-end Front-end Code Generation from UI Design Prototypescited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 9.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025UI2Code^N: UI-to-Code Generation as Interactive Visual Optimization
  2. 2025ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agents
  3. 20261D-Bench: A Benchmark for Iterative UI Code Generation with Visual Feedback in Real-World
  4. 2026Self-Distillation Policy Optimization via Visual Feedback: Bridging Code and Visual Artifacts
  5. 2026Pattern over Pixels: Measuring Pattern Completion Bias in Multimodal Code Generation
  6. 2026Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence
  7. 2026Vision-Guided Iterative Refinement for Frontend Code Generation
  8. 2026VisEditBench: Can Vision-Language Models Edit Visualization Code from Multimodal Feedback?