Skip to content
AI.info

Research

E-MoE: Enhanced Mixture-of-Experts for Non-Factorized Diffusion Language Models

E-MoE: Enhanced Mixture-of-Experts for Non-Factorized Diffusion Language Models Overview Research area: Natural Language Processing — discrete/masked diffusion language models, mixture-of-experts arch

E-MoE: Enhanced Mixture-of-Experts for Non-Factorized Diffusion Language Models
arXiv
2609.37533
Published
2026-09-29
Authors
Arseny Ivanov, Alexander Kolesov, Alexander Korotin, Ivan Oseledets, Mikhail Goncharov

AI summary

E-MoE: Enhanced Mixture-of-Experts for Non-Factorized Diffusion Language Models

Overview

  • Research area: Natural Language Processing — discrete/masked diffusion language models, mixture-of-experts architectures, and variational training objectives.
  • Technical level: Advanced. The paper derives an evidence lower bound (ELBO) and a tractable KL term, and assumes familiarity with masked diffusion, autoregressive decoding, and variational inference.
  • Scope (1 sentence): The paper proposes E-MoE, a masked diffusion model whose reverse process is a mixture of factorized distributions conditioned on the discrete expert-routing decisions of a Mixture-of-Experts backbone, and evaluates it on synthetic 2-D densities, binarized MNIST, and LM1B.

What This Paper Is About

Masked diffusion models (MDMs) generate text by unmasking several tokens per denoising step, but their reverse process is factorized over positions, so tokens revealed in the same step are treated as conditionally independent — an error that grows exactly in the few-step regime where diffusion's speed advantage over autoregressive decoding matters most. A recent alternative introduces a continuous Gaussian latent trained as a variational autoencoder, but such approaches are prone to posterior collapse, where the latent is silently ignored. The goal of this paper is to obtain a non-factorized reverse process using a discrete shared latent that comes for free from the routing decisions of an MoE backbone, without adding an extra recognition network or increasing active parameters over the factorized baseline.

Key Contributions

  1. Method. The paper proposes Enhanced Mixture-of-Experts (E-MoE) to overcome the factorization error by reusing a mixture of experts as a mixture of factorized distributions: the per-token and per-layer routing decisions an MoE backbone already computes serve as the discrete shared latent, at no extra parameters and no extra inference cost (Section 3).
  2. Training objective. The authors derive the evidence lower bound (ELBO) for this mixture-based reverse process, together with a tractable bound on its latent KL that reduces to a per-layer and per-token quantity computed from the router itself (Section 3).
  3. Empirical results. On synthetic multi-modal data, binarized MNIST and LM1B, E-MoE improves few-step generation over both a factorized baseline and a continuous-latent one at matched sample entropy, and its latent remains in use throughout training without warmup schedules or auxiliary losses (Section 5).

Main Findings

  • Discrete time grid. The method moves from continuous time t ∈ [0, 1] used by MDLM and VADD to a discrete grid t_i = i/T, where T is the number of diffusion steps, and conditions the prior p_θ(z | x_{t_i}) on the data so it can be learned rather than fixed.
  • Upper bound on negative log-likelihood. Proposition 3.1 gives the upper bound on E_{p_data(x_0)}[−log p_θ(x_0)], which is used as the loss function, with the proof placed in Appendix A.3.
  • Route-matching KL. Because the prior and posterior share the same per-layer, per-token factorization, the KL between them becomes a sum of categorical KL divergences over all layers and positions, denoted KL_route, which aligns the expert chosen when the clean sample is available with the expert chosen from the corrupted sequence alone.
  • Training versus sampling cost. Training requires two forward passes per step (a posterior pass and a prior pass using the same router parameters); sampling uses only the prior pass, so one NFE requires one forward pass.
  • 2-D toy results. With n = 20,000 points per density discretized into V = 50 tokens per coordinate (L = 2), E-MoE reaches 94.4 validity at NFE = 1 on 8-modes versus 91.8 for VADD and 37.7 for MDLM. On Swiss-roll at NFE = 1, E-MoE reaches 90.3, below VADD's 93.8 but well above MDLM's 49.3. Values are averaged over 3 seeds.
  • Binarized MNIST BPD. E-MoE achieves the best test bits-per-dimension at 0.062, versus 0.064 for VADD and 0.077 for MDLM, with 2.49M parameters (VADD: 2.50M; MDLM: 2.07M). Images are padded to 32×32 with one binary token per pixel.
  • LM1B few-step generation. At NFE = 1, E-MoE reaches generative perplexity 643.8 versus 1270.8 for VADD and 1433.8 for MDLM; at NFE = 2, 383.7 versus 763.2 for VADD and 997.5 for MDLM, at sample entropies of 4.35 and 4.35 respectively (data entropy: 4.32).
  • Reported magnitude of the gain. The paper states that at NFE = 1 and 2, E-MoE lowers generative perplexity by 2–2.6 times relative to every baseline at the same sample entropy (4.34–4.35).
  • MAUVE at NFE = 2. E-MoE reaches 24.6% against 3.0% for MDLM and 3.8% for VADD.
  • Advantage shrinks with more steps. At NFE = 128, E-MoE records 126.3 generative perplexity, essentially matching MDLM's 126.3, while SEDD records 118.5 and VADD 118.4. The autoregressive reference is 67.97 at NFE = 128 with H = 4.32.
  • No posterior collapse by construction. The latent remains in use throughout training without warmup schedules or auxiliary losses, in contrast to the continuous-latent VADD, which needs a separate recognition network trained with a KL term against a fixed Gaussian prior.

