IR4RL:基于中间渲染的强化学习框架,提升图像转代码生成
IR4RL: Reinforcement Learning from Intermediate Renders for Image-to-Code Generation
AI 导读
一项研究提出 IR4RL,一种用于图像转代码生成(如图像转 SVG、Image-to-TikZ)的强化学习框架,通过 token 级渲染进度奖励,把中间渲染之间的变化转化为对生成序列的局部化反馈,解决单一终端奖励反馈稀疏、与单个 token 贡献不对齐的问题。
正文 · 原文
Abstract:Reinforcement learning is increasingly used to post-train vision-language models for image-to-code generation, such as generating SVG code from a reference image, by optimizing rewards computed from the final rendered output. However, relying on a single terminal reward provides sparse feedback that is poorly aligned with the contribution of individual tokens. A generated program may contain operations that accurately reproduce some parts of the target image alongside others that introduce errors, yet all tokens are trained from the same final outcome. We observe that many intermediate code prefixes are not only executable, but already produce meaningful partial renders that reflect progress toward the target. This property provides a natural source of denser supervision during generation. Based on this observation, we introduce IR4RL, an RL framework with a token-level render-progress reward that turns changes between intermediate renders into localized feedback for the generated sequence. We evaluate our approach on Image-to-SVG and Image-to-TikZ generation. Across both tasks, our method improves over supervised fine-tuning and standard GRPO, yielding new state-of-the-art open-source models. This shows that intermediate rendering provides a simple and effective source of process supervision for RL post-training of image-to-code models.
| Comments: | Project page: this https URL |
| Subjects: | Computer Vision and Pattern Recognition (cs.CV); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2609.34587 [cs.CV] |
| (or arXiv:2609.34587v2 [cs.CV] for this version) | |
| https://doi.org/10.48550/arXiv.2609.34587 arXiv-issued DOI via DataCite |
Submission history
From: Kate Feingold [view email]
[v1]
Mon, 28 Sep 2026 08:26:35 UTC (2,982 KB)
[v2]
Thu, 26 Nov 2026 17:23:14 UTC (2,939 KB)
来源:arXiv cs.AI · arxiv.org