Detector-Filtered Synthetic Data Launders Co-occurrence Bias into Spatial Skills

Several recent methods teach text-to-image models spatial relations such as "left of" or "above" by having the model grade its own work. The model generates many images, an object detector checks which ones got the layout right, and the model is fine-tuned on the survivors. This is a form of synthetic data distillation. We argue that the pipeline has a built-in blind spot. Images pass the detector mostly when the requested layout already agrees with what the model's training data made likely, as in "a cup above a table." They fail when the layout goes against that prior, as in "a microwave above an elephant." The filtered training set therefore over-represents configurations the model could already produce. Static benchmarks draw on the same familiar object pairs, so they reward this reinforcement and count it as progress.

We propose to measure this effect directly and then remove it. We will score every synthetic training sample by how strongly the model's unguided prior already favored its layout. We will then test whether the reported gains are concentrated on high-prior configurations, using a regenerated-per-run benchmark built from random scene graphs that the training pipeline cannot have seen. Finally, we will replace self-filtered data with drift-targeted synthesis. In this approach a layout-conditioned teacher, sampled with strong spatial guidance, produces counter-prior examples specifically, and a plain text-to-image student learns them in a single forward pass.

Core Claim

Two terms need a plain definition. Guidance drift is the tendency of a guided generator to slide back toward its high-probability default when the guidance is not strong enough to hold it. Layout drift is the spatial case, where objects end up in the model's habitual arrangement instead of the requested one. In a self-generated spatial training set, the samples a detector marks as correct are exactly the ones where layout drift did no harm, because the drift target and the request coincided.

Two pipelines illustrate the problem. GORS, from T2I-CompBench, fine-tunes on detector-approved samples. Iterative Prompt Relabeling (IPR), from Learning from Mistakes, rewrites failed prompts so they describe what was actually drawn. Both therefore build training distributions shaped by the prior. IPR does so even more directly, since a relabeled failure is by construction a sample of the drift target.

We predict that the gains these methods show on VISOR, the detector-based spatial-accuracy metric, are concentrated on prompts the prior already favored. We further predict that these gains shrink sharply on counter-prior and procedurally generated layouts. We also predict that data synthesized from the counter-prior region by a spatially guided teacher closes that gap.

The motivating evidence comes from Benchmarking Spatial Relationships in Text-to-Image Generation. That paper introduced the SR2D prompt set and the VISOR metric, and it found strong co-occurrence bias. It also found that CLIPScore barely changes when "left" and "right" are swapped. It treated models as black boxes and never asked what self-training does to the bias. The layout-drift literature supplies the mechanism: LAW-Diffusion and RealCompo both document that weak spatial guidance lets the prior pull the layout back. The analogy to text-model contamination comes from DyVal. DyVal showed that models strong on static benchmarks collapse on procedurally generated reasoning graphs, and it noted that such generated data can also serve as training data. We carry that logic into visual layouts, a setting DyVal never touched.

Research Program

Measuring prior agreement. We define prior agreement for a prompt with objects $A$ and $B$ and relation $r$ as

$$\pi(r \mid A,B) = \frac{1}{K}\sum_{k=1}^{K} \mathbb{1}\left[\text{detector finds } r \text{ in sample } k \text{ of the prompt ``}A \text{ and } B\text{''}\right].$$

Here $K$ unguided samples are drawn from the base model with the relation word removed, and the indicator equals 1 when the detector sees $r$ holding between the two objects. The score is cheap to compute and model-specific. It estimates where the model's layout drift leads for that object pair.

For each of the GORS and IPR training sets, we will compute the distribution of $\pi$ over accepted or relabeled samples and compare it against the distribution over the requested prompts. We will then break down VISOR gains by bins of $\pi$ on the SR2D prompts.

A regenerated-per-run spatial benchmark. Following DyVal's recipe, we sample small directed scene graphs whose nodes are objects and whose edges are the four SR2D relations. We control complexity through chain depth (one to three relations), the number of distractor objects, and the order in which relations are stated in the prompt. Objects come from an open vocabulary scored by OWL-ViT, the open-vocabulary detector that VISOR already uses. The object pairs are disjoint from any pair used in training synthesis, and graphs are stratified by $\pi$ so that counter-prior layouts are deliberately oversampled. A new seed produces a new test set, so the benchmark cannot be absorbed into training data.

Scoring reuses VISOR's centroid rule applied to every edge. An image counts as correct only if all its edges hold, which gives a graph-level analogue of VISOR's strictest variant, VISOR$_4$, where all four images per prompt must be correct.

Drift-targeted synthesis. We use two models. The teacher is a layout-conditioned diffusion model, meaning one that takes bounding boxes as input, sampled with control guidance. The boxes come from a language model's layout plan, as in RealCompo. Candidate prompts are drawn in proportion to $1-\pi$, so counter-prior layouts dominate. We use a cosine-annealed control-guidance schedule, as in LAW-Diffusion. Outputs are then filtered twice: by the detector for layout, and by an aesthetic floor for image quality.

