atlas

Research map / Large language models / Reasoning and chain of thought

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

ICML 2025 · Large language models › Reasoning and chain of thought · approach: KV cache compression · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Formalizes position-independent context caching (PIC) as compile/link steps and proposes EPIC, a serving system with the LegoLink algorithm that recomputes only the first k tokens of each cached chunk to mitigate attention sinks.

Problem

Prefix-based context caching requires exact prefix matches, limiting KV reuse for immutable chunks (documents, few-shot examples) that appear after varying prefixes; existing PIC (CacheBlend) has O(N^2) recomputation and heavy dynamic-sparsity overhead.

Approach

Compile each immutable chunk independently with position IDs from zero, then at link time recompute only the first k (≤32) tokens of each chunk (static sparsity) so they stop acting as attention sinks; recomputation cost scales with number of chunks rather than prompt length squared.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use LegoLink instead of CacheBlendPIC serving · Six datasets, synchronous workloadTTFT: up to 3×Helped
Use LegoLink-16 instead of CacheBlend-15PIC serving · Asynchronous workloadTTFT: 8×Helped
Use LegoLink-16 instead of CacheBlend-15PIC serving · Asynchronous workloadthroughput: 7×Helped
Use LegoLink-16 instead of CacheBlend-15PIC serving · Long context, 512-token chunksmaximum context length before OOM: approximately 35,000 tokens -> 50,000 tokensHelped
Recompute 2 initial tokens per chunk rather than use CacheBlend-15 (ablation)LegoLink · Six datasets, synchronous workloadTTFT: up to 300%Helped
Recompute 2 initial tokens per chunk rather than use CacheBlend-15 (ablation)LegoLink · Six datasets, synchronous workloadaccuracy drop: 0 - 7%No clear effect
Recompute 1% or 5% of tokens with CacheBlend rather than use FR (ablation)CacheBlend · Six datasets, synchronous workloadaccuracy: up to 80%Hurt
Increase the number of recomputed initial tokens per chunk (ablation)LegoLink · Six datasets, synchronous workloadaccuracyHelped
Skip link-step recomputation and prepend then discard four dummy tokens during compilation (ablation)LegoLink-0 · Synchronous workloadaccuracyNo clear effect
Use static selection of chunk-initial tokens rather than dynamic attention-based selectionLegoLink · CacheBlend-15 synchronous workloadsruntime overhead: 16.37% - 63.56%Helped

Surprising findings

Limitations

Experimental setup

Datasets: 2WikiMQA MuSiQue HotpotQA SAMSum MultiNews Needle in a Haystack

Benchmarks: LongBench 2WikiMQA LongBench MuSiQue LongBench HotpotQA LongBench SAMSum LongBench MultiNews Needle in a Haystack

Metrics: TTFT F1 score Rouge-L throughput

Baselines: CacheBlend Fully Recompute Naive KV reuse PromptCache

Builds on: CacheBlend vLLM StreamingLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy