SyncAI.news, a Varaisys broadcasting
InferScale: GPU-Native KV Injection for Personalized LLM Serving
PL

Peter Li, Prashant Pandey

· 1 min read

ResearcharXiv cs.LG

InferScale: GPU-Native KV Injection for Personalized LLM Serving

arXiv:2607.27090v3 Announce Type: replace-cross Abstract: Personalized large language model (LLM) applications retrieve facts from conversation history to answer new requests. During prefill, the model converts these facts into key-value (KV) states, often repeating work from earlier requests. Prefix caching reuses states when prompts share an identical initial token sequence, but changing fact subsets and ordering limits its effectiveness. We present InferScale, a memory system that colocates a GPU-native semantic index with a KV store to retrieve and inject precomputed fact states directly into the attention cache. Context-Window Encoding mitigates the accuracy loss of encoding facts separately by including preceding conversation context while retaining only each fact's states. Chunked RoPE adjusts the stored keys for their serving positions. InferScale integrates through vLLM's KV-connector interface without engine modifications, model fine-tuning, or serving-time cache recomputation. On LoCoMo, InferScale achieves 1.7-2.2x speedups over Mem0 in query-to-first-token latency at a retrieval budget of 50 facts across three 7-8B models. On Llama-3.1-8B, replacing Mem0's CPU-based Qdrant backend with GPU-native retrieval reduces latency from 117 to 83 ms. Adding KV injection reduces it further to 55 ms. As retrieval grows from 5 to 400 facts, InferScale's engine time-to-first-token rises from 16 to 25 ms. At 400 facts, this is a 13.3x speedup over Mem0's 327 ms. At 50 facts, Context-Window Encoding achieves 60.3% accuracy versus Mem0's 63.3%. These results show that integrating semantic retrieval with reusable inference state reduces the serving cost of persistent memory while retaining useful source context.

Original source

This story was published by arXiv cs.LG and written by Peter Li, Prashant Pandey. SyncAI.news shows a preview; the complete article is on the publisher's site.

Read the full story on arxiv.org

Similar News