Abstract
We introduce VectorGym, a comprehensive benchmark suite for Scalable Vector Graphics (SVG) that spans generation from text and sketches, complex editing, and visual understanding. VectorGym addresses the lack of realistic, challenging benchmarks aligned with professional design workflows. Our benchmark comprises four tasks with expert human-authored annotations: the novel Sketch2SVG task (VG-Sketch); a new SVG editing dataset (VG-Edit) featuring complex, multi-step edits with higher-order primitives; Text2SVG generation (VG-Text); and SVG captioning (VG-Cap). Unlike prior benchmarks that rely on synthetic edits, VectorGym provides gold-standard human annotations that require semantic understanding and design intent. We also propose a multi-task reinforcement learning approach that jointly optimizes across all four tasks using rendering-based rewards. Our method, built on GRPO with curriculum learning, trains a Qwen3-VL 8B model that achieves state-of-the-art performance among open-source models, surpassing much larger models including Qwen3-VL 235B and matching GPT-4o. We also introduce a VLM-as-a-Judge metric for SVG generation, validated through human correlation studies. Our evaluation of frontier VLMs reveals significant performance gaps, positioning VectorGym as a rigorous framework for advancing visual code generation. VectorGym is publicly available on this http URL.
Abstract (translated)
我们推出VectorGym,这是一个面向可缩放矢量图形(SVG)的综合基准测试套件,涵盖从文本和草图生成、复杂编辑到视觉理解等多种任务。VectorGym解决了缺乏与专业设计工作流对齐的、真实且具有挑战性的基准测试的问题。我们的基准测试包含四个任务,并配有专家人工标注:新颖的Sketch2SVG任务(VG-Sketch);一个新的SVG编辑数据集(VG-Edit),包含复杂的多步编辑及高阶图元;Text2SVG生成(VG-Text);以及SVG描述(VG-Cap)。与依赖合成编辑的先前基准不同,VectorGym提供了需要语义理解和设计意图的黄金标准人工标注。我们还提出了一种多任务强化学习方法,通过基于渲染的奖励联合优化所有四个任务。我们的方法基于GRPO和课程学习,训练了一个Qwen3-VL 8B模型,在开源模型中达到最先进性能,超越了包括Qwen3-VL 235B在内的更大模型,并媲美GPT-4o。我们还引入了用于SVG生成的“视觉语言模型作为评判者”(VLM-as-a-Judge)指标,并通过人类相关性研究进行了验证。我们对前沿视觉语言模型的评估揭示了显著的性能差距,使VectorGym成为推动视觉代码生成的严谨框架。VectorGym已公开可用,地址为:此http URL。
URL
https://arxiv.org/abs/2603.29852