TL;DR
Existing subject-driven image customization methods excel at reproducing user-provided concepts, but they struggle to generate accurate physical interactions and predicate relations (such as "hugging" or "shaking hands") between them. RelationBooth solves this by disentangling identity learning from relation learning using a multi-turn synthetic data engine, a latent-space keypoint matching loss to guide poses, and local token injection to prevent object feature confusion during close interactions.
What Problem Does This Paper Address?
Current text-to-image personalization techniques (like DreamBooth or MS-Diffusion) allow users to insert specific subjects into new scenes. However, when prompted to depict complex, interacting actions—what the authors call relation-aware customized image generation—these models fail. They typically either:
- Overlook the text prompt's relation entirely (generating side-by-side objects with no interaction), or
- Suffer from identity bleed and "object confusion," where attributes blend together whenever subjects overlap or touch.
Adapting relation-inversion techniques directly to multi-subject customization also fails because identity features and relational poses become entangled, and text embeddings are often overpowered by image-prompt conditioning.
Methods
RelationBooth builds on the multi-subject foundation of MS-Diffusion (and SDXL), introducing three core components:
- Synthetic Triplet Data Engine: To disentangle identity and relational pose, the model requires training triplets: reference image prompts ($c_i$), a target image ($x$), and a relation text prompt ($c_t$). The authors use DALL-E 3’s multi-turn dialogue capability (prompting with "The photo of the same [object]...") to generate identical subject pairs performing different actions, avoiding the copy-paste artifacts caused by manual cropping or naive data augmentation.
- RelationLoRA: Low-Rank Adaptation (LoRA) parameters (rank $r=4$, totaling just 3.1M trainable parameters) are added strictly to the text cross-attention projection layers ($W_q, W_{kt}, W_{vt}, W_{out}$), forcing the network to attend to textual predicate relations without altering base subject representations.
- Keypoint Matching Loss (KML): Relational actions depend fundamentally on body posture. Using the open-vocabulary detector X-Pose, the framework extracts 17 keypoints per object. During training, an MSE loss is computed directly in the latent space between the latent keypoints of the input object reference and the denoised prediction ($\hat{z}_0$), explicitly supervising physical pose alignment.
- Local Token Injection: Standard CLIP image tokens only provide global representations, causing visual confusion when subjects heavily overlap. RelationBooth adopts a self-distillation approach (derived from CLIPSelf on CLIP-ViT-bigG) to extract dense feature maps. These are partitioned and pooled into 16 local tokens, which are concatenated with global image tokens to retain sharp local boundaries.
Reference Prompts (c_i) + Dense Local Tokens
│
├──► [Parallel Cross-Attention with RelationLoRA] ──► Denoised Latent (ẑ_0)
│ │
Text Prompt (c_t) ▼
[Keypoint Matching Loss (KML)]
Datasets
- Training Data: A curated dataset generated via DALL-E 3 containing 4–6 triplet samples per relation across 25 predicate actions, automatically annotated with X-Pose (keypoints), SAM (segmentation masks), and LLaVA (captions).
- RelationBench (New Benchmark): Formed using 44 subjects drawn from DreamBench and CustomConcept101 combined with 25 predicate relation prompts across categories such as pets, toys, plushies, people, and cartoons (100 evaluated scenarios).
- Existing Benchmarks: Evaluated on DreamBench (single-object) and M-CustomConcept101 (multi-object).
Key Insights and Ideas
- Latent Pose Guidance Works: Instead of supervising keypoints in pixel space through an expensive secondary rendering loop, computing the Keypoint Matching Loss directly on the predicted latent $\hat{z}_0$ effectively steers structural layout and physical contact while staying compatible with diffusion loss.
- Dense Features Prevent Feature Leaking: When two entities make contact, global CLIP embeddings struggle to assign limbs and surfaces to the correct identity. Injecting region-aligned local tokens significantly reduces attribute leakage at overlapping boundaries.
- Decoupled Training Overcomes the Image-Text Imbalance: Training relation adapters while supplying separate, high-fidelity reference images of the same subjects ensures the network learns how concepts interact rather than re-memorizing what concepts look like.
Key Results
- RelationBench Multi-Object: RelationBooth outperforms the base MS-Diffusion model across all metrics:
- Text Alignment (CLIP-T): 28.9 vs. 26.9
- Relation Alignment (CLIP-R): 20.4 vs. 18.9
- Identity Preservation (CLIP-I): 75.4 vs. 73.8
- Subject Consistency (DINO): 62.1 vs. 58.8
- Single-Object DreamBench: Achieves the highest prompt-following score (31.6 CLIP-T) while maintaining competitive identity preservation (78.9 CLIP-I, 67.4 DINO).
- Ablations: Removing KML dropped multi-object CLIP-R from 20.4 to 18.2, while omitting dense local tokens caused severe identity confusion and dropped DINO from 62.1 to 59.3.
Limitations and Future Work
- Physically Incompatible Prompts: When prompted with anatomically impossible interactions (e.g., asking a limbless plushie octopus to "shake hands"), the model hallucinates extra, unnatural limbs.
- Imperfect Contact Points: While vastly improved, complex physical interactions still sometimes show slight gaps (e.g., a duck missing direct physical touch with a cat) or minor visual blending at points of dense overlap.
- Fine-Tuning Scope: The synthetic dataset used for tuning focuses predominantly on animal and plushie categories; broader coverage across more complex mechanical or abstract interactions remains an open area for scaling.
Summary updated