Abstract
Large-scale text-to-image (T2I) diffusion models often struggle to accurately depict complex relationships between objects, a phenomenon known as "interaction mismatch." We present InteractDiffusion, a pluggable module designed to provide precise control over Human-Object Interaction (HOI). By conditioning the generation process on HOI triplets—comprising a subject, an action, and an object—along with their spatial locations, InteractDiffusion significantly enhances the structural accuracy of generated scenes. Our approach introduces an interaction tokenizer that treats actions as spatial entities, allowing for better localization of interaction pixels. Experimental results on the HICO-DET benchmark demonstrate that InteractDiffusion substantially outperforms existing layout-control baselines in interaction accuracy while maintaining high image quality and showing strong zero-shot generalization.
Introduction: The Interaction Mismatch Problem
While models like Stable Diffusion excel at generating individual objects, they frequently fail to connect them logically. For instance, a prompt for "a person feeding a cat" might result in a person and a cat appearing in the same frame without any physical interaction. Existing layout-control methods, such as GLIGEN, allow users to specify bounding boxes for objects but lack the mechanism to enforce the "verb" or relationship between those boxes. InteractDiffusion addresses this by explicitly modeling the interaction as a core component of the generation process.
Methods: Spatializing the Interaction
The InteractDiffusion framework consists of three pluggable components integrated into the U-Net architecture:
- InToken (Interaction Tokenizer): This module converts HOI triplets into mathematical tokens. A key innovation is the "between" operation, which calculates a spatial bounding box for the action itself based on the relative positions of the subject and object. This forces the model to attend to the specific area where the interaction occurs.
- InBedding (Interaction Embedding): To manage complex scenes with multiple pairs, the model employs Instance Embeddings to group tokens by interaction and Role Embeddings to distinguish between the subject, object, and action.
- InFormer (Interaction Transformer): A gated self-attention layer that allows visual tokens to attend to interaction tokens. The model uses Scheduled Sampling to gradually introduce these controls, ensuring a balance between text adherence and spatial precision.
Key Results and Insights
InteractDiffusion was evaluated on the HICO-DET dataset, achieving a significant improvement in the HOI Detection Score (mAP). It reached a score of 29.53, a marked increase over the 21.73 achieved by the layout-only baseline, GLIGEN.
Beyond raw accuracy, the model maintains high image fidelity, with improvements in FID and KID scores suggesting that better structural control contributes to overall realism. Furthermore, the module is highly versatile; it can be "plugged" into various community-tuned models (e.g., RealisticVision) without additional training, and it demonstrates robust zero-shot capabilities on unseen HOI combinations.
Conclusion and Future Work
InteractDiffusion provides a scalable and efficient way to add interaction control to pre-trained diffusion models. By treating actions as spatial entities and using a pluggable architecture, it avoids the costs of full fine-tuning while solving the interaction mismatch problem. Future work will focus on refining fine-grained details, such as hand-object contact, and exploring training on more diverse, interaction-centric datasets to overcome the object-centric bias of current base models.
Summary updated