Mixture-of-Hierarchical Experts: Optimized Mamba Architecture for Vision Diffusion

Yejun Jung, Dongyun Kim, Jinsun ParkNeurIPS 2026

TL;DR

Mamba models offer fast, linear-time sequence processing, making them an enticing alternative to compute-heavy Transformers in image diffusion—except that flattening 2D images into 1D sequences usually hurts visual quality. This paper introduces Mixture-of-Hierarchical Experts (MoH), an architecture that embeds Mamba into a multi-scale spatial hierarchy and dynamically routes how the network processes an image depending on the exact stage of the denoising process. The payoff is massive: MoH cuts image generation error nearly in half while actually running faster and using less memory than prior Mamba diffusion models.

What Problem Does This Paper Address?

Diffusion models generate images by iteratively cleaning up noise over dozens or hundreds of steps. Standard Transformer backbones excel at this because global self-attention lets every pixel talk to every other pixel, though at a painful $\mathcal{O}(N^2)$ computational cost that gets multiplied across every denoising step.

State Space Models like Mamba run in linear $\mathcal{O}(N)$ time, offering an escape from the quadratic bottleneck. However, Mamba is inherently a 1D sequential processor—it reads data like a line of text. Previous attempts to adapt Mamba for 2D images relied on clever scanning patterns (like zigzags) to snake across pixels at a single, fixed resolution. This misses two crucial realities of vision diffusion:

  1. Images have a multi-scale 2D topology (from coarse layouts down to fine textures) that flat, 1D scanning struggles to capture.
  2. Denoising is dynamic: early, high-noise steps need broad, global brushstrokes, while late, low-noise steps need localized, fine-grained polish. Applying the exact same network depth and spatial processing at every single timestep wastes compute and limits quality.

Methods

Rather than scanning an image at one flat resolution, MoH organizes Mamba blocks into a U-Net-like spatial hierarchy (operating across $32 \times 32$, $16 \times 16$, and $8 \times 8$ latent resolutions). Crucially, instead of keeping this hierarchy rigid, MoH treats the architecture itself as a menu of "experts" and builds a custom computation path at each diffusion timestep.

Figure 2: Overview of Mixture-of-Hierarchical Experts (MoH). MoH treats a hierarchical backbone as a structured expert space and dynamically constructs a timestep-dependent computation path via routing over architectural decisions.

At each step, three specialized routers decide how to configure the network:

  • Stage Selection Router (SSR): Decides which spatial resolutions are active, creating a dynamic "bottleneck" (e.g., diving deep to $8 \times 8$ for global structure, or staying shallow for fine details).
  • Compression and Mixing Router (CMR): Chooses how much local 2D convolution to apply (0, 1, or 2 layers) before downsampling features to the next stage, injecting an adjustable CNN-like spatial bias.
  • Encoder Depth Router (EDR): Picks how many Mamba blocks (shallow, base, or deep) to run at a given stage, controlling how far information propagates sequentially.

To prevent these routers from working at cross-purposes, an Integrated Routing Controller (IRC) reads the current timestep, conditioning (like text prompts), and image features to broadcast a shared "routing prior" that coordinates all three modules. Finally, a decoder upsamples and fuses these routed features back into a clean image prediction.

Datasets

The authors evaluate MoH on two standard $256 \times 256$ image generation benchmarks (operating in a $32 \times 32 \times 4$ Stable Diffusion VAE latent space):

  • CelebA-HQ ($256 \times 256$): Used for unconditional human face generation.
  • MS-COCO ($256 \times 256$): Using the 2014 split paired with CLIP text embeddings to test complex, multi-object text-to-image generation.

No new benchmarks are introduced.

Key Insights and Ideas

  • Hierarchy cures "scan-order bias": Prior vision Mamba papers agonized over 2D traversal patterns (bidirectional, cross-scan, zigzag). In MoH, swapping between a complex zigzag scan and a standard scan barely changes the FID score (12.37 vs. 11.93). Giving Mamba a multi-scale hierarchy removes its fragile dependence on pixel reading order.
  • Uncoordinated routing backfires: Adding CMR or EDR individually improves the model. Surprisingly, turning both on simultaneously without a central controller actually makes performance worse than using either one alone! Because CMR changes how features are spatially mixed before EDR scans them, EDR needs the IRC's shared context to adapt its depth complementarily (e.g., choosing shallower Mamba scans when CMR has already done heavy convolutional mixing).
  • Self-organizing coarse-to-fine dynamics: Without explicit supervision telling it how to behave at different noise levels, MoH naturally learns to shift toward weaker spatial mixing as denoising progresses and dynamically varies its scan depth to match the evolving image state.

Key Results

MoH delivers substantial leaps in Fréchet Inception Distance (FID, where lower means more realistic images) while trimming down compute:

  • Unconditional Generation (CelebA-HQ): MoH-B achieves an FID of 7.99, nearly halving the 14.27 FID of the prior Mamba baseline (ZigMa) and beating Transformer-based SiT-L/2 (15.65), despite having fewer parameters than ZigMa (129M vs. 133M) and fewer FLOPs (80.88G vs. 97.52G).
  • Text-to-Image (MS-COCO): MoH-B drops FID down to 20.00, outperforming Vision Mamba (60.20), ZigMa (41.80), and U-Shape Mamba (39.10).
  • Real-World Speedups: Compared to ZigMa at batch size 1, MoH-B boosts inference throughput by 29.5% (from 51.17 to 66.24 evaluations/sec), cuts latency by 22.8% (19.54 ms down to 15.10 ms), and lowers peak GPU memory.
Figure 1: Samples generated by MoH-B on CelebA-HQ at 256 × 256 resolution.

Limitations and Future Work

While the paper does not include a standalone limitations section, an empirical boundary emerges in the ablations: deeper hierarchies aren't always better. Pushing the latent spatial stages down to $4 \times 4$ actually degraded FID from 11.93 to 12.64, leading the authors to cap their hierarchy at three stages ($32, 16, 8$). For future work, the authors highlight adaptive architectural routing—dynamically wiring macro-level traits like scale, compression, and depth rather than just routing individual tokens—as a promising, scalable blueprint for generative models more broadly.

Summary updated

Abstract

Existing Mamba-based diffusion backbones struggle to achieve competitive performance in vision tasks, as purely sequential propagation lacks an explicit spatial inductive bias and relies on a fixed computation pattern across timesteps. We address this limitation by proposing \textbf{Mixture-of-Hierarchical Experts (MoH)}, a Mamba-based diffusion backbone that performs timestep-conditioned routing over architectural components. MoH dynamically selects representation levels by its hierarchical expert space, adapts feature transformations, and adjusts Mamba scan depth according to the denoising state, enabling flexible modeling of spatial structure and multi-scale dependencies. This design leads to substantial performance gains. On unconditional CelebA-HQ $256 \times 256$, MoH reduces FID from 14.27 to 7.99, and on MS-COCO, it improves FID from 41.80 to 20.00, significantly outperforming prior Mamba-based models while improving training efficiency. These results suggest that routing over architectural components can provide an effective mechanism for improving Mamba-based diffusion backbones.
BibTeX
@inproceedings{jung2026mixture,
  author = {Yejun Jung and Dongyun Kim and Jinsun Park},
  title = {{Mixture-of-Hierarchical Experts: Optimized Mamba Architecture for Vision Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=oaYSEpYT1C},
}
Figure