AnyMS: Bottom-up Attention Decoupling for Layout-guided and Training-free Multi-subject Customization
Binhe Yu, Zhen Wang, Kexin Li, Yuqian Yuan, Wenqiao Zhang, Long Chen, Juncheng Li, Jun Xiao, Yueting Zhuang
TL;DR
AnyMS tackles training-free layout-guided multi-subject image synthesis by decoupling textual, visual, and layout conditions through a global cross-attention separation and a local, layout-constrained attention mechanism, augmented by pre-trained image adapters. The approach yields a dual-level attention decoupling: global decoupling preserves text alignment while preventing text-image conflicts, and local decoupling confines each subject to its designated layout region to maintain identity and layout fidelity. It eliminates the need for subject-specific learning or adapter tuning, enabling scalable generation of complex scenes with many subjects. Empirical results on diverse benchmarks show state-of-the-art performance in layout control, text alignment, and identity preservation, with efficient inference and strong generalization to larger subject counts. These advances offer practical impact for personalized content creation in media and advertising, and pave the way for extensions to video and joint subject-action/style customization.
Abstract
Multi-subject customization aims to synthesize multiple user-specified subjects into a coherent image. To address issues such as subjects missing or conflicts, recent works incorporate layout guidance to provide explicit spatial constraints. However, existing methods still struggle to balance three critical objectives: text alignment, subject identity preservation, and layout control, while the reliance on additional training further limits their scalability and efficiency. In this paper, we present AnyMS, a novel training-free framework for layout-guided multi-subject customization. AnyMS leverages three input conditions: text prompt, subject images, and layout constraints, and introduces a bottom-up dual-level attention decoupling mechanism to harmonize their integration during generation. Specifically, global decoupling separates cross-attention between textual and visual conditions to ensure text alignment. Local decoupling confines each subject's attention to its designated area, which prevents subject conflicts and thus guarantees identity preservation and layout control. Moreover, AnyMS employs pre-trained image adapters to extract subject-specific features aligned with the diffusion model, removing the need for subject learning or adapter tuning. Extensive experiments demonstrate that AnyMS achieves state-of-the-art performance, supporting complex compositions and scaling to a larger number of subjects.
