TL;DR
Ask a modern AI image generator for a cyberpunk cat, and you’ll get a masterpiece; ask it for a basic geometry diagram with a tangent line, and it falls apart. ProGraf rescues black-box pixel generators on rigid, rule-bound visuals—like circuits and flowcharts—by building a "capability profile" of each generator's quirks, breaking hard prompts into tailored baby steps, and strictly verifying every edit before moving forward. On tasks where top generators previously failed 100% of the time, ProGraf successfully recovers up to 77.8% of them.
What Problem Does This Paper Address?
Natural images forgive imperfection—nobody notices if a generated tree has an extra branch. Structured non-natural images (geometry diagrams, circuit schematics, flowcharts) offer zero margin for error. A single missing wire, misplaced midpoint, or hallucinated label renders the entire diagram useless, no matter how crisp the lines look.
An intuitive fix is to break complex prompts into step-by-step edits using LLM agents. Yet generic multi-step pipelines still stumble for two reasons:
- Destructive edits: Adding a new element in step three often corrupts a fragile geometric relation perfected in step two.
- Generator blindness: Every image model fails differently. Without knowing how a specific black-box raster (pixel-based) generator tends to break, a planner can't steer around its blind spots.
Methods
Instead of retraining image models or retreating to code-based vector tools (like TikZ or SVG), ProGraf wraps a closed-loop planning agent around existing black-box raster APIs:
- Offline Capability Profiling (Novel): Before tackling new tasks, ProGraf studies a generator's historical benchmark failures to extract a compressed "cheat sheet" ($P_g$). This profile captures category reliability, fragile structural tags (e.g., tangency or perpendicularity), and recurring error habits without leaking specific test answers.
- Profile-Guided Next-Step Planning (Novel): Rather than scripting a rigid 5-step plan upfront, an LLM planner (Gemini-3.1-Pro-Preview) decides only the immediate next step. Guided by the generator's profile, it isolates high-risk relationships into separate, easily checkable edits.
- VP-Grounded Verification & Rollback: Each step generates dynamic Verification Points (VPs)—explicit checks for required objects, spatial relations, and the absence of unwanted extras. A Vision-Language Model (VLM) acts as a gatekeeper: if an edit passes, the image is "committed" as the new save state; if it fails, it is discarded, retried with hints, or replanned from the last clean state.
Datasets
The authors introduce a new VP-grounded structured diagram benchmark comprising 304 tasks paired with 1,755 fine-grained Verification Points across four categories: Geometry (154 tasks), Circuit (50), Flowchart (50), and General Diagrams (50).
Unlike prior benchmarks that only score final text-to-image alignment, this dataset pulls triple duty: benchmarking generators, testing VLM verifiers, and extracting generator capability profiles. Every generated sample was evaluated by a VLM and independently adjudicated by two human reviewers to establish ground truth. To test ProGraf, the authors isolated generator-specific hardest subsets—prompts where a given generator failed all three initial independent attempts.
Key Insights and Ideas
- More steps $\neq$ better diagrams: In static baselines, bumping decomposition from 3 fixed steps to 5 often lowered accuracy because unverified intermediate edits simply compounded pixel corruption.
- VLMs are overly optimistic judges: When evaluating VLMs as diagram verifiers, models were great at confirming present objects (high recall) but terrible at catching broken constraints (low specificity/True Negative Rate). Verification itself is a major bottleneck.
- Knowing your generator matters: Swapping in another model's capability profile ("shuffled-profile" ablation) still helped slightly—since pixel generators share some universal struggles—but matching the exact profile to the exact generator yielded substantially higher recovery in fewer attempts.
Key Results
On full-benchmark baseline tests, closed-source models led the pack (Nanobanana2 at 80.3% task success, seedream5-lite at 67.3%, grok-imagine at 35.6%), while open-source models struggled (GLM-Image at 13.8%, FLUX2-9B at 5.8%). Among VLM verifiers, Gemini-3.1-Pro-Preview achieved the highest balanced accuracy at 76.89%.
On the hardest subsets (0% initial success across 3 tries), ProGraf outperformed fixed-step plans, Adapted X-Planner, and generic reflective agents (GRA) under the same 10-call budget:
- Geometry recovery: Reached 43.7% (grok-imagine), 51.5% (seedream5-lite), and 62.5% (Nanobanana2).
- Non-geometry recovery: Reached 48.2% (grok-imagine), 68.1% (seedream5-lite), and 77.8% (Nanobanana2).
- Ablations: Stripping away the generator profile on seedream5-lite Geometry caused task success to drop from 51.52% to 30.30%, while removing state rollback crashed performance to 18.18%. Even under strict cross-validation (holding out test prompt clusters from profile creation), seedream5-lite Geometry held strong at 48.48%.
Limitations and Future Work
- Raster vs. Symbolic: ProGraf repairs pixel-based generators; it does not claim superiority over symbolic or code-driven synthesis (like SVG or TikZ), which remain better suited when crisp vector precision and post-hoc editability are required.
- Calibration overhead: Adapting ProGraf to a brand-new generator or visual domain requires collecting historical outputs and verified calibration records first.
- Bounded by primitives and verifiers: ProGraf cannot coax a diagram out of a generator that lacks basic drawing primitives. Furthermore, VLM verifier blind spots still leak through: in an audit of 34 failed trajectories, 19 failed because the VLM falsely accepted a flawed intermediate step that poisoned the rest of the run.
Summary updated