SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compression

Yiqiao Jin, Kartik Sharma, Vineeth Rakesh, Yingtong Dou, Menghai Pan +2 more
7/8/2025
cs.CLcs.AIcs.IR

No official code found. Best implementation: Ahren09/SARA (262 stars, Apache-2.0, last commit 2025-08-17).

Abstract

Retrieval-augmented Generation (RAG) extends large language models (LLMs) with external knowledge but faces key challenges: restricted effective context length and redundancy in retrieved documents. Pure compression-based approaches reduce input size but often discard fine-grained details essential for factual accuracy. We propose SARA, a unified RAG framework that balances local precision and global knowledge coverage under tight context budgets. SARA combines natural-language text snippets with semantic compression vectors to jointly enhance context efficiency and answer correctness. It represents contexts at two complementary levels: 1) fine-grained natural-language spans that preserve critical entities and numerical values, and 2) compact, interpretable vectors that summarize high-level semantics. An iterative evidence-selection module employs the compression vectors for dynamic reranking of contexts. Across 9 datasets and 5 open-source LLMs spanning 3 model families (Mistral, Llama, and Gemma), SARA consistently improves answer relevance (+17.71), answer correctness (+13.72), and semantic similarity (+15.53), demonstrating the importance of integrating textual and compressed representations for robust, context-efficient RAG.

View on arXivView PDF

Code Implementations(1)

Ahren09/SARACommunity68%
Apache-2.0

Website for the paper "SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compression"

2620CSS, HTMLAug 16, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{jin2025sara,
  title  = {SARA: Selective and Adaptive Retrieval-augmented Generation with Context Compression},
  author = {Yiqiao Jin and Kartik Sharma and Vineeth Rakesh and Yingtong Dou and Menghai Pan and Mahashweta Das and Srijan Kumar},
  year   = {2025},
  eprint = {2507.05633},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.05633v1}
}

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/2507.05633.svg)](https://codeofpaper.com/paper/2507.05633)

Discussion