MUSAR: Exploring Multi-Subject Customization from Single-Subject Dataset via Attention Routing

Zinan Guo, Pengze Zhang, Yanze Wu, Chong Mou, Songtao Zhao, Qian HearXiv 2025 · DOI

Abstract

MUSAR (Multi-Subject Attention Routing) is a novel framework designed to achieve high-quality multi-subject image customization using only single-subject training data. By leveraging "diptych" training pairs and a dynamic attention routing mechanism, MUSAR effectively eliminates attribute entanglement—where features from one subject "bleed" into another. This approach outperforms existing models that rely on expensive, multi-subject datasets.

Introduction

Customizing text-to-image models to generate scenes with multiple specific subjects (e.g., a specific dog and a specific car) faces two primary challenges: data scarcity and attribute entanglement. High-quality datasets featuring multiple specific subjects in the same frame are difficult to collect. Furthermore, models often mix up traits between subjects, leading to identity confusion. While Diffusion Transformers (DiTs) have improved single-subject generation, extending them to multi-subject scenarios without massive paired datasets remains a significant hurdle.

Methodology

The MUSAR framework introduces two core strategies to bridge the gap between single-subject training and multi-subject generation:

De-biased Diptych Learning

To train for multi-subject tasks without multi-subject data, MUSAR utilizes "diptychs"—two single-subject images stitched side-by-side. To prevent the model from learning a "split-screen" layout bias, the researchers employ Static Attention Routing to isolate conditions during training and a Dual-branch LoRA setup. This separation allows the model to learn subject details independently of spatial layout.

MUSAR demonstrates the ability to combine distinct subjects, such as a robot and a motorcycle, into a cohesive scene with natural interaction.

Dynamic Attention Routing

During inference, MUSAR uses Dynamic Attention Routing to prevent attribute bleeding. The model calculates a similarity matrix between noisy image tokens and the text prompt, enforcing a bijective mapping. This ensures each region of the generated image attends only to its corresponding reference subject, leveraging the latent knowledge already present in modern DiTs like FLUX.1.

Experimental Setup

MUSAR was trained on Subject200K, a large-scale dataset of single-subject images, filtered to approximately 111,000 high-quality samples. Evaluation was conducted using DreamBench, where the authors constructed 60 unique pairs and 20 triplets to test multi-subject capabilities.

Results and Discussion

MUSAR was compared against state-of-the-art models like OmniGen and MS-Diffusion. Despite being trained on single-subject data, MUSAR achieved superior identity preservation, with the highest DINO (0.704) and CLIP-I (0.720) scores on the DreamBench multi-subject task.

MUSAR exhibits remarkable scaling capabilities, successfully generating complex scenes with up to four distinct subjects (cat, can, toy, and shoe) despite being trained only on pairs.

Qualitatively, MUSAR handles complex interactions more naturally than baselines, avoiding "copy-paste" artifacts. It also demonstrates impressive scaling, generating scenes with up to four distinct subjects.

Conclusion and Future Work

While MUSAR significantly advances multi-subject customization, it remains dependent on the quality of the underlying base model (FLUX.1). Challenges persist in perfectly disentangling very semantically similar subjects, such as different brands of the same product. Future work may address these limitations and optimize the computational overhead introduced by the dynamic routing mechanism.

Summary updated

BibTeX
@misc{guo2025musar,
  author = {Zinan Guo and Pengze Zhang and Yanze Wu and Chong Mou and Songtao Zhao and Qian He},
  title = {{MUSAR: Exploring Multi-Subject Customization from Single-Subject Dataset via Attention Routing}},
  year = {2025},
  eprint = {2505.02823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.02823},
}
Figure