Methodology in Plain English

Autoregressive language models write one token at a time, so a sequence of length L costs L forward passes. Masked diffusion models instead corrupt a sequence by masking tokens and then learn to reverse that corruption, which lets them unmask several positions at once and finish in T < L passes. The catch is that the reverse step treats each position independently, so sampling five tokens in one step can produce a combination of individually plausible tokens that never occurs together — the paper calls this the factorization error.

The standard fix is to introduce a shared hidden variable z that couples the positions: condition each position on z, then average (or sum) over z, and the result is no longer a product of independent marginals. Existing work (VADD) makes z a continuous Gaussian vector and trains a separate variational autoencoder to infer it, which adds parameters and can collapse so that the model learns to ignore z.

E-MoE's idea is that a Mixture-of-Experts layer already makes a hidden choice every time it runs: for each token at each layer, a router decides which expert processes it. The authors take those routing decisions as z. During training, two passes are run through the same network with shared router weights: a "clean pass" that sees both the noisy sequence and the true clean sequence (the posterior) and a "noisy pass" that sees only the noisy sequence (the prior). Training pulls these two routes toward agreement via the route-matching KL, while the experts supply the per-token predictions. Because the latent is discrete, the model uses a Gumbel-Softmax relaxation with a straight-through estimator and top-k expert selection. At sampling time only the noisy pass is needed, so inference costs the same as the factorized baseline. The resulting objective is the upper bound on the negative log-likelihood from Proposition 3.1, written out with the router as KL_route.

Why This Matters

Impact on research. The paper reframes the choice of latent variable for non-factorized diffusion: instead of adding a continuous latent plus a recognition network, it shows that a discrete latent already present inside an MoE backbone can serve as the shared variable, with a data-dependent learned prior instead of a fixed Gaussian. If this holds up, it removes the posterior-collapse failure mode and the extra training-time machinery from the continuous-latent line of work, and it gives the distillation literature a complementary direction — the related-work section notes that SDTT, DUO, DiMO and IDLM all require a pre-trained model, whereas E-MoE trains from scratch.

Real-world applications (not enumerated in the paper; these are implications of the method):

  • Low-latency text generation, where a model must emit a full sequence in very few network passes.
  • On-device or edge deployment, since the method is explicitly designed not to increase active parameters or inference cost over the factorized baseline.
  • Any setting where many tokens must be produced at once and coherence between simultaneously emitted tokens matters, such as long-form drafting or code completion.
  • Iterative refinement pipelines that need a small, fixed budget of refinement steps rather than a long sequential decode.

Industry relevance. The practical selling point is the cost table: E-MoE uses one forward pass per sampling step, the same as the factorized MDLM baseline, and does not grow active parameters. That means a serving stack built for masked diffusion needs no architectural or latency change to adopt it — only the training objective and the router reuse. The training cost does double to two forward passes per step, equivalent to VADD.

Future Directions

  • Diagnose the Swiss-roll result. On the thin 1-D manifold, VADD beats E-MoE at most NFEs (93.8 versus 90.3 at NFE = 1), while E-MoE wins on 8-modes. What property of the target distribution favors a discrete routing latent over a continuous one is not resolved.
  • Explain the crossover at large NFE. E-MoE's advantage shrinks as NFE grows and at NFE = 128 it matches MDLM (126.3) while trailing SEDD (118.5) and VADD (118.4). Whether this is inherent to discrete latents or an artifact of the training setup is left open.
  • Test scaling. All reported text experiments use the same "small" DiT backbone on LM1B at sequence length 128. Whether the routing latent stays informative at larger scale, longer sequences, and larger expert counts E and layer counts D is not reported.
  • Study router hyperparameters. The method introduces a Gumbel-Softmax temperature τ and a top-k selection over experts; the paper reports an ablation in Appendix C.3 but does not state its content in the main text, leaving the sensitivity of the route-matching term to these settings as an open question.

Target Audience

Researchers and engineers working on discrete diffusion language models, variational training objectives, and mixture-of-experts architectures will get the most from this paper. It is also relevant to practitioners who care about inference cost, since the central claim is a quality improvement at matched active parameters and matched number of forward passes per sampling step. Readers without a background in diffusion models or variational inference will find the Proposition 3.1 bound and the KL derivation in Section 3 difficult, and should start with Section 5 and Table 1, which summarizes the design choices against the MDLM and VADD baselines.

Authors’ abstract

Masked diffusion models (MDMs) generate sequences by progressively unmasking several tokens per denoising step, but their reverse process is typically factorized over positions, limiting sample quality in the few-step regime where diffusion's speed advantage over autoregressive decoding matters most. A recent line of work introduces a continuous Gaussian latent, trained as a variational autoencoder, to capture correlations across positions, but such approaches are prone to posterior collapse, where the latent is silently ignored. We propose Enhanced Mixture-of-Experts (E-MoE), which builds the reverse process as a mixture of factorized distributions over a discrete shared latent given by the expert-routing decisions of a Mixture-of-Experts (MoE) backbone, without increasing active parameters over the factorized baseline. Across synthetic multi-modal benchmarks, binarized MNIST, and LM1B, E-MoE improves few-step generation over factorized baselines.

Read the original paper