DreamRelation: Bridging Customization and Relation Generation
Qingyu Shi, Lu Qi, Jianzong Wu, Jinbin Bai, Jingbo Wang, Yunhai Tong, Xiangtai Li
TL;DR
Relation-aware customized image generation addresses the gap where identities from image prompts and relationships from text prompts must be jointly realized. DreamRelation disentangles identity and relation learning using a relation-aware data engine and two core modules: Keypoint Matching Loss and Local Token Injection, implemented via LoRA-tuned cross-attention and dense CLIP features. Evaluations on RelationBench, DreamBench, and Multi-object CustomConcept101 show improved relation fidelity and robust identity preservation, with ablations confirming the contributions of data engineering, pose supervision, and local-feature augmentation. The work offers a practical path to more controllable, personalized image synthesis and provides benchmarks and implementation details to spur future development, while acknowledging potential societal impacts and mitigation strategies.
Abstract
Customized image generation is essential for creating personalized content based on user prompts, allowing large-scale text-to-image diffusion models to more effectively meet individual needs. However, existing models often neglect the relationships between customized objects in generated images. In contrast, this work addresses this gap by focusing on relation-aware customized image generation, which seeks to preserve the identities from image prompts while maintaining the relationship specified in text prompts. Specifically, we introduce DreamRelation, a framework that disentangles identity and relation learning using a carefully 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 relationships, 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 of the image prompts to better distinguish between objects, preventing confusion in overlapping cases. Extensive results on our proposed benchmarks demonstrate the superiority of DreamRelation in generating precise relations while preserving object identities across a diverse set of objects and relationships.
