Position-Independent KV Caching and Reasoning Token-Based Global Cache Reuse

Created 10/13/2026Edited 10/13/2026

  • Artificial Intelligence
  • LLM
  • KV Cache

2 views

View
Contents (22)

1. Overview and Background

In services utilizing Large Language Models (LLMs)—particularly Retrieval-Augmented Generation (RAG), multi-document summarization, and compound AI agent systems—processing long contexts is essential. However, the substantial computational cost of the prefill stage and the resulting Time-To-First-Token (TTFT) latency represent primary bottlenecks limiting service scalability.

To address this challenge, KV caching (Context/Prompt Caching)—which stores precomputed Key-Value vectors from earlier inferences for reuse—has been widely adopted. Nevertheless, caching mechanisms in existing systems (such as vLLM and SGLang) rely strictly on prefix matching, leading to critical architectural limitations:

  1. Order Dependency and Cache Invalidation: In RAG environments, even when an identical set of documents is retrieved, any variation in document ranking, user query wording, or system prompt prefix invalidates the entire KV cache, necessitating a full re-computation during the prefill phase.
  2. Session and User Isolation: Because the prompt prefix must match exactly, documents cannot be shared across different sessions or users if their preceding contexts differ. Consequently, static knowledge bases repeatedly accessed across thousands of users fail to benefit from global-level KV cache reuse.
Operating structure of Automatic Prefix Caching in vLLM

Operating structure of Automatic Prefix Caching in vLLM

Source: vLLM Documentation

The diagram above illustrates the Automatic Prefix Caching architecture implemented in modern LLM serving frameworks like vLLM. Because KV cache blocks can only be reused when the token hash tree strictly matches from the sequence prefix onward, dynamic queries or altered document orders cause cache hit rates to drop precipitously.

This document reviews and analyzes Position-Invariant / Position-Independent Caching (PIC), reasoning token-guided cross-document information synthesis, and the resulting global KV cache reuse architecture, alongside recent academic breakthroughs and benchmark results.


2. Proposed Concepts and Mechanism Analysis

2.1 Intra-document vs. Inter-document Attention Asymmetry

Empirical studies on self-attention patterns in transformer models reveal a pronounced structural asymmetry across context boundaries:

  • Intra-document Attention: Tokens residing within the same passage or document exhibit dense semantic and syntactic interconnections, giving rise to strong, dense attention weights.
  • Inter-document Attention: Attention interactions between mutually independent document chunks are inherently sparse and contribute marginally during initial reading. The model typically processes independent semantic units first, connecting cross-document facts only at the final answer generation phase.

Therefore, rather than concatenating all documents into a single massive sequence with O(N^2) global self-attention during prefill, encoding and caching documents independently as position-invariant units and assembling them at runtime is both mathematically sound and computationally efficient.

2.2 Position-Independent Chunk Encoding and Assembly (Compile & Link)

To cache documents independently and assemble them in arbitrary order, a Compile & Link framework is employed:

  1. Compilation Step (Compile Step): Each document chunk is pre-encoded starting from relative position index 0 (Position ID = 0). The resulting Key-Value vectors are persisted in a centralized global KV store.
  2. Assembly and Positional Alignment (Link Step - Positional Re-encoding):
    • When a user query arrives, the KV caches of retrieved document chunks are fetched in arbitrary order.
    • Leveraging the relative positioning properties of Rotary Position Embeddings (RoPE), the Key vectors are rotated/shifted to align with their actual global sequence offsets (P_{\text{offset}}).
    • This eliminates the need to re-prefill raw text, allowing zero-computation concatenation of KV cache blocks directly within GPU memory.

2.3 Cross-Document Attention Recovery and the Role of Reasoning Tokens

Simply concatenating independently encoded chunks introduces two primary structural distortions:

  • Attention Sink Distortion: Because each chunk was pre-encoded from position 0, excessive attention weights concentrate on the initial tokens of each chunk (the attention sink effect), preventing the model from properly attending to earlier documents.
  • Severed Cross-Document Reasoning: Interactions necessary to verify and correlate multi-hop facts across distinct documents are entirely absent during independent prefill.
Diagram of the Attention Sink phenomenon and initial token retention in StreamingLLM

Diagram of the Attention Sink phenomenon and initial token retention in StreamingLLM

Source: MIT HAN Lab

The diagram above illustrates the attention sink phenomenon identified in StreamingLLM (Xiao et al.), where early tokens absorb disproportionate attention scores. When chunks are independently encoded starting from position 0, identical sink distortions manifest across chunk boundaries, requiring static or dynamic mitigation.

