AlignedServe: Orchestrating Prefix-aware Batching to Build a High-throughput and Computing-efficient LLM Serving System
Open Access
- 18 May 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Management of Data
- Vol. 4 (3) , 1-25
Abstract
High throughput inference serving is important for applications taking large language models (LLMs) as their kernels. However, traditional inference frameworks mostly suffer from the bubbles extensively existing in the inference pipeline. Research works have proposed to group multiple requests into batches and schedule these batches efficiently thus reduce the request-level and batch-level bubbles, but rarely pay attention to the bubbles within each decode iteration. Actually, tokens generated in the same iteration may have different costs depending on their relied KVCache, where a token relying on a very long KVCache is likely to be the bottleneck within the iteration, and consequently the iteration-level bubbles occur since other tokens must wait for a long time to enter into the next iteration. In this work, we propose a novel prefix-aware batching policy to group requests whose relied KVCache are of the similar length into a batch, guaranteeing that bubbles within each iteration are eliminated. To efficiently support the prefix-aware batching, we design a new inference framework called AlignedServe, which leverages the large CPU memory to accommodate a sufficient amount of in-flight requests prepared for being batched. Batches generated in CPU memory are further scheduled by a well-designed batch-level scheduling policy, which guarantees that the batch-level bubbles are significantly reduced. To reduce the latency involved in transmitting KVCache from CPU memory to GPU HBM, we propose to leverage one GPU to prefetch KVCache for another. To the best of our knowledge, this is the first work employing the GPU-Prefetch-For-GPU architecture. We evaluate AlignedServe via extensive experiments driven by both synthetic and application workloads. The experimental results demonstrate that AlignedServe improves the decoding throughput by a maximum of 1.98× and reduces the latency by up to 7.4 × compared to the state-of-the-art systems.Keywords
All Related Versions
Funding Information
- Guangdong S&T Program (No. 2025B0101080001)
- National Natural Science Foundation of China (No. 62272499)
- National Natural Science Foundation of China (No. 62332021)
- Guangdong Province Special Support Program for Cultivating High-level Talents (No. 2021T006X160)
- PazhouLab (No. PZL2023KF0001)
This publication has 11 references indexed in Scilit:
- HotPrefix: Hotness-Aware KV Cache Scheduling for Efficient Prefix Sharing in LLM Inference SystemsProceedings of the ACM on Management of Data, 2025
- Apt-Serve: Adaptive Request Scheduling on Hybrid Cache for Scalable LLM Inference ServingProceedings of the ACM on Management of Data, 2025
- Cache-Craft: Managing Chunk-Caches for Efficient Retrieval-Augmented GenerationProceedings of the ACM on Management of Data, 2025
- TightLLM: Maximizing Throughput for LLM Inference via Adaptive Offloading PolicyIEEE Transactions on Computers, 2025
- Splitwise: Efficient Generative LLM Inference Using Phase Splitting2024
- Efficient Memory Management for Large Language Model Serving with PagedAttention2023
- OPT: Open Pre-trained Transformer Language ModelsarXiv, 2022
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension2020
- PipeDream2019
- A Discourse-Aware Attention Model for Abstractive Summarization of Long Documents2018