Nexus:Proactive Intra-GPU Disaggregation of Prefill and Decode in LLM Serving
Xiaoxiang Shi, Colin Cai, Junjia Du, Zhihao Jia
TL;DR
Nexus tackles latency-sensitive LLM serving by enabling proactive intra-engine disaggregation of prefill and decode within a single GPU. It introduces a lightweight latency cost model, a greedy SM-partitioning algorithm, hysteresis-based stability, and phase-specific schedulers to adapt resource allocation to dynamic workloads. Across diverse models and workloads, Nexus achieves up to 2.2x throughput and up to 20x lower TTFT, while also delivering significantly reduced TBT compared to baselines like vLLM and SGLang. The approach delivers the benefits of disaggregation without cross-GPU transfer costs, preserving high GPU utilization and robustness under varying traffic and prompt structures.
Abstract
Monolithic serving with chunked prefill improves GPU utilization by batching prefill and decode together, but suffers from fine-grained phase interference. Engine-level prefill-decode (PD) disaggregation avoids interference but incurs higher hardware and coordination overhead. Prior intra-GPU disaggregation approaches multiplex prefill and decode within a single GPU, using SLO-based tuning guided by heuristics from offline profiling or reactive feedback loops. However, these methods respond reactively to performance issues rather than anticipating them, limiting adaptability under dynamic workloads. We ask: can we achieve proactive intra-GPU disaggregation that adapts effectively to dynamic workloads? The key challenge lies in managing the conflicting resource demands of prefill and decode under varying conditions. We first show that GPU resources exhibit diminishing returns -- beyond a saturation point, more allocation yields minimal latency benefit. Second, we observe that memory bandwidth contention becomes a critical bottleneck. These insights motivate a design that dynamically partitions GPU resources across prefill and decode phases, while jointly considering compute capacity, memory footprint, and bandwidth contention. Evaluated on diverse LLMs and workloads, our system Nexus achieves up to 2.2x higher throughput, 20x lower TTFT, and 2.5x lower TBT than vLLM; outperforms SGLang by up to 2x; and matches or exceeds disaggregated vLLM.
