TL;DR
Diffusion Language Models (dLLMs) offer massive single-request generation speedups but break traditional autoregressive serving stacks due to their heavy block-sized decodes and recurring prefills. Sangam bridges this gap with a novel deficit token-budget scheduler and a hybrid serving architecture, delivering up to 3× throughput improvements and significantly lower latencies under concurrent workloads.
What Problem Does This Paper Address?
Traditional Large Language Models (LLMs) generate text autoregressively—one token at a time, from left to right. In contrast, Diffusion Language Models (dLLMs) generate text by iteratively denoising a completely masked response region, allowing them to predict and commit multiple tokens in parallel during a single forward pass.
While dLLMs excel at single-request speed, serving them efficiently to multiple concurrent users is incredibly challenging. Traditional serving systems (like vLLM or Orca) rely on two core assumptions that fail for dLLMs:
- Incremental Caching: Autoregressive models use causal attention, meaning past Key-Value (KV) caches remain stable. dLLMs use bidirectional attention, meaning a change to one token alters the context for all others, making exact KV caching impossible.
- Lightweight Decodes: Standard LLM decode steps process a single token and are memory-bound. To maintain accuracy, dLLM acceleration techniques use approximate caching, which forces requests into a cyclic pattern of heavy "block-sized" decodes and recurring "prefill" cache refreshes.
Because dLLM prefills cannot be split into smaller pieces (chunked) due to bidirectional attention, mixing these heavy recurring prefills with ongoing decodes causes severe latency spikes and stalls.
Methods
The authors introduce Sangam, a specialized serving system designed to handle the unique execution mechanics of cached dLLM inference through two primary mechanisms:
- Deficit Token-Budget Scheduler: Since dLLM prefills are indivisible and cannot be chunked spatially, Sangam introduces temporal deferral. Each iteration is assigned a fixed token budget. The scheduler prioritizes active, in-flight decodes first. If a waiting prefill is too large to fit into the remaining budget, it is deferred to a later iteration, and the unused budget is carried forward as a "deficit." Once enough budget accumulates, the entire prefill is executed. This achieves amortized, stall-free scheduling.
- Hybrid Serving Strategy: To handle varying workloads, Sangam supports a hybrid configuration that combines dedicated prefill GPUs with colocated GPUs. When the prefill pool becomes a bottleneck, the central scheduler overflows prefills onto decode workers. Crucially, these decode workers run the deficit token-budget scheduler to protect their active decodes from being overwhelmed by the incoming prefill traffic.
Datasets
Sangam was evaluated using two open-source dLLMs (LLaDA-8B-Instruct and Dream-7B-Instruct) across two distinct trace-driven workloads:
- ShareGPT Chat: A dataset containing real-world user conversations with LLMs, representing a decode-heavy workload with shorter prompts.
- arXiv Summarization: A dataset consisting of research paper summarization tasks, representing a prefill-heavy workload characterized by very long input prompts.
Key Insights and Ideas
- The "Big Decode" Saturation: Unlike autoregressive decodes that scale gracefully to large batch sizes, a single dLLM decode step processes an entire block of tokens (typically 32). This means dLLM decodes behave more like small AR prefills, saturating GPU compute and memory bandwidth at very low batch sizes.
- Temporal Over Spatial Chunking: Because bidirectional attention requires looking at the entire prompt-plus-response sequence at once, spatial chunking is fundamentally broken. Sangam's insight is that delaying a prefill across time steps (temporal chunking) is the only viable way to bound prefill-decode interference.
- Workload-Topology Alignment: There is no single best architecture for dLLM serving. Colocated serving is optimal for decode-heavy workloads (like ShareGPT) because it maximizes hardware utilization across all GPUs. Hybrid serving is superior for prefill-heavy workloads (like arXiv) because it isolates massive prompt processing to a dedicated pool while gracefully handling overflow.
Key Results
- Throughput Gains: Sangam sustains 2.5× to 3× higher throughput compared to an optimized, unbatched baseline of Fast-dLLM at comparable latencies.
- Decode-Heavy Workloads: On the ShareGPT trace using LLaDA-8B, colocated serving cuts mean latency by 9–20% compared to hybrid execution.
- Prefill-Heavy Workloads: On the arXiv trace using Dream-7B, hybrid execution cuts mean latency by 8–20% compared to purely colocated execution by successfully mitigating prefill queuing delays.
Limitations and Future Work
- KV Migration Optimizations: While intra-node KV cache transfers between prefill and decode workers were shown to have negligible overhead in this setup, the current implementation does not utilize advanced techniques like layerwise KV streaming or transfer-decode overlapping, which would be necessary for inter-node scaling.
- Static Block Sizes: The system relies on fixed block sizes for approximate caching. Exploring dynamic block sizes that adapt based on model confidence or sequence complexity remains an open direction for future work.
Summary updated