EMNLP 2026 · Benchmark

VectorGym

A Multi-Task Benchmark for SVG Code Generation, Sketching and Editing

Four tasks with expert human annotations: sketch-to-SVG generation, SVG editing, text-to-SVG generation and SVG captioning.

VectorGym
VectorGym overview: real SVGs from GitHub are annotated by humans with hand-drawn sketches, complex SVG edits and detailed captions, which become the four benchmark tasks VG-Sketch, VG-Edit, VG-Text and VG-Cap.
Human experts annotate real-world SVGs from GitHub with hand-drawn sketches, complex edits and detailed descriptions, which define the four tasks.

Authors

  1. Mila, Quebec AI Institute
  2. ÉTS Montréal
  3. QuiverAI
  4. Columbia University
  5. ServiceNow Research
  6. Illinois Institute of Technology
  7. University of Massachusetts Amherst
  8. University of Illinois Urbana-Champaign
  9. Stony Brook University
  10. Minzu University of China
  11. Computer Vision Center
  12. University of Waterloo
  13. Polytechnique Montréal
  14. Canada CIFAR AI Chair

* Equal contribution.

01 · Tasks

Four tasks for visual code generation

An SVG is a program: its code specifies geometry, style and structure, and renders directly to an image. One benchmark can therefore assess visual fidelity, syntactic validity and structured manipulation together.

VG-Sketch

Sketch2SVG

Convert a rough hand-drawn sketch into clean SVG code. Unlike image vectorization, the model must infer structure, topology and spatial relations from noisy, incomplete strokes. VectorGym introduces this task.

VG-Edit

SVG Editing

Apply a natural-language instruction to an existing SVG. The human-written edits require semantic understanding and several coordinated changes, such as adding objects, changing logo text, converting a pie chart to a bar chart or altering a facial expression, and often involve text, gradients or animation.

VG-Text

Text2SVG

Generate a complete SVG from a text description, ranging from simple shapes to complex illustrations. Prompts are human-validated captions rewritten as instructions at several levels of detail.

VG-Cap

SVG Captioning

The inverse of Text2SVG: describe an SVG from its code, covering both its content and visual properties such as style and color scheme.

02 · Data

Real-world SVGs annotated by human experts

VectorGym draws on SVG-Stack, a collection of SVGs from GitHub that spans icons, diagrams, emojis, fonts, logotypes and complex illustrations and keeps their original primitives. More than 20 annotators from two vendors, with expertise in design, vector graphics and coding, created the sketches, edits and descriptions.

Candidate SVGs
7,000
from the SVG-Stack training split
Training set
6.5k
after filtering; 100 of these form the validation set
Test
300
from the SVG-Stack test split
Annotators
20+
design, vector graphics and coding

Filters retained SVGs of 2k to 8k tokens with normalized color entropy above 0.55; a random subsample was then inspected by hand.

VG-Edit · test examples
Randomly sampled VG-Edit test examples, each with an editing instruction, the source SVG and the target SVG.
Randomly sampled VG-Edit test examples, each with the instruction, the source SVG and the annotator's target SVG.
How VectorGym compares with other SVG datasets (paper Table 1). Primitives: higher-order SVG primitives beyond paths, such as text, gradients or animation. Human: expert human annotations with complex intent.
DatasetSVG typeSamplesMulti-taskPrimitivesEditsSketchesHuman
SVGBenchIn-the-wild10k–✓–––
VGBenchEmojis9.5k✓––––
SVGEditBenchEmojis1.6k––✓––
SVGEditBench V2Emojis1.6k––✓––
UniSVGIcons525k✓––––
SVGeniusIcons100k✓–✓––
VectorGymIn-the-wild7k✓✓✓✓✓

03 · Method

Multi-task reinforcement learning with rendering and text-similarity rewards

The baseline fine-tunes Qwen3-VL 8B Instruct on all four tasks jointly with Reinforcement Learning from Rendering Feedback (RLRF), using the VectorGym training split.

  1. Reward

    Rewards from rendered output

    For the three generation tasks, predicted and reference SVGs are rendered and compared with perceptual similarity and pixel-space distances. For captioning, the reward is the BGE-M3 embedding similarity between predicted and reference captions.

  2. Optimizer

    GRPO with batch-level normalization

    Standard GRPO normalizes rewards within each group of sampled responses. This variant divides the centered rewards by the standard deviation over the whole mini-batch:

    \[A^{\text{batch}}_{i}=\frac{r_{i}-\operatorname{mean}\big(\{r_{j}\}_{j=1}^{K}\big)}{\operatorname{std}\big(\{r_{j}\}_{j=1}^{N\times K}\big)}\]

    \(K\) is the number of sampled responses per prompt and \(N\times K\) the number of samples in the mini-batch.

  3. Curriculum

    Length-based curriculum

    Response length is used as a proxy for difficulty. Samples are sorted by length within each task, and mini-batches draw tasks in proportion to their frequency, so training progresses from short to long examples with the tasks kept balanced.

Rollouts per step
1,344
168 samples × 8 rollouts
Training
600 iters
8 × H200, about two days (384 GPU-hours)
VectorGym score
58.74 → 66.05
+7.31 over the base 8B model; inference cost unchanged

04 · Results

Large gaps remain across tasks; the RL baseline matches GPT-4o

The VectorGym score is the mean of four task scores (0 to 100). Gemini 3 Pro ranks first (73.17). The RL-trained Qwen3-VL 8B reaches 66.05, above GPT-4o (64.93) and the much larger Qwen3-VL 235B Instruct (62.32).

