Abstract
Text-to-image (T2I) diffusion models have achieved remarkable success, yet providing precise local structural control remains a challenge. Existing methods like ControlNet often apply conditions globally, leading to "local control dominance" where a single conditioned object suppresses the generation of other prompt-defined elements. We introduce a training-free inference strategy that employs latent optimization and attention refinement to achieve localized structural guidance. By integrating Regional Discriminate Loss (RDLoss), Focused Token Response (FTR), and Feature Mask Constraint (FMC), our approach enables multi-concept synthesis without retraining, significantly improving both image fidelity and prompt alignment.
Introduction
While models like ControlNet have revolutionized T2I generation by adding structural guidance (e.g., Canny edges, depth maps), they typically operate globally. Specifying the exact pose of an object in one region while allowing the model to freely generate other elements elsewhere is difficult with standard global controls.
The authors identify a "catastrophic" issue termed local control dominance. When a local image condition is naively added, the concept related to that condition tends to dominate the entire generation process. Cross-attention maps reveal high responses within the controlled region even for unrelated prompt tokens, preventing other objects from being generated correctly in non-controlled areas.
Methodology
The proposed training-free framework operates entirely during the denoising stage via three primary components:
- Regional Discriminate Loss (RDLoss): To counter dominance, RDLoss identifies "ignored" objects in cross-attention maps. It calculates the difference between maximum attention scores inside and outside the local control region, updating noised latents to force the "regeneration" of missing objects.
- Focused Token Response (FTR): This module refines cross-attention maps by suppressing weak responses in the token dimension, ensuring each pixel primarily responds to its most relevant text token and reducing object overlap.
- Feature Mask Constraint (FMC): FMC applies a binary mask directly to the feature maps output by ControlNet blocks before fusion. This prevents irrelevant control information from degrading the quality of non-controlled regions.
Evaluation and Results
The method was evaluated using the COCO2017 validation set and a newly introduced Attend-Condition Dataset, specifically designed for multi-object generation with prompts like "a [object] and a [animal]".
Quantitatively, the method achieved a FID of 21.86 and a CLIP Score of 0.305 on COCO2017, outperforming standard ControlNet (FID 27.87). Qualitatively, the approach successfully generates complex scenes where one object follows a structural guide while others are generated naturally. For instance, it can precisely place a "Luigi" figure based on an edge map while correctly generating a "Totoro" next to it solely from text.
Conclusion and Future Work
The core of the "dominance" problem lies in the cross-attention mechanism, where local conditions hijack the attention budget. This research demonstrates that inference-time optimization is sufficient for effective local control. While the latent update strategy is effective, aggressive gradient steps can occasionally impact overall alignment, and the stabilization hyperparameter $\beta$ requires careful tuning. Future work may extend this paradigm to video generation or integrate it with advanced layout-to-image models for even finer-grained scene composition.
Summary updated