UniCombine: Unified Multi-Conditional Combination with Diffusion Transformer

Haoxuan Wang, Jinlong Peng, Qingdong He, Hao Yang, Ying Jin, Jiafu Wu, Xiaobin Hu, Yanjie Pan, Zhenye Gan, Mingmin Chi, Bo Peng, Yabiao Wang

TL;DR

This paper introduces UniCombine, a novel Diffusion Transformer (DiT)-based framework that unifies and effectively combines multiple conditional inputs (text, spatial maps, subject images) for controllable image generation. It addresses the limitations of existing methods that struggle with complex multi-conditional inputs, offering a more flexible and powerful approach for tasks like virtual try-on and object insertion.

What Problem Does This Paper Address?

The field of text-to-image generation has seen rapid advancements, with models like ControlNet and T2I-Adapter enabling control beyond simple text prompts by incorporating conditions like layout or style. However, a significant challenge remains in effectively combining multiple diverse conditional inputs simultaneously while maintaining consistency with all of them. Existing multi-conditional methods often focus on specific combinations (e.g., multiple spatial maps) and struggle to integrate subject-specific conditions or handle arbitrary combinations. This limits their applicability to a broader range of complex generative tasks that require a unified approach to various control signals.

Methods

UniCombine builds upon the Diffusion Transformer (DiT) architecture, specifically leveraging the Multi-Modal Diffusion Transformer (MMDiT) which separates text and denoising branches. The core innovations are:

  • LoRA Switching Module: This module adaptively selects and activates pre-trained Condition-LoRA modules based on the input condition types. This allows for efficient handling of various conditions without needing to train new modules for each combination.
  • Conditional MMDiT Attention (CMMDiT Attention): This novel attention mechanism is designed to address two key issues with combining multiple conditions:
  • Computational Complexity: It reduces complexity from quadratic to linear with respect to the number of conditions, making it more scalable.
  • Information Entanglement: It intelligently restricts the scope of attention for conditional branches, preventing interference between different signals and allowing for more effective utilization of pre-trained LoRA weights. Specifically, conditional branches only attend to a subset of the sequence ([T; X; Ci]), while the text and denoising branches retain global attention.
  • Training-Free and Training-Based Versions:
    • Training-Free: Leverages pre-trained Condition-LoRA modules to achieve good performance without additional training.
  • Training-Based: Incorporates a trainable Denoising-LoRA module to further enhance performance by fine-tuning the feature aggregation process, leading to more precise control.

Datasets

  • SubjectSpatial200K: The authors introduce this new dataset specifically for multi-conditional generative tasks. It is built upon the existing Subjects200K dataset and provides both subject-grounding annotations (bounding boxes and masks) and spatial map annotations (Depth and Canny maps). This addresses the lack of a unified dataset for training and evaluating models that handle both subject-driven and spatially-aligned conditions.

Key Insights and Ideas

  • Unified Framework for Diverse Conditions: The paper demonstrates that a single DiT-based architecture can be adapted to handle a wide array of conditional inputs (text, spatial, subject) by intelligently managing and integrating their representations.
  • LoRA as a Modular Control Mechanism: The use of pre-trained Condition-LoRA modules, managed by a switching mechanism, is a key enabler for the training-free aspect and the flexibility to handle new conditions.
  • Attention Design is Crucial for Multi-Condition Fusion: The CMMDiT Attention mechanism's clever design, by differentiating attention scopes based on the query branch, is critical for preventing signal interference and achieving effective fusion of diverse conditional information.
  • The Power of Subject-Specific Control: The ability to precisely control the insertion or generation of specific subjects, alongside other spatial and textual constraints, opens up new possibilities for creative image manipulation.

Key Results

  • State-of-the-Art Performance: UniCombine achieves state-of-the-art results across various multi-conditional tasks, including Multi-Spatial, Subject-Insertion, and Subject-Depth/Canny generation, outperforming existing methods in generative quality, controllability, and subject consistency.
  • Quantitative Improvements:
    • In Subject-Insertion, the training-based version achieves a 97.14 CLIP-I score and 92.96 DINO score, significantly higher than baselines.
  • For Multi-Spatial tasks, the training-based UniCombine achieves an FID of 6.82 and an SSIM of 0.64.
  • The CMMDiT Attention mechanism reduces attention operations by approximately 16% compared to the original MMDiT Attention while improving performance.
  • Qualitative Success: Figures demonstrate remarkable alignment with multiple conditions, showing subjects seamlessly integrated into backgrounds with specified layouts and styles, and precise textual guidance being followed.

Limitations and Future Work

  • Training-Based vs. Training-Free Trade-off: While the training-free version is impressive, the training-based version offers superior performance, indicating that fine-tuning can further refine the feature aggregation.
  • Computational Cost: While UniCombine is efficient, especially with CMMDiT Attention, the paper notes that the training-based version still incurs computational costs. Future work could explore further optimizations.
  • Extensibility: The paper suggests that UniCombine can be easily extended to new scenarios, such as reference-based image stylization, by training new Condition-LoRA modules. This highlights a promising direction for future research.

Summary updated

BibTeX
@inproceedings{wang2025unicombine,
  author = {Haoxuan Wang and Jinlong Peng and Qingdong He and Hao Yang and Ying Jin and Jiafu Wu and Xiaobin Hu and Yanjie Pan and Zhenye Gan and Mingmin Chi and Bo Peng and Yabiao Wang},
  title = {{UniCombine: Unified Multi-Conditional Combination with Diffusion Transformer}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure