CORE-RAG: Lossless Compression for Retrieval-Augmented LLMs via Reinforcement Learning

Ziqiang Cui, Yunpeng Weng, Xing Tang, Peiyang Liu, Shiwei Li +5 more
8/24/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Retrieval-Augmented Generation (RAG) has emerged as a promising approach to enhance the timeliness of knowledge updates and the factual accuracy of responses in large language models. However, incorporating a large number of retrieved documents significantly increases input length, leading to higher computational costs. Existing approaches to document compression tailored for RAG often degrade task performance, as they typically rely on predefined heuristics in the absence of clear compression guidelines. These heuristics fail to ensure that the compressed content effectively supports downstream tasks. To address these limitations, we propose CORE, a novel method for lossless context compression in RAG. CORE is optimized end-to-end and does not depend on predefined compression labels, which are often impractical to obtain. Instead, it leverages downstream task performance as a feedback signal, iteratively refining the compression policy to enhance task effectiveness. Extensive experiments across four datasets demonstrate the effectiveness of CORE. With a high compression ratio of 3%, CORE not only prevents performance degradation compared to including full documents (i.e., without compression) but also improves the average Exact Match (EM) score by 3.3 points. The code for CORE will be released soon.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{cui2025corerag,
  title  = {CORE-RAG: Lossless Compression for Retrieval-Augmented LLMs via Reinforcement Learning},
  author = {Ziqiang Cui and Yunpeng Weng and Xing Tang and Peiyang Liu and Shiwei Li and Bowei He and Jiamin Chen and Yansen Zhang and Xiuqiang He and Chen Ma},
  year   = {2025},
  eprint = {2508.19282},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.19282v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.19282.svg)](https://codeofpaper.com/paper/2508.19282)

Discussion