Epoch: Compiling Diffusion Blocks for Sparse MoE Serving

Jianian Zhu, Hang Wu, Yinghui Li, Haojie Wang, Ruixuan Li, Jidong ZhaiarXiv 2026

TL;DR

Standard LLM serving systems are optimized for autoregressive generation (predicting one token at a time), making them highly inefficient for Diffusion Language Models (dLLMs) that repeatedly refine blocks of tokens. This paper introduces Epoch, a serving system that treats the entire diffusion block as a compilation unit to eliminate massive computational and communication redundancies in sparse Mixture-of-Experts (MoE) dLLMs. By caching stable block-level structures and only processing "live" token updates, Epoch achieves up to a 2.7× end-to-end speedup and significantly reduces memory overhead without sacrificing text quality.

What Problem Does This Paper Address?

Most modern LLM serving infrastructures (like vLLM or SGLang) assume an autoregressive decoding loop where a request grows by exactly one token per forward pass. Diffusion language models (dLLMs), however, operate differently: they initialize a fixed-size block of token positions (often using MASK tokens) and repeatedly run full transformer forward passes over the same positions to iteratively denoise and refine the text.

Autoregressive serving vs. Block diffusion serving

When dLLMs are paired with sparse Mixture-of-Experts (MoE) backbones, existing forward-scoped runtimes introduce massive inefficiencies. Every single iteration, the runtime recomputes routing choices, executes expert kernels, and triggers heavy all-to-all communication collectives for every single token position—even for tokens that have already been confidently decoded and finalized. As a result, the MoE path heavily dominates dLLM inference latency, accounting for up to 77% of execution time at larger batch sizes.

MoE latency breakdown in an optimized dense baseline

Methods

Epoch addresses this by splitting execution into two distinct timelines: the block clock (structures that remain stable across a block's refinement iterations) and the iteration clock (values that change every forward pass). At the start of a block, Epoch compiles a lightweight Block Plan that caches stable structures, refreshing only the specific values on the iteration clock that affect live decoding decisions.

Epoch implements this plan across three core components:

  1. Expert Atlas: Instead of dynamically evaluating all experts every iteration, it builds a bounded coverage plan of active experts for the block. This leverages the insight that expert routing is highly concentrated and stable across iterations within the same block.
  2. Liveness-Shard Parallelism: In dLLMs, finalized ("decoded") tokens cannot simply be dropped because they still participate in bidirectional attention. However, their MoE outputs change very slowly. Epoch tracks a per-iteration liveness mask, routing only live or newly decoded tokens through fresh MoE expert computation, while stable decoded tokens read from a bounded-age cache.
  3. FreshLane Dispatch: To prevent communication from becoming a bottleneck, Epoch compacts the token-expert worklist before dispatch. It carries only the fresh rows through expert-parallel communication and kernels, and then seamlessly merges them back with the cached decoded outputs at the layer boundary.

Datasets

The authors evaluated Epoch using three open-weight block-diffusion MoE models spanning an order of magnitude in size: LLaDA-MoE (7B), LLaDA2.0-mini (16B), and LLaDA2.0-Flash (100B).

Performance and quality were tested across four standard benchmarks:

  • GSM8K: Grade-school math problems.
  • HumanEval: Python code synthesis.
  • MGSM: Multilingual grade-school math.
  • MT-Bench: Open-ended multi-turn dialogue.

Key Insights and Ideas

  • The Two-Clock Realization: The foundational "aha moment" is that treating every refinement step in a diffusion block as an isolated, independent forward pass wastes structural information. The routing graph and token states change slowly enough to be planned and amortized at the block level.
  • Decoded Tokens are "Dead but Alive": Once a token's identity is fixed, its logits are no longer needed by the decoder (making them "dead" to the output layer), but its hidden states still influence other tokens via bidirectional attention (keeping them "alive"). Epoch safely approximates these stable hidden states using a bounded-age cache.
  • Sparsity Must Cross Dense Boundaries: Simply skipping expert kernel execution for decoded tokens isn't enough. If the system still performs dense all-gathers or reduce-scatters across GPUs, communication overhead wipes out any computational gains. The payload must be compacted end-to-end.

Key Results

  • End-to-End Speedups: Compared to strong baselines (like dInfer and SGLang), Epoch delivers a 1.1–1.3× speedup at batch size 128, a 1.3–1.7× speedup at batch size 256, and up to a 1.7–2.7× speedup at batch size 512.
  • High-Batch Feasibility: At a batch size of 512, multiple dense or weakly cached baselines fail due to Out-Of-Memory (OOM) errors because they materialize dense MoE activations. Epoch remains completely stable and feasible by keeping the active payload compact.
  • Quality Preservation: By setting a conservative cache refresh period ($M=5$), Epoch achieves these speedups while remaining firmly on the same task-accuracy plateau as the full, exact dense reference model.
Cache quality degradation as staleness grows

Limitations and Future Work

  • Bounded-Age Cache Sensitivity: The system relies on a hyperparameter ($M$) for the cache refresh rate. If $M$ is set too high, context drift from bidirectional attention can cause the cached outputs to cross the decoder's decision margin, degrading model accuracy.
  • Architecture Specificity: Epoch’s optimizations are deeply tied to the unique properties of block-diffusion models (bidirectional attention, iterative refinement, and monotonic token finalization). These techniques do not map directly back to standard autoregressive LLMs.
  • Future Directions: The authors suggest exploring adaptive refresh rates that dynamically adjust based on the model's confidence or convergence rate during denoising.

Summary updated

BibTeX
@misc{zhu2026epoch,
  author = {Jianian Zhu and Hang Wu and Yinghui Li and Haojie Wang and Ruixuan Li and Jidong Zhai},
  title = {{Epoch: Compiling Diffusion Blocks for Sparse MoE Serving}},
  year = {2026},
  eprint = {2609.09748},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.09748},
}
Figure