TL;DR
DivControl introduces a highly efficient, modular framework for controllable image generation by factorizing ControlNet into shared "learngenes" and condition-specific "tailors" via Singular Value Decomposition (SVD). Guided by a text-based dynamic gating mechanism, it achieves state-of-the-art multi-condition control and zero-shot generalization while slashing training costs by over 36$\times$.
What Problem Does This Paper Address?
Controllable image generation allows users to guide diffusion models using structural inputs like depth maps, segmentation masks, or sketches. However, standard approaches face a harsh trade-off between computational cost and flexibility:
- Traditional ControlNet: Requires training a completely separate network branch for every single condition type, which is computationally prohibitive (e.g., hundreds of GPU hours per condition).
- Universal Control Models: Attempt to unify multiple conditions into a single model, but their internal representations often become entangled. This leads to poor generalization when encountering unseen or novel control conditions.
The authors introduce DivControl to bridge this gap, creating a unified model that isolates condition-agnostic structural knowledge from condition-specific details to enable both efficient training and flexible adaptation.
Methods
DivControl achieves modularity through a process called Knowledge Diversion:
- SVD Factorization: The weight matrices of a transformer-based ControlNet are decomposed using Singular Value Decomposition (SVD) into rank-1 components (pairs of singular vectors).
- Learngenes vs. Tailors: These components are split into two categories: condition-agnostic learngenes ($\mathcal{G}$), which capture general structural generation capabilities and are shared across all tasks, and lightweight, condition-specific tailors ($\mathcal{T}$).
- Dynamic Gating: Instead of using rigid binary gates, DivControl employs a continuous, semantic-aware dynamic gate. A text encoder processes a textual instruction of the condition (e.g., "segmentation map to image"), and a lightweight router uses this embedding to assign soft weights over the tailor components in a Mixture-of-Experts (MoE) fashion.
- Representation Alignment (REPA): To accelerate training and boost condition fidelity, the authors introduce an auxiliary loss ($\mathcal{L}_{\text{REPA}}$). This mechanism aligns shallow features from the ControlNet with semantic embeddings extracted from a frozen, pre-trained vision encoder (DINOv2).
Datasets
- Pretraining: Subject200K, a large-scale dataset containing 200,000 FLUX-generated images. The authors annotated these images with 8 basic conditions: BBOX (bounding box), Canny edge, Depth, HED edge, Sketch, Normal map, Outpainting, and Segmentation.
- Evaluation: COCO2017 validation set, extended with 10 additional unseen conditions to test generalization. These were split into low-shift conditions (Illusion, Grayscale, Blur, Lineart, Inpainting, Brush) and high-shift conditions (Palette, Shuffle, Pixel, JPEG).
Key Insights and Ideas
- Semantic Parameter Sharing: By driving the dynamic gate with textual instructions, the model naturally exploits relationships between similar modalities. For example, "Sketch" and "Lineart" automatically trigger overlapping tailor activations because their text embeddings are close in semantic space.
- Decoupled Adaptation Strategies: Modularity allows for two distinct ways to handle new conditions. For low-shift tasks, the model achieves zero-shot generation purely via the dynamic gate. For high-shift tasks with massive domain gaps, users can freeze the core model and efficiently finetune only the tailors using a handful of images.
Key Results
- Massive Efficiency Gains: DivControl required only 165 GPU hours for pretraining compared to CtrLoRA's 6,000 hours—a 36.4$\times$ reduction in computational overhead—while maintaining fewer average trainable parameters.
- Superior Performance: On basic conditions, DivControl outperformed prior unified models, achieving an average CLIP-I score of 92.29 (compared to CtrLoRA-PA's 91.85) and lower LPIPS scores, indicating higher image fidelity.
- Strong Generalization:
- Zero-Shot: Successfully generated high-quality images for unseen low-shift conditions like Grayscale and Lineart without any weight updates.
- Few-Shot: For high-shift conditions (like Palette), finetuning only the tailors for 3K steps (~0.23 GPU hours on 200 images) yielded competitive, state-of-the-art performance.
Limitations and Future Work
Not discussed in the paper.
Summary updated