RefineSVG: Visual Feedback-Driven Reinforcement Learning for Image-to-SVG Generation

Shaobo Liu, Feiqiao Mao, Shuaishuai Zhou, Yan Zhan, Weiqi Tan +2 more
7/30/2026
cs.CVcs.AI

Official code: liuxiaobo66/RefineSVG (0 stars, last commit 2026-04-07).

Abstract

We propose RefineSVG, a single-step closed-loop visual feedback framework that enables multimodal large language models (MLLMs) to perform high-fidelity image-to-SVG generation through self-correction. Existing MLLM-based approaches rely on single-pass open-loop inference, where the model receives visual input only once and must generate thousands of SVG code tokens without intermediate verification. This paradigm inevitably leads to geometric drift, error accumulation, and visual hallucination on complex images. RefineSVG overcomes this limitation by invoking an external rendering engine after an initial SVG generation pass to compare the rendered output against the target image. The comparison yields a multi-dimensional visual residual map (Diff-Map) that is fed back to the model as a ReAct-style correction signal, driving a targeted correction step. To support this render-observe-correct interaction, we further introduce an SVG-oriented semantic vocabulary that compresses token sequences by over 52%. A progressive training pipeline spanning supervised fine-tuning, rejection-sampling cold-start data construction, and end-to-end agentic reinforcement learning aligns the model with closed-loop visual correction. Extensive experiments show that RefineSVG consistently outperforms existing baselines in reconstruction fidelity, structural accuracy, and code efficiency.Code is available at https://github.com/liuxiaobo66/RefineSVG.

View on arXivView PDF

Code Implementations(1)

00Jinja, ShellApr 3, 20266 months ago

Similar Papers

Cite this paper

@article{liu2026refinesvg,
  title  = {RefineSVG: Visual Feedback-Driven Reinforcement Learning for Image-to-SVG Generation},
  author = {Shaobo Liu and Feiqiao Mao and Shuaishuai Zhou and Yan Zhan and Weiqi Tan and Zhiqiong Lu and Zhengping Liang},
  year   = {2026},
  eprint = {2607.27699},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.27699v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.27699.svg)](https://codeofpaper.com/paper/2607.27699)

Discussion