ST-LDM: A Universal Framework for Text-Grounded Object Generation in Real Images
Xiangtian Xue, Jiasong Wu, Youyong Kong, Lotfi Senhadji, Huazhong Shu
TL;DR
This work addresses Text-grounded Object Generation (TOG), a task to insert a new object into real images based on natural language while preserving scene semantics. It introduces ST-LDM, a universal framework that adds training-free backward guidance to latent diffusion models through two parallel branches: a Swin-based pixel-space autoencoder for hierarchical features and a deformable multimodal transformer for region-wise spatial guidance. The deformable feature alignment mechanism learns 2D offsets and modulation to steer cross-attention toward linguistically grounded regions, enabling precise region grounding without re-training the diffusion backbone. Quantitative and qualitative evaluations on VrR-VG and ComCOCO-based benchmarks show improved localization of generated content and maintained generative fidelity, with ablations validating the contribution of DFA and backward guidance. Overall, ST-LDM provides a scalable, language-driven approach to inserting new objects into real images and can be integrated with various pretrained latent diffusion models.
Abstract
We present a novel image editing scenario termed Text-grounded Object Generation (TOG), defined as generating a new object in the real image spatially conditioned by textual descriptions. Existing diffusion models exhibit limitations of spatial perception in complex real-world scenes, relying on additional modalities to enforce constraints, and TOG imposes heightened challenges on scene comprehension under the weak supervision of linguistic information. We propose a universal framework ST-LDM based on Swin-Transformer, which can be integrated into any latent diffusion model with training-free backward guidance. ST-LDM encompasses a global-perceptual autoencoder with adaptable compression scales and hierarchical visual features, parallel with deformable multimodal transformer to generate region-wise guidance for the subsequent denoising process. We transcend the limitation of traditional attention mechanisms that only focus on existing visual features by introducing deformable feature alignment to hierarchically refine spatial positioning fused with multi-scale visual and linguistic information. Extensive Experiments demonstrate that our model enhances the localization of attention mechanisms while preserving the generative capabilities inherent to diffusion models.
