TL;DR
sketch-plot introduces a three-layer progressive editing pipeline (PNG, addressable puzzle pieces, and SVG) to bridge the "controllability gap" in AI-generated academic figures. By combining vision-language models with a human-in-the-loop interface, it allows users to make targeted local edits to specific parts of a diagram without needing to regenerate the entire image.
What Problem Does This Paper Address?
Modern text-to-image (T2I) models can generate visually polished academic diagrams in seconds, but their output is a flat raster image (like a PNG). If a researcher wants to fix a single typo, change an arrow's direction, or swap an icon, they are forced to re-prompt the model and regenerate the entire image. This process inevitably destroys the parts of the figure that were already correct.
Existing computer vision workarounds fall short: general segmentation models over-segment text or miss thin lines, while end-to-end vectorization tools lose semantic structure. This creates a frustrating gap between fast, uneditable AI generation and slow, manual vector authoring.
Methods
The authors propose sketch-plot, a web-based system featuring a three-layer progressive controllability pipeline:
- Layer 1 (L1 - PNG): The initial flat raster image generated from a text prompt.
- Layer 2 (L2 - Puzzle): A vision-language model (VLM, such as Gemini) reads the raster image and proposes a coarse layout of 3 to 10 top-level bounding boxes with semantic labels (e.g.,
header,cards_row). To turn these potentially overlapping or incomplete boxes into a clean partition, sketch-plot applies a deterministic residual-completion step that tiles the entire canvas into addressable "puzzle pieces." - Layer 3 (L3 - SVG): On-demand, per-piece image-to-SVG vectorization. Instead of vectorizing the whole image at once, the system converts only the specific pieces the user selects, turning pixels into editable vector primitives (text, stroke, fill).
Crucially, the system routes these stages through a human-in-the-loop interface, allowing users to nudge boundaries, re-prompt specific regions for local AI inpainting, or directly edit SVG attributes.
Datasets
Not discussed in the paper. The system relies on off-the-shelf commercial APIs (such as GPT Image 2 and Gemini via OpenRouter) and is evaluated via a qualitative user study rather than a benchmark dataset.
Key Insights and Ideas
- The "Puzzle" Paradigm: Instead of fighting for a "perfect layout" from a VLM, the system reframes layout extraction as "any layout plus a residual completion." Any unmapped area automatically becomes a background piece, meaning imperfect model outputs don't break the user experience.
- Pay-Per-Piece Vectorization: Full-image vectorization is computationally expensive and often messy. Isolating vectorization to individual user-selected puzzle pieces keeps errors localized and saves computational overhead.
- Local Inpainting via Named Regions: Because the puzzle pieces have semantic names and bounding boxes, the system can automatically generate precise masks for region-level inpainting when a user wants to re-prompt a specific piece.
Key Results
The authors validated sketch-plot with an expert user study involving researchers from AI and HCI fields:
- Participants gave perfect scores (5.0 / 5.0) for both ease of learning and ease of use.
- The L1–L3 workflow and L2 decomposition stage both scored 4.67 ± 0.58, with users highly appreciating the ability to preserve and reuse good parts of a figure instead of losing them during full regeneration.
- The L3 rendering stage scored 4.33 ± 0.58; users valued converting raster pieces into editable SVGs, though they noted complex icons still required manual refinement.
Limitations and Future Work
- VLM Parsing Imperfections: Current VLMs sometimes fuse adjacent panels, drop sub-panels, or slightly misalign bounding boxes. The authors plan to implement an edge-snapping pass to image gradients to automatically tighten box boundaries.
- Vectorization Quality: Image-to-SVG conversion remains weak on fine details like complex icons, text glyphs, and thin connectors.
- Domain Expansion: The current design focuses primarily on flowcharts and architecture diagrams. The authors plan to extend the puzzle paradigm to tables (rows, headers), experimental plots (axes, annotations), and code-driven figures (TikZ/Python scripts).
Summary updated