arXiv Science⌕ Search

arXiv · 2611.28702

HiPerfCC-KVCache: Accelerating Confidential LLM Serving with Hierarchical KV Caching

Abstract

Hierarchical key-value (KV) caching reduces repeated prefill computation in large language model serving by retaining reusable state beyond GPU memory. Under GPU confidential computing (CC), however, protected transfers can erase this benefit. We show that bulk KV copies hold driver locks during prolonged CPU-side processing, stalling independent serving operations despite separate threads and streams. Our characterization on Hopper and Blackwell GPUs shows how lock scope, copy granularity, and allocation ownership affect foreground progress and transfer parallelism. Guided by these findings, we present HiPerfCC-KVCache, which manages resource lifetimes, prioritizes ready token readback between bounded backup submissions, and parallelizes KV restores through auxiliary contexts with shared GPU staging. Implemented in SGLang, HiPerfCC-KVCache uses existing protected transfer interfaces without hardware or driver changes. Across three models and three workloads on H200, HiPerfCC-KVCache achieves a geometric-mean output-token throughput speedup of $1.74\times$ (up to $2.72\times$) over the staged KV-transfer HiCache-Workers baseline at the highest tested loads. Mean time to first token decreases by 36% on average and up to 59%. The benefits generalize to RTX PRO 6000 Blackwell, with a geometric-mean throughput speedup of $1.28\times$ (up to $2.20\times$) over the same baseline. A capacity analysis further models and explains variation in gains and remaining gaps to CC-off serving.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Haoxuan Xu, Shaoyu Wang, Minghao Lin, Beijie Liu, Potung Yu, Yongqin Wang, Vincent Quentin Ulitzsch, Seo Jin Park, Murali Annavaram, Mengyuan Li. 2026-11-21. HiPerfCC-KVCache: Accelerating Confidential LLM Serving with Hierarchical KV Caching. https://arxiv.science/abs/2611.28702

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Accelerating Token-and-Duration Transducer ASR Inference: A Production Case Study of Parakeet TDT 0.6B

Token-and-duration transducer (TDT) models enable accurate speech transcription, but translating their model-level efficiency into high-performance GPU serving requires execution strategies tailored to the distinct demands of encoding and decoding. We present an optimized inference engine for Parakeet TDT 0.6B on an NVIDIA H100 GPU. Our stage-specific engine combines row-packed FP8 encoding, shape-specialized fusion and persistent megakernel decoding without per-step launches or host synchronization. It overlaps front-end processing with encoding and applies accuracy-gated frame merging with sequence-length restoration and selective pruning without end-to-end fine-tuning. Evaluated on Parakeet TDT 0.6B at 1,024 utterances per batch, the engine transcribes 50,058 seconds of audio per second, 14 times the throughput of the evaluated TensorRT baseline, with a lower mean word error rate (WER) and an 8.9-fold reduction in GPU energy per audio second.

cs.PF↗

ServeCast: Predicting LLM Serving Throughput and Latency Across Models from Microbenchmarks

Deciding how to deploy an LLM means predicting its throughput and latency under varying load. Benchmarking every candidate model on every GPU is expensive, and prediction is complicated by continuous batching and by request contexts that evolve. We introduce ServeCast, a performance model that follows requests with variable prompt and output lengths through admission, prefill, and decode under limited GPU memory. Its explicit parameters describe the LLM architecture and the clock and memory bandwidth of the GPU, and three timing coefficients are calibrated with microbenchmarks. To predict how a different LLM is served on the same GPU, ServeCast may transfer the performance model. The transfer updates the explicit parameters and keeps the timing coefficients fitted on a different LLM, so no re-profiling is needed. Our extensive numerical evaluation spans three GPUs, six LLMs, and three trace-derived workloads, comparing ServeCast with Vidur, a widely used simulator. When both are calibrated on the target, the aggregate mean absolute percentage error (MAPE) of ServeCast is 6.4% for mean request throughput, 11.9% for time to first token (TTFT), and 7.5% for time per output token (TPOT), against 8.9%, 25.0%, and 8.6% for Vidur, respectively. Under cross-model transfer, throughput and TPOT errors are comparable to those of Vidur, which requires calibration for each model/GPU pair, while ServeCast's aggregate TTFT predictions are still more accurate.

cs.PF↗

Improving Hit Ratios in LLM Serving: From Descriptive Characterization to Prescriptive Optimization

Workflows in modern large language model (LLM) serving systems exhibit prolonged conversations consisting of recursive prompts and responses. Due to the autoregressive nature of LLMs, a new response must be generated based on KV states of the entire conversation history. Therefore, the hit ratio, i.e., the fraction of KV caches reused directly from the memory among all KV caches in one conversation, is a crucial metric that governs the performance and economics of LLM serving. Describing the hit ratio as a function of system primitives is highly nontrivial due to the complex system dynamics; hence prescriptively optimizing the hit ratio is even more challenging. We approach the two problems by formulating the system as a stochastic multi-turn conversation model (MCM). We first characterize the hit ratio of the MCM under the widely used least-recently-used (LRU) policy through a mean-field framework. We prove that as the workflow arrival rate and the memory capacity scale proportionally, the hit ratio converges to an explicit limit. Our descriptive characterization reveals that LRU implicitly leads to a possibly suboptimal workflow quota allocation when the workflow is a mixture of heterogeneous classes. Therefore, we further propose a family of workflow-aware quota LRU (WAQ-LRU) policies that make quota allocation an explicit control decision, among which we identify the optimal quota vector, yielding a policy that dominates LRU in the mean-field limit. Experiments with Qwen3 models on Ascend NPUs fed by real-world conversation datasets validate our resulting hit ratio empirical estimator, and show substantial gains of WAQ-LRU over LRU in both hit ratio and time-to-first-token. Our results provide both descriptive and prescriptive insights into the understanding and improvement of multi-turn LLM serving.

cs.PF↗