TL;DR
VectorGym introduces a comprehensive, human-annotated multi-task benchmark for Scalable Vector Graphics (SVG) that evaluates Vision-Language Models (VLMs) across sketching, complex editing, text-to-code generation, and captioning. By combining real-world data with a novel reinforcement learning framework based on rendering feedback, the authors train an 8B open-source model that outperforms its 235B counterpart and matches GPT-4o.
What Problem Does This Paper Address?
Scalable Vector Graphics (SVGs) are essential for modern web design and digital media because they are resolution-independent, editable programs containing explicit geometry, style, and structure. However, existing AI benchmarks for SVG generation are oversimplified—often focusing on basic shapes or relying on synthetic, rule-based edits. They fail to reflect professional design workflows, such as turning a rough hand-drawn sketch into clean code or executing complex, multi-step semantic edits.
VectorGym bridges this gap by providing a realistic, high-difficulty benchmark with gold-standard human annotations, forcing models to demonstrate true semantic understanding and design intent rather than simple pattern matching.
Methods
The authors introduce several key techniques to train and evaluate models on vector graphics:
- Reinforcement Learning from Rendering Feedback (RLRF): Instead of evaluating code syntax alone, the authors fine-tune a model by rendering its SVG outputs into raster images. Rewards are computed using a combination of pixel-space distances and perceptual similarity metrics (LPIPS and DINO) against the ground truth.
- Batch-Normalized GRPO: They adapt Group Relative Policy Optimization (GRPO) by normalizing centered rewards using the batch-level standard deviation rather than group-level standard deviation, which stabilizes multi-task training.
- Curriculum Learning: To handle the mixed complexity of the benchmark's four tasks, training samples are sorted by response length (acting as a proxy for difficulty). This allows the model to progress from simple shapes to intricate illustrations while maintaining task balance.
- VLM-as-a-Judge (VLMAJ): To overcome the limitations of traditional NLP metrics, they design task-specific evaluation prompts for frontier VLMs to score outputs from 0 to 5, a protocol validated through extensive human correlation studies.
Datasets
The paper introduces VectorGym, a dataset of 7,000 "in-the-wild" SVGs sourced from GitHub via the SVG-Stack dataset.
Unlike prior benchmarks that rely on synthetic transformations, VectorGym features expert human annotations across four distinct tasks:
- VG-Sketch (Sketch2SVG): Converting rough, hand-drawn or digital sketches into clean vector code.
- VG-Edit (SVG Editing): Applying complex, multi-step natural language instructions to modify existing SVGs.
- VG-Text (Text2SVG): Generating complete SVGs from detailed text descriptions.
- VG-Cap (SVG Captioning): Describing the visual content and style of an SVG from its raw code.
Key Insights and Ideas
- SVGs are Programs, Not Just Pixels: Evaluating SVGs requires checking both visual fidelity and structural code validity. Traditional image-generation metrics fail to capture this dual nature.
- Data Quality Beats Model Scale: A smaller 8B model trained with high-quality human data and rendering-based RL can beat a 235B model and match proprietary giants like GPT-4o.
- The Task Difficulty Hierarchy: The authors establish a clear hierarchy of difficulty for VLMs: Text2SVG is the easiest (explicit guidance), followed by SVG Editing (requires understanding existing structures), Sketch2SVG (demands interpretation of noisy, ambiguous visual inputs), and SVG Captioning is the hardest (requires abstracting high-level semantics from low-level geometric code).
Key Results
- Proprietary Models Lead: Gemini 3 Pro achieved the highest overall VectorGym score (73.17), followed closely by GPT-5.1 (71.36).
- RL Baseline Punches Above Its Weight: The fine-tuned open-source baseline, Qwen3-VL 8B Gym, achieved an overall score of 66.05, significantly outperforming its base model (58.74), surpassing the massive Qwen3-VL 235B Instruct (62.32), and beating GPT-4o (64.93).
- Strong Editing Performance: On the challenging VG-Edit task, Qwen3-VL 8B Gym scored 82.81, approaching the performance of top-tier proprietary models due to its fine-tuning on human edit trajectories.
Limitations and Future Work
- Generalization Limits: The evaluation split measures generalization within the SVG-Stack distribution (GitHub data) but does not yet test transfer to completely different corpora or commercial design-tool exports.
- Color Ambiguity in Sketches: Models struggle to introduce creative color palettes when given a purely monochrome sketch input, tending to stick strictly to black and white unless color is explicitly present or described.
- Future Directions: Future work aims to expand dataset curation across more diverse sources and further improve training strategies for handling highly ambiguous sketch generation and intricate multi-step edits.
Summary updated