To resolve these challenges, reasoning tokens (thinking tokens / latent scratchpads) are strategically leveraged:

  1. Test-Time Dynamic Cross-Attention Synthesis:
    • Traditional prefix prefill attempts to compute all pairwise token interactions simultaneously at quadratic complexity (O(N^2)).
    • Under the proposed approach, prefill preserves independent chunk representations, while post-query generation induces explicit reasoning tokens (t_{\text{think}}).
    • During decoding, each reasoning token utilizes causal attention to cross-attend over the concatenated global KV cache, actively retrieving and linking necessary cross-document clues.
    • For complex multi-hop queries, initial reasoning tokens extract evidence from Chunk A to construct intermediate hypotheses, while subsequent reasoning tokens inspect Chunk B to confirm or refine findings (iterative evidence synthesis). This reconstructs cross-document interactions with linear decoding cost (O(T_{\text{reasoning}} \cdot N)), bypassing expensive O(N^2) prefill.
  2. Special Link Tokens and Selective Recomputation:
    • Trainable link tokens placed at chunk boundaries provide structured cross-attention conduits, or a minor set of initial tokens (k \le 32) can be recomputed at runtime to neutralize sink distortions.
    • This ensures that reasoning tokens navigate the global context without getting trapped in localized attention sinks.

2.4 Cross-Session and Cross-User Global Knowledge Cache

Under conventional prefix caching, variations in user queries prevent cache sharing even when users reference identical underlying documents. Position-independent assembly unlocks fundamental advantages:

  • Enterprise knowledge repositories, product manuals, and static web pages (immutable chunks) are compiled offline exactly once into a shared store.
  • Regardless of user identities, session history, or chunk retrieval ordering, the KV blocks are instantly composable at runtime, achieving a theoretical 100% cache hit rate for static knowledge bases.
  • arXivSource 1, Epic : Efficient Position-Independent Context Caching for Serving Large Language ModelsLarge Language Models (LLMs) are critical for a wide range of applications, but serving them efficiently becomes increasingly challenging as inputs become more complex. Context caching improves serving performance by exploiting inter-request dependency and reusing key-value (KV) cache across requests, thus improving time-to-first-token (TTFT). However, existing prefix-based context caching requires exact token-prefix matches, limiting cache reuse in few-shot learning, multi-document QA, or retrieval-augmented generation, where prefixes may vary while some content, such as files, remains unchanged. To address this issue, in this paper, we present Epic , an LLM serving system that introduces position-independent context caching (PIC), enabling modular KV cache reuse regardless of prefix and token chunk position. Epic incorporates a LegoLink algorithm, which leverages static attention sparsity, eliminating the influence of the attention sink phenomenon in each chunk, to minimize recomputation for accuracy recovery when using PIC. Our experiments demonstrate that Epic delivers up to $8\times$ improvements in TTFT and $7\times$ throughput over existing systems, with negligible or no accuracy loss.
  • arXivSource 2, KVLink : Accelerating Large Language Models via Efficient KV Cache ReuseWe describe KVLink , an approach for efficient key-value (KV) cache reuse in large language models (LLMs). In many LLM applications, different inputs can share overlapping context, such as the same retrieved document appearing in multiple queries. However, the LLMs still need to encode the entire context for each query, leading to redundant computation. In this paper, we propose a new strategy to eliminate such inefficiency, where the KV cache of each document is precomputed independently. During inference, the KV caches of retrieved documents are concatenated, allowing the model to reuse cached representations instead of recomputing them. To mitigate the performance degradation of LLMs when using KV caches computed independently for each document, KVLink introduces three key components: adjusting positional embeddings of the KV cache at inference to match the global position after concatenation, using trainable special tokens to restore self-attention across independently encoded documents, and applying mixed-data fine-tuning to enhance performance while preserving the model’s original capabilities. Experiments across 7 datasets demonstrate that KVLink improves question answering accuracy by an average of 4% over state-of-the-art methods. Furthermore, by leveraging precomputed KV caches, our approach reduces time-to-first-token by up to 90% compared to standard LLM inference, making it a scalable and efficient solution for context reuse. Code is available at .

3. Related Prior Work and Experimental Results Analysis

Recent literature on position-independent caching and cross-document attention recovery provides key quantitative insights:

3.1 Prompt Cache: Modular Attention Reuse (MLSys 2024)

  • Core Concept: Precomputes and caches reusable text segments (system prompts, few-shot examples, document templates) as modular units.
  • Performance and Limitations: While delivering an 8–10x TTFT speedup for shared prefixes, it remains strictly bound to prefix-matching rules. Any prefix mismatch completely disables cache reuse.
  • Accuracy Degradation: When modules are reused across mismatched prefixes without positional correction, positional embedding distortions cause catastrophic accuracy drops on QA benchmarks (e.g., dropping to 20.5% on HotpotQA and 18.6% on NaturalQuestions).

3.2 CacheBlend: Fast LLM Serving for RAG with Cached Knowledge Fusion (ACM EuroSys 2025 Best Paper)

System architecture diagram from the CacheBlend paper (Figure 11: Loading Controller, KV Cache Store, and Cache Fusor pipeline)

