Box It to Bind It: Unified Layout Control and Attribute Binding in T2I Diffusion Models

Ashkan Taghipour,Morteza Ghahremani,Mohammed Bennamoun,Aref Miri Rekavandi,Hamid Laga,Farid Boussaid
2024-02-28
Abstract:While latent diffusion models (LDMs) excel at creating imaginative images, they often lack precision in semantic fidelity and spatial control over where objects are generated. To address these deficiencies, we introduce the Box-it-to-Bind-it (B2B) module - a novel, training-free approach for improving spatial control and semantic accuracy in text-to-image (T2I) diffusion models. B2B targets three key challenges in T2I: catastrophic neglect, attribute binding, and layout guidance. The process encompasses two main steps: i) Object generation, which adjusts the latent encoding to guarantee object generation and directs it within specified bounding boxes, and ii) attribute binding, guaranteeing that generated objects adhere to their specified attributes in the prompt. B2B is designed as a compatible plug-and-play module for existing T2I models, markedly enhancing model performance in addressing the key challenges. We evaluate our technique using the established CompBench and TIFA score benchmarks, demonstrating significant performance improvements compared to existing methods. The source code will be made publicly available at
Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
This paper aims to address several key issues in text-to-image (T2I) generation, particularly those encountered when using Latent Diffusion Models (LDMs). Specifically, the paper proposes a new module called "Box-it-to-Bind-it" (B2B) to improve the performance of existing T2I models in the following aspects: 1. **Catastrophic Neglect**: When the model fails to generate certain objects or attributes from the prompt. 2. **Attribute Binding**: Ensuring that the generated objects are correctly associated with their specified attributes. 3. **Layout Guidance**: Controlling the position of generated objects so that they appear within specific bounding boxes. The B2B module achieves these goals through the following two main steps: - **Object Generation**: Adjusting the latent encoding to ensure that objects are generated within the specified bounding boxes. - **Attribute Binding**: Ensuring that the generated objects conform to the attributes specified in the prompt. This method is a training-free, plug-in module that can be compatible with existing T2I models and significantly enhance their performance. The researchers validated the effectiveness of B2B through benchmark tests such as CompBench and TIFA scores, demonstrating its superior performance in color binding, texture binding, and spatial reasoning. Additionally, the paper showcases the plug-in effect of the B2B module on the GLIGEN model, further proving its versatility and effectiveness.