Addressing KV cache bottlenecks in long-context LLM serving, a new production study on 8xB300 nodes serving GLM-5.3 (arXiv:2610.21500) reveals that unsharded remote KV caches inflate hit-heavy p99 TTFT to 83.32s, and resolves it via rank-sharded asynchronous LMCache loading—boosting GET bandwidth 6.3x to 10.76 GB/s and slashing p99 to 0.67s (+34% throughput). Meanwhile, Baidu PaddlePaddle open-sources Virtual Head Attention (VHA, arXiv:2610.17959), folding linear Q-Premix and Postmix into standard GQA-2 weights at inference to halve KV cache while beating MLA (+0.70%) and GQA-4 (+2.60%) on a 30B-A3B MoE and lifting 8K-128K RULER from 73.0 to 84.4.
Key Takeaways
- ✓On 8xB300 nodes serving GLM-5.3 with PCP8, sharding LMCache across ranks and adding async loading boosts GET bandwidth 6.3x to 10.76 GB/s, cutting hit-heavy p99 TTFT from 83.32s to 0.67s (+34% throughput)
- ✓Baidu's Virtual Head Attention (VHA) folds linear Q-Premix and low-rank Postmix directly into W_Q and W_O at inference, reducing to a zero-overhead GQA-2 architecture with half to a quarter of the KV cache
- ✓On a 500B-token 30B-A3B MoE, VHA outperforms both MLA (+0.70%) and GQA-4 (+2.60%), and boosts 8K-128K RULER on a 10B-A1B MoE from 73.0 (GQA-4) to 84.4 using only 2 KV heads

Turn your technical choice into a development budget
Compare 40 dev plans & simulate token costs vs $20/mo subscriptions
Project Links & Resources
Direct AccessIn-Depth Technical Analysis
Core Background & Industry Pain Points
In production long-context LLM and multi-turn coding agent serving, KV cache storage and retrieval dictate both Time-to-First-Token (TTFT) and GPU utilization. Today, two hidden bottlenecks plague distributed serving and attention design. On the serving systems side, backing per-engine KV caches with a shared remote tier (LMCache + Valkey) on high-compute 8xB300 nodes running 8-way Prefill Context Parallelism (PCP8) for GLM-5.3 (FP8 MoE with Multi-Head Latent Attention MLA) reveals a startling anomaly: fetching a remote cache hit takes 0.88s whereas recomputing the prompt on the GPU takes only 0.31s, causing 16K-token p99 TTFT to jump from 3.96s to 17.3s and driving hit-heavy stream p99 to 83.32s with GPUs only 7% busy. On the model architecture side, attention mechanisms face an "impossible triangle" among KV cache size, prefill FLOPs, and model quality: GQA consumes excessive KV memory, MLA degrades base quality, and MFA inflates training and prefill compute.
Architectural Highlights & Core Mechanisms
Two new papers resolve these bottlenecks at the distributed storage layer (arXiv:2610.21500) and the attention projection layer (Virtual Head Attention, VHA, arXiv:2610.17959):
- Rank-Sharded Asynchronous Remote KV Tiers (
arXiv:2610.21500): Guided by a two-term analytical cost model—which proves that a remote hit onGLM-5.3/B300only pays off above a break-even bandwidth $B^* = 2.53\text{ GB/s}$ and cannot beat GPU recompute for prompts shorter than ~17K tokens due to a fixed per-hit engine overhead $T_0 \approx 0.33\text{ s}$—the author (i) shards theMLAKV store acrossPCP8ranks using a minimum-over-ranks prefix lookup proven never to desynchronize collectives, (ii) partitions one uncoordinatedValkeyserver per rank to raiseGETbandwidth 6.3x to 10.76 GB/s, (iii) adds asynchronous non-blocking loading, and (iv) patches three client stall bugs. - Baidu PaddlePaddle's Virtual Head Attention (
VHA,arXiv:2610.17959):VHAintroduces two lightweight linear operations: Q Premix applies a near-identity linear transform within each KV group to recover virtual query head diversity from halved physical heads, while Linear Postmix fuses inter-head features via a low-rank $I + AB^\top$ residual structure. BecauseVHAcontains zero nonlinearities, at inference time Premix folds into $W_Q$ and Postmix folds into $W_O$, reducing the model to a standard 2-KV-head (GQA-2) architecture (group size 64) that reuses all existing GQA kernels with zero runtime overhead.
Authoritative Benchmarks & Empirical Comparisons
- 8xB300 GLM-5.3 (PCP8) Serving Benchmarks (
arXiv:2610.21500): On a production stream where 98.5% of prompt tokens hit the remote tier, rank-sharded asynchronousLMCacheslashesp99TTFT 124x from 83.32s down to 0.67s, while boosting prefill throughput by +14% (+34% when combined with an upstream kernel fix). All patches have been upstreamed toLMCache. - VHA Across Dense & Industrial 30B-A3B MoE Models (
arXiv:2610.17959): Across four 50B-token pretraining scales,VHAbeats standardGQAat every scale (+0.05%to+0.81%) while cutting KV cache by 4x vs GQA-8 (dense) and 2x vs GQA-4 (MoE), and reducing training/prefill FLOPs by 7.9%. On an industrial 30B-A3B MoE trained on 500B tokens,VHAoutperforms bothMLA(+0.70%) andGQA-4(+2.60%) across a 12-benchmark suite; on a 10B-A1B MoE evaluated on RULER (8K–128K),VHAachieves an average score of 84.4 vs 73.0 for GQA (+11.4 points) while using only 2 KV heads instead of 4.
Developer Practical Guide & Quickstart
Serving engineers running Context Parallelism with LMCache should deploy rank-partitioned Valkey instances and bypass remote KV lookups for prompts below the 17K-token break-even threshold. Model developers can explore Baidu's open-source VHA implementation at https://github.com/PaddlePaddle/VHA and fold Premix/Postmix weights prior to checkpoint export for drop-in GQA-2 serving in vLLM or SGLang.
Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.
Discussion & Comments
0Sign in to join the discussion
Connect with AI developers to exchange benchmark insights.