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.
Glasgow College, University of Electronic Science and Technology of China · School of Mathematical Sciences, University of Electronic Science and Technology of China