Twin-Instance Audits for Benchmark Memorization in Conditional Image Generators

Conditional image generators produce a picture from several inputs at once: a text instruction plus a source photo to edit, a reference subject, or a sketch. They are ranked on fixed public benchmarks such as ImagenHub, and those benchmark images and prompts sit on the open web that the generators are trained on. For models that answer questions about images, we already know such leakage inflates scores. For models that generate images, nobody has measured it, so we cannot tell whether a high benchmark score reflects skill or a remembered example.

We propose a simple way to measure it. For each benchmark example, we build "twins": copies that ask for the same thing but look different on the surface, for instance by paraphrasing the instruction or repainting irrelevant parts of the source photo. We then score how much worse a generator does on the twins than on the original. A raw drop is uninformative, because twins can simply be harder. So we compare it with the drop the same twinning causes on freshly collected examples that no model could have seen. The excess drop, which we call a difference-in-differences, is the memorization signal. We read it separately for each quality dimension and for each input type, which tells us which condition was memorized. We validate the signal by deliberately contaminating open models with known doses of benchmark data and checking that it recovers them.

Core Claim

Contamination in conditional generation can be detected behaviorally, without access to training data. The test asks whether a model's advantage on a benchmark example survives meaning-preserving changes to that example's conditions, after subtracting the cost those same changes impose on never-seen examples. Splitting the score into separate axes is what makes the test diagnostic. The axes are agreement with each condition, preservation of unedited regions, and perceptual quality. A single overall score would mix "the model remembers this photo" with "the model follows this kind of instruction well." The concrete deliverable is a contamination estimate per model, per task and per input type for ImagenHub, plus re-rankings that show whether reported orderings survive.

The evidence for the gap comes from the literature on models that answer questions about images. Both Text and Images Leaked! (MM-DETECT) detects leakage in question-answering and captioning models by perturbing inputs. It computes $\Delta = PCR - CR$, the change in correct-answer rate after perturbation, and traces much of the leakage to text-only language-model pretraining. Dynamic Multimodal Evaluation with Flexible Complexity by Vision-Language Bootstrapping (VLB) reports benchmark image overlap with pretraining corpora as high as 84.46%. It uses the inpainting model PowerPaint to mutate images in question-answering tests, and accuracy drops 5–10% on its hard variants. Both papers stop short of generators. VLB uses a generator as a tool, not as the thing being evaluated. MM-DETECT's $\Delta$ is defined on discrete correctness, which an image output does not have.

We borrow two things. From MM-DETECT we take the perturb-and-compare logic. From VLB we take the twin-construction machinery: PowerPaint adds, removes and expands content, and a language model paraphrases. We add two things neither paper has: a fresh-instance control and a multi-axis score for generated images.

Research Program

The target is ImagenHub, described in ImagenHub: Standardizing the evaluation of conditional image generation models. It covers seven conditional tasks, about 30 models in a shared inference library, and over 14K human ratings on a two-axis protocol. Semantic consistency (SC) is the minimum score over conditions, and perceptual quality (PQ) is rated separately. We focus on four tasks where conditions can be perturbed cleanly: text-to-image, text-guided editing, subject-driven generation, and control-guided generation.

For each benchmark example we construct three kinds of twins. A text twin paraphrases the instruction. An image twin changes task-irrelevant regions of the source or reference image, for example by outpainting the background or removing a distractor, while leaving the edit target and subject untouched. A joint twin does both. Each twin is checked automatically by a vision-language judge, as VLB does with InternVL-2. A human subsample is also checked; VLB reports about 96% human agreement for its mutations, and that is the bar we must meet.

We also collect a fresh control set built the same way and twinned identically. It contains new photographs and newly written instructions in ImagenHub's templates, dated after all evaluated models' training cutoffs.

Scoring uses a decomposed evaluator. For semantic agreement we reuse the agentic tool-based judge of A Unified Agentic Framework for Evaluating Conditional Image Generation (CIGEVAL). It uses object grounding, difference maps that expose edits outside the target region, and a minimum over sub-criteria. We keep its sub-scores separate rather than reporting only the minimum. Because CIGEVAL explicitly omits perceptual quality, we add a perceptual-quality axis calibrated to ImagenHub's human PQ ratings.

For a model $m$, a quality axis $a$, and an example $i$, let $g_{m,a}(i)$ be the score on the original minus the mean score on its twins of a given kind. The audit statistic is

$$D_{m,a} = \mathbb{E}_{i \in \text{bench}}[g_{m,a}(i)] - \mathbb{E}_{j \in \text{fresh}}[g_{m,a}(j)],$$

where the first average runs over ImagenHub examples and the second over fresh controls. A positive $D$ means the model's original-over-twin advantage is larger on the public benchmark than on unseen data. Example-level flags come from comparing each $g_{m,a}(i)$ against the fresh-control distribution.

