Abstract
Controllable text-to-image (T2I) diffusion models generate images conditioned on both text prompts and semantic inputs of other modalities like edge maps. Nevertheless, current controllable T2I methods commonly face challenges related to efficiency and faithfulness, especially when conditioning on multiple inputs from either the same or diverse modalities. In this paper, we propose a novel Flexible and Efficient method, FlexEControl, for controllable T2I generation. At the core of FlexEControl is a unique weight decomposition strategy, which allows for streamlined integration of various input types. This approach not only enhances the faithfulness of the generated image to the control, but also significantly reduces the computational overhead typically associated with multimodal conditioning. Our approach achieves a reduction of 41% in trainable parameters and 30% in memory usage compared with Uni-ControlNet. Moreover, it doubles data efficiency and can flexibly generate images under the guidance of multiple input conditions of various modalities.
Introduction
Standard text-to-image (T2I) models like Stable Diffusion have revolutionized content creation, yet they often lack the precise spatial control required for professional workflows. Users frequently need to guide generation using specific structural signals, such as edge maps, depth maps, or hand-drawn sketches. While existing solutions like ControlNet and Uni-ControlNet have addressed this to some extent, they suffer from two primary bottlenecks: high computational costs that scale linearly with the number of conditions, and a lack of faithfulness when processing multiple, potentially conflicting, multimodal inputs.
FlexEControl addresses these hurdles by introducing a highly efficient weight decomposition strategy. By sharing "slow" weights across different modalities, the model achieves a 41% reduction in trainable parameters and 30% less memory usage compared to state-of-the-art methods, while simultaneously improving the alignment between generated images and complex control signals.
Methodology
Weight Decomposition via Kronecker Products
The technical core of FlexEControl is a unique weight decomposition strategy based on Kronecker Decomposition. Rather than training entirely independent branches for every new control modality, the authors decompose the updated weights ($\Delta W$) of a copied Stable Diffusion encoder into a series of matrix products.
This approach identifies "slow" weights—which capture shared semantic and spatial structures common across different modalities—and "fast" weights. By sharing these decomposed weights across varied input conditions, the model learns a compact, unified representation of control. This shared semantic space acts as a regularizer, helping the model generalize better to complex, multi-input scenarios without the parameter explosion seen in previous architectures.
Enhanced Supervision and Data Augmentation
To further improve performance in crowded or complex scenes, FlexEControl introduces two specialized loss functions:
- Cross-Attention Supervision Loss ($\mathcal{L}_{ca}$): This ensures that the model's internal attention maps align precisely with provided masks, improving object placement.
- Masked Diffusion Loss ($\mathcal{L}_{mask}$): This concentrates denoising efforts on specific regions defined by control signals, effectively preventing "attribute leakage" where features from one object bleed into another.
Additionally, the researchers utilized GPT-3.5 and CLIPSeg to augment their training data, parsing complex prompts into individual entities and creating corresponding segmentation masks to teach the model how to handle multiple foreground objects effectively.
Experimental Results
Efficiency Gains
FlexEControl demonstrates that architectural efficiency can lead to superior performance. Compared to Uni-ControlNet, FlexEControl reduces trainable parameters from 1271M to 750M and cuts memory usage from 20.47GB to 14.33GB. Training speed is also significantly improved, with iteration time dropping from 5.69s to 2.15s.
Qualitative and Quantitative Performance
The model achieved superior performance using only half the training data of its counterparts. In human preference evaluations focusing on "homogeneous" conditions (e.g., multiple edge maps), annotators preferred FlexEControl 64% of the time.
As shown in the figures, the model excels at maintaining structural integrity even when multiple foreground elements are present, a scenario where previous models often merged distinct objects or ignored secondary control signals entirely.
Conclusion
FlexEControl provides a scalable and efficient framework for multimodal T2I control. While currently built upon the Stable Diffusion 1.5 backbone—inheriting its limitations in rendering complex human anatomy—the underlying weight decomposition strategy is architecture-agnostic. Future work will explore applying these principles to more advanced Diffusion Transformers (DiTs) to further push the boundaries of expressive and efficient generative AI.
Summary updated