Manuscript Offprint

arXiv:2610.40292

DolphinRouting: Cluster-Level Binary Routing for Disaggregated LLM Inference Serving

Yishuo Yuan, Shaoyu Yang, Chunrong Fang

ABSTRACT

Prefill-decode (PD) disaggregation isolates the two phases of large language model serving, but request-level path selection must account for prefill work, cache reuse, and decode demand. We present DolphinRouting, which learns this choice from end-to-end SLO feedback under a given P/D resource allocation. Requests are clustered by raw prompt length, cache-adjusted input lengths on both worker pools, and output-length information. Offline policy search learns one binary action per cluster. Online feature extraction, cluster assignment, and table lookup select local or remote prefill. We evaluate DolphinRouting on a real PD-disaggregated cluster using three public benchmarks, a mixed workload, and real data. Across the mixed workload and real data, DolphinRouting with k-means reduces P90 TTFT by 5.7–7.9% and P90 TPOT by 2.6–10.1% relative to Dynamo.

Figure

Figure 1. Trade-off between PD aggregation and disaggregation under different TTFT and TPOT constraints.

1 INTRODUCTION

Large language model (LLM) serving has become a dominant workload in modern datacenters, and its cost is increasingly dominated by how efficiently the underlying GPUs are utilized (Yu et al., 2022; Kwon et al., 2023; Agrawal et al., 2024). A request in an LLM service is processed in two phases. The prefill phase reads the entire prompt in one compute-saturating pass and produces the first token, and its latency is bounded by the time-to-first-token (TTFT). The decode phase then emits output tokens one at a time while the KV cache grows in GPU memory, and its latency is bounded by the time-per-output-token (TPOT). Since prefill is compute-bound and decode is memory-bound, colocating them on the same GPU causes mutual interference (Agrawal et al., 2024; Patel et al., 2024).

This observation has motivated prefill-decode (PD) disaggregation, which places the two phases on separate worker pools and transfers the KV cache between them (Zhong et al., 2024; Patel et al., 2024; Qin et al., 2026). These systems address phase placement, resource allocation, and cache management. We study the complementary question of choosing local or remote prefill for each request under a given P/D allocation.

TaiChi’s simulated ArXiv workload at 12 requests/s quantifies the trade-off illustrated in Figure 1 (Wang et al., 2025). With TTFT/TPOT targets of 5 s/250 ms, aggregation and disaggregation achieve SLO attainment rates of 97% and 42%, respectively. With targets of 16 s/60 ms, these rates become 7% and 98%. At 6 s/100 ms, they are 16% and 50%. Aggregation allows all instances to process prefill, but prefill and decode share compute resources. Disaggregation isolates the two phases while assigning only a subset of instances to prefill. These results motivate request-level path selection based on prefill cost, cache reuse, and decode demand.

An arriving request can either run both phases on a decode worker or run prefill on a prefill worker followed by decode on a decode worker. NVIDIA Dynamo exposes this choice through configurable rules based on effective input length, the effective-to-raw input-length ratio, and prefill load (NVIDIA, 2026). Our evaluated baseline uses the

Nanjing University, Nanjing, China.

Correspondence to: Chunrong Fang

fangchunrong@nju.edu.cn.

length-based rule described in Section 4.4. We investigate learning cluster-level routing boundaries from measured SLO feedback using cache information from both worker pools and output-length information.

To address this, we introduce DolphinRouting, which learns cluster-level binary routing decisions from SLO feedback. We group requests with similar input lengths, output lengths, and cache-reuse patterns into K clusters offline and learn one binary decision per cluster. At runtime, an incoming request is assigned to its cluster, and the corresponding decision determines whether it follows the aggregated or disaggregated path. This path selection uses feature extraction, cluster assignment, and table lookup, avoiding an additional per-request cost-model scoring step. Instance-level scheduling and execution remain with the serving backend. We evaluate DolphinRouting with two prefill/decode allocations on the test cluster, learning a separate decision table for each allocation.

We formulate the problem as cluster-level binary policy search, where a policy assigns one routing action to each of the K clusters. Each request is represented by four features: raw sequence length, P-side effective ISL, D-side effective ISL, and output sequence length. The decisions are learned in two stages, per-cluster scanning for initialization and ϵ\epsilon-greedy search for refinement. On Hybrid, DolphinRouting with k-means reduces P90 TTFT by 7.5–7.9% and P90 TPOT by 6.5–10.1% relative to Dynamo across the two allocations. On Real Data, the respective reductions are 5.7–6.5% and 2.6–5.5%.

References (27)