ProGraf: Profile-Guided Planning for Step-by-Step Generation of Structured Non-Natural Images

Ran Luo, Haoxiang Deng, Lan Zhang, Mu YuanNeurIPS 2026

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:

  1. Destructive edits: Adding a new element in step three often corrupts a fragile geometric relation perfected in step two.
  2. 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.
Figure 1: Qualitative comparison of ProGraf and agent baselines on structured generation hard cases. For each case, we show the accepted intermediate states produced by ProGraf, the failed attempt trajectory of a baseline agent, and the corresponding verification outcomes.

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).

Figure 2: Overview of benchmark construction. We define structured task categories, instantiate prompt–VP pairs, evaluate generated images with VP-level checks, and use the resulting records for generator evaluation, verifier evaluation, and generator-specific profile extraction.

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%.
Figure 3: Main results on generator-specific hardest subsets. ProGraf is compared with fixed-step baselines and adapted agent baselines on geometry and non-geometry subsets. Bars show mean task success rate (TSR). Error bars denote standard deviation over three independent runs.

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

Abstract

Structured visual artifacts such as geometry diagrams, circuit schematics, and flowcharts are increasingly important targets for image generation, yet visual plausibility alone is insufficient—a single missing object, wrong relation, broken connection, or extra element can invalidate the output. Existing image generators remain brittle on such tasks, and generic step-by-step or agentic methods often fail because intermediate edits may corrupt previously correct structures and ignore generator-specific failure modes. To address this, we present ProGraf, a profile-guided framework for recovering structured non-natural image generation failures with black-box raster generators. We first build a benchmark of 304 tasks across geometry, circuit, flowchart, and general diagrams, each annotated with fine-grained verification points. From repeated generator outputs, we derive model-specific capability profiles capturing category-level reliability, component-level weaknesses, and recurrent failure patterns. ProGraf uses these profiles to guide closed-loop decomposition, verifies each intermediate result, commits only accepted states, and replans after failures. On generator-specific hardest subsets, ProGraf recovers 43.7–77.8% of previously failed tasks across generators and categories, outperforming fixed-step and adapted agent baselines; ablation studies further show that benchmark-derived profiles are a key source of the gain.
BibTeX
@inproceedings{luo2026prograf,
  author = {Ran Luo and Haoxiang Deng and Lan Zhang and Mu Yuan},
  title = {{ProGraf: Profile-Guided Planning for Step-by-Step Generation of Structured Non-Natural Images}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8I8z7rkr9Q},
}
Figure