MOSAIC: Multi-Subject Personalized Generation via Correspondence-Aware Alignment and Disentanglement

Dong She, Siming Fu, Mushui Liu, Qiaoqiao Jin, Hualiang Wang, Jidong Jiang

Introduction

Personalized image generation has made remarkable strides, allowing users to synthesize high-fidelity images of specific subjects in novel contexts. However, while generating a single personalized subject is highly effective, synthesizing multiple distinct subjects within the same image remains a significant hurdle.

MOSAIC is a representation-centric framework designed to solve the persistent "identity blending" problem in multi-subject personalized image generation. By introducing a massive new dataset of fine-grained semantic correspondences and two novel loss functions, MOSAIC enables the high-fidelity synthesis of four or more distinct subjects in a single image—surpassing the typical three-subject limit where previous state-of-the-art models fail.

The Challenge of Multi-Subject Generation

When attempting to include multiple personalized subjects—such as a specific person, a specific pet, and a specific object—existing diffusion models typically suffer from three main issues:

  1. Identity Blending: The subjects begin to share characteristics, losing their distinct identities (e.g., a cat might acquire dog-like facial features).
  2. Attribute Leakage: Colors, textures, or styles from one subject "bleed" into another (e.g., a red toy car might inadvertently turn a nearby subject's clothing red).
  3. Scalability Collapse: Most models experience a severe degradation in image quality and prompt adherence once tasked with generating more than two or three reference subjects.
MOSAIC successfully synthesizes a complex scene with five distinct reference subjects (three people, a cake, and a balloon) without identity blending.

The authors argue that these failures occur because current models lack explicit instructions on how different subjects should interact within the shared representation space. Existing approaches rely heavily on global feature matching rather than precise, point-to-point semantic alignment, leading to confused attention maps during generation.

The MOSAIC Framework: Alignment and Disentanglement

To address these internal attention failures, MOSAIC (Multi-Subject Personalized Generation via Correspondence-Aware Alignment and Disentanglement) introduces a two-pronged strategy built on top of the FLUX.1-dev model. It utilizes a LoRA-augmented branch to process reference images while maintaining the original model's generative power, guided by two novel loss functions:

  • Semantic Correspondence Attention Loss (SCAL): This enforces precise point-to-point semantic consistency. Using fine-grained annotations, the model is trained to know exactly which region of a reference image (e.g., the logo on a specific shirt) should map to which region in the generated target image. This point-wise supervision anchors identity much more effectively than global image features.
  • Multi-Reference Disentanglement Loss (MDL): To prevent attribute leakage, subjects must be separated mathematically within the model's attention layers. MDL uses symmetric KL divergence to push the attention patterns of different subjects into orthogonal subspaces. Essentially, it enforces a rule: if the model is attending to Subject A in a specific spatial region, it must actively suppress attention to Subject B in that same region.

Ablation studies revealed that applying these alignment and disentanglement constraints in the early layers of the Diffusion Transformer (DiT) is most effective. These early layers handle global structure and semantic mapping, whereas later layers focus on fine-grained textures where strict spatial constraints are less critical.

The SemAlign-MS Dataset

The backbone of this framework is a newly curated dataset called SemAlign-MS. Previously, the domain lacked data providing fine-grained semantic correspondences between multiple reference subjects and target images.

SemAlign-MS is a massive, meticulously annotated dataset containing 1.2 million high-quality image pairs. It was constructed using a sophisticated 5-stage pipeline involving GPT-4o for prompt generation, state-of-the-art text-to-image models for synthesis, and automated tools (like Lang-SAM and DIFT) to extract and validate semantic points.

Key Results and SOTA Performance

MOSAIC achieves new State-of-the-Art (SOTA) performance across standard benchmarks like DreamBench and XVerseBench, which test a model's ability to preserve identity across various prompts.

Qualitative results demonstrating MOSAIC's ability to handle diverse multi-subject scenarios, from custom apparel to complex group portraits, maintaining high fidelity across 4+ subjects.
  • Superior Identity Preservation: MOSAIC outperforms previous leading models (such as UNO) by a significant margin in both single and multi-subject scenarios.
  • Breaking the 3-Subject Barrier: While competitors like MS-Diffusion and XVerse struggle with three or more subjects, MOSAIC maintains high fidelity with 4+ reference subjects (e.g., generating five distinct cartoon characters or a complex family portrait with specific props).
  • High Diversity: Despite strict identity constraints, MOSAIC achieves the highest LPIPS score (52.15). This indicates that the model does not merely "copy-paste" references but generates diverse poses, lighting conditions, and compositions.
  • Robustness: The framework remains highly effective even when reference images are partially occluded or of low resolution.

Limitations and Future Directions

While MOSAIC represents a significant leap forward, the authors acknowledge that the additional supervision required during training increases computational overhead. Furthermore, while its inference speed is competitive (1.53 seconds per iteration), it is slightly slower than some highly optimized baselines like DreamO.

Future work will explore more efficient multi-reference encoding strategies and attention compression techniques. These advancements aim to reduce the training and inference footprint while maintaining the high-quality, complex multi-subject synthesis that MOSAIC has unlocked.

Summary updated

BibTeX
@inproceedings{she2026mosaic,
  author = {Dong She and Siming Fu and Mushui Liu and Qiaoqiao Jin and Hualiang Wang and Mu Liu and Jidong Jiang},
  title = {{MOSAIC: Multi-Subject Personalized Generation via Correspondence-Aware Alignment and Disentanglement}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=7AH0y1OtnC},
}
Figure