System architecture diagram from the CacheBlend paper (Figure 11: Loading Controller, KV Cache Store, and Cache Fusor pipeline)

Source: velog

The figure above depicts the system architecture from the CacheBlend paper (Figure 11), detailing the pipeline consisting of the hash-indexed KV Cache Store, the Loading Controller that conceals I/O latency via offline profiling, and the Cache Fusor that selectively updates 15% of tokens.

  • Core Concept: After concatenating independently cached chunks in arbitrary order, CacheBlend performs a full forward pass on the first layer to identify the top ~15% of tokens exhibiting High KV Discrepancy (HKVD). Subsequent layers recompute attention solely for this 15% subset to approximate cross-attention.
  • Quantitative Results:
    • Latency and Throughput: Achieved a 2.2x–3.3x TTFT reduction compared to full recomputation, boosting serving throughput by 2.8x–5x at equivalent TTFT targets.
    • Accuracy Preservation: Maintained near-lossless ROUGE and F1 scores on single-document summarization (e.g., MultiNews, SAMSum).
    • Limitations on Complex QA: Because only 15% of tokens are updated, performance collapsed on multi-hop benchmarks (e.g., Llama-3.2-1B scored only 28.7% on HotpotQA and 3.7% on MuSiQue, down from baseline scores of 49.3% and 13.8%, respectively).

3.3 EPIC & LegoLink: Efficient Position-Independent Caching (ICML 2025 / arXiv 2024, Hu et al.)

Serving system architecture diagram from the EPIC paper (Figure 3: KVCompile compilation step and KVLink link step pipeline)

Serving system architecture diagram from the EPIC paper (Figure 3: KVCompile compilation step and KVLink link step pipeline)

Source: ICML 2026

The diagram above presents the end-to-end serving architecture from the EPIC paper (Figure 3). It shows KVCompile (compilation phase), which pre-encodes immutable chunks with assigned cache IDs, and the KVLink Scheduler (linking phase), which applies the LegoLink algorithm to stitch chunks, recompute sink tokens, and launch decoding.

  • Core Mechanism: Formalized position-independent caching into a two-stage 'Compile & Link' framework. It identified that attention errors in independent encoding stem predominantly from attention sinks at chunk boundaries (tokens encoded at position 0 absorbing abnormal attention shares).
  • LegoLink Algorithm: Replaced dynamic token selection with static recomputation of the first k tokens (k \le 32) per chunk, neutralizing sink distortions and reducing complexity from O(0.15 N^2) to O(kN) \sim O(N).
  • Quantitative Results:
    • TTFT and Throughput: Delivered up to a 3x TTFT speedup over CacheBlend, an 8x speedup over un-cached baselines, and up to a 7x throughput gain under concurrent serving workloads.
    • Accuracy Defense: Restricted F1 degradation to within 7% across LongBench evaluations (2WikiMQA, HotpotQA, MultiNews) and Needle-in-a-Haystack tasks.

3.4 KVLink: Accelerating LLMs via Efficient KV Cache Reuse (NeurIPS 2025/2026, Yang et al.)

Attention link structure via positional re-encoding (RoPE Shift) and trainable link tokens in KVLink

Attention link structure via positional re-encoding (RoPE Shift) and trainable link tokens in KVLink

Source: NeurIPS 2026

The figure above illustrates the core mechanisms from KVLink (Figures 1 and 2), highlighting how positional re-encoding (RoPE Shift) aligns coordinate frames and trainable link tokens restore cross-chunk attention pathways.

  • Background and Design Rationale:

    • Dynamic recomputation approaches like CacheBlend incur severe runtime profiling overhead and falter on multi-hop questions.
    • KVLink avoids raw-text re-encoding altogether, relying instead on mathematical coordinate transformation of Key vectors combined with minimal trainable bridge tokens (Link Tokens).
  • Two Primary Architectural Mechanisms:

    1. KV Cache Positional Re-encoding:
      • Chunks are pre-encoded offline starting at position index 0 (p \in [0, L_{\text{chunk}}-1]).
      • At runtime assembly, Key vectors are rotated by an angular displacement \Delta \theta = P_{\text{offset}} \cdot \Theta using an ultra-fast GPU kernel (O(1)), synchronizing coordinate systems across the concatenated sequence.
    2. Trainable Link Tokens:
      • Positional realignment alone leaves attention sinks unmitigated and cross-chunk context unbridged.
      • KVLink inserts 1–5 lightweight trainable link tokens at chunk boundaries. These act as soft semantic bridges, summarizing upstream context and enabling downstream tokens to attend smoothly across prior document caches.
  • Training and Optimization:

    • Link token embeddings are tuned on multi-document QA and summarization datasets (e.g., 2WikiMQA, HotpotQA, FineWeb) while base model weights remain intact.
    • Benchmark evaluations (IFEval, GSM8K, MMLU) confirmed zero catastrophic forgetting, preserving 100% of the underlying model's base capabilities.
    • Synergy with Cache Compression: When combined with pruning/compression techniques (such as AnLLMs) to reduce KV size by 50%–75%, link tokens robustly preserve critical semantic continuity.
  • Quantitative Benchmark Performance:

    • TTFT Reduction: Because chunks are loaded instantly and only link tokens undergo forward evaluation, TTFT was reduced by 85% to 96% (reaching a 96% reduction at a context length of 5,000 tokens).
    • Multi-hop QA Accuracy (Llama-3.2-1B):
      • NaturalQuestions: KVLink 45.0% (Baseline 44.6%, CacheBlend 25.7%)
      • 2WikiMQA: KVLink 66.0% (Baseline 61.8%, CacheBlend 31.0%)
      • HotpotQA: KVLink 55.6% (Baseline 49.3%, CacheBlend 28.7%)
      • MuSiQue: KVLink 19.2% (Baseline 13.8%, CacheBlend 3.7%)
      • KVLink not only reversed the steep accuracy drops seen in partial recomputation frameworks but outperformed full recomputation baselines across multi-hop benchmarks.

