Layout-based compositional methods improve text-to-image generation by specifying where objects should appear, but most rely on sparse 2D constraints with limited appearance, occlusion, and depth-aware cues. We show that compositional generation can be substantially improved by replacing purely geometric guidance with an editable visual prior for diffusion initialization. We introduce ComposeAnything, an inference-time framework built around a 2.5D Composite Object Prior, an editable RGB image that specifies object appearance, layout, scale, and depth-aware ordering. We transfer this prior through Prior-Guided Diffusion, which combines Object Prior Reinforcement (OPR) to preserve object structure and appearance with Spatial-Controlled Denoising (SCD) to improve region-text alignment and reduce semantic leakage. Early guidance preserves the prior structure, after which standard denoising refines the image coherently. Extensive evaluations on T2I-CompBench, NSR-1K, and GenEval show strong gains in spatial reasoning, 3D-spatial relations, counting, and surreal compositions while maintaining visual quality and efficiency.
Figures & tables
Figure 1: The ComposeAnything framework, which enhances text-to-image diffusion models with layouts and composite object priors for complex compositional generation.
Figure 2: Overview of prior-guided diffusion. Spatial-controlled denoising is applied for each aligned text and region pair to strengthen spatial control. We further re-inject the object prior ztpop into predicted zt−1 to reinforce the prior.
Figure 3: State-of-the-art comparison on counting, 2D-spatial, and 3D-spatial prompts against inference-only and training-based baselines.
Table 4
Figure 4: Robustness to priors ( left : prior, right : final). (1) Missing bicycle, recovered with correct shadows; (2) no firelight in prior, faces correctly lit; (3) awkward clown placement, refined coherently; (4) incoherent poses, natural object interaction & correct camera angle.
Table 4: Ablation studies on T2I-CompBench (MS-COCO for quality) and runtime analysis.
Layout planning
Final image generation
Planner
2D
3D
Num.
2D.
Num.
3D.
Cplx.
Color
Tex.
GPT-4.1
99.1
100.0
98.6
48.24
68.21
77.16
38.66
81.11
73.74
Qwen3.6-27B
98.9
100.0
98.2
47.40
70.33
77.84
38.23
79.62
71.68
Table 5: Layout-plan accuracy with image generation performance.
Figure 5: Effect of Object prior reinforcement and Spatial controlled Denoising strength. The baseline (left) without prior fails to satisfy the high-object-count prompt. Integrating our object prior with varying guidance strengths enables a controlled trade-off between strict adherence to the prior and the seamless generative blending by the base model.
Figure 6: Effect of the 2.5D prior on 3D-spatial prompt generation.
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 7: Effect of Object Prior Reinforcement and Spatial-Controlled Denoising. Increasing either strength enhances appearance fidelity and spatial precision, but reduces generative flexibility.
Figure 8: Human evaluation results on the correctness of object-prior and final-image pairs across three categories of T2I-CompBench.
Figure 10: Object prior and corresponding generation for 2D-Spatial compositions from T2I-CompBench.
Figure 11: Object prior and corresponding generation for Complex compositions from T2I-CompBench.
Figure 12: Object prior and corresponding generation for 3D-Spatial compositions from T2I-CompBench.
Figure 13: Object prior and corresponding generation for Numeracy compositions from T2I-CompBench.
Figure 15: Labeling interface for human evaluations.
Figure 16: Instructions for LLM planning (continued in the next figure).
Figure 17: Instructions for LLM planning (continued in the next figure).
Figure 18: Instructions for LLM planning (continued in the next figure).
Figure 19: Instructions for LLM planning (continued in the next figure).
Figure 20: Instructions for LLM planning.
Figure 21: LLM planning for object-prior generation, with the final generated image.
Figure 22: LLM instructions for evaluating 3D-Spatial relations.
Text-to-image generation creates images from natural-language prompts using generative models, with research focused on fidelity, control, efficiency, and safety.
Text-to-image diffusion models can generate individual concepts well, but they often omit or merge concepts incorrectly with multiple concepts. We trace these failures to an early coordination bottleneck: before denoising begins, prompt-conditioned attention may allocate different concepts to strongly overlapping spatial support, which can keep their attention coupled as denoising proceeds. This observation motivates treating compositional generation as a boundary-condition problem rather than repeatedly controlling the evolving trajectory. To this end, we propose Rectify-then-Diffuse (RTD), a training-free framework that rectifies the initial allocation once before standard denoising. Firstly, we propose Soft-Overlap Disentanglement (SOD), which converts normalized overlap between pilot concept maps into a differentiable and layout-agnostic separation objective. Secondly, we introduce Isotropic Gradient Rectification (IGR), which normalizes the SOD gradient and applies a bounded latent displacement with a consistent scale across prompts and initializations. Extensive experiments show that RTD achieves state-of-the-art compositional fidelity and robust gains. On the AE-Bench object pair subset, RTD improves BLIP-VQA by 45.8% and ImageReward by 19.6% over CO3 while running 2.3× faster. Code will be released at https://github.com/Z-yiwei/rectify-then-diffuse
Ning Zhu, An Chen, Mengfei Zhao +4
Glasgow College, University of Electronic Science and Technology of China · School of Mathematical Sciences, University of Electronic Science and Technology of China
Recent text-to-image (T2I) generators can synthesize realistic images, but still struggle with compositional prompts involving multiple objects, counts, attributes, and relations. We introduce EPIC (Efficient Predicate-Guided Inference-Time Control), a training-free inference-time refinement framework for compositional T2I generation. EPIC casts refinement as predicate-guided search: it parses the original prompt once into a visual program of object variables and typed predicates, then verifies each candidate image against this program using visual evidence extracted from that image. A candidate is judged to satisfy the prompt when all predicates pass; otherwise, unmet predicates guide the next step, routing localized failures to targeted editing and layout-level or persistent failures to resampling. On GenEval2, EPIC improves the prompt-level Soft-TIFA GM score from 34.16% for single-pass generation to 71.46%. With the same generator, editor, and image-model execution budget, EPIC outperforms the strongest baseline by 19.23 points. It also uses 31% fewer image-model executions, 72% fewer multimodal large language model (MLLM) calls, and 81% fewer MLLM tokens per prompt.
Sunung Mun, Sunghyun Cho, Jungseul Ok
Graduate School of Artificial Intelligence, POSTECH · Department of Computer Science & Engineering, POSTECH
Text-to-Image (T2I) diffusion models have made rapid progress on semantic alignment (generating what is described in the prompt), yet users still lack reliable control over aesthetic composition (how visual elements are put together). Prior work often treats aesthetics as a single, preference-driven notion (e.g., "high quality", "detailed", "breathtaking"), which does not map cleanly to compositional intent. We propose Aesthetic Alignment: aligning generated images to explicit, user-specified compositional constraints. We operationalize these constraints using the Principles of Art (PoA)-e.g., Balance, Rhythm, and Emphasis-commonly used in art education to describe composition. To support this task, we introduce CompArt, a dataset of 80,032 WikiArt images augmented with captions and PoA analyses produced by a multimodal LLM under structured prompting. We further propose ArtDapter, a lightweight and disentangled adapter that enables steering a pretrained T2I model along 10 PoA dimensions while retaining the base model's semantic capability. Experiments on CompArt show improved adherence to PoA controls over strong baselines under a dual evaluation protocol.