TL;DR
DreamRelation tackles the challenge of customizing complex human-like interactions between subjects in videos, going beyond simple appearance or motion changes. It achieves this by decoupling relational information from subject appearances and enhancing the modeling of dynamic interactions, leading to more accurate and generalizable relational video customization.
What Problem Does This Paper Address?
Creating personalized videos that accurately depict specific relationships between subjects (e.g., a bear hugging a panda) is a complex task. While existing methods can personalize individual subject appearances and motions, they struggle with capturing the nuanced spatial arrangements, temporal dynamics, and precise interactions that define relationships. This often leads to models focusing on irrelevant visual details rather than the core relational dynamics, limiting their ability to generate novel or unconventional interactions. The paper aims to bridge this gap by developing a method that can precisely customize desired relations and generalize them to new subjects and domains.
Methods
DreamRelation employs a two-pronged approach:
- Relational Decoupling Learning:
- Relation LoRA Triplet: This novel component disentangles relational information from subject appearances. It uses a composite LoRA (Low-Rank Adaptation) set, where "Relation LoRAs" are injected into the query and key matrices of the diffusion model's attention mechanism to capture relational patterns, while "Subject LoRAs" are injected into the value matrix to focus on subject appearances. This design is informed by an analysis of the distinct roles of query, key, and value features in diffusion models.
- Hybrid Mask Training Strategy (HMT): To guide the LoRAs, this strategy uses masks derived from object detection and segmentation models (Grounding DINO, SAM) to highlight specific regions (subjects and their interaction areas). This, combined with a LoRA selection strategy and an enhanced diffusion loss, encourages Relation and Subject LoRAs to focus on their designated areas, improving disentanglement.
- Relational Dynamics Enhancement:
- Space-Time Relational Contrastive Loss (RCL): This novel loss function explicitly emphasizes relational dynamics. It works by pulling representations of relational dynamics (derived from frame differences) closer together while pushing them away from appearance-focused features from single frames. This helps the model prioritize dynamic interactions over static visual details.
During inference, Subject LoRAs are excluded to prevent introducing undesired appearances and to enhance generalization.
Datasets
The paper uses the NTU RGB+D Action Recognition Dataset for training. For evaluation, they curate a dataset comprising 26 types of human interactions, with approximately 20 videos per relation type used for training. For testing, they use 40 designed textual prompts, including uncommon subject interactions (e.g., "A dog is shaking hands with a cat") to assess generalization to novel domains.
Key Insights and Ideas
- Query, Key, and Value Matrices Have Distinct Roles: The analysis of MM-DiT's attention mechanism reveals that query and key matrices capture abstract, similar patterns, while value matrices are rich in appearance information. This insight is crucial for strategically placing Relation and Subject LoRAs to achieve effective decoupling.
- Decoupling is Key for Generalization: By separating relational information from subject appearances, DreamRelation can generate videos with novel subjects exhibiting learned relations, a significant step beyond existing methods that often tie relations to specific appearances.
- Relational Dynamics are More Than Just Appearance: The RCL loss highlights that accurately modeling the temporal evolution of interactions is critical, and this can be learned by contrasting frame-wise differences with static appearance features.
Key Results
- Superior Relation Accuracy: DreamRelation achieves a Relation Accuracy of 0.4452±0.01, significantly outperforming baselines like Mochi (0.2623±0.04), Direct LoRA FT (0.3258±0.05), ReVersion (0.2690±0.01), and MotionInversion (0.3151±0.03).
- Comparable Video Quality: While improving relation accuracy, DreamRelation maintains competitive FVD (Fréchet Video Distance) scores, with a score of 2079.87, comparable to the base model (2047.37) and better than some other baselines.
- Improved Text Alignment and Temporal Consistency: The method shows strong performance in Text Alignment (CLIP-T: 0.3248) and Temporal Consistency (0.9954), indicating that generated videos are both aligned with prompts and temporally smooth.
- Qualitative Improvements: Visual comparisons show DreamRelation accurately captures intended relations and mitigates appearance and background leakage, producing more natural and diverse results compared to baselines.
- User Preference: A user study indicated that DreamRelation was most preferred by annotators across relation alignment, text alignment, and overall quality.
Limitations and Future Work
- Dataset Limitations: While the NTU RGB+D dataset is used, the paper acknowledges the need for more diverse datasets for relational video customization.
- Generalization to Complex Scenarios: While the method shows good generalization, further work could explore even more complex multi-subject interactions or highly abstract relations.
- Computational Cost: Diffusion models are inherently computationally intensive. Future work might explore efficiency improvements.
- Interpretability: While the analysis of Q, K, V features provides some interpretability, further research into understanding the learned relational representations could be beneficial.
Summary updated