3.5 Comb: Native Position-Independent Caching with Encoder Plug-in (arXiv 2026, Zhao et al.)

  • Core Concept: Integrates a lightweight encoder plug-in (e.g., 8 encoder layers interleaved across 32 decoder layers) into standard decoder-only LLMs, embedding position-independent caching as a native architectural capability.
  • Completely Frozen Decoder:
    • The original decoder parameters remain strictly frozen. Only the encoder layers and cross-attention adapters are trained for PIC, eliminating catastrophic forgetting risks and allowing seamless reversion to vanilla decoder execution.
  • Quantitative Results and Key Advantages:
    • 75% KV Memory Reduction: Because document KV caches are generated and retained solely within the encoder layers (L_E = 8 \ll L_D = 32), KV cache footprint drops by 75%.
    • Latency and Throughput: Delivers a 51%–94% TTFT reduction on cache hits and scales serving throughput by up to 3x.
    • Accuracy Parity: Matches or surpasses full prefix-based attention across LongBench and multi-document QA tasks.
  • arXivSource 2, KVLink : Accelerating Large Language Models via Efficient KV Cache ReuseWe describe KVLink , an approach for efficient key-value (KV) cache reuse in large language models (LLMs). In many LLM applications, different inputs can share overlapping context, such as the same retrieved document appearing in multiple queries. However, the LLMs still need to encode the entire context for each query, leading to redundant computation. In this paper, we propose a new strategy to eliminate such inefficiency, where the KV cache of each document is precomputed independently. During inference, the KV caches of retrieved documents are concatenated, allowing the model to reuse cached representations instead of recomputing them. To mitigate the performance degradation of LLMs when using KV caches computed independently for each document, KVLink introduces three key components: adjusting positional embeddings of the KV cache at inference to match the global position after concatenation, using trainable special tokens to restore self-attention across independently encoded documents, and applying mixed-data fine-tuning to enhance performance while preserving the model’s original capabilities. Experiments across 7 datasets demonstrate that KVLink improves question answering accuracy by an average of 4% over state-of-the-art methods. Furthermore, by leveraging precomputed KV caches, our approach reduces time-to-first-token by up to 90% compared to standard LLM inference, making it a scalable and efficient solution for context reuse. Code is available at .
  • arXivSource 1, Epic : Efficient Position-Independent Context Caching for Serving Large Language ModelsLarge Language Models (LLMs) are critical for a wide range of applications, but serving them efficiently becomes increasingly challenging as inputs become more complex. Context caching improves serving performance by exploiting inter-request dependency and reusing key-value (KV) cache across requests, thus improving time-to-first-token (TTFT). However, existing prefix-based context caching requires exact token-prefix matches, limiting cache reuse in few-shot learning, multi-document QA, or retrieval-augmented generation, where prefixes may vary while some content, such as files, remains unchanged. To address this issue, in this paper, we present Epic , an LLM serving system that introduces position-independent context caching (PIC), enabling modular KV cache reuse regardless of prefix and token chunk position. Epic incorporates a LegoLink algorithm, which leverages static attention sparsity, eliminating the influence of the attention sink phenomenon in each chunk, to minimize recomputation for accuracy recovery when using PIC. Our experiments demonstrate that Epic delivers up to $8\times$ improvements in TTFT and $7\times$ throughput over existing systems, with negligible or no accuracy loss.
  • arXivSource 4, You Need an Encoder for Native Position-Independent CachingThe 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 KV reuse without positional constraints; however, existing approaches often incur substantial accuracy degradation, limiting their practical adoption. To address this issue, we propose native PIC by reintroducing the encoder to prevalent decoder-only LLMs and explicitly training it to support PIC. We further develop Comb , a PIC-aware caching system that integrates seamlessly with existing inference frameworks. Experimental results show that Comb reduces Time-to-First-Token (TTFT) by 51-94% and increases throughput by 3 $\times$ with comparable accuracy. Furthermore, the quality improvement when using DeepSeek-V2-Lite-Chat demonstrates the applicability of Comb to other types of decoder-only LLMs. Our code is available at

