paper-with-me

Papers

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

2024-10-20 · Junhao Hu, Wenrui Huang, Weidong Wang, Haoyi Wang, Tiancheng Hu, Qin Zhang, Hao Feng, Xusheng Chen, Yizhou Shan, Tao Xie

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 serving performance by reusing Key-Value (KV) vectors, the intermediate representations of tokens that are repeated across requests. However, existing context caching requires exact prefix matches across requests, limiting reuse cases in settings such as few-shot learning and retrieval-augmented generation, where immutable content (e.g., documents) remains unchanged across requests but is preceded by varying prefixes. Position-Independent Caching (PIC) addresses this issue by enabling modular reuse of the KV vectors regardless of prefixes. We formalize PIC and advance prior work by introducing EPIC, a serving system incorporating our new LegoLink algorithm, which mitigates the inappropriate "attention sink" effect at every document beginning, to maintain accuracy with minimal computation. Experiments show that EPIC achieves up to 8x improvements in Time-To-First-Token (TTFT) and 7x throughput gains over existing systems, with negligible or no accuracy loss.

📄 PDF Abstract BibTeX arXiv:2410.15332

Code (0)

등록된 구현이 없습니다.

Tasks

ChunkingFew-Shot LearningPositionRetrieval-augmented Generation

Similar Papers 제목 키워드 기반

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…

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

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 thei…

SemPIC: Learning Semantic Position-Independent KV Caches

2026-07-30 · Hui Xie, Peng Xiao, Yutong Deng\textsuperscript, Shuoran Dou 외 arxiv

Long-context retrieval and agentic workloads repeatedly reuse the same documents under changing instructions, histories, and document orders. Prefix caching cannot exploit this reuse, while position-independent caching (…