Where, What, Why, and Importance: Structured Defect Grounding for Text-to-Image Feedback

Huaisong Zhang, Hao Yu, Yuxuan Zhang, Jiahe Wang, Xinrui Chen, Haoxiang Cao, Feng Lu, Wendong Zhang, Changqian Yu, Chun Yuan

TL;DR

Modern text-to-image (T2I) generators create stunning visuals, yet still stumble over fused fingers or ignored prompt instructions—flaws that global scalar scores and blurry pixel heatmaps fail to properly explain. This paper introduces Structured Defect Grounding (SDG), reframing image critique as a structured list of (location, type, reason, importance) tuples natively generated by Vision-Language Models (VLMs). Beyond diagnosing errors, these crisp, box-level critiques can be converted directly into spatial reward maps to fine-tune diffusion models—fixing localized flaws without sacrificing overall photorealism.

What Problem Does This Paper Address?

Imagine grading an essay by handing back a single "7/10," or by shining a blurry red flashlight over a paragraph without saying why it’s wrong. That is essentially how we currently evaluate T2I models.

Traditional evaluators output a single scalar preference score—great for ranking two images, useless for telling a model where a hand is mangled. Recent "dense feedback" methods improve on this using pixel heatmaps, but heatmaps hit a representation bottleneck:

  • Arbitrary boundaries: Point-derived heatmaps rely on human-chosen blur radii rather than actual defect extents, struggling with large-area semantic errors.
  • Unbound semantics: A continuous blob of pixels cannot cleanly separate overlapping errors or attach a specific explanation and severity score to each individual flaw.
  • Architectural friction: Autoregressive VLMs speak in tokens, not pixel grids, meaning heatmaps require awkward extra regression heads or decoders.
Figure 1: Comparison of dense feedback paradigms for T2I defect diagnosis. Left: a T2I generated image with its prompt. Middle: heatmap-style feedback produces separate artifact and misalignment maps with textual feedback. Right: SDG reasons via a chain-of-thought (CoT) trace, then outputs structured defects with bounding boxes, types, descriptions, and importance scores.

Methods

Instead of pixel regression, the authors cast image diagnosis as structured set prediction. Given an image and its prompt, an SDG Detector outputs a chain-of-thought reasoning trace followed by a variable-length list of defect tuples:

  1. Location: A bounding box ([0, 1000] coordinates).
  2. Type: Either artifact (visual/anatomical flaws) or misalignment (contradicting the prompt).
  3. Reason: A natural-language explanation.
  4. Importance: A 1–100 perceptual severity score.

To train this detector (built on Qwen3-VL-4B-Instruct), the authors use a two-stage pipeline:

  • Cold-Start SFT with Coordinate Jitter: Standard supervised fine-tuning, with a twist—bounding box coordinates in the target answer are randomly perturbed slightly ($\pm 10$ units) so the VLM learns spatial tolerance rather than memorizing exact numbers.
  • Composite-Reward GRPO: Group Relative Policy Optimization (a reinforcement learning algorithm) refines the model using a format-gated reward combining Hungarian-matched box overlap (DIoU), description embedding similarity, and importance accuracy.

Finally, the authors close the loop from diagnosis to generation with BoxFlow-GRPO. Prior RL methods for diffusion models apply a single image-level scalar advantage across the whole image. BoxFlow-GRPO projects SDG's predicted boxes and importance scores onto the diffusion latent grid, subtracting localized penalties from a base scalar reward and normalizing advantages per spatial location across a group of sampled images.

Downstream applications showing how BoxFlow-GRPO turns SDG detections into spatial advantage maps for policy optimization, alongside GPT-Image refinement.

