Heterogeneous medical image data motivate domain-specialized diffusion experts, but expert specialization alone does not determine how their predictions should be combined during sampling. Learning a global router is particularly challenging when the server has limited, potentially unrepresentative images. We study two router-learning strategies for a fixed expert pool. Server-Only learns input- and timestep-dependent expert assignments from server images with component labels. Anchor-Delta (AD) uses the same images and frozen experts to obtain additional evidence from denoising losses. It distills targets that combine this evidence with the current router's assignments, while a proxy gate controls a subsequent refinement step. Component labels describe data origin; expert losses measure empirical prediction performance. We evaluate these distinct signals through routing analyses and paired medical image generation. An AD-trained router improves generation metrics over Server-Only in a heterogeneous four-domain setting, and a separate server-data study shows gains in held-out routing over a corrected-routing comparator. Additional paired evaluations show that the effect of inference-time evidence mixing varies across benchmarks. These findings establish server-data availability and expert performance as distinct considerations in learning routers for multi-domain diffusion models.
Figures & tables
Method
FID ↓
KID ×103↓
Server-Only
35.54±0.53
1.491±0.186
VQ-FedDiff, mixed-client
38.51±0.34
3.416±0.188
FedPer
38.99±0.33
3.206±0.025
FedBN
40.27±0.39
3.276±0.239
FedDDPM-style
45.61±1.60
4.514±0.540
Fixed- α AD ( α=0.05 )
34.19±0.92
1.349±0.140
TABLE I: MedMNIST2D paired generation ( t=180 ). Mean ± sample standard deviation over three training seeds; 1000 test targets and outputs per seed.
Method
FID ↓
KID ×103↓
Server-Only
56.99±0.37
9.48±0.18
VQ-FedDiff, inferred-client
108.82±1.93
27.83±0.79
FedPer
104.71±0.59
26.05±0.54
FedBN
95.51±0.82
21.57±0.17
FedDDPM-style
108.21±1.92
27.20±0.83
Fixed- α AD ( α=0.25 )
53.69±0.21
7.01±0.28
TABLE II: Medical-4 paired generation ( t=850 ). Mean ± sample standard deviation over three seeds, with 822 real references and 1000 outputs per seed. For AD, α is the router-training correction coefficient; sampling uses the trained router directly.
Fig. 1: Paired reference-assisted generation across Medical-4. Each method panel contains a 2×2 grid in the same order: ISIC skin (upper left), BreakHis histopathology (upper right), Messidor fundus (lower left), and MURA radiograph (lower right). Each domain uses the same selected test case across methods. AD uses its trained router directly during sampling, with α=0.25 specifying the training correction coefficient. The examples illustrate differences in tissue appearance, vascular structure, and bone contours rather than diagnostic validity. Aggregate generation quality is assessed in Table II .
Method
3D SSIM ↑
MS-SSIM3D ↑
PSNR (dB) ↑
MAE ↓
Server-Only
0.9231±0.0035
0.9588±0.0031
28.079±0.210
0.03352±0.00038
VQ-FedDiff, inferred-client
0.8980±0.0065
0.9256±0.0064
28.127±0.122
0.03605±0.00049
FedPer
0.7210±0.0022
0.7917±0.0028
23.302±0.077
0.08550±0.00018
FedBN
0.7198±0.0059
0.7903±0.0060
23.311±0.105
0.08544±0.00061
FedDDPM-style
0.8642±0.0337
0.9020±0.0215
26.401±1.572
0.04435±0.00859
Fixed- α AD ( α=0.25 )
0.9226±0.0038
0.9583±0.0035
28.108±0.252
0.03386±0.00045
TABLE III: MedMNIST3D paired volumetric generation ( t=100 , four variants per source). Mean ± sample standard deviation over three seeds; 384 source volumes per seed.
Method
Slice FID ↓
SSIM ↑ [95% CI]
Server-Only
6.716$\pm$0.124
0.5945[0.5906,0.5984]
VQ-FedDiff inferred-client
292.299$\pm$14.306
0.0893[0.0861,0.0932]
FedPer
11.327$\pm$1.219
0.5737[0.5650,0.5819]
FedBN
11.412$\pm$2.055
0.5759[0.5669,0.5853]
FedDDPM-style
74.200$\pm$25.838
0.3535[0.2180,0.5067]
Fixed- α AD ( α=0.05 )
6.388$\pm$0.140
0.6132[0.5960,0.6238]
TABLE IV: TotalSeg-CT4 paired generation ( t=160 ). FID: mean ± sample standard deviation across three seeds. SSIM: volume-level domain-macro mean [hierarchical 95% CI], derived from slice metrics. Values are displayed to two decimal places.
Fig. 2: Server-supervision ablation on Medical-4: corrected implicit routing (CI) versus proxy-gated AD. Higher global and proxy router scores are better. The dotted line indicates the three-of-four strong-domain criterion. Markers represent the seven evaluated ratios; connecting lines are visual guides, not additional observations. No uncertainty bands are inferred from these aggregate scores.
Fig. 3: MedMNIST2D training dynamics from complete checkpoint histories. Lines show three-seed means and shading shows one sample standard deviation after 1000-update window averaging within each seed. All vertical axes are logarithmic. Panels use different objectives: true-noise prediction, component classification, and teacher-prediction matching. Loss magnitudes are not comparable across objectives.
Fig. 4: Measured MedMNIST2D deployment costs. All models use the same NPU and sampling protocol. Bars show sample standard deviations across three seeds; latency uses the per-seed median of three timed batches. Both teacher variants retain all four experts in memory. These measurements quantify deployment cost, not equivalence in generation quality.
Diffusion language models (DLMs) enable parallel, non-autoregressive text generation, yet existing DLM mixture-of-experts (MoE) models inherit token-choice (TC) routing from autoregressive systems, leading to load imbalance and rigid computation allocation. We show that expert-choice (EC) routing is a better fit for DLMs: it provides deterministic load balancing by design, yielding higher throughput and faster convergence than TC. Building on the property that EC capacity is externally controllable, we introduce timestep-dependent expert capacity, which varies expert allocation according to the denoising step. We find that allocating more capacity to low-mask-ratio steps consistently achieves the best performance under matched FLOPs, and provide a mechanistic explanation: tokens in low-mask-ratio contexts exhibit an order-of-magnitude higher learning efficiency, so concentrating compute on these steps yields the largest marginal return. Finally, we show that existing pretrained TC DLMs can be retrofitted to EC by replacing only the router, achieving faster convergence and improved accuracy across diverse downstream tasks. Together, these results establish EC routing as a superior paradigm for DLM MoE models and demonstrate that computation in DLMs can be treated as an adaptive policy rather than a fixed architectural constant. Code is available at https://github.com/zhangshuibai/EC-DLM.
Shuibai Zhang, Caspian Zhuang, Chihan Cui +8
University of Wisconsin-Madison · Scitix · Cornell University +4
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.
Sparse Mixture-of-Experts (MoE) routers commonly use the same scores both to select experts and to weight their already-computed outputs. We study whether these two roles, dispatch and aggregation, should be coupled. On pretrained OLMoE-1B-7B, we keep selected Top-8 expert IDs, expert computation, and total selected router mass fixed and change only within-set aggregation. A structured oracle improves full-horizon cross-entropy by 0.0160 +/- 0.0039 across three seeds; the router's top-scored expert is the counterfactual-best vertex only 17.2% of the time, with router-utility Spearman 0.030. We therefore train Fixed-Dispatch Adaptive Aggregation (FDAA), a 301K-parameter post-compute head optimized directly with the language-modeling objective while freezing the backbone, router, and experts. On OLMoE, FDAA improves fresh WikiText-103 test by Delta CE = -0.1523 +/- 0.0031 across three seeds, and mixed-domain training gives robust gains on WikiText-103, C4, and held-out Penn Treebank under frozen confirmatory evaluation. We also replicate the fixed-dispatch audit on DeepSeek-V2-Lite, which uses Top-6 routed experts plus shared experts. Best-vertex headroom remains significant on WikiText and C4, while router Top1 identifies the best selected expert in only 12.5% and 16.7% of audited examples. In a one-seed mixed-domain replication, FDAA improves locked WikiText and PTB, while C4 is statistically neutral. These results support a cross-architecture distinction between expert selection and expert commitment.