arXiv:2611.00804cs.CVOct 2026

Manuscript Offprint

arXiv:2611.00804

Training-free Conditional Object Composition for Multi-object Image Generation with Diffusion Models

Hsuan-Fu Wang, Hsuan-Tien Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hsuan-Fu Wang and Hsuan-Tien Lin

Graduate Institute of Networking and Multimedia, National Taiwan University {r11944074, htlein}@csie.ntu.edu.tw

Abstract. Multi-object image generation in text-to-image diffusion models remains challenging, as existing approaches struggle to reliably generate all objects specified in a prompt. Compositional approaches that generate objects independently often fail to capture the interactions among them, whereas joint generation methods tend to suffer from inter-object interference. In this work, we propose a training-free framework, termed conditional object composition, that relaxes joint generation methods by taking one step back toward compositional approaches. Our framework decomposes the generation of NN objects into two stages: it first generates a subset of N−1N-1 objects and then composes the remaining object conditioned on the generated content. To enable effective composition, we adopt an inpainting-based formulation with layout guidance to preserve existing regions and encourage spatially coherent placement. To address the challenge of selecting which objects to generate separately, we introduce an attention-based scoring mechanism based on cross-attention maps and further explore the use of off-the-shelf object detectors. We evaluate our method on multi-object image generation using the widely adopted MS COCO dataset. Experimental results show that our approach achieves competitive or improved performance compared to existing methods, particularly as the number of objects increases. Further studies highlight the importance of the proposed design choices. The source code is available at https://github.com/ShampooWang/condComp_imageGen/tree/main

1 Introduction

Recent advances in text-to-image diffusion models [21,22,19,6,23] have significantly improved the realism and diversity of generated images. However, generating images that contain all the objects specified in the text prompt remains a challenging problem [25]. In particular, when the number of objects increases, current models often fail to faithfully generate all required objects, as shown in Figure 1(a). This suggests that multi-object image generation poses challenges beyond those addressed by standard text-to-image generation. To better understand this limitation, we conduct a pilot study on the widely adopted multi-label dataset, MS COCO dataset [13], as shown in Figure 2(a).

H.-F. Wang and H.-T. Lin

Figure

(a) SDXL [21] misses the required object "cat"

Figure

(b) Our method: adding the dog conditioned on generated objects (person, apple, and cat).

Fig. 1. Comparison of multi-object image generation with required objects: person, apple, cat, and dog. The base diffusion model fails to generate all specified objects, while our method improves completeness by composing objects conditioned on previously generated content. In this example, the model first generates a subset of objects (person, apple, and cat) and then adds the remaining object (dog) in a subsequent composition step.

Prompts are constructed using ground-truth object labels, and a generation is deemed successful only if all specified object categories appear in the image. By varying the number of objects in each prompt, we observe that the success rate drops substantially as the number of categories increases.

Multi-object image generation can be addressed by either training-based or training-free approaches. Training-based methods learn additional models or require fine-tuning on multi-label datasets, e.g., MS COCO [13], which can improve controllability but may require additional annotation processes [25] and incur extra training costs, and limit applicability to existing systems. In contrast, training-free approaches operate directly on pretrained diffusion models during inference, offering a more practical and flexible alternative. In this work, we focus on training-free approaches that operate on pretrained diffusion models without additional training.

Existing approaches [7,4,3] primarily address this problem within a joint generation framework, where all objects are generated jointly in a single diffusion process by introducing refined cross-attention control or latent refinement techniques to improve object-level fidelity. For example, Structure Guidance [7] parses prompts using syntactic trees and applies additional cross-attention to the parsed components. Layout Guidance [4] encourages cross-attention maps to focus within predefined bounding boxes through latent refinement. Attend-and-

Excite [3] enhances object presence by increasing the minimum cross-attention saliency across objects, also via latent refinement.

However, despite these improvements, they remain fundamentally joint generation methods, which can lead to inter-object competition, where attention maps of different objects interfere with each other, making them increasingly difficult to reliably generate all objects as the number of objects grows. On the other hand, compositional methods [16] generate all objects individually to alleviate such competition. While this strategy circumvents disentanglement, it often fails to capture non-trivial interactions, e.g., spatial relationships between objects, leading to inconsistent or implausible compositions between objects.

To address these limitations, we adopt a strategy that relaxes joint generation methods by taking one step back toward compositional methods: instead of generating all NN objects jointly, we first generate N−1N-1 objects and then compose the remaining object conditioned on the existing content. This formulation alleviates the difficulty of controlling multiple objects within a single generation process while allowing the model to leverage information from previously generated objects to capture interactions between objects. We refer to this framework as conditional object composition. Such an approach transforms the original multi-object generation problem into two components: (1) composition, which integrates new objects into an existing scene, and (2) decomposition, which determines which objects should be generated separately rather than jointly.

However, this formulation introduces several challenges. First, object composition conditioned on previously generated content is non-trivial, as general image editing method [18] tend to reuse or overwrite existing regions, as shown in Figure 2(b), leading to object overlap or spatial conflicts. To address this, we perform composition in an inpainting-like manner [17] by constructing a binary mask from cross-attention saliency, which preserves previously generated regions while encouraging new objects to occupy the remaining free space. Second, selecting an appropriate decomposition is challenging, as it requires identifying objects that are difficult to generate jointly. We observe that the salient regions of cross-attention maps capture spatial correspondences between text tokens and image regions, consistent with observations in prior works [24,14]. We leverage the spatial distribution of cross-attention values to guide the selection of objects for decomposition, and further explore the use of off-the-shelf object detectors as an alternative estimation mechanism.

We evaluate the proposed method on multi-object image generation using the widely adopted MS COCO dataset [13]. Experimental results demonstrate competitive or superior performance over existing methods. Ablation studies show that effective decomposition is essential, while simply enforcing free-space composition during joint generation is ineffective. They further highlight the importance of considering both joint generation and subsequent composition during decomposition.

H.-F. Wang and H.-T. Lin

Figure

(a) Success rate of multi-object image generation on MS COCO with varying numbers of objects.

Figure

(b) Failure cases of image editing with increasing editing strength.

Fig. 2. (a) Success rate on MS COCO as the number of target objects increases. Our method consistently outperforms the base diffusion model, particularly in challenging multi-object scenarios. Success requires all specified object categories to be generated. (b) Failure cases of general image editing for object composition. Increasing the editing strength shifts the behavior from under-editing (missing the target object) to over-editing (modifying previously generated content).

References (26)