InstructMoLE: Instruction-Guided Mixture of Low-rank Experts for Multi-Conditional Image Generation

Jinqi Xiao, Qing Yan, Liming Jiang, Zichuan Liu, Hao Kang, Shen Sang, Tiancheng Zhi, Jing Liu, Cheng Yang, Xin Lu, Bo Yuan · Submission to ICLR 2026 · Desk rejected

TL;DR

Fine-tuning Diffusion Transformers (DiTs) across diverse editing tasks typically causes catastrophic interference in monolithic LoRA adapters, while standard Mixture of Low-Rank Experts (MoLE) methods suffer from jittery, patch-level routing. InstructMoLE resolves this by replacing token-level routing with Instruction-Guided Routing (IGR)—broadcasting a unified "expert council" across all spatial tokens per layer—complemented by a novel output-space orthogonality loss to enforce expert specialization. The resulting model sets new state-of-the-art benchmarks in multi-conditional generation, context-aware editing, and spatial control.

What Problem Does This Paper Address?

Fine-tuning diffusion models to handle multi-task conditioning—such as multi-subject composition, style transfer, virtual try-on, and spatial conditioning (e.g., depth, canny edges, pose skeletons)—creates competing task objectives. A single monolithic LoRA adapter often encounters catastrophic forgetting and cross-task interference.

While Mixture of Low-Rank Experts (MoLE) architectures can partition tasks into modular sub-networks, prior works borrow token-level routing directly from large language models. In generative vision models, letting individual spatial image patches independently select their own experts creates critical failures:

  1. Spatial fragmentation: Adjacent patches pick conflicting experts, creating region-wise hue, style, and texture discontinuities.
  2. Routing jitter & noise amplification: Patch-level decisions fail to capture global semantic relationships specified by text instructions (e.g., attribute binding across subjects).
  3. Expert collapse: Experts become functionally redundant when guided only by standard load-balancing losses.

Methods

Text Instruction (T5 + CLIP) ──► Perceiver Distillation ──► Z_global ──► Layer Router ──► Broadcast Top-k Experts to all tokens

InstructMoLE introduces three primary components into a DiT backbone (built upon FLUX.1 Kontext [dev]):

  • Instruction-Guided Routing (IGR): Instead of making independent routing choices per image patch, the router calculates a single, instance-level routing distribution per layer and broadcasts it uniformly across all spatial tokens.
  • Perceiver-Style Signal Distillation ($Z_{\text{global}}$): A global guidance vector is distilled by fusing:
  • A holistic semantic anchor from a pooled CLIP text embedding.
  • Fine-grained compositional nuance from T5 token embeddings, extracted via a 2-layer Perceiver cross-attention bottleneck using a learnable latent query.
  • Output-Space Orthogonality Loss ($\mathcal{L}_{\text{ortho}}$): Standard load balancing only prevents expert starvation; it does not ensure functional diversity. The authors penalize pairwise cosine similarities between the flattened pre-gating output tensors of all experts: $$\mathcal{L}_{\text{ortho}} = \frac{1}{N(N - 1)} \sum_{i \neq j} \left( \frac{\mathbf{v}_i \cdot \mathbf{v}_j}{\|\mathbf{v}_i\|_2 \|\mathbf{v}_j\|_2} \right)^2$$ This directly forces experts to learn orthogonal, complementary visual representations.

Datasets

The authors train on a multi-task mixture combining synthetic and public datasets:

  • Training Data: Synthesized multi-subject compositional data, virtual try-on, face swapping, re-lighting, and style transfer; the 1.5M-sample GPT-IMAGE-EDIT-1.5M dataset; and dense spatial supervision from SubjectSpatial-200K (depth, Canny, inpainting) and COCO Pose 2017 (OpenPose skeletons).
  • Evaluation Benchmarks:
  • OmniContext: Context-aware editing and identity preservation.
  • XVerseBench: Compositional generation across 20 human identities, 74 objects, and 45 animal species.
  • GEdit-EN-full: Single-image instruction editing evaluated across 11 practical categories.
  • MultiGen-20M & COCO Pose 2017: Evaluates spatial fidelity via Depth RMSE, Canny F1, and Pose Object Keypoint Similarity (OKS) F1.

Key Insights and Ideas

  • Global intent requires global routing: Because visual instructions govern coherent scene-wide semantics, routing decisions should be determined by global prompt semantics rather than local patch hidden states.
  • Hierarchical specialization emerges naturally: Early layers learn to distinguish fundamental entity types (e.g., subject vs. background); intermediate layers develop dedicated task specialists (e.g., pose control, face-swapping); and deeper layers revert to distributed routing for unified scene composition.
  • Orthogonality beats raw capacity: Activating a sparse selection of diverse, low-rank experts ($N=8, k=4, r=32$) consistently outperforms fewer high-capacity experts ($N=4, k=2, r=64$), proving that representational disentanglement matters more than parameter volume.

Key Results

  • OmniContext: Achieved a top 38.85 average ID Similarity score, outperforming Flux.1 Kontext (36.29) and dramatically beating OmniGen2 (23.81) while maintaining strong prompt adherence (6.75).
  • XVerseBench: Reached an overall SOTA score of 71.07 (vs. 67.46 for Flux.1 Kontext and 62.93 for OmniGen2), leading in both human identity preservation (ID-Sim: 60.84) and object fidelity (IP-Sim: 62.81).
  • GEdit-EN-full: Scored the highest overall average (6.17 vs. 6.06 for Flux.1 Kontext), setting leading marks in Color Alter (7.46), Material Alter (5.81), and Replace (6.53).
  • Routing Ablations: On spatial control tasks, IGR reached 41.51% Canny F1 and 40.97% Pose F1, significantly outperforming standard token-level MoLE (28.06% and 19.50%) and Expert Choice routing (38.55% and 31.47%).

Limitations and Future Work

  • Sensitivity to Heavy Text Corruption: In stress tests featuring severe typos, the CLIP anchor could not fully offset degraded T5 token representations, leading to instruction failure.
  • Entity Capacity Bottlenecks: Under complex conditions involving simultaneous reference-binding for three or more distinct subjects, the model struggled with identity leakage—an architectural limit tied to the base model's cross-attention capacity rather than the router itself.
  • Training Overhead: Computing the orthogonality loss requires evaluating the un-gated forward pass for all $N$ experts on each batch before routing, increasing backward-pass memory during fine-tuning.

Summary updated

BibTeX
@misc{xiao2025instructmole,
  author = {Jinqi Xiao and Qing Yan and Liming Jiang and Zichuan Liu and Hao Kang and Shen Sang and Tiancheng Zhi and Jing Liu and Cheng Yang and Xin Lu and Bo Yuan},
  title = {{InstructMoLE: Instruction-Guided Mixture of Low-rank Experts for Multi-Conditional Image Generation}},
  year = {2025},
  eprint = {2512.21788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.21788},
}
Figure