4. Benchmark Performance Comparison with Prior Work

The quantitative findings reported across recent position-independent caching studies (KVLink, EPIC, CacheBlend, Comb) are synthesized below:

4.1 Quantitative Performance Benchmark Comparison

Metric / BenchmarkFull Recompute (Baseline)Prompt Cache (Prefix Mismatch)CacheBlend (Top 15% Dynamic Recompute)LegoLink / EPIC (First k Static Recompute)KVLink (RoPE Shift + Link Tokens)Comb (Encoder Plug-in Native PIC)
NaturalQuestions (QA)44.6%18.6%25.7%-45.0% (Recovered)Equal or Superior
HotpotQA (Multi-hop)49.3%20.5%28.7%F1 Loss < 7%55.6% (+6.3%p vs. Baseline)Equal or Superior
2WikiMQA (Multi-hop)61.8%19.5%31.0%F1 Loss < 5%66.0% (+4.2%p vs. Baseline)Equal or Superior
MuSiQue (Complex QA)13.8%1.4%3.7%-19.2% (Preserves Reasoning)Equal or Superior
TTFT ReductionBaseline (0%)Conditional 80–90% (Matching Prefix)55%–70% (2.2–3.3x speedup)Up to 88% (3–8x speedup)85%–96% (96% at 5k tokens)51%–94%
Throughput GainBaseline (1x)Conditional 2–3x2.8x–5x gainUp to 7x gainScales to massive concurrencyUp to 3x gain
KV Cache Memory SavingsBaseline (0%)0%0%0%50–75% with compression75% Native Reduction (L_E \ll L_D)
Prefill Computational ComplexityO(N^2)O(N^2) (Full recomputation on mismatch)O(0.15 \times N^2)O(kN) \sim O(N)O(L \cdot N) \sim O(N) (L: Link Tokens)O(L_E l_{\text{doc}}^2 + L_{\text{cross}} l_{\text{query}} l_{\text{doc}})
Base Model Weight ModificationN/ANone (Tuning-free)None (Tuning-free)None (Tuning-free)Lightweight Link Token Tuning (No forgetting)Decoder Fully Frozen (Plug-in trained)
  • arXivSource 4, You Need an Encoder for Native Position-Independent CachingThe 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 KV reuse without positional constraints; however, existing approaches often incur substantial accuracy degradation, limiting their practical adoption. To address this issue, we propose native PIC by reintroducing the encoder to prevalent decoder-only LLMs and explicitly training it to support PIC. We further develop Comb , a PIC-aware caching system that integrates seamlessly with existing inference frameworks. Experimental results show that Comb reduces Time-to-First-Token (TTFT) by 51-94% and increases throughput by 3 $\times$ with comparable accuracy. Furthermore, the quality improvement when using DeepSeek-V2-Lite-Chat demonstrates the applicability of Comb to other types of decoder-only LLMs. Our code is available at
  • arXivSource 2, KVLink : Accelerating Large Language Models via Efficient KV Cache ReuseWe describe KVLink , an approach for efficient key-value (KV) cache reuse in large language models (LLMs). In many LLM applications, different inputs can share overlapping context, such as the same retrieved document appearing in multiple queries. However, the LLMs still need to encode the entire context for each query, leading to redundant computation. In this paper, we propose a new strategy to eliminate such inefficiency, where the KV cache of each document is precomputed independently. During inference, the KV caches of retrieved documents are concatenated, allowing the model to reuse cached representations instead of recomputing them. To mitigate the performance degradation of LLMs when using KV caches computed independently for each document, KVLink introduces three key components: adjusting positional embeddings of the KV cache at inference to match the global position after concatenation, using trainable special tokens to restore self-attention across independently encoded documents, and applying mixed-data fine-tuning to enhance performance while preserving the model’s original capabilities. Experiments across 7 datasets demonstrate that KVLink improves question answering accuracy by an average of 4% over state-of-the-art methods. Furthermore, by leveraging precomputed KV caches, our approach reduces time-to-first-token by up to 90% compared to standard LLM inference, making it a scalable and efficient solution for context reuse. Code is available at .
  • arXivSource 1, Epic : Efficient Position-Independent Context Caching for Serving Large Language ModelsLarge Language Models (LLMs) are critical for a wide range of applications, but serving them efficiently becomes increasingly challenging as inputs become more complex. Context caching improves serving performance by exploiting inter-request dependency and reusing key-value (KV) cache across requests, thus improving time-to-first-token (TTFT). However, existing prefix-based context caching requires exact token-prefix matches, limiting cache reuse in few-shot learning, multi-document QA, or retrieval-augmented generation, where prefixes may vary while some content, such as files, remains unchanged. To address this issue, in this paper, we present Epic , an LLM serving system that introduces position-independent context caching (PIC), enabling modular KV cache reuse regardless of prefix and token chunk position. Epic incorporates a LegoLink algorithm, which leverages static attention sparsity, eliminating the influence of the attention sink phenomenon in each chunk, to minimize recomputation for accuracy recovery when using PIC. Our experiments demonstrate that Epic delivers up to $8\times$ improvements in TTFT and $7\times$ throughput over existing systems, with negligible or no accuracy loss.

