[Paper Review] Splitwise: Efficient generative LLM inference using phase splitting
Splitwise proposes splitting generative LLM inference into two distinct phases—compute-intensive prompt processing and memory-intensive token generation—on separate, specialized machines to improve throughput, reduce cost, and lower power consumption. By optimizing state transfer via high-bandwidth interconnects, it achieves up to 2.35× higher throughput with the same cost and power budget compared to baseline designs.
Recent innovations in generative large language models (LLMs) have made their applications and use-cases ubiquitous. This has led to large-scale deployments of these models, using complex, expensive, and power-hungry AI accelerators, most commonly GPUs. These developments make LLM inference efficiency an important challenge. Based on our extensive characterization, we find that there are two main phases during an LLM inference request: a compute-intensive prompt computation, and a memory-intensive token generation, each with distinct latency, throughput, memory, and power characteristics. Despite state-of-the-art batching and scheduling, the token generation phase underutilizes compute resources. Specifically, unlike compute-intensive prompt computation phases, token generation phases do not require the compute capability of the latest GPUs, and can be run with lower power and cost. With Splitwise, we propose splitting the two phases of a LLM inference request on to separate machines. This allows us to use hardware that is well-suited for each phase, and provision resources independently per phase. However, splitting an inference request across machines requires state transfer from the machine running prompt computation over to the machine generating tokens. We implement and optimize this state transfer using the fast back-plane interconnects available in today's GPU clusters. We use the Splitwise technique to design LLM inference clusters using the same or different types of machines for the prompt computation and token generation phases. Our clusters are optimized for three key objectives: throughput, cost, and power. In particular, we show that we can achieve 1.4x higher throughput at 20% lower cost than current designs. Alternatively, we can achieve 2.35x more throughput with the same cost and power budgets.
Motivation & Objective
- To address the inefficiency of deploying both prompt computation and token generation on the same high-end GPU, which leads to underutilized compute and high costs.
- To explore hardware specialization for each phase by decoupling compute and memory workloads in LLM inference.
- To optimize system throughput, cost, and power efficiency through phase-specific hardware provisioning and low-latency state transfer.
- To demonstrate that phase splitting enables better performance per dollar (Perf/$) and performance per watt (Perf/W) than current unified GPU-based inference clusters.
- To validate the approach across diverse workloads, model types, and system configurations using real production inference traces.
Proposed method
- Splitwise divides each LLM inference request into two phases: prompt computation (parallel, compute-heavy) and token generation (sequential, memory-bound), running on separate machines.
- It uses optimized, block-wise transfer of the key-value (KV) cache from the prompt machine to the token generation machine over high-speed interconnects like Infiniband to minimize latency.
- The system employs a mixed-pool scheduling strategy that dynamically assigns requests to appropriate hardware pools based on phase requirements and resource availability.
- It leverages existing GPU cluster interconnects (e.g., Infiniband, RoCE) and optimizes data transfer by reducing block sizes and minimizing critical path latency.
- The design supports heterogeneous hardware: high-compute GPUs (e.g., H100) for prompt phase and high-memory-bandwidth devices (e.g., A100, MI-250, or HBM-equipped CPUs) for token phase.
- Throughput, cost, and power-optimized cluster configurations are evaluated using real-world LLM inference traces under strict service-level objectives (SLOs).
Experimental results
Research questions
- RQ1Can separating the prompt computation and token generation phases in LLM inference improve system-wide throughput, cost efficiency, and power efficiency?
- RQ2How can low-latency, high-bandwidth state transfer of the KV cache be achieved between physically separated machines without degrading end-to-end latency?
- RQ3What are the optimal hardware configurations for each phase, given their divergent compute and memory characteristics?
- RQ4How does phase splitting affect performance under varying workloads, model sizes, and input token distributions?
- RQ5To what extent can phase splitting reduce over-provisioning of expensive GPUs while maintaining strict inference SLOs?
Key findings
- Splitwise achieves 1.4× higher throughput at 20% lower cost compared to baseline designs using the same hardware.
- With identical cost and power budgets, Splitwise enables 2.35× higher throughput than current inference clusters.
- The system maintains low end-to-end latency by optimizing KV-cache transfer using small, efficient data blocks over high-bandwidth interconnects.
- Optimized clusters using H100 for prompt phase and A100 for token phase achieve 1.76× better throughput with 15% lower power at the same cost.
- The approach remains robust under varying workloads and supports heterogeneous hardware, including CPUs and AMD MI-250 GPUs, for the token generation phase.
- At high load, Splitwise clusters converge toward baseline behavior due to mixed batching, but still outperform baselines in throughput-per-dollar and throughput-per-watt metrics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.