TL;DR
Running sparse Mixture-of-Experts (MoE) diffusion language models on consumer GPUs usually crawls to a halt because gigabytes of expert weights must be repeatedly streamed from system RAM across the PCIe bus at every denoising step. By noticing that consecutive denoising steps barely change token states or expert routing, the authors build a three-tier caching and prefetching system that skips redundant transfers. The result is a median 9.2× end-to-end speedup under a strict 12 GB VRAM budget—turning an agonizing I/O bottleneck into crisp local inference with zero loss in task accuracy.
What Problem Does This Paper Address?
Unlike standard autoregressive models that spit out text left-to-right one token at a time, Diffusion Language Models (DLMs) start with a completely masked sequence and iteratively refine all tokens in parallel over 32 to 64 "denoising" steps. Pairing DLMs with a Mixture-of-Experts (MoE) architecture—where each token only activates a tiny fraction of specialized sub-networks ("experts")—gives you massive model quality at a fraction of the compute cost.
Here is the catch: while compute is sparse, memory is not. A model like LLaDA2.1-mini only activates ~1.4B parameters per token, yet its full set of experts weighs ~32 GB. That will not fit on a 12 GB consumer GPU. Standard serving tools (built for left-to-right generation) treat every denoising step as an independent event, synchronously hauling expert weights from CPU RAM over the PCIe cable dozens of times per prompt. Profiling reveals that 94–96% of generation time is spent simply waiting on PCIe transfers rather than doing math.
Methods
Iterative denoising has a secret weapon that left-to-right decoding lacks: temporal locality. Between step $t$ and step $t+1$, a token's internal hidden state barely budges (0.97 cosine similarity), and each layer routes to almost the exact same set of experts (94–97% overlap).
To exploit this, the authors replace naive weight-loading with a unified three-tier forward pass:
- Tier 1: Per-Expert Output Caching. If a token's input hidden state has >0.99 cosine similarity to the previous step and routes to the same experts ("Category A"), the system skips the experts altogether. It simply grabs the cached outputs from the last step and re-weights them—zero compute, zero PCIe traffic.
- Tier 2: Temporal Weight Prefetching. For tokens that actually need computation, the system uses the previous step's routing at layer $\ell$ as a parameter-free prediction for the current step. Independent CUDA streams stage these weights 3 layers ahead into a 5-buffer GPU pool, executing them via a fused Triton kernel.
- Tier 3: CPU SwiGLU Fallback. What if a token unexpectedly routes to an uncached expert? Pulling a 6.3 MB expert weight onto the GPU would stall the pipeline. Instead, the system flips the transfer direction: it ships the tiny ~32 KB token activation tile to the CPU, computes the expert on pinned host RAM, and sends the result back.
Datasets
No training was performed, as this is a pure inference-system paper. To evaluate generalization and accuracy preservation, the authors tested across seven established benchmarks spanning four domains (no new datasets were introduced):
- Code Generation: HumanEval+ and LiveCodeBench (easy+medium)
- Mathematical Reasoning: GSM8K
- General Knowledge: ARC-C, MMLU (57 subjects), and TriviaQA
- Long Compositional Reasoning: BIG-Bench Hard (BBH, 23 subtasks)
Key Insights and Ideas
- It's about bytes moved, not hiding latency: Increasing prefetch lookahead beyond 3 layers actually slows down generation by 19–36%. Why? Because the PCIe Gen4 bus is already completely saturated at ~24 GB/s. Speedups come from slashing total data volume (via Tier 1 output caching), not cleverer latency hiding.
- Simpler predictors win: Augmenting the routing predictor with moving averages or deeper step histories slightly improves cache hit rates (by 1–4 percentage points), but bloats the set of prefetched weights—clogging the saturated PCIe bus and slowing down wall-clock steps by up to 64%.
- Prose caches better than code: Output cache reuse ranges from 64% on HumanEval+ up to 88% on MMLU and GSM8K, even at identical generation lengths. Free-form prose and chain-of-thought reasoning evolve smoothly across denoising steps, whereas structured code and short trivia answers snap into place in abrupt jumps.
Key Results
Tested across two models (LLaDA2.0-mini and LLaDA2.1-mini) and two GPU architectures (NVIDIA L40S and A6000) capped at 12 GB VRAM, the combined system achieves a 5.0× to 14.4× end-to-end speedup over HuggingFace Accelerate (median 9.2×, mean 9.3×).
Breaking down the gains shows how well the tiers complement each other: prefetching + CPU fallback alone delivers a 4.0–6.7× per-step speedup, while layering on output caching eliminates 64–88% of token evaluations, pushing speedups past 8–10×. Crucially, accuracy stays completely intact—within 0.3 to 1.3 percentage points on GSM8K, falling squarely inside natural floating-point run-to-run variance.
Limitations and Future Work
- Single-stream only: All experiments serve a batch size of 1 on a single GPU. Scaling to batched production or multi-GPU tensor parallelism will require tracking independent routing histories and managing separate cache pools per sequence.
- Memory-pressure dependent: If you have an 80 GB GPU where all 32 GB of experts comfortably fit in VRAM, prefetching and CPU fallbacks never trigger—only the Tier 1 output cache helps.
- Architecture scope: Both tested models share the exact same LLaDA sparse-MoE architecture. Testing structurally distinct MoE diffusion models (like SDAR) or conversational/tool-use workloads remains open for future work.
Summary updated