Overall VectorGym score (higher is better; paper Table 2)
  1. Gemini 3 Pro73.17
  2. GPT-5.171.36
  3. Claude Sonnet 4.570.31
  4. Qwen3-VL 8B Gym (ours)66.05
  5. GPT-4o64.93
  6. Qwen3-VL 235B Instruct62.32
  7. Gemini 2.5 Flash61.42
  8. Qwen3-VL 8B Instruct58.74
  9. GLM-4.5V57.02
  10. Qwen2.5-VL 32B Instruct49.16
  11. Qwen2.5-VL 72B Instruct44.27

Proprietary Open-source RL baseline

Difficulty

Text is easiest, captioning hardest

Best VLM-judge scores are 93.00 for Text2SVG (GPT-5.1), and 81.20 for SVG editing, 72.20 for Sketch2SVG and 70.40 for SVG captioning (all Gemini 3 Pro).

Sketches

RL narrows the sketch gap but does not close it

On Sketch2SVG, the open Qwen3-VL 235B and 8B Instruct models reach VLM-judge scores of 40.00 and 33.00. RL raises the 8B model to 46.00, well below Gemini 3 Pro (72.20). Models also rarely add colors absent from the sketch.

Captioning

Metrics disagree

The RL model achieves the highest BGE-M3 (79.76) and ROUGE (25.58) scores of all models, but a lower VLM-judge score (35.80) than Qwen3-VL 235B Instruct (40.40).

VLM judge vs. human ratings
Outputs from Gemini 3 Pro, Claude Sonnet 4.5 and GPT-4o on VG-Sketch, VG-Edit and VG-Text validation samples, each labelled with a VLM-judge score and a human score from 0 to 5.
Three validation samples per task with outputs from the strongest models, each scored from 0 to 5 by the VLM judge and by human raters.
Full results by task
Sketch2SVG and SVG editing (paper Table 2). Score averages VLM judge, DINO, 100 − MSE and 100 − LPIPS.
ModelSketch2SVGSVG editing
VLM J ↑MSE ↓DINO ↑LPIPS ↓Score ↑VLM J ↑MSE ↓DINO ↑LPIPS ↓Score ↑
Open-source
Qwen2.5-VL 72B Instruct12.8016.4369.8743.9555.5716.6018.6870.3538.2157.52
Qwen2.5-VL 32B Instruct17.8015.1571.6342.6557.9120.2017.0472.3137.0559.61
GLM-4.5V33.8014.1478.6141.3564.2337.6013.3980.9031.7668.34
Qwen3-VL 8B Instruct33.0013.7681.0140.9764.8257.4011.0190.4425.2777.89
Qwen3-VL 235B Instruct40.0013.3783.6940.2367.5260.409.0291.1722.1180.11
Qwen3-VL 8B Gym (ours)46.0011.9988.2539.3770.7267.008.3693.9421.3482.81
Proprietary
Gemini 2.5 Flash36.8013.6779.1340.4565.4565.809.9890.5421.1681.30
GPT-4o46.0013.1785.1139.7469.5566.808.4392.2721.2482.35
Claude Sonnet 4.558.8012.5488.4239.2973.8579.406.2995.6116.4688.07
GPT-5.164.0012.2889.4738.4275.6978.005.9295.5916.8387.71
Gemini 3 Pro72.2011.3189.7836.4378.5681.205.8995.5516.0188.71
Text2SVG and SVG captioning (paper Table 3). Score is the unweighted mean of the metrics in each task.
ModelText2SVGSVG captioning
VLM J ↑CLIP ↑DINO ↑Score ↑VLM J ↑BGE-M3 ↑ROUGE ↑Score ↑
Open-source
Qwen2.5-VL 72B Instruct25.8025.7871.0040.869.6052.087.7023.13
Qwen3-VL 8B Instruct55.2029.4881.7155.4625.2066.2718.8736.78
GLM-4.5V59.4028.9180.4456.2538.0062.8516.8639.24
Qwen2.5-VL 32B Instruct22.6024.9568.9638.8438.4066.1016.3540.28
Qwen3-VL 235B Instruct66.8029.6082.6359.6840.4067.1418.3341.96
Qwen3-VL 8B Gym (ours)72.8030.5587.4663.6035.8079.7625.5847.05
Proprietary
GPT-4o74.6030.4384.2363.0946.0066.8221.3344.72
Gemini 2.5 Flash54.0027.6777.6553.1145.8069.2422.4545.83
Claude Sonnet 4.589.0030.9187.6669.1959.2070.1721.0850.15
GPT-5.193.0030.8388.2070.6862.2070.4521.4951.38
Gemini 3 Pro89.8030.8789.0969.9270.4072.2723.8355.50

Bold marks the best value across all models in each column (the paper bolds the best within each group). VLM J is a 0 to 5 judge rubric rescaled to 0 to 100. All numbers are single point estimates on the 300-sample test set, copied from the camera-ready paper (arXiv v2).

05 · Citation

Cite VectorGym

vectorgym.bib
@misc{rodriguez2026vectorgym,
  title         = {VectorGym: A Multi-Task Benchmark for SVG Code Generation,
                   Sketching and Editing},
  author        = {Joan Rodriguez and Haotian Zhang and Abhay Puri and Haoran Dai and
                   Tianyang Zhang and Meng Lin and Rishav Pramanik and Xiaoqing Xie and
                   Marco Terral Rodriguez and Darsh Kaushik and Aly Shariff and
                   Perouz Taslakian and Spandana Gella and Sai Rajeswar and
                   David Vazquez and Christopher Pal and Marco Pedersoli},
  year          = {2026},
  eprint        = {2603.29852},
  archivePrefix = {arXiv},
  primaryClass  = {cs.GR},
  note          = {Accepted to EMNLP 2026}
}