Shift Parallelism: Low-Latency, High-Throughput LLM Inference for Dynamic Workloads

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Hidayetoglu, Mert, Qiao, Aurick, Wyatt, Michael, Rasley, Jeff, He, Yuxiong, Rajbhandari, Samyam
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866917222456229888
author Hidayetoglu, Mert
Qiao, Aurick
Wyatt, Michael
Rasley, Jeff
He, Yuxiong
Rajbhandari, Samyam
author_facet Hidayetoglu, Mert
Qiao, Aurick
Wyatt, Michael
Rasley, Jeff
He, Yuxiong
Rajbhandari, Samyam
contents Efficient parallelism is necessary for achieving low-latency, high-throughput inference with large language models (LLMs). Tensor parallelism (TP) is the state-of-the-art method for reducing LLM response latency, however GPU communications reduces combined token throughput. On the other hand, data parallelism (DP) obtains a higher throughput yet is slow in response latency. Best of both worlds does not exist, and it is not possible to combine TP and DP because of the KV cache variance across the parallelisms. We notice Sequence Parallelism (SP - Ulysses in training) has similar properties as DP but with KV cache invariance. We adapt SP to inference, and combine it with TP to get the best of both worlds. Our solution: Shift Parallelism. Shift Parallelism dynamically switches across TP and SP, and minimizes latency in low traffic without losing throughput in high traffic. The efficient GPU communications of Shift Parallelism yields up to i) 1.51x faster response in interactive workloads and ii) 50% higher throughput in batch workloads, compared to a TP-only solution. We evaluate Shift Parallelism with real-world production traces with dynamic traffic patterns as well as synthetic benchmarking patterns across models, context sizes, and arrival rates. All results affirm the same: Shift Parallelism has a better the latency vs. throughput tradeoff than TP or DP, and hence obtains low latency without degrading throughput in dynamic workloads.
format Preprint
id arxiv_https___arxiv_org_abs_2509_16495
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Shift Parallelism: Low-Latency, High-Throughput LLM Inference for Dynamic Workloads
Hidayetoglu, Mert
Qiao, Aurick
Wyatt, Michael
Rasley, Jeff
He, Yuxiong
Rajbhandari, Samyam
Distributed, Parallel, and Cluster Computing
Efficient parallelism is necessary for achieving low-latency, high-throughput inference with large language models (LLMs). Tensor parallelism (TP) is the state-of-the-art method for reducing LLM response latency, however GPU communications reduces combined token throughput. On the other hand, data parallelism (DP) obtains a higher throughput yet is slow in response latency. Best of both worlds does not exist, and it is not possible to combine TP and DP because of the KV cache variance across the parallelisms. We notice Sequence Parallelism (SP - Ulysses in training) has similar properties as DP but with KV cache invariance. We adapt SP to inference, and combine it with TP to get the best of both worlds. Our solution: Shift Parallelism. Shift Parallelism dynamically switches across TP and SP, and minimizes latency in low traffic without losing throughput in high traffic. The efficient GPU communications of Shift Parallelism yields up to i) 1.51x faster response in interactive workloads and ii) 50% higher throughput in batch workloads, compared to a TP-only solution. We evaluate Shift Parallelism with real-world production traces with dynamic traffic patterns as well as synthetic benchmarking patterns across models, context sizes, and arrival rates. All results affirm the same: Shift Parallelism has a better the latency vs. throughput tradeoff than TP or DP, and hence obtains low latency without degrading throughput in dynamic workloads.
title Shift Parallelism: Low-Latency, High-Throughput LLM Inference for Dynamic Workloads
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2509.16495