UniControl: A Unified Diffusion Model for Controllable Visual Generation In the Wild

Can Qin, Shu Zhang, Ning Yu, Yihao Feng, Xinyi Yang, Yingbo Zhou, Huan Wang, Juan Carlos Niebles, Caiming Xiong, Silvio Savarese, Stefano Ermon, Yun Fu, Ran Xu · DOI

Introduction

While text-to-image models like Stable Diffusion have transformed AI-driven creativity, they often lack the "pixel-level" precision required for professional or technical applications. For instance, directing a model to place a character in a specific pose or follow a precise architectural outline is difficult using natural language alone.

Existing solutions, most notably ControlNet, address this by incorporating auxiliary conditioning such as Canny edges or depth maps. However, ControlNet is inherently fragmented: each visual condition requires a separate, large-scale model. Supporting multiple control types leads to significant storage overhead and prevents synergy between tasks. Furthermore, these specialized models struggle with hybrid conditions (e.g., combining a pose with a depth map) or generalizing to tasks outside their training set. UniControl is proposed as a unified generative foundation model that consolidates nine distinct controllable condition-to-image (C2I) tasks into a single, efficient framework.

Methodology

UniControl builds upon the Stable Diffusion Model (SDM) by integrating two novel architectural components designed for multi-task learning:

  1. MOE-Style Adapter: To manage diverse low-level features—such as the stark difference between a skeleton map and a segmentation map—the authors utilize a "Mixture-of-Experts" approach. Small, task-specific convolution modules (~70K parameters each) act as initial processors for each visual condition. This allows the model to capture unique task features without cross-task interference.
  2. Task-aware HyperNet: Acting as the system's central controller, the HyperNet processes natural language task instructions (e.g., "Canny edge to image") to generate task-aware embeddings. These embeddings modulate the main diffusion backbone, allowing the model to learn meta-knowledge about visual structures and differentiate between tasks within a single set of weights.
Overview of UniControl's multi-task framework and zero-shot capabilities.

Training and Data

To train this foundation model, the authors developed MultiGen-20M, a dataset comprising over 20 million high-quality triplets: the original image, a descriptive language prompt, and a visual condition extracted via automated detectors (e.g., Midas for depth, OpenPose for skeletons). Data was sourced from Laion-Aesthetics-V2 and COCO, covering nine tasks across categories like edges, region-wise maps, and geometric maps.

Key Insights and Results

UniControl demonstrates that training on multiple tasks simultaneously allows the model to learn intrinsic relationships between different geometric representations. For example, understanding depth helps the model better define segmentation boundaries.

Zero-Shot Versatility and Hybrid Control

Because UniControl is modulated by language-based instructions, it exhibits remarkable zero-shot generalization. It can perform tasks it was never explicitly trained on, such as image deblurring, colorization, and inpainting. Additionally, it can handle unseen combinations of conditions, such as synthesizing an image from a background depth map and a foreground human skeleton.

Example of UniControl performing zero-shot image deblurring.

Performance and Efficiency

  • Quantitative Superiority: UniControl outperforms specialized models like GLIGEN and T2I-Adapter in terms of Fréchet Inception Distance (FID). For instance, it achieved an FID of 21.3 on Depth-to-Image tasks, compared to ControlNet's 25.5.
  • User Preference: Human evaluations show a strong preference for UniControl, particularly in complex tasks like HED-edge-to-image, where it maintains better alignment with input conditions.
  • Efficiency: UniControl effectively compresses nine models into one. While nine separate ControlNets require ~4.32B parameters, UniControl achieves superior functionality with only 1.44B parameters.

Conclusion and Future Work

UniControl represents a significant step toward a unified foundation for controllable generation. While highly effective, it still inherits some limitations from Stable Diffusion, such as occasional distortions in human anatomy. Future research will focus on training with more diverse, high-resolution datasets and refining the HyperNet to handle granular controls like material textures. Additionally, improving safety checkers remains a priority for "in the wild" deployment to prevent the generation of biased or harmful content.

Summary updated

BibTeX
@inproceedings{qin2023unicontrol,
  author = {Can Qin and Shu Zhang and Ning Yu and Yihao Feng and Xinyi Yang and Yingbo Zhou and Huan Wang and Juan Carlos Niebles and Caiming Xiong and Silvio Savarese and Stefano Ermon and Yun Fu and Ran Xu},
  title = {{UniControl: A Unified Diffusion Model for Controllable Visual Generation In the Wild}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=v54eUIayFh},
}
Figure