W-RAG: Weakly Supervised Dense Retrieval in RAG for Open-domain Question Answering
Jinming Nian, Zhiyuan Peng, Qifan Wang, Yi Fang
TL;DR
W-RAG tackles the scarcity of labeled data for dense retrievers in OpenQA by harvesting weak supervision from an LLM's ability to generate the ground-truth answer given question-passage pairs. It reranks BM25 top-k passages by the likelihood that the LLM would produce the correct answer, using the top passage as a positive example to fine-tune dense retrievers (DPR and ColBERT). Across four OpenQA datasets, W-RAG improves both retrieval and final OpenQA performance, approaching results achieved with human-labeled data and often outperforming strong baselines. The approach reduces reliance on costly annotations while delivering practical gains in RAG-based QA systems, with code and experiments designed for reproducibility.
Abstract
In knowledge-intensive tasks such as open-domain question answering (OpenQA), large language models (LLMs) often struggle to generate factual answers, relying solely on their internal (parametric) knowledge. To address this limitation, Retrieval-Augmented Generation (RAG) systems enhance LLMs by retrieving relevant information from external sources, thereby positioning the retriever as a pivotal component. Although dense retrieval demonstrates state-of-the-art performance, its training poses challenges due to the scarcity of ground-truth evidence, largely attributed to the high costs of human annotation. In this paper, we propose W-RAG, a method that draws weak training signals from the downstream task (such as OpenQA) of an LLM, and fine-tunes the retriever to prioritize passages that most benefit the task. Specifically, we rerank the top-$k$ passages retrieved via BM25 by assessing the probability that the LLM will generate the correct answer for a question given each passage. The highest-ranking passages are then used as positive fine-tuning examples for dense retrieval. We conduct comprehensive experiments across four publicly available OpenQA datasets to demonstrate that our approach enhances both retrieval and OpenQA performance compared to baseline models, achieving results comparable to models fine-tuned with human-labeled data.
