One Stroke at a Time: Teaching VLM Agents the Art of Structured Sketching

Teaching an Agent to Sketch One Part at a Time

Summary
Problem
Method
Results
Takeaways
Abstract

The paper introduces a method for part-by-part vector sketch generation using a Vision-Language Model (VLM) agent. By combining a novel automated annotation pipeline for the ControlSketch-Part dataset with a two-stage training process (SFT + Multi-turn Process-Reward GRPO), the system achieves state-of-the-art results in interpretable and locally editable text-to-vector synthesis.

TL;DR

Researchers have developed a VLM-based agent capable of generating complex vector sketches part-by-part (e.g., drawing a "helmet" then "torso"). By creating the ControlSketch-Part dataset and employing a Multi-turn Process-Reward GRPO strategy, the model moves beyond "black-box" one-shot generation to a transparent, editable, and highly structured creative workflow.


The Problem: Generative "Magic" vs. Designer Control

Current text-to-vector models (like DiffSketcher) operate like a magic wand: you provide a prompt, and the entire sketch appears at once. While visually impressive, this fails on two fronts:

  1. Inflexibility: If the "wheels" of a generated car look wrong, you often have to regenerate the whole image.
  2. Lack of Intuition: Humans don't sketch by diffused noise; we draw semantically—one part at a time.

The challenge lies in the Data Gap. There are no large-scale datasets that label which SVG paths belong to which semantic part (e.g., "this curve is part of the rabbit's ear").


Methodology: The "Critic" in the Machine

The authors solve the data problem with a VLM-driven annotation pipeline. Instead of manual labeling, they use a high-end VLM (Gemini 3.0 Pro) in a multi-stage process:

  • Decomposition: Proposing a list of semantic parts.
  • Critique & Refinement: A second VLM pass to fix overlapping or missing parts.
  • Diagnostic Visualization: Re-coloring the sketch based on parts to help the VLM "see" its own assignment errors.

Architecture & Training

The agent (based on Qwen-VL) is trained in two stages:

  1. Supervised Fine-Tuning (SFT): Learning the "language" of SVG coordinates ( and commands for Bézier curves).
  2. Multi-turn GRPO (Reinforcement Learning): This is the secret sauce. Most RL only rewards the final result. Here, the authors use Process-Rewards, where the agent receives a "score" after every part it draws. This is calculated using DreamSim, a perceptual metric that aligns better with human vision than standard CLIP scores.

Model Architecture and Flow The model takes the current canvas, the global prompt, and the specific part instruction to generate the next set of SVG paths.


Experiments: Superior Quality and Control

The model was tested against SketchAgent and general-purpose VLMs like Gemini 3.1 Pro.

Key Findings:

  • Visual Fidelity: Unlike the simplistic "doodles" of previous agents, this model produces professional-grade sketches with complex curves.
  • Local Editing: Because the model understands "parts," users can prompt it to “replace the wheels” or “remove the wings” without affecting the rest of the sketch.
  • Human Preference: In double-blind studies, humans preferred the "Ours (SFT + RL)" results significantly more than holistic generation methods.

Comparative Results Comparison showing how the proposed method maintains structural integrity and semantic relevance across various categories like astronauts, bears, and cars.


Critical Insight: Why Process-Rewards Matter

The core takeaway from this work is the effectiveness of the Process-Reward. In generative agents, "Outcome-based" rewards (only scoring the final image) lead to the "sparse credit" problem—the model doesn't know which specific turn caused a failure. By providing a reward at every step, the authors successfully bridged the gap between training on "perfect" ground-truth data and the "noisy" reality of the model's own intermediate generations.

Conclusion & Limitations

While this is a massive leap for Vector Agentic Workflows, the model still faces challenges with "unfamiliar concepts" and occasional premature stopping (where a part is only half-drawn). Future work involving Chain-of-Thought (CoT) reasoning before each stroke could further enhance the "planning" capabilities of these digital artists.


Takeaway for Practitioners: If you are building generative agents for complex tasks (code, graphics, or layout), don't just reward the final output. Implement a part-level decomposition and reward the process.

Find Similar Papers

Try Our Examples

  • Search for recent papers on multi-turn reinforcement learning for vector graphics generation beyond simple sketching tasks.
  • How does the DreamSim perceptual metric compare to LPIPS and CLIP for evaluating the intermediate steps of a sequential generative process?
  • Find research that applies Group Relative Policy Optimization (GRPO) to multimodal tasks involving both image and coordinate-based outputs.
Contents
One Stroke at a Time: Teaching VLM Agents the Art of Structured Sketching
1. TL;DR
2. The Problem: Generative "Magic" vs. Designer Control
3. Methodology: The "Critic" in the Machine
3.1. Architecture & Training
4. Experiments: Superior Quality and Control
4.1. Key Findings:
5. Critical Insight: Why Process-Rewards Matter
6. Conclusion & Limitations