NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

InstanceAssemble: Layout-Aware Image Generation via Instance Assembling Attention

Qiang Xiang, Shuang Sun, Binglei Li, Dejia Song, Huaxia Li, Nemo Chen, Xu Tang, Yao Hu, Junping Zhang

Abstract

Precise spatial control in text-to-image generation remains a significant challenge, particularly for complex scenes with high object density. We present InstanceAssemble, a framework that enables dense layout control for Diffusion Transformers (DiTs) such as SD3 and Flux.1. By employing a "divide-and-conquer" attention strategy—Assembling-Attn—and lightweight Low-Rank Adaptation (LoRA), InstanceAssemble achieves superior layout fidelity without compromising the base model's creative capabilities. Our approach adds less than 1% additional parameters and demonstrates a significant performance leap on a new, high-density benchmark, Denselayout.

Introduction

While text-to-image models have reached impressive levels of photorealism, the ability to specify the exact placement and attributes of multiple objects (Layout-to-Image or L2I) is still evolving. Existing solutions typically fall into two categories: training-free heuristics that often fail in crowded scenes, and training-based methods that require heavy architectural modifications, often degrading the original model's performance. Furthermore, standard benchmarks like COCO or LayoutSAM typically feature sparse layouts (3–4 objects), failing to represent the complexity of real-world scenes. InstanceAssemble addresses these gaps by providing a robust, efficient, and scalable solution for dense layout control.

Methodology

The core of InstanceAssemble is the Assemble-MMDiT module, which integrates into the existing DiT architecture using a cascaded approach.

Assembling-Attn Mechanism

The primary innovation is the Assembling-Attn mechanism. Unlike standard global attention, which can lead to "semantic leakage" (e.g., color bleeding between adjacent objects), Assembling-Attn isolates features within each bounding box. These instance-specific features are processed independently through a shared attention layer before being "assembled" back into the global image context. This ensures that each object maintains its unique attributes as defined by the textual prompt.

The InstanceAssemble architecture, featuring the Assemble-MMDiT module and Assembling-Attn mechanism.

Cascaded Architecture and LoRA

To preserve the aesthetic quality of the base model, InstanceAssemble uses a cascaded design. The standard frozen DiT layers first establish the global scene context. Subsequently, the Assemble-MMDiT module refines specific instances. To maintain efficiency, the framework utilizes Low-Rank Adaptation (LoRA). For the 11.8B parameter Flux.1 model, InstanceAssemble adds only 102M parameters (0.84%), ensuring high performance with minimal overhead.

Experiments and Results

To rigorously test layout control, we introduced the Denselayout benchmark, featuring 5,000 images with an average of 18.1 instances per image—significantly denser than previous datasets.

Performance and Efficiency

InstanceAssemble demonstrates a dramatic improvement in spatial accuracy. On the Denselayout benchmark, it achieved a Mean Intersection over Union (mIoU) of 52.07, compared to the previous state-of-the-art (CreatiLayout) score of 15.54. In terms of efficiency, while competing methods like InstanceDiff can increase runtime by over 2700% for dense scenes, InstanceAssemble (on Flux.1-Schnell) adds only a 28.8% runtime overhead.

Diverse image generation results across various categories and densities using InstanceAssemble.

Key Insights

  • Independence for Density: Isolating instances during attention is crucial for handling crowded scenes.
  • Temporal Control: Layout control is most effective during the initial 30% of the denoising process. Disabling the layout modules for the remaining steps allows the model to focus on fine-grained textures.
  • Generalization: The model generalizes well from sparse training data to dense inference scenarios, highlighting the robustness of the Assembling-Attn design.

Conclusion

InstanceAssemble provides a powerful and efficient framework for precise layout control in modern Diffusion Transformers. By isolating instance processing and utilizing lightweight adaptation, it handles unprecedented object density with high accuracy. Future work will focus on parallelizing the sequential bottleneck in the Assemble-MMDiT module and improving fidelity in cases of extreme object overlap.

Summary updated

BibTeX
@inproceedings{xiang2025instanceassemble,
  author = {Qiang Xiang and Shuang Sun and Binglei Li and Dejia Song and Huaxia Li and Nemo Chen and Xu Tang and Yao Hu and Junping Zhang},
  title = {{InstanceAssemble: Layout-Aware Image Generation via Instance Assembling Attention}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=rRhp7LkBZV},
}
Figure