HiPerfCC-KVCache: Accelerating Confidential LLM Serving with Hierarchical KV Caching
Haoxuan Xu, Shaoyu Wang, Minghao Lin, Beijie Liu, Potung Yu, Yongqin Wang, Vincent Quentin Ulitzsch, Seo Jin Park, Murali Annavaram, Mengyuan Li
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 (up to ) 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 (up to ) over the same baseline. A capacity analysis further models and explains variation in gains and remaining gaps to CC-off serving.
Create a lesson
Related papers
Compositional Performance Modeling of LLM Inference Clusters with Hierarchical KV Caching
Shared title terminology · Ruiyang Ma, Sheng Qi, DaiKang Kuang et al.
One Million Tokens in 20GB: Calibration-Free 2-Bit SRFT KV-Cache Compression for Looped MoE Inference on Apple Silicon
Shared title terminology · Mohamed Amine Bergach
High-Throughput Serving of Nemotron 3.5 Transcribe with Regime-Aware Megakernels and Kernel Fusion
Shared title terminology · Aditya Chatterjee, Sanjay Singh Chauhan, Mayank Jain et al.
LLMRunner: Closed Workload Model Performance Testing Framework for LLM Servings
Shared title terminology · Arush Upadhyaya, Debadatta Mishra
Easy Multi-Precision Acceleration via Vectorization
Shared title terminology · Chansup Byun, Piotr Luszczek, Jeremy Kepner et al.
Caching Policies based on Object Sizes
Shared title terminology · Ridwanul Hasan Tanvir, George Kesidis