Splitting by twin type tests a sharp hypothesis inspired by MM-DETECT's finding that text pretraining is a major leakage source. Some generators are built on large language models: EasyGen injects language-model hidden states into the denoising process, and SEED and LaVIT predict discrete image tokens with a language model. These should show larger text-twin gaps than generators that use plain text encoders, such as GLIDE-style diffusion.

The judge can itself be contaminated, a risk VLB acknowledges for its own judge. We therefore collect human ratings on a stratified subsample of originals and twins. We test whether the evaluator's error relative to humans differs between the two. If it does, $D$ is corrected using the human-anchored subsample.

Baselines

The naive reference point is to take reported ImagenHub scores at face value, which amounts to assuming $D = 0$. Its prediction is concrete: model rankings should be unchanged on twins and fresh controls. Any ranking change that is statistically reliable under bootstrap over examples counts against it.

The raw perturbation gap is the direct transfer of MM-DETECT's $\Delta$ and VLB's perturb-and-re-score, applied to generators without the fresh control. It is the most natural competitor because it is what someone would build first, and the file contains no generation-side version to beat. We run it on identical twins with an identical evaluator, so the only difference is the control subtraction. On planted contamination, we beat it if our statistic separates contaminated from clean examples with higher detection accuracy (area under the ROC curve). On real models, we expect it to report spurious "contamination" for every model that is simply weaker on harder twins, and we will check whether it does.

Training-data overlap, the image-overlap check VLB runs against LAION, CC3M and COCO, is the strongest existing contamination measurement. We compute it for open models whose training corpora are known. Our test beats it if, among examples that overlap with training data, the behavioral signal predicts which ones the model actually exploits (high $D$), and if it works on closed models where overlap cannot be computed at all.

Prompt-only regurgitation asks whether the model, given just the text, produces something near the benchmark's reference image. It is a strong memorization probe for text-to-image. We run it with the same generation settings and treat it as complementary, since it does not apply to editing tasks.

For the evaluator, the strongest automated judge on ImagenHub is CIGEVAL's tuned Qwen2.5-VL-7B. It reports an average Spearman correlation of 0.4997 with human ratings, against a human-to-human agreement of 0.47 and 0.4625 for agentic GPT-4o. Common automatic metrics (CLIP, FID, LPIPS) fall below 0.2 according to ImagenHub. Our evaluator must stay at or above 0.4997 on originals and not degrade on twins. Two ablations isolate the key ingredients: the collapsed single score (CIGEVAL's minimum alone) versus separate axes, and $D$ with versus without the fresh control.

Why not just…?

Why not just evaluate on a fresh, post-cutoff benchmark and ignore ImagenHub? This is the most serious alternative. If rankings on fresh data match ImagenHub rankings, contamination is practically irrelevant, and our experiments would show exactly that. That null result would itself be worth publishing. A fresh benchmark alone, however, cannot tell which old examples or which input type a model exploits. It also discards 14K existing human ratings and goes stale as soon as it is released. We include the fresh-only ranking comparison as a headline result, not a side check.

Why not just measure training-set overlap? Overlap is impossible for closed models and only shows exposure, not use. VLB's 84.46% overlap figure cannot say whether any model's score depends on it. The planted-dose experiment tests whether our behavioral signal tracks actual exposure better than nominal overlap.

Why not just apply VLB-style perturbations and report the drop? Twins can be harder, and paraphrases can lose nuance, so a raw drop mixes contamination with difficulty. The control subtraction exists to remove this. The ablation reports how often the raw gap and our statistic disagree on real models.

Why not one overall score from CIGEVAL? It might suffice. If the separate-axis ablation shows no gain in detection or attribution, we will say so and simplify. Our hypothesis is that memorized source photos inflate background preservation and perceptual quality while leaving instruction-following unchanged, and a minimum over criteria would hide that pattern.

Proposed Experiments

The first and decisive check is planted contamination. We fine-tune several open models from ImagenHub's library on a random subset of ImagenHub examples at increasing exposure doses, leaving the rest clean. A valid audit must (a) rank planted examples above clean ones, (b) grow with dose, and (c) stay near zero for an untouched copy of each model. A further prediction concerns attribution: planting only images should raise image-twin gaps and not text-twin gaps, and planting only prompts should do the reverse. If the signal fails (a) at doses that measurably raise original-example scores, the method is falsified.

The second experiment audits the full model set on the four tasks. We report $D_{m,a}$ with bootstrap intervals, re-rank models on the joint-twin and fresh-control scores, and test the hypothesis that generators built on language models show larger text-side gaps.

The third experiment establishes evaluator validity. Using human ratings on originals, twins and fresh examples, we measure Spearman correlation per split against the 0.4997 reference. We also test whether the judge favors original conditions over twins independently of the generator.

As a transfer check, we apply the same twin construction to T2I-CompBench++ text prompts (T2I-CompBench++), scoring with the per-category metrics that Evaluating the Evaluators found most human-aligned: DA Score for color (Spearman 0.772), VQA Score for 2D spatial relations (0.533), and TIFA for counting (0.526). This tests whether its static compositional prompts show the same pattern.