Distilling a Small Utility-Based Passage Selector to Enhance Retrieval-Augmented Generation

Hengran Zhang, Keping Bi, Jiafeng Guo, Jiaming Zhang, Shuaiqiang Wang +2 more
7/25/2025
cs.IRcs.AIcs.CL

No official code found. Best implementation: Trustworthy-Information-Access/UtilitySelection (0 stars, last commit 2026-04-13).

Abstract

Retrieval-augmented generation (RAG) enhances large language models (LLMs) by incorporating retrieved information. Standard retrieval process prioritized relevance, focusing on topical alignment between queries and passages. In contrast, in RAG, the emphasis has shifted to utility, which considers the usefulness of passages for generating accurate answers. Despite empirical evidence showing the benefits of utility-based retrieval in RAG, the high computational cost of using LLMs for utility judgments limits the number of passages evaluated. This restriction is problematic for complex queries requiring extensive information. To address this, we propose a method to distill the utility judgment capabilities of LLMs into smaller, more efficient models. Our approach focuses on utility-based selection rather than ranking, enabling dynamic passage selection tailored to specific queries without the need for fixed thresholds. We train student models to learn pseudo-answer generation and utility judgments from teacher LLMs, using a sliding window method that dynamically selects useful passages. Our experiments demonstrate that utility-based selection provides a flexible and cost-effective solution for RAG, significantly reducing computational costs while improving answer quality. We present the distillation results using Qwen3-32B as the teacher model for both relevance ranking and utility-based selection, distilled into RankQwen1.7B and UtilityQwen1.7B. Our findings indicate that for complex questions, utility-based selection is more effective than relevance ranking in enhancing answer generation performance. We will release the relevance ranking and utility-based selection annotations for the MS MARCO dataset, supporting further research in this area.

View on arXivView PDF

Code Implementations(1)

Code of the paper "Distilling a Small Utility-Based Passage Selector to Enhance Retrieval-Augmented Generation"

00Shell, PythonJul 25, 20256 months ago

Cite this paper

@article{zhang2025distilling,
  title  = {Distilling a Small Utility-Based Passage Selector to Enhance Retrieval-Augmented Generation},
  author = {Hengran Zhang and Keping Bi and Jiafeng Guo and Jiaming Zhang and Shuaiqiang Wang and Dawei Yin and Xueqi Cheng},
  year   = {2025},
  eprint = {2507.19102},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.19102v2}
}

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

Discussion