Mind the Gap: Minimizing Bubbles in Pipeline-Parallel LLM Serving
Whether accelerators are connected by PCIe or NVLink, serving a model that outgrows a tightly coupled accelerator group requires pipeline parallelism (PP), yet pipeline bubbles keep PP from turning its communication advantage into throughput. We target four types of bubbles, across stages, microbatches, memory, and the prefill/decode (P/D) handoff, and show that the levers serving engines already expose (layer partitioning, prefill chunk size, speculative draft length, request admission, and prefill microbatching) each move more than one bubble and interact, so tuning them in isolation leaves throughput unclaimed. We present Headway, which co-optimizes these levers: it selects the layer partition offline because repartitioning is computationally costly. It jointly schedules chunk size and draft length online under TTFT and TPOT guards and coordinates request admission and prefill microbatching in P/D-disaggregated serving. On replayed coding-agent sessions with two models, Headway improves token throughput over state-of-the-art pipeline-parallel serving systems by 17.5% on average (up to 32.6%) in co-located serving and by 19.2% in disaggregated serving, while reducing mean time between output tokens by 17.6% at comparable time-to-first-token latency.