Reliable Reasoning in SVG-LLMs via Multi-Task Multi-Reward Reinforcement Learning
Organizations: Shanghai Jiao Tong University · Shanghai AI Laboratory · Nanjing University · Fudan University
Abstract
With the rapid advancement of vision-language models, an increasing number of studies have explored their potential for SVG generation tasks. Although existing approaches improve performance by constructing large-scale SVG datasets and introducing SVG-specific tokens, they still suffer from limited generalization, redundant paths in code outputs, and a lack of explicit reasoning. In this work, we present CTRL-S (Chain-of-Thought Reinforcement Learning for SVG), a unified framework that introduces a chain-of-thought mechanism to explicitly expose the model's reasoning process during SVG generation. To support this structured reasoning, we construct SVG-Sophia, a high-quality dataset containing 145K samples across SVG code refinement, Text-to-SVG, and Image-to-SVG tasks. By training the model to generate group-level structured SVG code, CTRL-S significantly improves structural coherence and visual fidelity. Furthermore, we adopt the GRPO algorithm and design a multi-reward optimization framework, incorporating DINO, image-text similarity, format, and code efficiency rewards. Through joint multi-reward optimization and multi-task training, our approach systematically enhances overall generation capabilities. Extensive experiments show that CTRL-S outperforms existing methods, achieving higher task success rates, superior SVG code quality, and exceptional visual fidelity.
Figures & tables
| Model | Data | Text-to-SVG | Image-to-SVG | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| FID | CLIP-T2I | CLIP-I2I | SR | Tokens | DINO | SSIM | LPIPS | SR | Tokens | ||
| Traditional SVG Methods | |||||||||||
| IconShop | – | 32.288 | 20.894 | 70.922 | 86.51% | 1.6k | – | – | – | – | – |
| VectorFusion | – | 16.594 | 22.992 | 70.308 | 100.0% | 33k | – | – | – | – | – |
| SVGDreamer | – | 26.612 | 20.329 | 69.975 | 100.0% | 132k | – | – | – | – | – |
| DiffVG | – | – | – | – | – | – | 0.869 | 0.927 | 0.097 | 100.0% | 17k |
| Model | DINO | SSIM | LPIPS | SR | Tokens |
| Vision-Language Models | |||||
| Llama 4 Scout | 0.840 | 0.634 | 0.383 | 97.00% | 788 |
| Llama 4 Maverick | 0.845 | 0.615 | 0.377 | 94.75% | 616 |
| Qwen3-VL-235B-A22B | 0.809 | 0.515 | 0.403 | 77.84% | 840 |
| GPT-5.2 | 0.911 | 0.640 | 0.342 | 99.26% | 975 |
| Claude-Sonnet-4.5 | 0.796 | 0.579 | 0.401 | 84.58% | 790 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | Tokens |
|---|---|
| Root | <svg, </svg>, <defs, </defs>, <use, </use> ,/> |
| Grouping | <g, </g> |
| Shapes | <path, </path>, <rect, </rect>, <circle, </circle>, <ellipse, </ellipse>, <line, </line>, <polyline, </polyline>, <polygon, </polygon> |
| Text | <text, </text>, <tspan, </tspan>, <textPath, </textPath> |
| Gradients | <linearGradient, </linearGradient>, <radialGradient, </radialGradient>, <stop, </stop> |
| Clipping | <clipPath, </clipPath>, <mask, </mask> |