Provence: efficient and robust context pruning for retrieval-augmented generation

Nadezhda Chirkova, Thibault Formal, Vassilina Nikoulina, Stéphane Clinchant

Abstract

Retrieval-Augmented Generation (RAG) is a powerful framework for grounding Large Language Models (LLMs) in factual data. However, it faces challenges related to computational costs and the inclusion of irrelevant "noise" in retrieved documents. We introduce Provence (Pruning and Reranking Of retrieVEd relevaNt ContExts), a lightweight, efficient pruner that unifies document reranking with sentence-level context pruning. Provence reduces input token counts by 50–80%, leading to a 2x speedup in generation without compromising performance.

Introduction: The Cost of RAG

While RAG effectively reduces hallucinations, it introduces two primary "taxes":

  1. Computational Tax: Processing long, retrieved documents increases latency and inference costs.
  2. Noise Tax: Irrelevant information within retrieved passages can distract the model, leading to the "lost-in-the-middle" phenomenon where critical information is overlooked.
Provence removes irrelevant sentences and provides a relevance score for retrieved context.

Existing solutions often rely on large LLMs for compression, which is too slow for real-time applications, or use fixed compression ratios that lack the flexibility to handle varying document relevance.

The Provence Approach

Provence treats context pruning as a sequence labeling task, utilizing a small but efficient DeBERTa-v3 encoder. The core innovation lies in unifying reranking and pruning into a single model pass.

Unified Architecture

In a standard RAG pipeline, a reranker scores documents for relevance. Provence adds a pruning "head" to this process. In one forward pass, the model produces both a relevance score for the entire document and a binary mask (keep/drop) for every token.

The Provence inference pipeline integrates context pruning and reranking before the generation step.

This unification makes the pruning step computationally "almost free." To ensure grammatical coherence, Provence uses "sentence rounding": if more than 50% of a sentence's tokens are flagged as relevant, the entire sentence is retained.

Training with Silver Labels

The model was trained using "silver labels" generated by Llama-3-8B-Instruct. The LLM was prompted to answer questions using only provided context and to cite specific sentences. These citations served as the ground truth for training Provence to identify essential information.

Experimental Evaluation

Provence was tested across diverse domains to ensure "out-of-the-box" robustness, including general QA (NQ, HotpotQA) and specialized domains like BioASQ (biomedical) and RGB (news).

Key Results

  • Efficiency: By significantly reducing input token counts, Provence achieved a 2x speedup in generation for large batch sizes.
  • Compression vs. Accuracy: Provence consistently outperformed baselines like LLMLingua2 and RECOMP, maintaining high accuracy even at high compression rates (50–80%).
  • Robustness: Despite being trained on general web data, the model generalized exceptionally well to specialized biomedical and news datasets without further fine-tuning.
  • Noise Reduction: In datasets like PopQA, pruning actually improved LLM accuracy by filtering out distracting information.

Conclusion and Future Work

Provence provides a highly efficient and robust solution for optimizing RAG pipelines. By integrating pruning directly into the reranking step, it eliminates the overhead of standalone compression modules. Future research will focus on expanding multilingual capabilities and addressing redundancy across multiple retrieved passages.

Summary updated

BibTeX
@inproceedings{chirkova2025provence,
  author = {Nadezhda Chirkova and Thibault Formal and Vassilina Nikoulina and Stéphane CLINCHANT},
  title = {{Provence: efficient and robust context pruning for retrieval-augmented generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=TDy5Ih78b4},
}
Figure