The student is Stable Diffusion v2 without box inputs, fine-tuned on these text–image pairs. It learns to produce the layout from text alone, in one pass, with no test-time optimization. We will also ask whether the DM-KD finding carries over to layouts. Is Synthetic Data From Diffusion Models Ready for Knowledge Distillation? reported that low-guidance "ugly" synthetic images distill classifiers better. We will sweep the teacher's control-guidance scale to test whether the same holds for layouts. Our expectation is that it does not: in the spatial case, low guidance mostly returns images that drifted back to the prior.

Baselines

The naive reference point is base Stable Diffusion v2, evaluated on SR2D/VISOR, the T2I-CompBench spatial splits, and our procedural benchmark. It anchors every gain.

The strongest self-training competitor is IPR, which relabels detector-found failures and fine-tunes iteratively. It reports a 15.22% absolute VISOR improvement over Stable Diffusion v2 (Learning from Mistakes), and it is the method our hypothesis most directly implicates. The second is GORS, which reports an attribute-binding B-VQA score rising from 0.5065 to 0.6603 on Stable Diffusion v2 (T2I-CompBench). No reported result appears on Lacuna for GORS on the procedural benchmark, since that benchmark does not exist yet.

We will re-run both methods from the same base checkpoint with the same number of synthetic samples, the same fine-tuning steps, the same LoRA rank or full-tuning choice, and the same detector. Hyperparameter search budgets will be equal. Beating these methods means matching them on SR2D VISOR while clearly exceeding them on the low-$\pi$ tercile and on the procedural graph-level accuracy, without a larger drop in aesthetic score than theirs.

The inference-time ceiling is RealCompo. It runs a spatial branch and a realism branch and balances them by gradient steps on cross-attention maps at every timestep. It reports T2I-CompBench numeracy of 0.6592 and an aesthetic score of 5.742 (RealCompo). We treat it as an upper reference and report latency alongside accuracy. Approaching its low-$\pi$ accuracy in a single pass counts as success.

The key ablation isolates where the counter-prior signal comes from. It keeps our $1-\pi$ prompt sampling but replaces the layout-conditioned teacher with the student's own detector-filtered outputs, reweighted by inverse pass rate. If this ablation matches the full method, the teacher is unnecessary, and the contribution reduces to the diagnosis plus rebalancing. A second ablation keeps the teacher but samples prompts uniformly, which separates the effect of targeting from the effect of using a stronger generator.

Why not just…?

Why not just balance the prompt distribution over object pairs and relations? This is the most serious alternative, which is why it appears as an ablation rather than being argued away. Our mechanism predicts that balancing the prompts does not balance the survivors: filter pass rates for low-$\pi$ prompts should be low, so the accepted set stays skewed. Inverse-pass-rate reweighting can correct that skew, but only by repeating the few counter-prior samples that survived, which risks overfitting to them. We will report pass rate as a function of $\pi$, and the ablation will show whether reweighted self-filtered data is enough.

Why not just crank up spatial guidance, or stop it partway through sampling? Evidence in the file argues against both at inference time. A Practical Investigation of Spatially-Controlled Image Generation with Transformers reports saturation and artifacts under strong control guidance. RealCompo reports that stopping layout injection early still leads to drift or poor realism. We do use strong guidance, but only offline in the teacher, with a quality filter, so the student never pays the fidelity cost at test time. The guidance sweep directly measures the trade-off in the resulting training data.

Why not just use VISOR's uncommon-pair analysis instead of building a new benchmark? For the diagnostic finding alone, it may well suffice, and we will report VISOR results broken down by $\pi$ first. However, SR2D is a fixed set of 25,280 prompts over 80 COCO classes, and any synthesis pipeline can draw on those same classes and templates. It also cannot test chained relations or sensitivity to the order in which relations are stated. The procedural benchmark can, and it is the only evaluation that no training set can have absorbed.

Why not just run RealCompo or a layout-planning pipeline at inference? That path is valid when latency does not matter. It needs two diffusion passes plus backpropagation at every step, and it still inherits whatever prior the language-model planner has. Our student targets single-pass deployment, and we will report the accuracy-per-second comparison honestly.

Proposed Experiments and Decisive Checks

The first decisive check is the diagnosis itself. If the VISOR gains of IPR and GORS are flat across $\pi$ bins, and their accepted samples have the same $\pi$ distribution as the prompts, then the laundering hypothesis is false. In that case we drop the synthesis method and publish the procedural benchmark on its own merits.

The second check asks whether the drop from SR2D accuracy to procedural graph-level accuracy is larger for self-trained models than for the base model. That pattern would be the visual counterpart of DyVal's static-versus-dynamic collapse.

The third check is the head-to-head against IPR, GORS, and the self-filtered ablation. We will compare the low-$\pi$ tercile, graph-level accuracy at each depth, and the aesthetic and CLIP scores that IPR reported as declining. All comparisons use three seeds and freshly regenerated benchmark instances.

The fourth check is the guidance sweep. It tests whether DM-KD's result that lower teacher guidance produces better distillation data reverses for spatial skills. The prediction is falsifiable: student low-$\pi$ accuracy should rise with teacher control guidance up to the point where the aesthetic filter starts rejecting most samples.