paper-with-me

Papers

MiniPIC: Flexible Position-Independent Caching in <100LOC

2026-06-11 · Nathan Ordonez, Thomas Parnell arxiv

Retrieval-augmented and agentic workloads repeatedly prefill recurring predictable structured inputs (which we call "spans") such as documents and code files. Yet, prefix caching in engines such as vLLM cannot reuse their KV entries unless they share identical prefixes with another request, while Position-Independent Caching (PIC) implementations within production-grade inference servers typically either require substantial server code changes or keep KV state outside the server, incurring host-to-device transfer overhead. We present Minimalistic PIC (MiniPIC): a minimal, flexible and fast vLLM design built from two ingredients: positional-encoding-free KV cache and user-controlled cache-reuse primitives. MiniPIC stores unrotated K vectors in the KV cache, applies RoPE to K tiles inside attention using per-request logical positions, and exposes three user-facing and token-level primitives: block-aligned padding, span separator (SSep), and prompt depend (PDep), that modify hashing behavior and effective block-level causal attention structure. With fewer than 100 lines of core-engine changes plus a custom attention backend, these primitives are sufficient to realize multiple PIC methods, including Block-Attention, EPIC, and Prompt Cache, within the same running vLLM instance, while natively integrating with KV cache CPU offload implementations. On 2WikiMultihopQA, MiniPIC with interleaved scheduling improves prefill throughput by 49% over baseline vLLM, reduces cached-span time-to-first-token by up to two orders of magnitude, preserves the linear prefill scaling of uncached spans, and incurs only 5.7% worst-case overhead.

📄 PDF Abstract BibTeX arXiv:2606.13126

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Serving

2026-05-07 · Bole Ma, Jan Eitzinger, Harald Köstler arxiv

Agentic LLM workloads put bit-identical tokens at shifted positions every turn, voiding prefix caches at the first byte of divergence. Operators report cache-hit regressions ranging from moderate slowdowns to severe TTFT…

MPIC: Position-Independent Multimodal Context Caching System for Efficient MLLM Serving

2025-02-04 · Shiju Zhao, Junhao Hu, Rongxiao Huang, Jiaqi Zheng 외

The context caching technique is employed to accelerate the Multimodal Large Language Model (MLLM) inference by prevailing serving platforms currently. However, this approach merely reuses the Key-Value (KV) cache of the…

Language ModelingLanguage ModellingLarge Language ModelMultimodal Large Language Model+2

You Need an Encoder for Native Position-Independent Caching

2026-02-02 · Shiju Zhao, Junhao Hu, Jiaqi Zheng, Guihai Chen arxiv

The Key-Value (KV) cache of Large Language Models (LLMs) is prefix-based, making it highly inefficient for processing contexts retrieved in arbitrary order. Position-Independent Caching (PIC) has been proposed to enable …

EPIC: Efficient Position-Independent Caching for Serving Large Language Models

2024-10-20 · Junhao Hu, Wenrui Huang, Weidong Wang, Haoyi Wang 외

Large Language Models (LLMs) show great capabilities in a wide range of applications, but serving them efficiently becomes increasingly challenging as requests (prompts) become more complex. Context caching improves serv…

ChunkingFew-Shot LearningPositionRetrieval-augmented Generation

MEPIC: Memory Efficient Position Independent Caching for LLM Serving

2025-12-18 · Qian Wang, Zahra Yousefijamarani, Morgan Lindsay Heisler, Rongzhi Gu 외 arxiv

Modern LLM applications such as deep-research assistants, coding agents, and Retrieval-Augmented Generation (RAG) systems, repeatedly process long prompt histories containing shared document or code chunks, creating sign…