Training-Free Object-Background Compositional T2I via Dynamic Spatial Guidance and Multi-Path Pruning
Organizations: Cardiff University, Cardiff, United Kingdom · Carleton University, Ottawa, Canada
Abstract
Existing text-to-image diffusion models, while excelling at subject synthesis, exhibit a persistent foreground bias that treats the background as a passive and under-optimized byproduct. This imbalance compromises global scene coherence and constrains compositional control. To address the limitation, we propose a training-free framework that restructures diffusion sampling to explicitly account for foreground-background interactions. Our approach consists of two key components. First, Dynamic Spatial Guidance introduces a soft, time step dependent gating mechanism that modulates foreground and background attention during the diffusion process, enabling spatially balanced generation. Second, Multi-Path Pruning performs multi-path latent exploration and dynamically filters candidate trajectories using both internal attention statistics and external semantic alignment signals, retaining trajectories that better satisfy object-background constraints. We further develop a benchmark specifically designed to evaluate object-background compositionality. Extensive evaluations across multiple diffusion backbones demonstrate consistent improvements in background coherence and object-background compositional alignment.
Figures & tables
| Method | Venue | CLIP_I [ 41 ] | BLIP [ 27 ] | NounRecall | HPSv3 [ 31 ] | ID-Sim [ 13 ] |
|---|---|---|---|---|---|---|
| SD2.1-based | ||||||
| AttendAndExcite [ 9 ] | SIGGRAPH’23 | 0.3295 | 0.4535 | 0.5567 | 8.1081 | - |
| TokenCompose [ 54 ] | CVPR’24 | 0.3258 | 0.4676 | 0.5509 | 6.4276 | - |
| STORM [ 19 ] | CVPR’25 | 0.3278 | 0.4586 | 0.5527 | 8.2355 | - |
| SD2.1 [ 46 ] | CVPR’22 | 0.3278 | 0.4405 | 0.5326 | 5.6710 | - |
| OursSD2.1 | Ours | 0.3364 | 0.4716 | 0.5586 | 6.9645 | - |
| Method | Full | Background | Object |
|---|---|---|---|
| SD2.1-based models | |||
| AttendAndExcite [ 9 ] | 0.3472 | 0.3782 | 0.4456 |
| TokenCompose [ 54 ] | 0.2412 | 0.2647 | 0.3706 |
| STORM [ 19 ] | 0.3091 | 0.3697 | 0.3212 |
| Stable Diffusion 2.1 [ 46 ] | 0.2623 | 0.3934 | 0.3770 |
| OursSD2.1 | 0.3121 | 0.4162 | 0.3815 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | CLIP_I | BLIP | NounRecall | HPSv3 |
|---|---|---|---|---|
| SDXL backbone | ||||
| w/o BGproj | 0.3475 | 0.4827 | 0.5687 | 8.3981 |
| w/o Dsg | 0.2780 | 0.3456 | 0.4903 | 1.0348 |
| w/o Prune | 0.3487 | 0.4858 | 0.5718 | 8.4099 |
| w/o clipScore | 0.3456 | 0.4806 | 0.5713 | 8.3277 |
| w/o Entropy | 0.3521 | 0.5066 | 0.5751 | 7.9871 |
Compositional T2I Generation
Compositional text-to-image generation creates images that faithfully combine multiple objects, attributes, relationships, and styles specified in a prompt.
See all 98 papers