paper-with-me

홈 › Papers

UniCoder: Unified Visual-to-Code Generation via Symbolic Rewards and Reference-Guided Code Optimization

2026-06-30 · Yaozhi Zheng, Yilei Jiang, Manyuan Zhang, Yuxuan Wan, Kaituo Feng, Tianshuo Peng, Bo Zhang, Xiangyu Yue arxiv

Visual-to-Code generation, which transforms scientific plots, vector graphics, and webpages into executable scripts, demands a level of pixel-precise alignment that standard Multimodal Large Language Models (MLLMs) fail to achieve through Supervised Fine-Tuning (SFT) alone. While Reinforcement Learning (RL) offers a theoretical pathway to bridge this gap, its application is hindered by two fundamental obstacles: (1) \textit{Reward Coarseness}, where semantic metrics like CLIP scores fail to penalize fine-grained element deviations, and (2) \textit{Exploration Stagnation}, where the sparse, heterogeneous code search space prevents the policy from bootstrapping valid trajectories. To overcome these limitations, we introduce UniCoder, a unified RL framework that integrates two novel mechanisms. First, we propose \textbf{Symbolic Attribute Alignment}, which employs a lightweight auxiliary LLM to parse generated code into discrete visual attributes (e.g., hex colors, coordinate limits), enabling dense, element-wise reward computation. Second, to escape local optima, we devise \textbf{Reference-Guided Code Optimization}, a strategy that dynamically injects ground-truth trajectories into low-performing rollout groups, transforming blind exploration into guided policy improvement. Extensive experiments on ChartMimic, UniSVG, Design2Code and ScreenBench benchmarks demonstrate that our 8B-parameter model not only surpasses all open-source baselines but also achieves state-of-the-art performance comparable to proprietary models, establishing a new paradigm for generalized visual-to-code synthesis.

📄 PDF Abstract BibTeX arXiv:2606.31732

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement LearningCode GenerationCode Search

Similar Papers 제목 키워드 기반

Unicoder-VL: A Universal Encoder for Vision and Language by Cross-modal Pre-training

2019-08-16 · Gen Li, Nan Duan, Yuejian Fang, Ming Gong 외

We propose Unicoder-VL, a universal encoder that aims to learn joint representations of vision and language in a pre-training manner. Borrow ideas from cross-lingual pre-trained models, such as XLM and Unicoder, both vis…

Image-text matchingImage-text RetrievalImage-to-Text RetrievalLanguage Modeling+5

UniCoder: Scaling Code Large Language Model via Universal Code

2024-06-24 · Tao Sun, Linzheng Chai, Jian Yang, Yuwei Yin 외

Intermediate reasoning or acting steps have successfully improved large language models (LLMs) for handling various downstream natural language processing (NLP) tasks. When applying LLMs for code generation, recent works…

Code GenerationCode TranslationLanguage ModelingLanguage Modelling+2

CoBIT: A Contrastive Bi-directional Image-Text Generation Model

2023-03-23 · Haoxuan You, Mandy Guo, Zhecan Wang, Kai-Wei Chang 외

The field of vision and language has witnessed a proliferation of pre-trained foundation models. Most existing methods are independently pre-trained with contrastive objective like CLIP, image-to-text generative objectiv…

DecoderImage GenerationImage to textRetrieval+5

Unicoder: A Universal Language Encoder by Pre-training with Multiple Cross-lingual Tasks

2019-09-03 · IJCNLP 2019 11 · Haoyang Huang, Yaobo Liang, Nan Duan, Ming Gong 외

We present Unicoder, a universal language encoder that is insensitive to different languages. Given an arbitrary NLP task, a model can be trained with Unicoder using training data in one language and directly applied to …

Cross-Lingual Natural Language InferenceCross-Lingual Question AnsweringLanguage ModelingLanguage Modelling+2

Unlocking the Latent Canvas: Eliciting and Benchmarking Symbolic Visual Expression in LLMs

2026-03-15 · Yiren Zheng, Shibo Li, Jiaming Liu, Haofan Wang 외 arxiv

Current multimodal approaches predominantly treat visual generation as an external process, relying on pixel rendering or code execution, thereby overlooking the native visual representation capabilities latent within La…