5. Core Limitations of Prior Work and Key Challenges

Despite substantial advances in TTFT acceleration and cache reuse, existing methods present critical engineering and algorithmic bottlenecks when deployed in enterprise production environments and complex reasoning workflows:

5.1 Degradation in Complex Multi-hop Reasoning and Limitations of Single-Pass Prefill

  • The Problem: Frameworks like CacheBlend and LegoLink encode documents independently and rely on minimal token updates during prefill. However, for queries requiring the synthesis of disparate facts across multiple documents (multi-hop reasoning in MuSiQue or HotpotQA), cross-document attention remains insufficiently formed, yielding factual hallucinations or omission errors.
  • Mitigation via Reasoning Tokens: Instead of depending on a single-pass prefill, inducing explicit reasoning tokens (thinking tokens / Chain-of-Thought scratchpads) post-query allows the model to dynamically traverse and synthesize the assembled KV cache during decoding. This recovers inter-document interactions lost during isolated chunk prefill.

5.2 Runtime Overhead of Dynamic Selection Algorithms and Scalability Bottlenecks

  • The Problem: Dynamic profiling mechanisms, such as CacheBlend's identification of top-15% HKVD tokens, execute a full forward pass on the first transformer layer and compute discrepancy maps at runtime. This dynamic step consumes 16.3% to 63.5% of total TTFT. At extended context lengths (32k–128k+ tokens), the O(0.15 N^2) recomputation complexity reintroduces severe GPU memory pressure and latency spikes.
  • Mitigation: Eliminating runtime dynamic selection in favor of static boundary recomputation (O(kN), LegoLink) or O(1) mathematical coordinate shifts (RoPE Shift, KVLink) minimizes assembly overhead.

5.3 Model Fine-Tuning Dependency vs. Serving Generality Dilemma

  • The Problem: While KVLink delivers top accuracy, it requires multi-step supervised fine-tuning over diverse multi-document datasets (2WikiMQA, FineWeb, Tülu 3) to synchronize link tokens with model representations. This requirement hinders adoption on proprietary black-box APIs or massive models where parameter tuning is cost-prohibitive.
  • Mitigation:
    1. Frozen-Decoder Architectures (Comb): Keeping the primary decoder strictly frozen while training only lightweight encoder adapters protects foundation weights.
    2. Advanced tuning-free attention sink masking techniques.
    3. Leveraging pre-trained reasoning models (e.g., DeepSeek-R1, OpenAI o-series) whose intrinsic chain-of-thought capabilities bridge cross-document context at the decoding level without requiring structural fine-tuning.

5.4 KV Storage Capacity and Host-to-GPU I/O Transfer Bottlenecks

  • The Problem: Pre-compiling millions of document chunks in enterprise corpora produces tens of terabytes of FP16 KV data. Storing this entirely in GPU HBM is infeasible, necessitating live streaming from CPU DRAM or NVMe storage. PCIe bandwidth saturation during transfer can negate TTFT savings.
  • Mitigation:
    1. Structural Memory Reduction: Encoder plug-in models (Comb) store KV entries solely for a small subset of layers (L_E = 8 \ll L_D = 32), cutting storage volume by 75%.
    2. KV Cache Quantization and Sparsification: Applying FP8/INT4 quantization and token pruning (AnLLMs, KIVI) further curtails data transmission volumes.
    3. Tiered Asynchronous Prefetching: Coordinating with retriever pipelines to prefetch candidate chunk caches into GPU memory ahead of query execution hides transfer latency behind compute.

