paper-with-me

홈 › Papers

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

2025-02-16 · Kun-Hui Lee, Eunhwan Park, Donghoon Han, Seung-Hoon Na

Large Language Models (LLMs) excel across a variety of language tasks yet are constrained by limited input lengths and high computational costs. Existing approaches\textemdash such as relative positional encodings (e.g., RoPE, ALiBi) and sliding window mechanisms\textemdash partially alleviate these issues but often require additional training or suffer from performance degradation with longer inputs. In this paper, we introduce \textbf{\textit{CacheFocus}}, 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 $4$K limit of the \texttt{LLaMA-2} model, emphasizing its practical effectiveness for long-context LLMs. Moreover, even with large maximum input length of \texttt{Qwen2}, the performance of CacheFocus shows that it maintains consistent performance even as the number of documents increases, effectively managing long-text generation without degradation.

📄 PDF Abstract BibTeX arXiv:2502.11101

Code (0)

등록된 구현이 없습니다.

Tasks

Natural QuestionsRetrievalRetrieval-augmented GenerationText GenerationTriviaQA

Methods 이 논문이 사용한 방법론

Pruning 설명 없음

Similar Papers 제목 키워드 기반

Can Transformer Memory Be Corrupted? Investigating Cache-Side Vulnerabilities in Large Language Models

2025-10-20 · Elias Hossain, Swayamjit Saha, Somshubhra Roy, Ravi Prasad arxiv

Even when prompts and parameters are secured, transformer language models remain vulnerable because their key-value (KV) cache during inference constitutes an overlooked attack surface. This paper introduces Malicious To…

RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generation

2024-04-18 · Chao Jin, Zili Zhang, Xuanlin Jiang, Fangyue Liu 외

Retrieval-Augmented Generation (RAG) has shown significant improvements in various natural language processing tasks by integrating the strengths of large language models (LLMs) and external knowledge databases. However,…

GPURAGRetrievalRetrieval-augmented Generation

Cache Mechanism for Agent RAG Systems

2025-11-04 · Shuhang Lin, Zhencan Peng, Lingyao Li, Xiao Lin 외 arxiv

Recent advances in Large Language Model (LLM)-based agents have been propelled by Retrieval-Augmented Generation (RAG), which grants the models access to vast external knowledge bases. Despite RAG's success in improving …

Enhancing Cache-Augmented Generation (CAG) with Adaptive Contextual Compression for Scalable Knowledge Integration

2025-05-13 · Rishabh Agrawal, Himanshu Kumar

The rapid progress in large language models (LLMs) has paved the way for novel approaches in knowledge-intensive tasks. Among these, Cache-Augmented Generation (CAG) has emerged as a promising alternative to Retrieval-Au…

RAGRetrievalRetrieval-augmented GenerationWorld Knowledge

CacheRAG: A Semantic Caching System for Retrieval-Augmented Generation in Knowledge Graph Question Answering

2026-04-28 · Yushi Sun, Lei Chen arxiv

The integration of Large Language Models (LLMs) with Retrieval-Augmented Generation (RAG) has significantly advanced Knowledge Graph Question Answering (KGQA). However, existing LLM-driven KGQA systems act as stateless p…

Graph Question AnsweringSemantic Parsing