Enhancing Prompt Following with Visual Control Through Training-Free Mask-Guided Diffusion
Hongyu Chen, Yiqi Gao, Min Zhou, Peng Wang, Xubin Li, Tiezheng Ge, Bo Zheng
TL;DR
The paper tackles prompt following under visual control in diffusion-based text-to-image systems, where textual prompts and visual cues can be misaligned. It introduces a training-free method, Mask-guided Prompt Following (MGPF), consisting of Masked ControlNet and Attribute-Matching Loss to separate and align aligned regions, enabling robust object generation and attribute binding. By leveraging object masks and cross-attention-based losses, MGPF achieves superior results across multiple visual controls and metrics, while preserving image aesthetics. The approach generalizes to other diffusion models such as ChilloutMix, offering a practical solution for reliable prompt following in visually controlled generation scenarios.
Abstract
Recently, integrating visual controls into text-to-image~(T2I) models, such as ControlNet method, has received significant attention for finer control capabilities. While various training-free methods make efforts to enhance prompt following in T2I models, the issue with visual control is still rarely studied, especially in the scenario that visual controls are misaligned with text prompts. In this paper, we address the challenge of ``Prompt Following With Visual Control" and propose a training-free approach named Mask-guided Prompt Following (MGPF). Object masks are introduced to distinct aligned and misaligned parts of visual controls and prompts. Meanwhile, a network, dubbed as Masked ControlNet, is designed to utilize these object masks for object generation in the misaligned visual control region. Further, to improve attribute matching, a simple yet efficient loss is designed to align the attention maps of attributes with object regions constrained by ControlNet and object masks. The efficacy and superiority of MGPF are validated through comprehensive quantitative and qualitative experiments.