Datasets

  • SDG-30K (New): 30,096 images ($1024 \times 1024$) generated from Pick-a-Pic prompts across four modern generators: FLUX.2-dev, Z-Image-Turbo, LongCat-Image, and SANA-1.5. 112 human annotators drew boxes and wrote short Chinese notes, which Gemini 3 Pro expanded into detailed English descriptions, 3-step reasoning traces, and calibrated importance scores. Unlike prior datasets (like RichHF-18K's heatmaps or human-only box datasets), SDG-30K unifies artifacts and misalignments at the instance level with natural-language reasons.
  • SDG-Eval (New): A dedicated evaluation protocol measuring image-level detection and Hungarian-matched defect-level localization, description similarity, and importance accuracy.
  • Evaluation Benchmarks: RichHF-18K (zero-shot cross-dataset testing) and DrawBench (evaluating RL-aligned generators).
Figure 3: SDG-30K dataset statistics across four generators. (a) Average number of defects per image by type. (b) Image composition showing the proportion of clean, artifact-only, misalignment-only, and both-type images. (c) Distribution of defect importance scores across five severity tiers.

Key Insights and Ideas

  • Heatmaps struggle with semantics: On zero-shot cross-dataset testing (RichHF-18K), heatmap-based models trained in-domain virtually miss prompt-conditioned misalignments (recall of 0.143), whereas zero-shot SDG catches them (F1 of 0.655). Bounding boxes naturally capture large-scale conceptual errors (like an upright pose instead of an "upside-down jump") that point-based heatmaps miss.
  • True spatial credit assignment prevents "reward hacking" drift: Standard scalar RL alignment often inflates preference scores by drifting toward cartoonish or anime styles, tanking photorealism. Because BoxFlow-GRPO penalizes exact defective latent regions via per-location advantages, it fixes errors while actually increasing photorealism.
  • Keep the vision encoder frozen: Unfreezing the ViT during SFT significantly degraded spatial localization (dropping misalignment [email protected] from 0.376 to 0.305) at the 30K dataset scale.

Key Results

  • Near-Human Defect Grounding: On SDG-30K, the 4B-parameter SDG (GRPO) detector achieves 0.263 (artifact) and 0.387 (misalignment) [email protected]—substantially beating zero-shot GPT-5.4 (0.035 / 0.292) and Gemini 3 Pro (0.200 / 0.307), and approaching the human inter-annotator upper bound (0.278 / 0.409).
  • Superior Diffusion Alignment: Post-training FLUX.1-dev with BoxFlow-GRPO is the only tested RL method to improve all five evaluation metrics simultaneously (+2.4% average gain), boosting Forensic-Chat real-image probability $P(\text{real})$ from 0.211 to 0.228 (while scalar RL dropped it to 0.149).
  • Actionable Image Editing: Feeding SDG box overlays and text critiques into GPT-Image-1.5 reduced detected defect boxes by 37.55% upon re-diagnosis and beat heatmap-guided editing 11.00% to 3.90% in human blind preferences (with 85.11% ties).

Limitations and Future Work

Not explicitly discussed in a dedicated section in the main paper (Pages 1–10). However, two practical constraints are apparent from the experiments:

  • Bounding box granularity: Boxes represent spatial support rectangularly rather than via pixel-exact segmentation masks, and even human annotators only agree at 0.278 / 0.409 [email protected] due to subjective defect boundaries.
  • Editor bottlenecks in refinement: In downstream image editing, human evaluators rated 85–87% of outputs as "Same" across methods, reflecting already high-quality inputs and strong baseline editors (plus safety/policy filtering by GPT-Image-1.5).

Summary updated

Abstract

Despite generating increasingly photorealistic images, text-to-image (T2I) models still exhibit localized, subtle, and structurally complex failures. Diagnosing these failures requires instance-level feedback that answers *where* a defect occurs, *what* type it is, *why* it is defective, and its *importance* to overall image quality. While recent dense-feedback methods move beyond scalar supervision, their heatmap-centric representations still formulate diagnosis as pixel-field regression, making it difficult to localize variable-cardinality defects and bind semantic reasons to individual failures. To address this representation bottleneck, we propose **Structured Defect Grounding (SDG)**, which casts T2I diagnosis as structured set prediction by modeling each defect as a *(location, type, reason, importance)* tuple. To make this formulation trainable and measurable, we introduce **SDG-30K**, a 30K-image dataset with box-grounded annotations across four modern T2I generators, together with a dedicated evaluation protocol, **SDG-Eval**. Building on this structured representation, we further present a diagnosis-to-alignment framework in which a Vision-Language Model (VLM) serves as the SDG detector, and **BoxFlow-GRPO** converts predicted defect sets into box-derived, importance-weighted spatial rewards for diffusion model alignment. Extensive experiments show that our SDG detector outperforms leading proprietary VLMs on structured defect grounding, while SDG-guided rewards consistently improve T2I alignment and support localized image refinement. These results establish SDG as a unified, instance-level interface for diagnosing, evaluating, and enhancing modern generative models.
BibTeX
@inproceedings{zhang2026where,
  author = {Huaisong Zhang and Hao Yu and Yuxuan Zhang and Jiahe Wang and Xinrui Chen and Haoxiang Cao and Feng Lu and Wendong Zhang and Changqian Yu and Chun Yuan},
  title = {{Where, What, Why, and Importance: Structured Defect Grounding for Text-to-Image Feedback}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=L8plGNGlQq},
}
Figure