RULER: Instance-aware Rubric Rewards for SVG Generation
Organizations: Ant Group · The Hong Kong University of Science and Technology (Guangzhou) · Independent Researcher · University of Oxford
Abstract
Generating Scalable Vector Graphics (SVG) code from natural-language instructions is an open-ended task without absolute visual ground truth, leaving both evaluation and policy optimization without a faithful signal. Scalar metrics (CLIP, Aesthetic) calibrated on natural images transfer poorly to stylized vector content, and reusing them as RL rewards triggers reward hacking. We address both limitations with rubric-based scoring. We first establish empirically that prompting a vision-language judge with a multi-axis rubric correlates with human judgments far better than scalar metrics, both across samples and within instructions. Building on this finding, we introduce RULER (Instance-aware Rubric Rewards for Reinforcement Learning), which converts each instruction into an instance-aware rubric of six items spanning semantic, visual, and stylistic axes; a judge VLM scores rendered rollouts item-by-item, and the weighted satisfactions form a fine-grained reward optimized via Group Relative Policy Optimization. Because the rubric is derived from text alone, RULER requires neither paired SVG ground truth nor human preference labels. On MMSVG-Illustration and MMSVG-Icon, RULER lifts the rubric score from 0.432/0.395 to 0.693/0.683, surpassing dedicated SVG specialists and matching the substantially larger DeepSeek-V3, with ablations identifying rubric design as the active lever for RL on open-ended SVG generation. The project page is available at https://hangyuran.github.io/RULER/.
Figures & tables
| Reward Paradigm | Representative Metric | Visual | Semantic | GT-Free | Multi-Axis | Instance- |
|---|---|---|---|---|---|---|
| Granularity | Granularity | Aware | ||||
| Pixel-based | SSIM / PSNR Wang et al. (2004) | Fine-grained | N/A | ✗ | ✗ | ✗ |
| Rule-based | Code Length Rodriguez et al. (2025b) | N/A | N/A | ✓ | ✗ | ✗ |
| Embedding-based | CLIPScore Hessel et al. (2021) | Coarse-grained | Coarse-grained | ✓ | ✗ | ✗ |
| Rubric-based | Universal Rubric He et al. (2026) | Fine-grained | Fine-grained | ✗ | ✓ | ✗ |
| Rubric-based | Instance-aware Rubric (RULER) | Fine-grained | Fine-grained | ✓ | ✓ | ✓ |
| Method | MMSVG-Illustration | MMSVG-Icon | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CLIP | Aesth. | HPS | Rubric | Tokens | CLIP | Aesth. | HPS | Rubric | Tokens | |
| Diffusion-Optimized Methods | ||||||||||
| VectorFusion | 0.313 | 4.930 | 0.265 | 0.611 | 31.4k | 0.309 | 4.624 | 0.254 | 0.510 | 31.4k |
| SVGDreamer | 0.293 | 5.119 | 0.266 | 0.547 | 124.3k | 0.276 | 4.850 | 0.253 | 0.413 | 124.3k |
| Foundation LLMs | ||||||||||
| Qwen3-8B | 0.244 | 4.309 | 0.233 | 0.432 | 0.4k | 0.266 | 4.424 | 0.234 | 0.395 | 0.3k |
| Baseline | Win | Tie | Loss | Win Rate |
|---|---|---|---|---|
| Qwen3-8B | 122 | 14 | 14 | 89.7% |
| Qwen3-32B | 84 | 23 | 43 | 66.1% |
| VectorFusion | 73 | 13 | 64 | 53.3% |
| OmniSVG | 93 | 11 | 46 | 66.9% |
| JanusCoder | 139 | 6 | 5 | 96.5% |
| Method | MMSVG-Illustration | MMSVG-Icon | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CLIP | Aesth. | HPS | Rubric | Tokens | CLIP | Aesth. | HPS | Rubric | Tokens | |
| Zero-Shot | 0.244 | 4.309 | 0.233 | 0.432 | 0.4k | 0.266 | 4.424 | 0.234 | 0.395 | 0.3k |
| C+A+H RL | 0.196 | 6.697 | 0.235 | 0.464 | 0.7k | 0.232 | 6.210 | 0.239 | 0.262 | 6.3k |
| Universal Rubric RL | 0.244 | 4.813 | 0.241 | 0.660 | 0.7k | 0.266 | 4.793 | 0.244 | 0.591 | 0.3k |
| RULER | 0.249 | 4.859 | 0.246 | 0.693 | 2.0k | 0.269 | 4.873 | 0.247 | 0.683 | 0.7k |
| Method | MMSVG-Illustration | MMSVG-Icon | ||||||
|---|---|---|---|---|---|---|---|---|
| CLIP | Aesth. | HPS | Rubric | CLIP | Aesth. | HPS | Rubric | |
| Qwen3-4B | ||||||||
| RULER-4B | ||||||||
| Qwen3-8B | ||||||||
| Qwen3-32B | ||||||||
| JanusCoder | ||||||||
| Method | Rubric Generator | CLIP | Aesth. | HPS | Rubric |
|---|---|---|---|---|---|
| Qwen3-8B | – | ||||
| RULER | Claude-Opus-4.6 | ||||
| GPT-5.5 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Comparison | Win | Tie | Loss | Win Rate |
|---|---|---|---|---|
| RULER vs. Qwen3-8B | 122 | 14 | 14 | 89.7% |
| RULER vs. Qwen3-32B | 84 | 23 | 43 | 66.1% |
| RULER vs. VectorFusion | 73 | 13 | 64 | 53.3% |
| RULER vs. OmniSVG | 93 | 11 | 46 | 66.9% |
| RULER vs. JanusCoder | 139 | 6 | 5 | 96.5% |
| Method | MMSVG-Icon | MMSVG-Illustration |
|---|---|---|
| RULER | 99.3% | 100.0% |
| OmniSVG | 99.3% | 99.3% |
| DeepSeek-V3 | 100.0% | 99.3% |
| JanusCoder | 68.0% | 68.7% |
| Qwen3-8B | 94.7% | 89.3% |
| Qwen3-32B | 99.3% | 100.0% |
| Method | Rubric Generator | CLIP | Aesth. | HPS | Rubric |
|---|---|---|---|---|---|
| Qwen3-8B | – | ||||
| Qwen3-32B | – | ||||
| JanusCoder | – | ||||
| RULER | Claude-Opus-4.6 | ||||
| GPT-5.5 |
| Statistic | MMSVG-Icon | MMSVG-Illustration | Overall |
|---|---|---|---|
| Prompts | 19,531 | 11,206 | 30,737 |
| Avg. Input Tokens | 1,959 | 1,957 | 1,958 |
| Avg. Rubric Tokens | 1,010 | 1,057 | 1,027 |
| Avg. Output Tokens | 1,934 | 2,740 | 2,228 |
| Total Cost | $1,135.77 | $877.35 | $2,013.12 |
| Cost / Prompt | $0.0582 | $0.0783 | $0.0655 |