TL;DR
Personalizing text-to-image diffusion models for multiple subjects often leads to overfitting and "attribute leakage," where the unique traits of different subjects blend together. This paper introduces Fuse-and-Refine (FaR), a framework that uses a novel data augmentation technique called Concept Fusion alongside a Localized Refinement loss function to cleanly separate and preserve individual subject identities. The result is a highly effective method for multi-concept image generation that requires no additional spatial conditions (like masks or sketches) during inference.
What Problem Does This Paper Address?
While text-to-image diffusion models excel at generating images from text, personalizing them to capture specific user-defined subjects (e.g., your cat or a specific toy) remains difficult. This challenge intensifies when trying to generate multiple personalized concepts in a single scene.
Current personalization methods suffer from two primary bottlenecks:
- Overfitting: Because models are typically fine-tuned on only 3–5 images per subject, they struggle to generalize. Since each training image usually contains only one subject, the model fails to learn how to compose multiple unique concepts together.
- Attribute Leakage: When generating multiple subjects—especially class-similar ones (such as two different breeds of dogs)—the model's cross-attention maps overlap. This causes the identities to bleed into one another, resulting in a hybrid image that fails to accurately represent either subject.
Methods
FaR tackles these challenges through a two-pronged approach integrated into a selective fine-tuning pipeline:
1. Concept Fusion (Data Augmentation)
To combat overfitting and teach the model compositionality, the authors introduce Concept Fusion. Using a prompt-based segmentation tool (Grounded SAM), they isolate the target subjects from their original backgrounds. They then randomly resize, translate, and paste these segmented subjects onto simple backgrounds to create diverse, multi-subject composite training images.
To preserve the model's prior knowledge, they also use Stable Diffusion to generate generic "prior images" of the same class (e.g., generic dogs) and subject them to the same random pasting process.
2. Localized Refinement Loss
To eliminate attribute leakage, FaR introduces a spatial segmentation constraint via a new loss function ($\mathcal{L}_{local}$). This loss forces the cross-attention map of each unique text token to align strictly with its corresponding subject's ground-truth segmentation mask. By penalizing attention maps that drift outside their designated subject boundaries, the model learns to separate the features of each concept cleanly during the denoising process.
3. Selective Fine-Tuning Pipeline
Instead of optimizing all model weights or just text embeddings, FaR simultaneously fine-tunes three critical components: the text encoder, the self-attention layers, and the cross-attention layers of the denoising U-Net. This specific combination provides enough capacity to learn fine-grained visual details while preventing the model from forgetting its pre-trained capabilities.
Datasets
The authors evaluated their method using a dataset composed of 24 distinct concepts spanning humans, animals, and objects. These concepts were collected from three popular personalization benchmarks:
- DreamBench
- CustomConcept101
- Mix-of-show
For evaluation, they generated 1,200 images across 16 multi-subject combinations using evaluation prompts generated by ChatGPT.
Key Insights and Ideas
- Synthetic Multi-Subject Training is Key: Training models on single subjects in isolation is the root cause of poor multi-subject composition. Synthesizing multi-subject training data via automated cut-and-paste operations gives the model the necessary context to learn relationships between distinct concepts.
- Cross-Attention is the Battleground for Identity: Attribute leakage happens because cross-attention maps naturally blur across similar objects. Forcing these maps to respect strict spatial boundaries via a localized loss function acts as a hard barrier against identity bleeding.
- No Inference-Time Overhead: Unlike layout-guided models that require users to provide masks or sketches at inference time, FaR bakes the spatial discipline directly into the model weights during training. At inference, users only need to provide a standard text prompt.
Key Results
FaR was compared against several state-of-the-art baselines, including Custom Diffusion, Textual Inversion, ConesV2, Mix-of-Show, FreeCustom, and Concept Conductor.
- Multi-Subject Fidelity: FaR significantly outperformed all baselines in preserving subject details. It achieved a D&C-DS score of 0.664 and a D&C-DINO score of 0.627 (metrics evaluating visual detail preservation and subject counting accuracy), far surpassing the next best method, Mix-of-Show (0.480 / 0.471).
- Text Alignment: FaR achieved the highest ImageReward (IR) score of 0.934 for multi-subject generation, indicating superior alignment with human preferences and prompt compliance.
- Qualitative Superiority: Qualitative tests showed that when prompted to generate two distinct dogs in a scene, competing methods frequently blended the fur patterns and facial features of the two breeds. FaR consistently maintained clear subject separation and high photorealism.
Limitations and Future Work
The authors do not explicitly detail limitations within the paper. However, based on the architecture, a few inherent limitations can be inferred:
- Upstream Dependency: The quality of the Concept Fusion step relies heavily on the accuracy of the prompt-based segmentation tool (Grounded SAM). Poorly isolated subject masks during data preparation could introduce artifacts or degraded boundaries into the fine-tuning process.
- Scaling to Many Concepts: While the paper demonstrates excellent results for pairs of subjects, scaling the localized refinement loss to scenes with a large number of interacting personalized concepts remains an open question.
Summary updated