5.5 Chunk Granularity and Disrupted Context Boundaries

  • The Problem: Fixed-size chunking (e.g., 512 tokens) arbitrarily splits sentences and structural units, severing boundary attention. Additionally, tail-end semantic dependencies fail to propagate smoothly into subsequent chunks.
  • Mitigation: Adopting semantic chunking along paragraph boundaries, paired with small overlapping token windows and deduplication protocols during assembly, preserves textual continuity.
  • arXivSource 2, KVLink : Accelerating Large Language Models via Efficient KV Cache ReuseWe describe KVLink , an approach for efficient key-value (KV) cache reuse in large language models (LLMs). In many LLM applications, different inputs can share overlapping context, such as the same retrieved document appearing in multiple queries. However, the LLMs still need to encode the entire context for each query, leading to redundant computation. In this paper, we propose a new strategy to eliminate such inefficiency, where the KV cache of each document is precomputed independently. During inference, the KV caches of retrieved documents are concatenated, allowing the model to reuse cached representations instead of recomputing them. To mitigate the performance degradation of LLMs when using KV caches computed independently for each document, KVLink introduces three key components: adjusting positional embeddings of the KV cache at inference to match the global position after concatenation, using trainable special tokens to restore self-attention across independently encoded documents, and applying mixed-data fine-tuning to enhance performance while preserving the model’s original capabilities. Experiments across 7 datasets demonstrate that KVLink improves question answering accuracy by an average of 4% over state-of-the-art methods. Furthermore, by leveraging precomputed KV caches, our approach reduces time-to-first-token by up to 90% compared to standard LLM inference, making it a scalable and efficient solution for context reuse. Code is available at .
  • arXivSource 4, You Need an Encoder for Native Position-Independent CachingThe 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 KV reuse without positional constraints; however, existing approaches often incur substantial accuracy degradation, limiting their practical adoption. To address this issue, we propose native PIC by reintroducing the encoder to prevalent decoder-only LLMs and explicitly training it to support PIC. We further develop Comb , a PIC-aware caching system that integrates seamlessly with existing inference frameworks. Experimental results show that Comb reduces Time-to-First-Token (TTFT) by 51-94% and increases throughput by 3 $\times$ with comparable accuracy. Furthermore, the quality improvement when using DeepSeek-V2-Lite-Chat demonstrates the applicability of Comb to other types of decoder-only LLMs. Our code is available at
  • arXivSource 1, Epic : Efficient Position-Independent Context Caching for Serving Large Language ModelsLarge Language Models (LLMs) are critical for a wide range of applications, but serving them efficiently becomes increasingly challenging as inputs become more complex. Context caching improves serving performance by exploiting inter-request dependency and reusing key-value (KV) cache across requests, thus improving time-to-first-token (TTFT). However, existing prefix-based context caching requires exact token-prefix matches, limiting cache reuse in few-shot learning, multi-document QA, or retrieval-augmented generation, where prefixes may vary while some content, such as files, remains unchanged. To address this issue, in this paper, we present Epic , an LLM serving system that introduces position-independent context caching (PIC), enabling modular KV cache reuse regardless of prefix and token chunk position. Epic incorporates a LegoLink algorithm, which leverages static attention sparsity, eliminating the influence of the attention sink phenomenon in each chunk, to minimize recomputation for accuracy recovery when using PIC. Our experiments demonstrate that Epic delivers up to $8\times$ improvements in TTFT and $7\times$ throughput over existing systems, with negligible or no accuracy loss.

6. Proposed System Architecture and Implementation Considerations

Integrating position-independent caching and reasoning-driven synthesis into production engines (e.g., vLLM, SGLang) requires several concrete engineering solutions:

  1. Optimized RoPE Shift GPU Kernels:
    • High-throughput custom CUDA/Triton kernels must be deployed to apply phase rotation offsets (P_{\text{offset}}) to pre-cached Key vectors during memory loading at near-zero latency.
  2. Attention Sink Static Isolation:
    • Incorporating dummy sink tokens during pre-compilation or applying lightweight static recomputation to the initial 16–32 tokens per chunk (LegoLink style) isolates attention distortions.
  3. Reasoning Token Compute Budget and Termination Policies:
    • Providing adequate reasoning budgets for multi-hop synthesis while enforcing dynamic budget caps ensures that thinking-token expansion does not unnecessarily inflate total Time-To-Output.
  4. Tiered Global KV Pool and PagedAttention Extension:
    • Constructing a unified storage manager spanning Host Memory (CXL/DRAM), NVMe SSDs, and GPU HBM, paired with global LRU/LFU eviction across independent PagedAttention blocks, enables seamless cluster-wide cache reuse.
  • arXivSource 1, Epic : Efficient Position-Independent Context Caching for Serving Large Language ModelsLarge Language Models (LLMs) are critical for a wide range of applications, but serving them efficiently becomes increasingly challenging as inputs become more complex. Context caching improves serving performance by exploiting inter-request dependency and reusing key-value (KV) cache across requests, thus improving time-to-first-token (TTFT). However, existing prefix-based context caching requires exact token-prefix matches, limiting cache reuse in few-shot learning, multi-document QA, or retrieval-augmented generation, where prefixes may vary while some content, such as files, remains unchanged. To address this issue, in this paper, we present Epic , an LLM serving system that introduces position-independent context caching (PIC), enabling modular KV cache reuse regardless of prefix and token chunk position. Epic incorporates a LegoLink algorithm, which leverages static attention sparsity, eliminating the influence of the attention sink phenomenon in each chunk, to minimize recomputation for accuracy recovery when using PIC. Our experiments demonstrate that Epic delivers up to $8\times$ improvements in TTFT and $7\times$ throughput over existing systems, with negligible or no accuracy loss.
  • arXivSource 2, KVLink : Accelerating Large Language Models via Efficient KV Cache ReuseWe describe KVLink , an approach for efficient key-value (KV) cache reuse in large language models (LLMs). In many LLM applications, different inputs can share overlapping context, such as the same retrieved document appearing in multiple queries. However, the LLMs still need to encode the entire context for each query, leading to redundant computation. In this paper, we propose a new strategy to eliminate such inefficiency, where the KV cache of each document is precomputed independently. During inference, the KV caches of retrieved documents are concatenated, allowing the model to reuse cached representations instead of recomputing them. To mitigate the performance degradation of LLMs when using KV caches computed independently for each document, KVLink introduces three key components: adjusting positional embeddings of the KV cache at inference to match the global position after concatenation, using trainable special tokens to restore self-attention across independently encoded documents, and applying mixed-data fine-tuning to enhance performance while preserving the model’s original capabilities. Experiments across 7 datasets demonstrate that KVLink improves question answering accuracy by an average of 4% over state-of-the-art methods. Furthermore, by leveraging precomputed KV caches, our approach reduces time-to-first-token by up to 90% compared to standard LLM inference, making it a scalable and efficient solution for context reuse. Code is available at .

