Abstract
Customized image generation is crucial for delivering personalized content based on user-provided image prompts, aligning large-scale text-to-image diffusion models with individual needs. However, existing models often overlook the relationships between customized objects in generated images. Instead, this work addresses that gap by focusing on relation-aware customized image generation, which aims to preserve the identities from image prompts while maintaining the predicate relations described in text prompts. Specifically, we introduce RelationBooth, a framework that disentangles identity and relation learning through a well-curated dataset. Our training data consists of relation-specific images, independent object images containing identity information, and text prompts to guide relation generation. Then, we propose two key modules to tackle the two main challenges: generating accurate and natural relations, especially when significant pose adjustments are required, and avoiding object confusion in cases of overlap. First, we introduce a keypoint matching loss that effectively guides the model in adjusting object poses closely tied to their relationships. Second, we incorporate local features from the image prompts to better distinguish between objects, preventing confusion in overlapping cases. Extensive results on three benchmarks demonstrate the superiority of RelationBooth in generating precise relations while preserving object identities across a diverse set of objects and relations.
Introduction
While text-to-image diffusion models have become adept at "customizing" images—generating specific people or pets in new settings—they frequently fail when tasked with complex interactions between multiple customized objects. Existing state-of-the-art models face three primary hurdles in "Relation-Aware Customization":
- Identity Loss: The model loses the specific appearance of objects while attempting to force a pose.
- Object Confusion: When objects overlap (e.g., a person hugging a dog), the model often blends their features, resulting in "identity bleeding."
- Relation Failure: The model ignores the relationship entirely, placing objects side-by-side instead of having them interact.
RelationBooth (referred to as DreamRelation in some contexts) addresses these failures by decoupling identity and relation learning through a novel data engine and fine-grained spatial guidance.
Methodology
The RelationBooth framework introduces three key innovations to bridge the gap between identity preservation and relational accuracy:
Relation-Aware Data Engine
To train the model, the researchers used a synthetic data engine (powered by DALL-E 3) to generate "triplets": two independent image prompts showing the objects and one target image showing them interacting. This allows the model to learn how an object's appearance remains constant even as its pose changes significantly.
Keypoint Matching Loss (KML)
Relationships are fundamentally defined by poses. RelationBooth uses a keypoint detector (X-Pose) to identify landmarks on objects. During training, it enforces a loss in the latent space that ensures the generated objects' poses align with the intended relationship, providing explicit geometric supervision early in the denoising process.
Local Token Injection
Standard models often use global CLIP features, which capture the overall "vibe" but miss fine-grained details. RelationBooth extracts dense features from the CLIP image encoder and injects these local tokens into the model. This provides a "map" that helps the AI distinguish between overlapping boundaries, significantly reducing object confusion.
Evaluation and Results
The framework was evaluated on RelationBench, a new benchmark featuring 44 objects and 25 distinct relationships (e.g., "fencing with," "carrying"), alongside standard benchmarks like DreamBench.
Key Findings
- Quantitative Performance: RelationBooth achieved the highest scores in CLIP-T (text alignment) and CLIP-R (relation alignment). In multi-object tasks, it reached a CLIP-I (identity) score of 75.4 and a DINO score of 62.1, outperforming competitors like MS-Diffusion.
- Qualitative Improvements: Visually, the model excels at "messy" interactions. As shown in the comparison figures, while other models merge objects into chimeric blobs during a "hug," RelationBooth maintains distinct boundaries and correct limb placements.
- Efficiency: The model can be fine-tuned in approximately 10 minutes on two A100 GPUs.
Conclusion
RelationBooth demonstrates that decoupling identity and relation learning is key to successful multi-object customization. By utilizing latent pose supervision and local feature injection, the model generates precise relations while preserving object identities. Future work will address anatomical logic in "unreasonable" requests and extend the framework to video generation.
Summary updated