SAGE: A Framework of Precise Retrieval for RAG

Jintao Zhang, Guoliang Li, Jinyang Su

TL;DR

This paper introduces SAGE, a novel framework for Retrieval-Augmented Generation (RAG) that significantly improves question-answering accuracy and cost-efficiency. SAGE tackles key RAG limitations by employing semantic chunking, dynamic gradient-based chunk selection, and LLM-driven self-feedback to ensure precise context retrieval.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) systems enhance Large Language Models (LLMs) by providing them with relevant external information to answer questions. While powerful, RAG systems often fail due to inaccurate retrieved context. This inaccuracy stems from two main issues:

  1. Ineffective Corpus Segmentation: Traditional RAG methods often segment documents into fixed-size chunks without considering semantic coherence. This can lead to incomplete or fragmented pieces of information, making it difficult for the LLM to understand the context and answer accurately.
  2. Noisy and Missing Retrieval: RAG systems typically retrieve a fixed number of top-ranked chunks. This creates a dilemma: retrieving too few chunks risks missing crucial information (missing retrieval), while retrieving too many can introduce irrelevant or misleading "noisy" chunks, confusing the LLM and leading to incorrect answers. Finding the right balance is challenging.

Methods

SAGE addresses these problems with a three-pronged approach:

  1. Semantic Segmentation Model: Instead of arbitrary fixed-length chunks, SAGE trains a lightweight model to segment documents into semantically complete and coherent units. This ensures that each retrieved chunk contains a focused piece of information, improving relevance.
  2. Gradient-Based Chunk Selection: SAGE moves beyond a fixed "top-K" retrieval strategy. It uses a reranking model to score retrieved chunks and then employs a dynamic selection algorithm. This algorithm identifies a "sweet spot" where relevance scores drop significantly, selecting chunks before this drop to maximize relevance and minimize noise.
  3. LLM Self-Feedback: To further refine the retrieved context, SAGE incorporates an LLM-based feedback loop. After an initial answer is generated, the LLM assesses the answer's quality and the suitability of the retrieved chunks. If the context is deemed insufficient or excessive, the LLM provides feedback to adjust the number of retrieved chunks for subsequent attempts, ensuring optimal context.

Datasets

SAGE was evaluated on several standard QA datasets:

  • NarrativeQA: For evaluating comprehensive narrative understanding.
  • QUALITY: A multiple-choice QA dataset.
  • QASPER: A dataset for information retrieval from research papers.
  • TRIVIA_QA: A large-scale reading comprehension dataset.

The paper also mentions using Wikipedia data for training the semantic segmentation model.

Key Insights and Ideas

  • Semantics Matter in Chunking: The paper strongly emphasizes that simply splitting text into fixed chunks is insufficient. Semantic coherence is crucial for effective retrieval and LLM comprehension.
  • Dynamic Retrieval is Key: The "top-K" approach is a false economy. By analyzing the rate of change in relevance scores, SAGE can dynamically select the most informative chunks, avoiding both missing and noisy retrieval.
  • LLMs as Quality Control: Leveraging LLMs not just for generation but also for evaluating the retrieved context and adjusting it is a powerful mechanism for improving RAG precision.
  • Efficiency Gains: By retrieving more precise context and avoiding noisy chunks, SAGE not only improves accuracy but also significantly reduces the token count for LLM inference, leading to cost savings.

Key Results

SAGE demonstrated significant improvements across various benchmarks:

  • QA Quality: SAGE outperformed baselines by an average of 61.25% in QA quality. On the NarrativeQA dataset, it improved ROUGE scores by up to 8.15% and BLEU-1 by up to 17.27% on average across different retrievers. On the QUALITY dataset, it achieved an average accuracy improvement of 2.88%.
  • Cost Efficiency: SAGE achieved an average enhancement of 49.41% in cost efficiency by reducing token consumption. For instance, on the QUALITY dataset, it reduced the number of tokens by 26.1% while improving accuracy.
  • Segmentation Efficiency: SAGE's semantic segmentation model was significantly faster and cheaper than using an LLM for segmentation, saving up to 91.49% of time and 99.72% of cost.
  • Scalability: SAGE maintained its performance and efficiency even under high concurrency levels (5x and 10x), showing minimal increases in memory usage.

Limitations and Future Work

The authors acknowledge several areas for future work:

  • Multi-hop Retrieval: Extending SAGE to handle scenarios where answers require synthesizing information from multiple documents.
  • LLM Fine-tuning: Exploring how fine-tuning LLMs can further enhance QA performance, potentially allowing for the use of less expensive LLMs with comparable results to more powerful ones.
  • More Flexible Chunk Selection: Investigating more advanced chunk selection strategies, possibly involving LLMs to directly select relevant chunks, to further mitigate the risk of selecting useless chunks.

Summary updated

Abstract

Retrieval-augmented generation (RAG) has demonstrated significant proficiency in conducting question-answering (QA) tasks within a specified corpus. Nonetheless, numerous failure instances of RAG in QA still exist. These failures are not solely attributable to the limitations of Large Language Models (LLMs); instead, they predominantly arise from the retrieval of inaccurate information for LLMs due to two limitations: (1) Current RAG methods segment the corpus without considering semantics, making it difficult to find relevant context due to impaired correlation between questions and the segments. (2) There is a trade-off between missing essential context with fewer context retrieved and getting irrelevant context with more context retrieved. In this paper, we introduce a RAG framework (SAGE), to overcome these limitations. First, to address the segmentation issue without considering semantics, we propose to train a semantic segmentation model. This model is trained to segment the corpus into semantically complete chunks. Second, to ensure that only the most relevant chunks are retrieved while the irrelevant ones are ignored, we design a chunk selection algorithm to dynamically select chunks based on the decreasing speed of the relevance score, leading to a more relevant selection. Third, to further ensure the precision of the retrieved chunks, we propose letting LLMs assess whether retrieved chunks are excessive or lacking and then adjust the amount of context accordingly. Experiments show that SAGE outperforms baselines by 61.25% in the quality of QA on average. Moreover, by avoiding retrieving noisy context, SAGE lowers the cost of the tokens consumed in LLM inference and achieves a 49.41% enhancement in cost efficiency on average. Additionally, our work offers valuable insights for boosting RAG.
BibTeX
@misc{zhang2025sage,
  author = {Jintao Zhang and Guoliang Li and Jinyang Su},
  title = {{SAGE: A Framework of Precise Retrieval for RAG}},
  year = {2025},
  eprint = {2503.01713},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.01713},
}
Figure