Multi-Source Knowledge Pruning for Retrieval-Augmented Generation: A Benchmark and Empirical Study

Shuo Yu, Mingyue Cheng, Qi Liu, Daoyu Wang, Jiqian Yang, Jie Ouyang, Yucong Luo, Chenyi Lei, Enhong Chen

TL;DR

Retrieval-Augmented Generation (RAG) is great for LLMs, but real-world applications need to handle multiple knowledge sources, which is tricky. This paper introduces PruningRAG, a novel framework that intelligently prunes these diverse sources to improve accuracy and reduce hallucinations. They also release a standardized benchmark dataset to facilitate future research in this area.

What Problem Does This Paper Address?

Large Language Models (LLMs) often "hallucinate" or generate incorrect information because their knowledge is limited to what they learned during training. Retrieval-Augmented Generation (RAG) helps by allowing LLMs to access external knowledge sources. However, most RAG research focuses on using just one type of knowledge source (like web pages or a knowledge base). In reality, information is scattered across many sources with different formats, reliability, and timeliness (e.g., messy HTML web pages vs. structured API data). Integrating these diverse sources effectively is a major challenge, and existing benchmarks often don't support this complexity. This paper tackles the problem of how to effectively prune and integrate knowledge from multiple, heterogeneous sources to improve RAG performance and reliability.

Methods

The core of this paper is the PruningRAG framework, which introduces a two-stage pruning strategy:

  • Coarse-Grained Pruning: This stage acts as a first pass to filter out entire knowledge sources that are unlikely to be relevant or might introduce noise. The authors fine-tuned an LLM on a specialized dataset to learn which sources are most appropriate for a given query. This is crucial because simply using all available sources can lead to conflicting information and hallucinations.
  • Fine-Grained Pruning: After selecting promising sources, this stage refines the content within those sources.
  • For web pages, they use a hierarchical approach: first, sparse retrieval (like BM25) to quickly narrow down the search space, followed by dense passage retrieval (DPR) to extract semantically relevant chunks. This avoids the computational cost of embedding every single web page.
  • For API data, they use Named Entity Recognition (NER) to extract key entities from the query, which then guide the API calls. The structured API responses are then converted into natural language.

The pruned knowledge is then combined with the user query and fed into the LLM for generation, enhanced by Chain-of-Thought (CoT) reasoning and In-Context Learning (ICL).

Datasets

The authors introduce a standardized benchmark dataset built upon the KDD Cup 2024 CRAG competition dataset. This dataset includes:

  • Diverse Knowledge Sources: Both unstructured web pages (with varying quality and timeliness) and structured API data.
  • Standardized Format: They cleaned HTML pages into Markdown and converted API responses into natural language, making them LLM-friendly.
  • Comprehensive Coverage: 4,409 QA pairs across various domains (finance, sports, entertainment) and question types (simple factual, conditional logic, multi-hop reasoning).
  • Realistic Simulation: They avoid pre-indexed vector databases for web pages, simulating real-time retrieval.

Key Insights and Ideas

  • Multi-source is Harder: Simply combining multiple knowledge sources doesn't automatically improve performance; it can introduce conflicting information and degrade results if not managed carefully.
  • Pruning is Key: Both coarse-grained (source selection) and fine-grained (content refinement) pruning are essential for effectively leveraging diverse knowledge sources and mitigating hallucinations.
  • LLM Fine-tuning for Source Selection: A fine-tuned LLM is significantly better at selecting relevant knowledge sources than an untuned one, which might over-prune or under-prune.
  • Sparse Retrieval as a Pre-filter: Using sparse retrieval before dense retrieval for web pages significantly reduces latency and computational cost while maintaining effectiveness.
  • Query Positioning Matters: Placing the query after the retrieved context (Query-Append) generally leads to better performance than placing it before (Query-Prepend), likely due to avoiding the "lost-in-the-middle" effect in LLMs.
  • Cross-Domain Few-Shot Examples Help: Using few-shot examples from domains different from the query can improve LLM reasoning and generalization more than domain-aligned examples.

Key Results

  • Consistent Improvement: PruningRAG consistently improved accuracy and reduced hallucination rates across various baseline RAG frameworks (Naive RAG, HyDE, Iter-RETGEN, RRR, Self-Ask, Self-RAG) and knowledge source configurations (5 web pages, 50 web pages, API, and combinations).
  • Hallucination Reduction: The reduction in hallucination was often more significant than the gain in accuracy, highlighting pruning's effectiveness in improving reliability.
  • Larger Models Benefit More: PruningRAG showed more pronounced improvements on larger LLM variants (e.g., 70B and 8B), suggesting their greater capacity to leverage the benefits of multi-granularity pruning.
  • Efficiency Gains: Incorporating sparse retrieval before fine-grained pruning significantly reduced latency.
  • Case Study Success: A case study demonstrated PruningRAG successfully resolving a conflict between a web page statistic and API data, correctly answering a time-sensitive query.

Limitations and Future Work

  • LLM for Source Selection: While effective, using an LLM for coarse-grained pruning can be computationally intensive. Future work could explore more efficient methods for source selection.
  • CoT Impact Variation: The effectiveness of CoT reasoning varied depending on the knowledge source; it was beneficial for noisy web data but could lead to overly cautious responses for precise API data, potentially reducing accuracy. Future work could investigate adaptive CoT strategies.
  • Hyperparameter Sensitivity: While analyzed, finding the absolute optimal hyperparameters (chunk size, overlap, number of chunks) for all scenarios might require further tuning.
  • Future Research: The authors emphasize that their standardized dataset and PruningRAG framework are publicly available to encourage further research into multi-source knowledge pruning and RAG. They hope their work will inspire advancements in tackling the complexities of multi-source knowledge integration.

Summary updated

BibTeX
@inproceedings{yu2025multi,
  author = {Shuo Yu and Mingyue Cheng and Qi Liu and Daoyu Wang and Jiqian Yang and Jie Ouyang and Yucong Luo and Chenyi Lei and Enhong Chen},
  title = {{Multi-Source Knowledge Pruning for Retrieval-Augmented Generation: A Benchmark and Empirical Study}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  doi = {10.1145/3746252.3761340},
}
Figure