TL;DR
DWISE is a new scheduling engine designed specifically for Diffusion Large Language Models (dLLMs), which generate text through iterative parallel denoising rather than token-by-token. By predicting denoising workloads from model hidden states and mixing prefill and decoding tasks in the same batch, DWISE reduces average end-to-end latency by 5.4× (and up to 14.9×) compared to state-of-the-art serving frameworks like SGLang.
What Problem Does This Paper Address?
Most current LLM serving systems are optimized for Autoregressive (AR) models, which generate one token at a time. These systems typically use "prefill priority," where processing a new user's prompt takes precedence over generating text for existing requests.
However, Diffusion LLMs (dLLMs) operate differently: they denoise entire blocks of tokens in parallel over multiple rounds. The authors identify two major inefficiencies when applying AR-style scheduling to dLLMs:
- Workload Uncertainty: The number of denoising rounds a block needs is highly variable and unknown when a request arrives, leading to "head-of-line blocking" where short requests get stuck behind long-running ones.
- Resource Waste: In dLLMs, both prefill (processing the prompt) and decoding (denoising) happen at the same block-level granularity. Prefill-priority scheduling creates rounds that only process a few prompt blocks, leaving the rest of the GPU batch capacity idle while waiting requests sit in the queue.
Methods
DWISE introduces a Denoising Workload-Informed Scheduling Engine built on three key pillars:
- Round-Based Workload Accounting: DWISE treats one prefill block and one denoising round as equal units of work. It calculates a request's remaining work as the sum of unprocessed prefill blocks and estimated remaining denoising rounds.
- Two-Stage Workload Prediction:
- At Admission: A lightweight LightGBM regressor estimates the total denoising rounds based on simple prompt features (word count, etc.).
- After Round 1: DWISE refines this estimate using a small MLP that looks at the model's own hidden states from the first denoising round. As shown in Figure 1, these hidden states are much better predictors of total work than the prompt alone.
- Preemptive Mixed-Phase Batching: Unlike AR schedulers that separate prefill and decoding, DWISE allows them to share the same batch. It uses a Shortest-Remaining-Processing-Time (SRPT) policy to fill every GPU slot with the requests that have the least work left, regardless of whether they are in the prefill or denoising phase.
Datasets
The authors evaluated DWISE using a diverse workload of 4,096 requests, with a separate 2,048-request set for training the predictors. The mix included:
- Open-ended generation: ShareGPT, MBPP (coding), HumanEval (coding), IFEval (instruction following).
- Single-answer tasks: MATH, GSM8K, MGSM (multilingual math), MMLU-Pro, ARC-C (science questions).
- Long-context: A synthetic "Multi-needle" retrieval task with ~10K token prompts.
Key Insights and Ideas
- The "Hidden" Signal: The most important insight is that a dLLM's internal state after just one round of denoising reveals how "hard" it is working to resolve the text. This allows for much more accurate scheduling than just looking at the input prompt.
- Granularity Alignment: Because dLLMs process both prompts and outputs in blocks, the traditional "prefill vs. decode" wall is artificial. Breaking this wall and mixing phases (as illustrated in the toy example in Figure 4) is the primary driver of throughput gains.
- Heterogeneity is an Opportunity: Denoising workloads vary by over 100× across different requests (Figure 2). DWISE exploits this variance by prioritizing the "sprints" (short requests) to clear the queue faster, which dramatically lowers average wait times.
Key Results
DWISE was tested on five models across three dLLM families (LLaDA, SDAR, and DiffusionGemma).
- Latency: Reduced mean end-to-end latency by 5.4× on average. On the SDAR-8B model, the reduction was as high as 14.9×.
- Throughput: Increased throughput by up to 2.2× for LLaDA models.
- Tail Latency: Improved p99 latency by 1.9–2.3×, proving that the system doesn't just help the average case but also stabilizes the worst-case delays.
- Accuracy: All performance gains were achieved while maintaining task accuracy within one percentage point of the baseline.
Limitations and Future Work
- Architecture Specifics: The benefits of mixed-phase batching are lower for models like DiffusionGemma, where prompts are encoded in a separate, incompatible pass.
- Prediction Overhead: While the current predictors are very lightweight (~2% of round time), scaling to even larger models or more frequent refinements might require further optimization of the GPU-side prediction path.
- Future Directions: The authors suggest that future dLLM serving should move entirely away from AR-inherited policies and explore scheduling that is natively "block-aware" from the ground up.
Summary updated