7. Conclusion

The combination of position-invariant chunk caching with arbitrary assembly and reasoning token-guided cross-document synthesis addresses the core bottlenecks limiting state-of-the-art serving frameworks (CacheBlend, EPIC, KVLink, Comb): namely, severed multi-hop reasoning and runtime recomputation overhead.

By shifting the prefill stage to O(1) positional re-encoding, static sink suppression, and encoder-based reduction, TTFT is curtailed by over 90% alongside substantial memory savings. Simultaneously, delegating cross-document relational reasoning to decoding-stage thinking tokens guarantees multi-hop factual accuracy, paving the way for scalable, 100% cache-reusable enterprise LLM serving.

  • arXivSource 4, You Need an Encoder for Native Position-Independent CachingThe 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 KV reuse without positional constraints; however, existing approaches often incur substantial accuracy degradation, limiting their practical adoption. To address this issue, we propose native PIC by reintroducing the encoder to prevalent decoder-only LLMs and explicitly training it to support PIC. We further develop Comb , a PIC-aware caching system that integrates seamlessly with existing inference frameworks. Experimental results show that Comb reduces Time-to-First-Token (TTFT) by 51-94% and increases throughput by 3 $\times$ with comparable accuracy. Furthermore, the quality improvement when using DeepSeek-V2-Lite-Chat demonstrates the applicability of Comb to other types of decoder-only LLMs. Our code is available at
  • arXivSource 1, Epic : Efficient Position-Independent Context Caching for Serving Large Language ModelsLarge Language Models (LLMs) are critical for a wide range of applications, but serving them efficiently becomes increasingly challenging as inputs become more complex. Context caching improves serving performance by exploiting inter-request dependency and reusing key-value (KV) cache across requests, thus improving time-to-first-token (TTFT). However, existing prefix-based context caching requires exact token-prefix matches, limiting cache reuse in few-shot learning, multi-document QA, or retrieval-augmented generation, where prefixes may vary while some content, such as files, remains unchanged. To address this issue, in this paper, we present Epic , an LLM serving system that introduces position-independent context caching (PIC), enabling modular KV cache reuse regardless of prefix and token chunk position. Epic incorporates a LegoLink algorithm, which leverages static attention sparsity, eliminating the influence of the attention sink phenomenon in each chunk, to minimize recomputation for accuracy recovery when using PIC. Our experiments demonstrate that Epic delivers up to $8\times$ improvements in TTFT and $7\times$ throughput over existing systems, with negligible or no accuracy loss.
  • arXivSource 2, KVLink : Accelerating Large Language Models via Efficient KV Cache ReuseWe describe KVLink , an approach for efficient key-value (KV) cache reuse in large language models (LLMs). In many LLM applications, different inputs can share overlapping context, such as the same retrieved document appearing in multiple queries. However, the LLMs still need to encode the entire context for each query, leading to redundant computation. In this paper, we propose a new strategy to eliminate such inefficiency, where the KV cache of each document is precomputed independently. During inference, the KV caches of retrieved documents are concatenated, allowing the model to reuse cached representations instead of recomputing them. To mitigate the performance degradation of LLMs when using KV caches computed independently for each document, KVLink introduces three key components: adjusting positional embeddings of the KV cache at inference to match the global position after concatenation, using trainable special tokens to restore self-attention across independently encoded documents, and applying mixed-data fine-tuning to enhance performance while preserving the model’s original capabilities. Experiments across 7 datasets demonstrate that KVLink improves question answering accuracy by an average of 4% over state-of-the-art methods. Furthermore, by leveraging precomputed KV caches, our approach reduces time-to-first-token by up to 90% compared to standard LLM inference, making it a scalable and efficient solution for context reuse. Code is available at .