TL;DR
Most subject-driven diffusion models train by conditioning on the exact same image they are trying to reconstruct, inadvertently teaching models to rely on spatial and layout shortcuts rather than learning true identity features. To fix this "target leakage," the authors introduce RetriBooru, a 116k-sample anime dataset clustered by character and clothing identities, alongside RetriNet, a retrieval-based conditioning architecture, and Similarity Weighted Diversity (SWD), a metric that penalizes models that sacrifice prompt adherence for identity retention (or vice versa).
What Problem Does This Paper Address?
In personalized text-to-image generation (e.g., generating a specific character in new poses or virtual try-on), standard training setups pass an augmented version of the target image as the reference condition. Because the reference and target share the same composition, background, and geometry, models exploit this target leakage—learning easy spatial shortcuts rather than extracting high-level identity concepts (like facial features or outfit patterns).
This shortcut learning leads to poor generalization, brittle inference, and limited creative diversity. Existing work struggled to avoid this because collecting large datasets with multiple, diverse images of the same identity (wearing the exact same clothes across different poses and scenes) is exceptionally difficult. Furthermore, standard evaluation metrics evaluate text alignment ($\text{CLIP-T}$) and image fidelity ($\text{CLIP-I}$) independently, masking cases where a model either completely ignores the text prompt or fails to preserve the identity.
Methods
- Same-Identity, Different-Image Training Pipeline ($-b$ setting): Instead of using the target image as its own reference condition (the $-a$ setting), the framework trains models using a completely different image of the same character in the same outfit, breaking spatial inductive bias shortcuts.
- RetriNet Architecture: Built on top of Stable Diffusion (v1.5), RetriNet introduces a dedicated retrieval encoder. Unlike ControlNet (which relies on spatial/pixel alignment) or IP-Adapter (which injects a global pooled embedding), RetriNet extracts concept features and injects them into each individual U-Net decoder block via layer-specific cross-attention—without needing predefined keypoints or pose skeletons.
- Concept Composition Task: Moves beyond simple reconstruction by training the model to retrieve distinct concepts (e.g., "face" from reference image A and "clothes" from reference image B) driven by textual prompts and concept bounding boxes/masks.
- Similarity Weighted Diversity (SWD): A metric family defined as: $$\text{SWD}(\text{div}, \text{sim}) = \frac{1}{|(r, \theta)|} \sum \text{div}(r, g) \cdot \text{sim}(r, g)$$ By computing the product of similarity (e.g., $\text{CLIP-I}$) and diversity/text control (e.g., $\text{CLIP-T}$ or a VQA-derived diversity score) per instance before averaging, SWD severely penalizes outputs that fail either prompt following or identity preservation.
Datasets
- RetriBooru (Ours): Derived from Danbooru 2019 Figures (originally 855k crops). The authors filtered and clustered samples using visual question answering (InstructBLIP with Vicuna-7B) to match character identity, specific clothing colors/styles, and artist style. RetriBooru comprises 116,729 training samples, featuring multi-image identity clusters (4,232 samples have $\ge 15$ same-identity references), face bounding boxes, and clothing segmentations.
- Benchmarking & Validation Data: Evaluated on 40 in-domain and 10 out-of-domain anime characters across diverse test prompts. For generalization experiments, models were qualitatively tested on human face datasets (IMDb-WIKI, CelebA, Partial FC).
Key Insights and Ideas
- Target leakage acts as a crutch: When reference and target images match, the network learns to copy layout rather than extract semantic identity. Training on distinct same-identity images forces the conditional encoder to focus strictly on defining characteristics (hair style, facial features, clothing details).
- Decoupled evaluation hides failure modes: If half of a model's outputs ignore the prompt to preserve identity, and the other half ignore identity to fulfill the prompt, average $\text{CLIP-I}$ and $\text{CLIP-T}$ still look respectable. SWD correctly penalizes this imbalance.
- Unfreezing the encoder is necessary for retrieval: Unlike standard adapters that freeze the visual encoder, RetriNet performs significantly better when both the retrieval encoder and U-Net decoder are trainable, allowing the network to actively select which concepts to fetch based on text queries.
Key Results
- Consistent gains across architectures: Across multiple architectures (FastComposer, ControlNet, IP-Adapter, Kandinsky), switching from the self-reference ($-a$) to the distinct same-identity reference ($-b$) improved the balance between image fidelity and prompt adherence.
- Quantitative baselines: In benchmarking on RetriBooru,
IP-Adapter-0.5-bachieved the best balanced score ($\text{CLIP-I} \cdot \text{CLIP-T} = 0.1731$), whileKandinsky-0.1-battained the highest raw identity preservation ($\text{CLIP-I} = 0.8019$). - RetriNet concept composition: RetriNet successfully composed distinct face and outfit references onto new text-guided backgrounds. For long-trained models,
R45kachieved a high balance score of $\text{CLIP-I} \cdot \text{CLIP-T} = 0.1687$ and the highest $\text{VQA} \cdot \text{CLIP-I}$ score ($0.3029$).
Limitations and Future Work
- Hardware and Resolution Constraints: Due to compute limitations (8$\times$ NVIDIA V100 GPUs), experiments were capped at $256\times 256$ and $384\times 384$ resolutions on an older Stable Diffusion 1.5 base.
- Artifacts in Composition: Decoupled concept composition remains challenging; complex body gestures occasionally produced structural artifacts (e.g., limb anomalies or deformed head shapes).
- Extension to Real Humans: While RetriBooru serves as an accessible testbed, building equivalent full-body, multi-outfit, pose-diverse datasets for photorealistic humans remains an expensive and open problem.
Summary updated