Introduction
Diffusion Transformers (DiTs) have established new benchmarks for high-fidelity image synthesis. However, fine-tuning these massive models to handle complex, multi-conditional tasks—such as simultaneous face swapping, weather modification, and pose control—remains a significant challenge. Standard Low-Rank Adaptation (LoRA) often suffers from task interference, where learning new capabilities degrades existing ones. While Mixture-of-Experts (MoE) approaches offer a potential solution by modularizing knowledge, traditional token-level routing in the image domain often leads to spatial fragmentation and semantic inconsistencies.
The Challenge of Token-Level Routing
In standard Mixture of Low-Rank Experts (MoLE), a router assigns individual image patches (tokens) to specific experts. While effective in natural language processing, this local decision-making is detrimental to image generation. If adjacent pixels are processed by different experts (e.g., a "cat" expert vs. a "dog" expert), the resulting output often exhibits visual glitches and loses global semantic coherence. Because user instructions are inherently global, a local routing mechanism fails to capture the holistic intent of the prompt.
Methodology: InstructMoLE
InstructMoLE introduces Instruction-Guided Routing (IGR), a global mechanism that selects a consistent "expert council" for each model layer based on the entire user instruction.
Instruction-Guided Routing (IGR)
The framework leverages a global signal, $Z_{global}$, to drive routing decisions. This signal is generated by fusing T5 embeddings (for fine-grained compositional detail) and CLIP embeddings (for robust semantic anchoring) through a Perceiver-style attentional bottleneck.
For every layer, the router uses $Z_{global}$ to select the Top-$k$ experts from a pool of $N=8$. This selection is applied uniformly across all tokens in that layer, ensuring structural and semantic consistency. To prevent "expert collapse," where multiple experts converge on the same function, the authors employ an Output-Space Orthogonality Loss, penalizing similarity between expert outputs to ensure functional diversity.
Experimental Results
InstructMoLE was evaluated on a diverse set of benchmarks, including OmniContext (in-context generation), XVerseBench (multi-subject), and GEdit-EN-full (real-world editing).
- Fidelity and Identity Preservation: On the OmniContext benchmark, InstructMoLE achieved a state-of-the-art ID-Sim score of 38.85, outperforming the Flux.1 Kontext baseline (36.29).
- Multi-Subject Composition: The model reached an average score of 71.07 on XVerseBench, a 3.6-point improvement over the baseline.
- Operational Efficiency: By eliminating the need for complex "gather-scatter" memory operations required by token-level routing, InstructMoLE is more memory-efficient. It requires 51.25 GB of peak memory on an H100, compared to 51.88 GB for traditional MoLE.
Conclusion
InstructMoLE demonstrates that global, instruction-guided routing is superior to local token-level routing for multi-conditional image generation. By enforcing consistency across image patches and ensuring expert diversity through orthogonality constraints, the framework achieves significant gains in both visual quality and instruction following. Future work will explore scaling this approach to video generation and improving robustness against noisy textual inputs.
Paper Title: InstructMoLE: Instruction-Guided Mixture of Low-rank Experts for Multi-Conditional Image Generation
Authors: ByteDance & Rutgers University
Code: https://github.com/yanq095/InstructMoLE
Summary updated