TL;DR
Optimus is a novel serving system for Diffusion Large Language Models (DLLMs) that dynamically adjusts decoding granularity based on real-time GPU load. By balancing hardware utilization and token efficiency without requiring model retraining, it achieves up to a 6.1× throughput improvement over traditional autoregressive decoding and significantly boosts serving capacity under strict latency constraints.
What Problem Does This Paper Address?
Standard autoregressive (AR) LLM decoding generates text token-by-token. This strict sequential execution makes it highly memory-bound, leaving powerful modern GPUs heavily underutilized—often dropping below 1% utilization for small batch sizes.
Diffusion LLMs (DLLMs) have emerged to break this bottleneck by predicting and refining entire blocks of tokens simultaneously (e.g., 32 tokens at a time), drastically increasing intra-request parallelism. However, fixed block sizes introduce a major dilemma: large blocks exploit idle GPU resources beautifully under low system loads, but under high loads, they saturate the hardware early and waste massive amounts of compute on redundant token calculations. Currently, no single fixed block size can handle the dynamic, unpredictable workloads of real-world serving environments.
Methods
The authors introduce Optimus, a serving system that treats decoding granularity as a dynamic runtime control variable to follow a "saturation-aware frontier." It consists of two primary pillars:
- Streaming Chunked Decoding: Rather than training multiple separate models for different block sizes (which is memory-prohibitive), Optimus takes a single large-block model and breaks its execution down into fine-grained "chunks" at runtime. It eliminates prefix dependencies via intra-block Key-Value (KV) caching and reduces suffix dependencies by dynamically resizing the decoding window. It then dynamically reorganizes these chunks step-wise to approximate the original model's generation order and preserve correctness.
- Saturation-Aware Elastic Scheduling: A closed-loop control framework that continuously senses GPU utilization and token acceptance rates. Using an offline-profiled piecewise linear model for GPU latency and an online estimator for token utility, the scheduler solves an optimization problem at each step to select the ideal chunk size that keeps the GPU right at its saturation sweet spot.
Additionally, the system features a customized Triton-based paged-attention kernel designed to efficiently support variable-length query tokens and chunk-level KV cache mapping.
Datasets
The system was evaluated across a diverse suite of standard datasets and benchmarks:
- Serving Traces: ShareGPT and LMSYS-Chat-1M for realistic conversational workloads, and LongBench for long-context generation.
- Downstream Benchmarks (Accuracy Evaluation): GSM8K (mathematical reasoning), HumanEval and MBPP (code generation), and IFEval (instruction-following).
Key Insights and Ideas
- The Algorithm-System Trade-off: There is an inherent tension between GPU utilization (maximized by large blocks that expose parallelism) and token utilization (the percentage of computed tokens actually committed). AR decoding has 100% token utilization but poor GPU utilization; large-block diffusion has the opposite problem.
- Decoupling via Chunking: You do not need to retrain a model to change its decoding granularity. A large-block model can be safely executed in smaller chunks by leveraging prefix caching and suffix reduction without altering the underlying weights.
- Dynamic Saturation Tracking: Under low load, the system should use large chunks to exploit idle hardware capacity. Under high load, it should shrink chunk sizes to act more like AR decoding, eliminating redundant computation and preventing queuing delays.
Key Results
- Throughput Scaling: Optimus achieves a geometric mean throughput improvement of 2.07× (up to 6.08×) over autoregressive baselines (
LMDeploy-AR) and 1.31× (up to 4.25×) over fixed-block diffusion (LMDeploy-BD32). - End-to-End Serving Capacity: Under realistic Service Level Objectives (SLO) constraints (e.g., a 50ms time-per-output-token limit), Optimus improves serving capacity by up to 3.5× over AR, 2.0× over fixed-block diffusion, and 11.8× over SGLang's DLLM implementation.
- Accuracy Preservation: The chunked execution preserves model accuracy across all benchmarks, occasionally even slightly outperforming the fixed-block baseline due to its more localized, AR-like decoding window.
Limitations and Future Work
- Out-Block Streaming (OBS) Trade-off: The authors experimented with an aggressive variant called Out-Block Streaming, which allows streaming across block boundaries to further boost throughput under low-load conditions. However, this violates the block-wise dependencies assumed during training, leading to minor accuracy degradation.
- Future Work: The authors note that future diffusion model architectures could be explicitly co-designed with system constraints in mind, training models to be inherently robust to elastic chunking and cross-block streaming structures.
Summary updated