Multitwine: Multi-Object Compositing with Text and Layout Control
Gemma Canet Tarrés, Zhe Lin, Zhifei Zhang, He Zhang, Andrew Gilbert, John Collomosse, Soo Ye Kim
TL;DR
Multitwine introduces a diffusion-based framework capable of simultaneous multi-object compositing guided by both textual prompts and explicit layout. It fuses object images, a background, and a layout mask into a multimodal embedding processed by a Stable Diffusion backbone, with cross-attention mechanisms that preserve object identity while enforcing scene-level coherence. A joint training regime for compositing and subject-driven customization uses three losses—$L_d$ (denoising), $L_c$ (identity disentanglement), and $L_s$ (inter-object leakage suppression)—combined as $L = L_d + \alpha L_c + \beta L_s$, along with data-generation pipelines leveraging LLMs and VLMs to create richly aligned multimodal training data. The approach achieves state-of-the-art performance in both simultaneous multi-object compositing and subject-driven generation, enabling applications such as subject-driven inpainting and complex interactive scenes while highlighting limitations in scalability to very large object counts and pointing toward future improvements with stronger diffusion backbones.
Abstract
We introduce the first generative model capable of simultaneous multi-object compositing, guided by both text and layout. Our model allows for the addition of multiple objects within a scene, capturing a range of interactions from simple positional relations (e.g., next to, in front of) to complex actions requiring reposing (e.g., hugging, playing guitar). When an interaction implies additional props, like `taking a selfie', our model autonomously generates these supporting objects. By jointly training for compositing and subject-driven generation, also known as customization, we achieve a more balanced integration of textual and visual inputs for text-driven object compositing. As a result, we obtain a versatile model with state-of-the-art performance in both tasks. We further present a data generation pipeline leveraging visual and language models to effortlessly synthesize multimodal, aligned training data.
