mlsanityData to 7 Oct 2026

CacheFocus: Dynamic Cache Re-Positioning for Efficient Retrieval-Augmented Generation

arXiv 2502.11101 ↗First posted 16 Feb 2025cs.CL cs.AIcited by 0

On the map: Retrieval-augmented generation → Generation and context integration

Abstract (arXiv)

Large Language Models (LLMs) excel across a variety of language tasks yet are constrained by limited input lengths and high computational costs. Existing approachestextemdash such as relative positional encodings (e.g., RoPE, ALiBi) and sliding window mechanismstextemdash partially alleviate these issues but often require additional training or suffer from performance degradation with longer inputs. In this paper, we introduce textbftextitCacheFocus, a method that enhances length normalization and reduces inference latency without any further training. Our approach leverages query-independent, offline caching to efficiently reuse a Context KV Cache Store. We address the amplification of abnormal token distributions problem by re-positioning cached keys and introducing Layer-Adaptive Cache Pruning to discard low-relevance caches during pre-filling. Additionally, our Adaptive Positional Allocation Strategy dynamically reassigns cache positions to maximize the use of the available positional encoding range. Experiments on the Natural Questions and TriviaQA datasets demonstrate that CacheFocus outperforms alternative methods even when inputs exceed the 4K limit of the textttLLaMA-2 model, emphasizing its practical effectiveness for long-context LLMs. Moreover, even with large maximum input length of textttQwen2, the performance of CacheFocus shows that it maintains consistent performance even as the number of documents increases, effectively managing long-text generation without degradation.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 19 of its 27 references that are in the map. First posted on arXiv 16 Feb 2025.

Builds on

19 of 27 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Block-Attention for Efficient Prefilling14 Sep
  2. 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection25 May
  3. 2024Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generation10 Apr

Other references · 16

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  4. 2020Longformer: The Long-Document Transformercited by 3,362
  5. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  6. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  7. 2024Qwen2 Technical Reportcited by 2,076
  8. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  9. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 302
  10. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
  11. 2022Structured Prompting: Scaling In-Context Learning to 1,000 Examplescited by 81
  12. 2022Parallel Context Windows for Large Language Modelscited by 81
4 more
  1. 2023CLEX: Continuous Length Extrapolation for Large Language Modelscited by 43
  2. 2024LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Modelscited by 23
  3. 2024FocusLLM: Precise Understanding of Long Context by Dynamic Condensingcited by 10
  4. 2024XL3M: A Training-free Framework for LLM Length Extension Based on Segment-wise Inferencecited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025CompressKV: Semantic Retrieval Heads Know What Tokens are Not Important Before Generation
  2. 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Heads
  3. 2025CTkvr: KV Cache Retrieval for Long-Context LLMs via Centroid then Token Indexing
  4. 2024ThinK: Thinner Key Cache by Query-Driven Pruning
  5. 2024Training-Free Exponential Context Extension via Cascading KV Cache
  6. 2026LazyAttention: Efficient Retrieval-Augmented Generation with Deferred Positional Encoding
  7. 2026ARC-KV: Amortizing Anchor Search for Reconstruction-Based KV Cache Compaction
  8. 2024TokenSelect: Efficient Long-Context Inference and Length Extrapolation for LLMs via Dynamic Token-Level KV Cache Selection