Manuscript Offprint

arXiv:2610.25742

Functional Cross-layer Experts Routing for One-step Diffusion Distillation

Zile Huang, Ser-nam Lim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

One-step distillation compresses diffusion trajectories into a single forward evaluation, yet how internal capacity should be structured within that remaining pass remains largely unexplored. In this setting, identical parameters must simultaneously preserve general generative priors and resolve prompt-specific details without iterative refinement. We formalize this challenge as functional allocation. Our analysis reveals that decoupling representations is beneficial only when expert interference outweighs shared transfer, favoring an always-active shared backbone augmented with conditionally routed residuals over standard isolated MoE architectures. We propose DeMoE, which pairs a persistent shared expert with conditionally routed expert slices across image FFNs, trained under a one-step distribution-matching objective with executed-route supervision. On one-step FLUX.2-4B generation, DeMoE achieves a GenEval score of 0.8220 while activating only 80.5% of the image-FFN width—substantially outperforming dense one-step baselines, matching the 50-step teacher overall, and surpassing it on complex composition and counting. Across COCO-10K, DeMoE establishes state-of-the-art fidelity and diversity among single-step models, demonstrating that structured internal computation reallocation provides a superior compression paradigm for diffusion models. Code is available at https://github.com/toffeecat/demoe-ttt-router.

1 Introduction

Diffusion models (Ho et al., 2020; Song et al., 2020; Dhariwal and Nichol, 2021) have emerged as a dominant paradigm for generative modeling, advancing from discrete-time formulations to continuous-time score SDEs and deterministic ODE sampling (Song et al., 2021). While high-resolution synthesis is substantially facilitated by operating on compressed latent spaces (Rombach et al., 2022) and rectifying trajectories via flow matching (Lipman et al., 2022; Liu et al., 2022), iterative generation remains fundamentally constrained by inference latency. Consequently, one-step generation tasks a single forward pass with what iterative samplers previously accomplished over dozens of denoiser evaluations.

Despite this radical compression, that single pass remains a deep network: it must parse the prompt, compose objects, bind attributes, and render fine details before outputting an image, all without the opportunity to revisit or refine its predictions across consecutive diffusion steps. Compressing the sampling trajectory thus exposes a fundamental yet overlooked question: how should the computation preserved within this single pass be organized? Figure 2 (a) illustrates the structural differences among the three paradigms: the multi-step teacher evaluates its entire architecture iteratively, a dense one-step student evaluates it once, and DeMoE preserves the single forward pass while making internal computational pathways conditionally selectable.

Distribution Matching Distillation (DMD) serves as our starting point because it explicitly defines the learning objective for one-step students: it perturbs the generated endpoint and matches the student marginal to the teacher marginal at that perturbation, rather than forcing the student to reconstruct intermediate trajectory states (Yin et al., 2024b,a). However, optimizing a distribution-matching objective only constrains the terminal mapping, leaving the student's internal capacity and execution pathways fundamentally flexible. In parallel, Transformers have increasingly replaced traditional convolutional U-Nets as scalable generative backbones (Peebles and Xie, 2023; Ma et al., 2024; Wang et al., 2025), wherein representation alignment strategies further accelerate training convergence (Yu et al., 2025). While sparse mixture-of-experts (MoE) and shared-expert paradigms already enable conditional execution (Shazeer et al., 2017; Fedus et al., 2022; Dai et al., 2024), and diffusion transformers have dynamically routed tokens, denoising tasks, or generation phases (Fei et al., 2024; Sun et al., 2024; Park et al., 2024; Fang et al., 2024; Park et al., 2023; Wang et al., 2024).

Figure

Figure 1: Alternative ways to compress generative computation to one neural function evaluation. Few-step DMD retains an explicit sequence of state-dependent generator evaluations, whereas the remaining paradigms target one-step inference but introduce different forms of training structure. One-step DMD removes the explicit sampling trajectory and matches the target distribution directly. Progressive Distillation compresses multiple teacher transitions into one student transition; Consistency Distillation transfers cross-time endpoint consistency; Shortcut Models construct long transitions by composing shorter stop-gradient shortcuts; and MeanFlow directly parameterizes the average velocity over a finite interval. Thus, these methods differ primarily in how the one-step mapping is supervised, even when their deployed inference graph contains only one network evaluation. Red denotes the trainable one-step mapping, blue denotes frozen/EMA/stop-gradient computation, gray denotes teacher or data quantities, and dashed arrows denote losses or target construction.

et al., 2025), our focus is more targeted: once a one-step student’s forward pass is partitioned into discrete pathways, which capabilities must remain shared, which variations warrant conditional branching, and what runtime signals should steer routing?

Simply partitioning a feed-forward network (FFN) does not guarantee effective conditional computation; the bank must maintain specialized responses that benefit the current input, and the controller must reliably dispatch them. We therefore decouple intrinsic capability from runtime allocation. Our controlled studies confirm that when all experts are simultaneously active, the bank does not collapse into redundant replicates; furthermore, under a fixed computational budget, selecting alternative pathways yields distinct generative behaviors.

A local interaction analysis provides the foundational design rule for our proposed architecture. When distinct input groups induce conflicting first-order updates, isolating their pathways eliminates gradient interference. However, complete isolation simultaneously sacrifices beneficial positive transfer and dilutes group-specific gradient volume (Equation (4)). Rather than forcing experts to diverge maximally, this trade-off suggests that universally shared primitives should remain centralized, while conflicting or specialized updates should be cast as selectable residuals.

DeMoE operationalizes this principle within selected image FFNs. Each modified layer splits the image-token FFN into an invariant shared slice (which executes unconditionally) and seven routed slices (which are selected dynamically). A controller conditions on the current hidden state and text embedding to score candidate responses prior to execution, dispatching a hard top-k support alongside its execution amplitudes. Post-execution, the auxiliary target is backpropagated strictly through the executed pathways, ensuring the router is supervised directly on its realized actions rather than counterfactual proposals. Section 3 specifies the structural design, allocation strategy, and executed-response supervision. Our primary evaluation focuses on the 7E4A1S configuration with a frozen shared slice.

On one-step FLUX.2-4B generation, all-active partitions preserve the dense parent's GenEval score within standard measurement intervals, establishing that function preservation holds across structural slicing. Under conditioned execution, our deployed configuration (7E4A1S) achieves an overall GenEval score of 0.8220 using only 80.5% of the dense image-FFN width. This performance significantly surpasses both the 1-NFE dense DMD2 baseline (0.7865) and the progressive continuation (0.7771), while performing on par with the 50-step dense teacher (0.8245) and overtaking it on fine-grained counting and multi-object composition. Across COCO-10K (Lin et al., 2015), it establishes the state of the art among 1-NFE models across both fidelity (FID 14.85, patch-FID 15.92 (Parmar et al., 2022)) and diversity metrics (Section 4). In summary, our contributions are threefold: (i) formulating functional allocation as a distinct post-compression design challenge; (ii) deriving the local separation trade-off that justifies combining shared backbones with routed residuals (Sections 2 and 3); and (iii) introducing DeMoE, which couples conditional execution with action-aligned supervision for single-step diffusion (Section 3).

References (94)