Self-Distillation Policy Optimization via Visual Feedback: Bridging Code and Visual Artifacts
Not on the map. Why?
Abstract (arXiv)
Code-generating large language models (LLMs) increasingly produce visual artifacts such as charts, web pages, and slides by writing programs that are executed by non-differentiable renderers, committing to code before observing the render. As a result, otherwise executable code often yields artifacts with visually salient defects, including overlapping elements, clipped text, broken alignment, low contrast, and overflow. We study visual-feedback self-distillation for code-generated visual artifacts. We propose Visual-SDPO, a self-distillation policy-optimization framework that treats rendered visual feedback as privileged context for a weight-sharing teacher and distills this feedback into a coding student. To make supervision spatially targeted rather than uniform, we introduce Visual-Grounded Code Credit Weighting, which traces each detected defect back to the code statements responsible for the affected elements and amplifies the distillation signal on those statements. A sequence-level GRPO (Group Relative Policy Optimization) term complements the dense token-level objective by rewarding executable, visually high-quality rollouts, while failed executions remain learnable through the self-distillation path by passing execution errors as privileged context to the teacher. We instantiate Visual-SDPO for chart, web/UI, and slide generation with a unified Qwen3-VL-8B-Instruct backbone. Across chart-to-code, UI-to-code, and slide-generation benchmarks (ChartMimic, Design2Code, and AeSlides), Visual-SDPO improves over the zero-shot base by more than 10 absolute points in the primary metric and over GRPO by at least 2.4 points, with fewer training steps and no added inference-time cost.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 31 of its 38 references that are in the map. First posted on arXiv 9 Jun 2026.
Builds on
31 of 38 references.
References · 31
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 840
- 2022Pix2Struct: Screenshot Parsing as Pretraining for Visual Language Understandingcited by 360
- 2026Reinforcement Learning via Self-Distillationcited by 285
- 2015Unifying distillation and privileged informationcited by 218
- 2026A Survey of On-Policy Distillation for Large Language Modelscited by 148
- 2024Design2Code: Benchmarking Multimodal Code Generation for Automated Front-End Engineeringcited by 146
- 2024Unlocking the conversion of Web Screenshots into HTML Code with the WebSight Datasetcited by 126
- 2024ChartMimic: Evaluating LMM's Cross-Modal Reasoning Capability via Chart-to-Code Generationcited by 118
- 2017pix2code: Generating Code from a Graphical User Interface Screenshotcited by 113
- 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generationcited by 88
- 2025PPTAgent: Generating and Evaluating Presentations Beyond Text-to-Slidescited by 83
- 2026Privileged Information Distillation for Language Modelscited by 79
19 more
- 2024Web2Code: A Large-scale Webpage-to-Code Dataset and Evaluation Framework for Multimodal LLMscited by 73
- 2025Paper2Poster: Towards Multimodal Poster Automation from Scientific Paperscited by 56
- 2024WebCode2M: A Real-World Dataset for Code Generation from Webpage Designscited by 43
- 2026HDPO: Hybrid Distillation Policy Optimization via Privileged Self-Distillationcited by 39
- 2021Torch.fx: Practical Program Capture and Transformation for Deep Learning in Pythoncited by 38
- 2025Rendering-Aware Reinforcement Learning for Vector Graphics Generationcited by 36
- 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedbackcited by 31
- 2026GATES: Self-Distillation under Privileged Context with Consensus Gatingcited by 30
- 2025ScreenCoder: Advancing Visual-to-Code Generation for Front-End Automation via Modular Multimodal Agentscited by 23
- 2026Respecting Self-Uncertainty in On-Policy Self-Distillation for Efficient LLM Reasoningcited by 20
- 2025Breaking the SFT Plateau: Multimodal Structured Reinforcement Learning for Chart-to-Code Generationcited by 18
- 2025VinciCoder: Unifying Multimodal Code Generation via Coarse-to-fine Visual Reinforcement Learningcited by 18
- 2025ChartMaster: Advancing Chart-to-Code Generation with Real-World Charts and Chart Similarity Reinforcement Learningcited by 15
- 2025ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Codingcited by 12
- 2025UI2Code^N: UI-to-Code Generation as Interactive Visual Optimizationcited by 12
- 2026Anti-Self-Distillation for Reasoning RL via Pointwise Mutual Informationcited by 12
- 2025DesignCoder: Hierarchy-Aware and Self-Correcting UI Code Generation with Large Language Modelscited by 10
- 2025ChartEditor: A Reinforcement Learning Framework for Robust Chart Editingcited by 9
- 2026AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewardscited by 9
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Vision-Guided Iterative Refinement for Frontend Code Generation
- 2026VisRefiner: Learning from Visual Differences for Screenshot-to-Code Generation
- 2026Rubrics as Visual-Repair Context for Self-Evolving UI-to-Code Generation
- 2025ArtifactsBench: Bridging the Visual-Interactive Gap in LLM Code Generation Evaluation
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization
- 2026UniCoder: Unified Visual-to-Code Generation via Symbolic Rewards and Reference-Guided Code Optimization
- 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensus
- 2025Code Aesthetics with Agentic Reward Feedback