Vision-language models, which read an image and answer questions about it in text, are increasingly used as automatic judges of AI-generated images. They are bad at this job in a specific way. On AGIDefect-4K, a benchmark of generated images annotated for defects such as six-fingered hands or floating objects, frontier models asked zero-shot whether an image is flawed score a detection AUC around 0.29–0.38 (AGIDefect-4K). An AUC below 0.5 means the ranking is worse than a coin flip. The models are not merely blind; their answers point the wrong way. A separate finding suggests why. On ordered rating tasks such as retinopathy grades and aesthetic tiers, the same kind of model encodes the correct rank in its intermediate layers (Spearman correlation up to 0.938). The final projection onto output tokens then throws that signal away, keeping under 1.15% of it (Latent Ordinal Evidence, Misaligned Outputs). The judge may "know" an image is badly broken and still say it is fine. That is a hallucination by the evaluator, not the generator.
This note proposes a way to read defect severity directly from the frozen judge's hidden states, as an ordered grade rather than a yes/no flag or an unconstrained score. The readout is taken separately at each image patch, so that small defects are not averaged away. It also takes up a second question: whether showing the judge a retrieved picture of what the concept should look like helps. For rare concepts the judge has no internal picture of "correct," so retrieval should help. When the reference database does not actually contain the concept, however, retrieval returns a look-alike that could mislead the judge. We test this with a controlled experiment that deletes concepts from the database.
Core Claim
A frozen vision-language model's hidden states carry an ordered defect-severity signal that its text output hides or inverts. A small per-patch "cumulative threshold" head can recover it. That head learns a set of ordered cut-points ("is severity above grade k?"), is trained with a distance-weighted ordinal loss, and is max-pooled over image patches. We expect it to match or beat a fully fine-tuned defect assessor on detection and quality ranking. Its errors should be mostly near-misses rather than confusing flawless with grotesque.
There is a second, conditional claim. Giving the judge a retrieved reference image improves severity reading for rare concepts only when the reference really depicts the concept. A gate based on how well the retrieved image matches the prompt is needed to stop off-concept references from making things worse.
This differs from Ordinal Lens Alignment (OLA) in three ways. OLA trains linear readouts anchored to digit tokens and corrects single-token logits on closed rating tasks with at most 8 classes, and it never uses retrieval. Our target is localized structural defects in generated images, where one global readout is exactly what pooling-based metrics get wrong. Over 85% of AGIDefect defects cover less than 5% of the image. We also study retrieval under coverage gaps, which OLA does not touch. It also differs from AGIDA, the AGIDefect baseline. AGIDA fine-tunes Qwen3-VL with a regression quality token and binary detection. We keep the backbone frozen and replace regression with learned ordinal thresholds. Unlike a squared-error loss, those thresholds can represent the non-uniform way humans penalize defects, with severe revulsion at body deformities and mild tolerance of background oddities.
Research Program
The first stage measures the gap. We take Qwen2.5-VL and Qwen3-VL, the backbones used by OLA and AGIDA, and run them on AGIDefect-4K. We compare two things. The first is the model's verbalized defect verdict and quality rating. The second is a plain linear probe on each layer's hidden states. Both are scored by Spearman rank correlation against human quality scores and by detection AUC. If the probe is strongly positive while the verbal output sits below 0.5, the "latent evidence, misaligned output" story from OLA carries over to defect judgment. If the probe is also weak, the premise fails, and we would report that instead.
The second stage builds the readout. We convert AGIDefect's quality scores into ordered severity grades. Following cumulative decomposition (Cheng; Ranking-CNN), a head on a chosen middle layer predicts K−1 answers to "severity > k" at every visual-token position. We take the maximum over positions, and the resulting cumulative probabilities define the grade distribution. Training uses the Ordinal Log-Loss of Castagnos et al., which weights the log-probability of each wrong class by its rank distance raised to α. That paper found α = 1.5 best for text, and we tune α on validation data. Per-patch max pooling gives a heatmap as a byproduct, which we score against AGIDefect's segmentation masks. This asks whether the readout fires where the defect actually is.
The third stage adds retrieval and tests coverage. Following ImageRAG, we index the same 350K-image LAION subset with SigLIP. For each generated image we retrieve the top reference for its prompt concept and place it in the judge's context before reading hidden states. ImageRAG's weak point is a concept absent from the datastore, where nearest-neighbor search still returns something. To probe this we build matched conditions for each rare concept. In the covered condition, true instances are in the index. In the deleted condition, every image of that concept is removed, so retrieval returns a semantic neighbor. In the none condition, no reference is given.
The gate is a scalar weight on the reference-conditioned readout versus the no-reference readout. It is a monotone function of the retrieved image's similarity to the prompt, calibrated on held-out concepts. This is the multimodal version of the "more is less" effect that Tang et al. found in text: adding context sometimes adds errors.
Rare-concept evaluation needs labels that AGIDefect does not have. We will generate images of fine-grained concepts from ImageRAG's long-tail benchmarks (iNaturalist, CUB, Stanford Dogs/Cars) using SDXL and FLUX. Annotators will label about 1,500 images with the AGIDefect severity protocol plus a "wrong concept" flag. This set is modest, and its inter-annotator agreement will be reported.
Baselines
The naive reference point is the zero-shot judge: Qwen3-VL, and GPT-4o where the API allows, prompted to rate defect severity. The AGIDefect paper reports zero-shot detection AUC of 0.29–0.38 for GPT-4o and Gemini-3.1-pro. We rerun it on our splits rather than borrowing that number.
A second trivial baseline takes the same zero-shot scores with the sign flipped. If sub-random AUC reflects a stable inverted signal, flipping alone could reach roughly 0.62–0.71. It costs nothing and must be beaten.
The strongest existing method is AGIDA (AGIDefect-4K), a fine-tuned Qwen3-VL with task tokens and a frozen SAM encoder. It reports detection AUC 0.65 and quality-prediction Spearman correlation 0.800. It is the strongest competitor because it is trained on the same data and targets the same outputs. We use the official splits and, if released, the official checkpoint. Otherwise we retrain it with the reported recipe on the same GPU budget as our head. Beating it means detection AUC above 0.65 and Spearman correlation at least 0.800 with a frozen backbone, plus a lower rate of errors two or more grades off.
A LoRA fine-tune of the same backbone with the same ordinal targets stands in for OrderChain-style adaptation. OLA reports beating a LoRA baseline in 14 of 16 model–dataset settings, but that result is on different tasks, so we tune the LoRA with a hyperparameter budget matching our head's.
OLA itself serves as a whole-image, digit-anchored lens baseline.
Three ablations isolate the key ingredients. The first replaces the cumulative head with a linear regressor trained on squared error, which isolates the ordinal loss. The second replaces max pooling over patches with last-token or mean pooling, which isolates localization. The third runs the reference condition with no gate, which isolates coverage awareness.
Why not just…?
Why not just flip the sign of the zero-shot judge? If the frontier judges' inverted AUC reflects a consistent bias, flipping could land near AGIDA's 0.65 at no cost. That would be a real embarrassment for any trained method. We treat it as a mandatory baseline. Flipping only fixes the direction of a binary ranking, though. It does not give severity grades, localization, or robustness when the bias varies by defect type. We report per-category AUC to see whether the inversion is uniform. If flipping matches our head on both AUC and Spearman correlation, the conclusion is that the judge's problem is a bias in its output, not a lost signal, and the lens is unnecessary.
Why not just fine-tune the judge, as AGIDA or LoRA does? Fine-tuning is the obvious route and the main threat. OLA's frozen lenses beat LoRA in 14 of 16 settings on ordinal rating (Latent Ordinal Evidence), which suggests the loss happens at the output projection rather than from missing knowledge. Defect detection is a different task, however. Our matched-budget LoRA comparison settles it. If LoRA wins, the proposal's remaining value is only the retrieval and coverage analysis, which applies to either kind of judge.
Why not just put the reference image in the prompt and ask again? This tests whether retrieval alone fixes judging, as ImageRAG's VLM-in-the-loop approach implicitly assumes. The zero-shot positive bias reported by AGIDefect suggests the verbal channel stays unreliable even with more context. The deleted-concept condition tests the prediction that unfiltered references actively hurt. We run reference-in-prompt with verbal output as its own baseline.
Why not just use a larger reference database? Dense retrieval never returns nothing. MOTOR shows that cosine retrieval pulls clinically wrong neighbors, and that re-ranking gives a 6.45% average accuracy gain (MOTOR). The deletion experiment directly measures the damage a missing concept does. Growing the index shrinks how often concepts are missing, but not the harm when one is.
Decisive Checks
The proposal stands or falls on three results.
The first is the gap. Middle-layer probes on AGIDefect must reach clearly higher Spearman correlation than the judge's verbal ratings. If they do not, the lens premise is dead for this task.
The second is the ordinal head. Against both the squared-error probe and AGIDA, the cumulative head must reduce errors two or more grades off, not only improve average accuracy. Its patch heatmaps should hit AGIDefect masks well above a random-location baseline.
The third is coverage. On the rare-concept set, the ungated reference condition should improve severity correlation in the covered condition and degrade it in the deleted condition relative to no reference. The gate should keep most of the gain while removing most of the damage.
If the deleted condition does not hurt, the "look-alike neighbor misleads the judge" hypothesis is wrong for evaluators. We would report that, and the retrieval component reduces to a plain accuracy boost.
For secondary transfer checks, we will apply the head, trained on AGIDefect, to the Aesthetic tiers used by OLA to see whether a defect-severity readout transfers to general perceptual quality.
References
- AGIDefect-4K: A Richly Annotated Dataset for AI-Generated Image Defect Detection, Localization and Explanation
- Latent Ordinal Evidence, Misaligned Outputs: Inference-Time Ordinal Lens Alignment for Multimodal LLMs
- A neural network approach to ordinal regression
- Using Ranking-CNN for Age Estimation
- A Simple Log-based Loss Function for Ordinal Text Classification
- ImageRAG: Dynamic Image Retrieval for Reference-Guided Image Generation
- Evaluating large language models on medical evidence summarization
- MOTOR: Multimodal Optimal Transport via Grounded Retrieval in Medical Visual Question Answering