VPP: Virtual Pipeline Parallelism for Efficient Chunked Prefill in Long-Context LLM Inference

📅 2026-08-26
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
研究提出虚拟管道并行技术(VPP),通过固定块大小和优化管道布局解决长序列推理中的延迟不平衡问题,提高处理效率。
📝 Abstract
Chunked prefill pipeline parallelism (CPP) is a key technique for LLM inference. However, equal-size chunks exhibit imbalanced latency, as later chunks attend longer prefix KV caches and incur higher attention costs, leading to pipeline bubbles. Existing approaches mitigate this imbalance through dynamic chunk resizing (Dynamic CPP, DCPP), but our measurements show that this trades scheduling overhead for load balancing, which becomes unfavorable on long sequences. In this study, we propose Virtual Pipeline Parallelism (VPP), which keeps chunk sizes fixed and optimizes the pipeline layout through virtual stages. A V-shaped virtual-stage traversal overlaps each chunk's expensive middle stages with the lighter head and tail stages of its neighbors, while asynchronous communication and pipelined packing further reduce communication stalls and cross-request drain bubbles. We implement VPP in vLLM-Ascend and evaluate it on three MoE-based LLMs with sequences up to 1M tokens on 16 Ascend 910C NPUs. VPP improves throughput by up to 13.1% over DCPP on long sequences and 6.7% on mixed workloads, while preserving performance on short sequences. On a 512K-token DeepSeek-V3.1 prefill workload, VPP reduces the pipeline bubble ratio from 6.4% to 0.1%, achieving a 98.0% reduction compared with DCPP.
Problem

Research questions and friction points this paper is trying to address.

Chunked Prefill
Pipeline Parallelism
Latency Imbalance
Dynamic Chunk Resizing
Long-Context LLM Inference
Innovation

Methods, ideas, or system contributions that make the work stand out.

Virtual Pipeline Parallelism
Chunked Prefill
Pipeline Bubbles
Asynchronous Communication
Pipelined Packing
Yan Shi
Yan Shi
Central south university
Heavy metal pollution controlBiocharBiomass-derived function materials and Lignocellulose valorization
X
Xiaochao Wang
Huawei Technologies Co., Ltd., Shanghai, China
J
Jingchun Gao
Huawei Technologies Co., Ltd., Shanghai, China
J
Jintao Luo
Huawei Technologies Co., Ltd., Shanghai, China
X
Xinyi Zhou
Huawei Technologies Co., Ltd., Shanghai, China
F
Feng Liu
Huawei Technologies Co., Ltd., Shanghai, China
K
Kui Luo
Huawei Technologies Co., Ltd., Shanghai, China
X
Xushi Li
Huawei Technologies Co., Ltd., Shanghai, China
X
Xinjie Guo
Huawei Technologies Co., Ltd., Shanghai, China
L
Liangjun Feng
Huawei Technologies Co., Ltd., Shanghai, China