Abstract
Personalized text-to-image (P-T2I) generation allows users to synthesize unique objects or characters in novel contexts. However, existing methods like DreamBooth often suffer from the "same-pose" curse, where the model overfits to the spatial configurations of reference images, sacrificing prompt fidelity and diversity. We introduce Layout-and-Retouch, a tuning-free, dual-stage framework that decouples layout planning from identity injection. By leveraging the broad generative capabilities of vanilla models for initial layouts and an attention-based retouching stage for identity refinement, our approach achieves superior diversity and identity preservation without requiring additional fine-tuning.
Introduction
Personalized Text-to-Image (P-T2I) generation aims to create images of specific subjects—such as a user's pet or a unique artifact—based on natural language descriptions. While models like DreamBooth and Textual Inversion have made significant strides in identity preservation, they face a persistent challenge: the trade-off between identity fidelity and prompt adherence.
When fine-tuned on a small set of reference images, these models often overfit to the spatial configurations (poses, backgrounds) of the training data. This results in the "same-pose" curse, where the AI ignores complex prompts (e.g., "a dog jumping over a fence") in favor of the static poses found in the reference set. This limitation restricts the creative potential of personalized AI art.
Methodology: The Layout-and-Retouch Framework
To overcome these limitations, we propose a two-stage generation process that treats layout and identity as distinct components.
Stage 1: Layout Generation via Step-blended Denoising
The first stage focuses on establishing a diverse and prompt-faithful layout. Instead of using the personalized model immediately, we employ a "vanilla" Stable Diffusion model for the initial denoising steps. Because the vanilla model has not been narrowed by fine-tuning, it retains a vast "imagination" for various compositions and poses. After the initial steps, the system transitions to the personalized model to begin defining the subject's specific features.
Stage 2: Retouching via Multi-source Attention and Adaptive Masking
The second stage refines the "Layout Image" to ensure high identity fidelity:
- Multi-source Attention Swap: We utilize the attention mechanism to pull structural cues from the layout image and visual textures (e.g., fur patterns, colors) from the reference images. This is achieved by swapping "keys" and "values" within the neural network's cross-attention layers.
- Adaptive Mask Blending: To prevent the retouching process from distorting the background, we generate a precise mask by combining the Segment-Anything Model (SAM) with cross-attention maps. This ensures that identity injection is confined strictly to the subject area.
Experimental Evaluation
We evaluated our framework against state-of-the-art baselines using the ViCo and DreamMatcher datasets. The latter is particularly challenging, featuring prompts that require significant spatial displacement or complex scene synthesis. Evaluation metrics included $I_{CLIP}$ and $I_{DINO}$ for identity preservation, $T_{CLIP}$ and ImageReward for prompt fidelity, and the Inception Score (IS) for diversity.
Key Results and Discussion
Our framework demonstrates significant quantitative and qualitative improvements. When integrated with Textual Inversion, we observed a 13.9% increase in $I_{DINO}$ and a 7.2% boost in $T_{CLIP}$.
As shown in the UMAP analysis, traditional fine-tuned models (Figure 6) tend to produce images that cluster tightly in the latent space, indicating low diversity and a tendency to repeat the same layout. In contrast, our Layout-and-Retouch method produces a much wider distribution of layouts, effectively breaking the "same-pose" curse. User studies further confirm this, with a 77.9% win rate in diversity over existing plug-in methods.
Conclusion and Future Work
Layout-and-Retouch provides a versatile, tuning-free solution for enhancing personalized image generation. By decoupling layout from identity, we enable models to follow complex prompts while maintaining high subject fidelity. Future work will focus on integrating more powerful backbones like SDXL and addressing potential shape mismatches between the initial layout and the reference subject.
Summary updated