TL;DR
Modern image-editing models are astonishingly good at placing your specific object—say, a favorite teapot or backpack—into brand-new scenes without any custom training. However, they suffer from a hidden quirk: change the random seed, and you get almost the exact same picture every time. This paper diagnoses why these models get stuck in a creative rut and introduces SHiP, a dead-simple, training-free trick that restores rich visual variety by nudging only the "canvas" tokens early in generation while leaving the reference and text instructions untouched.
What Problem Does This Paper Address?
Imagine you want an AI to generate a photo of your specific patterned teapot sitting in a rustic cabin. Historically, "personalizing" a text-to-image model meant either fine-tuning the model on photos of your teapot (slow, heavy, and prone to overfitting) or using clunky zero-shot adapters that often mangle the teapot's appearance.
Recently, reference-conditioned image-to-image (I2I) editing models—like FLUX.1 Kontext and FLUX.2—changed the game. Because they are built to take both a reference image and text instructions simultaneously, they act as fantastic zero-shot personalization engines, nailing both subject identity and prompt accuracy right out of the box.
There’s just one catch: seed-wise diversity collapse. In standard image generation, rolling a new random seed gives you a fresh composition, angle, or background. In these I2I models, different random seeds produce nearly identical clones. Strong conditioning on the reference image acts like a gravitational well, pulling different random starting points onto the exact same path and robbing users of creative choices.
Methods
Inside transformer-based diffusion models like FLUX, the network processes three distinct streams of tokens: text tokens (your prompt), reference-image tokens (your teapot), and target latent tokens (the noisy canvas being denoised into the final image).
To restore variety without ruining the teapot or ignoring the prompt, the authors introduce Selective Hidden Perturbation (SHiP)—an inference-time intervention requiring zero training or weight updates:
- Selective Masking: Instead of adding noise everywhere, SHiP applies a binary mask so that Gaussian noise is injected exclusively into the target latent tokens, leaving the text and reference tokens completely pristine.
- Surgical Placement: The perturbation is added specifically to the attention-output representations inside the transformer blocks (rather than MLP outputs or block inputs, which prove unstable).
- Early Intervention: SHiP only nudges the latent tokens during the first $k=3$ denoising steps—just enough time to push different random seeds onto distinct creative trajectories before fine details are locked in.
- Block-Relative Scaling: Because hidden activation magnitudes vary wildly from layer to layer, a fixed noise level would overwhelm some blocks and barely tickle others. SHiP dynamically scales the injected noise based on the standard deviation of the latent-token activations within each individual block.
Datasets
Because SHiP is completely training-free, no training datasets are used. For evaluation, the authors construct a benchmark combining 15 reference subjects (spanning diverse objects and animals) from the classic DreamBooth and Textual Inversion datasets with 9 varied prompts per subject from DreamBench++. Generating 30 random seeds for each of the 135 subject-prompt pairs yields 4,050 test images per method (with an additional human-subject benchmark explored in the appendix).
Key Insights and Ideas
- Watching Trajectories Collapse in Real Time: By comparing FLUX.1 Kontext in standard text-to-image mode versus reference-conditioned I2I mode, the authors found the smoking gun: with a reference image present, the internal latent trajectories across different seeds exhibit much lower variance and higher cosine similarity. Reference conditioning literally herds independent random seeds down the same narrow corridor.
- Not All Diversity is Good Diversity: Perturbing reference tokens technically boosts diversity scores, too—because the model forgets what the subject looks like! Perturbing only the target latent canvas gives you genuine scene, pose, and camera variation without identity drift.
- Architecture Agnostic: Even though SHiP was designed by inspecting FLUX models, plugging the exact same hyperparameters (without tuning) into non-FLUX models—Qwen-Image-Edit and FireRed-Image-Edit—yields the same clean jump in diversity. Diversity collapse is a general quirk of reference-conditioned editing, not just a FLUX bug.
Key Results
The authors measure subject fidelity and prompt following using VLM-based judges from DreamBench++ (GPT-ID and GPT-Text, scored 0–4) alongside perceptual diversity metrics (Vendi Score and LPIPS):
- Breaking the Trade-off: On FLUX.1 Kontext, SHiP boosts the Vendi Score from 1.547 to 2.066 and LPIPS from 0.475 to 0.621, while
GPT-ID(3.48 $\rightarrow$ 3.43) andGPT-Text(3.70 $\rightarrow$ 3.66) barely budge. FLUX.2 sees similar gains (Vendi 1.699 $\rightarrow$ 1.909, with zero drop in text alignment at 3.93). - Generalization: Out-of-the-box, SHiP lifts Vendi Scores on Qwen-Image-Edit (1.670 $\rightarrow$ 1.927) and FireRed-Image-Edit (1.553 $\rightarrow$ 1.781) with virtually identical fidelity scores.
- Human Stamp of Approval: Metrics like LPIPS can sometimes be fooled by ugly visual artifacts. In a blinded human study, participants confirmed that SHiP’s diversity is perceptually meaningful, preferring SHiP outputs over the baseline 70% to 13% on FLUX.1 Kontext and 53% to 13% on FLUX.2 (with the remainder rated as ties).
Limitations and Future Work
While the authors link diversity collapse to over-aligned latent trajectories during denoising, they note that this is an empirical observation rather than a complete theoretical explanation—the deeper mechanics of why reference conditioning clamps down on seed variance remain an open question. Future work can dig deeper into the root cause of this collapse and explore more sophisticated inference-time or training-time strategies to balance subject lock-in with creative freedom.
Summary updated