UNIC-Adapter: Unified Image-instruction Adapter with Multi-modal Transformer for Image Generation
Lunhao Duan, Shanshan Zhao, Wenjun Yan, Yinglun Li, Qing-Guo Chen, Zhao Xu, Weihua Luo, Kaifu Zhang, Mingming Gong, Gui-Song Xia
TL;DR
This work tackles the challenge of achieving precise pixel-level control and global style in text-to-image generation by introducing UNIC-Adapter, a unified image-instruction adapter built on the Multi-Modal-Diffusion Transformer. By fusing task instructions and diverse conditional images through cross-attention (augmented with Rotary Position Embedding), it enables unified controllable generation across 14 input types within a single SD3-based model. The approach is validated across pixel-level spatial control, subject-driven generation, and style-image-based synthesis, with ablations confirming the crucial role of cross-modal interactions, RoPE, and a dedicated L_cross^q layer. The framework reduces training complexity while delivering strong controllability and fidelity, suggesting broad applicability for flexible, single-model T2I systems and potential integration with other diffusion backbones.
Abstract
Recently, text-to-image generation models have achieved remarkable advancements, particularly with diffusion models facilitating high-quality image synthesis from textual descriptions. However, these models often struggle with achieving precise control over pixel-level layouts, object appearances, and global styles when using text prompts alone. To mitigate this issue, previous works introduce conditional images as auxiliary inputs for image generation, enhancing control but typically necessitating specialized models tailored to different types of reference inputs. In this paper, we explore a new approach to unify controllable generation within a single framework. Specifically, we propose the unified image-instruction adapter (UNIC-Adapter) built on the Multi-Modal-Diffusion Transformer architecture, to enable flexible and controllable generation across diverse conditions without the need for multiple specialized models. Our UNIC-Adapter effectively extracts multi-modal instruction information by incorporating both conditional images and task instructions, injecting this information into the image generation process through a cross-attention mechanism enhanced by Rotary Position Embedding. Experimental results across a variety of tasks, including pixel-level spatial control, subject-driven image generation, and style-image-based image synthesis, demonstrate the effectiveness of our UNIC-Adapter in unified controllable image generation.
