Does RAG Really Perform Bad For Long-Context Processing?

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Luo, Kun, Liu, Zheng, Zhang, Peitian, Qian, Hongjin, Zhao, Jun, Liu, Kang
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929717927477248
author Luo, Kun
Liu, Zheng
Zhang, Peitian
Qian, Hongjin
Zhao, Jun
Liu, Kang
author_facet Luo, Kun
Liu, Zheng
Zhang, Peitian
Qian, Hongjin
Zhao, Jun
Liu, Kang
contents The efficient processing of long context poses a serious challenge for large language models (LLMs). Recently, retrieval-augmented generation (RAG) has emerged as a promising strategy for this problem, as it enables LLMs to make selective use of the long context for efficient computation. However, existing RAG approaches lag behind other long-context processing methods due to inherent limitations on inaccurate retrieval and fragmented contexts. To address these challenges, we introduce RetroLM, a novel RAG framework for long-context processing. Unlike traditional methods, RetroLM employs KV-level retrieval augmentation, where it partitions the LLM's KV cache into contiguous pages and retrieves the most crucial ones for efficient computation. This approach enhances robustness to retrieval inaccuracy, facilitates effective utilization of fragmented contexts, and saves the cost from repeated computation. Building on this framework, we further develop a specialized retriever for precise retrieval of critical pages and conduct unsupervised post-training to optimize the model's ability to leverage retrieved information. We conduct comprehensive evaluations with a variety of benchmarks, including LongBench, InfiniteBench, and RULER, where RetroLM significantly outperforms existing long-context LLMs and efficient long-context processing methods, particularly in tasks requiring intensive reasoning or extremely long-context comprehension.
format Preprint
id arxiv_https___arxiv_org_abs_2502_11444
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Does RAG Really Perform Bad For Long-Context Processing?
Luo, Kun
Liu, Zheng
Zhang, Peitian
Qian, Hongjin
Zhao, Jun
Liu, Kang
Computation and Language
The efficient processing of long context poses a serious challenge for large language models (LLMs). Recently, retrieval-augmented generation (RAG) has emerged as a promising strategy for this problem, as it enables LLMs to make selective use of the long context for efficient computation. However, existing RAG approaches lag behind other long-context processing methods due to inherent limitations on inaccurate retrieval and fragmented contexts. To address these challenges, we introduce RetroLM, a novel RAG framework for long-context processing. Unlike traditional methods, RetroLM employs KV-level retrieval augmentation, where it partitions the LLM's KV cache into contiguous pages and retrieves the most crucial ones for efficient computation. This approach enhances robustness to retrieval inaccuracy, facilitates effective utilization of fragmented contexts, and saves the cost from repeated computation. Building on this framework, we further develop a specialized retriever for precise retrieval of critical pages and conduct unsupervised post-training to optimize the model's ability to leverage retrieved information. We conduct comprehensive evaluations with a variety of benchmarks, including LongBench, InfiniteBench, and RULER, where RetroLM significantly outperforms existing long-context LLMs and efficient long-context processing methods, particularly in tasks requiring intensive reasoning or extremely long-context comprehension.
title Does RAG Really Perform Bad For Long-Context Processing?
topic Computation and Language
url https://arxiv.org/abs/2502.11444