Abstract
Knowledge-Intensive Generation (KIG) tasks rely on retrievers to provide relevant context for language models. However, standard Retrieval-Augmented Generation (RAG) training often leads to overfitting on "label-relevant" passages—those with high token overlap with the target answer—while ignoring "knowledge-relevant" passages that contain the necessary information in different wording. This paper introduces two novel training objectives: Retriever as Answer Classifier (RAC) and Dense Knowledge Similarity (DKS). By employing rich answer encodings, these objectives train retrievers to prioritize semantic knowledge over surface-level lexical matches. Experimental results on MSMARCO and Wizard of Wikipedia demonstrate that our approach significantly enhances both retrieval precision and generation quality.
Introduction
In open-domain question answering and dialogue, models must retrieve evidence from massive corpora to generate accurate responses. Current state-of-the-art RAG models typically minimize the Negative Log-Likelihood (NLL) of the target answer given retrieved passages. A critical flaw in this approach is its tendency to favor passages that contain the exact words of the "gold" reference answer.
As illustrated in the example above, a passage might be "knowledge-relevant" (containing the correct information) without being "label-relevant" (matching the reference answer's tokens). Standard training often ignores these valuable contexts, leading to hallucinations when a perfect keyword match is unavailable.
Methodology
To address this, we propose a framework that incorporates "Rich Answer Encoding" into the retriever's training process. We introduce two primary objectives:
Retriever as Answer Classifier (RAC)
RAC treats the retriever as a bridge between the query and the answer. It utilizes the retriever's internal representations to classify whether a retrieved passage contains the knowledge required to produce the target answer. By using in-batch negative sampling, the model learns to distinguish true knowledge from irrelevant noise.
Dense Knowledge Similarity (DKS)
DKS focuses on semantic alignment. We utilize a Sentence Bottleneck Auto-encoder to compress the target answer into a single "knowledge vector." The retriever is then trained to minimize the distance between the vector representation of the retrieved passage and this knowledge vector in a shared embedding space. This bottleneck forces the model to capture the semantic essence of the information rather than just a list of keywords.
The final model is trained using a multi-task objective that combines standard generation loss with RAC and DKS losses.
Experiments and Results
We evaluated our approach on two major KIG benchmarks: MSMARCO (generative QA) and Wizard of Wikipedia (knowledge-grounded dialogue).
Quantitative Performance
Our multi-task model consistently outperformed the standard RAG baseline:
- MSMARCO: We observed a 12.1% relative improvement in Recall@1 and a 4.5% relative improvement in BLEU-4.
- KILT-WoW: The model achieved an 8.9% relative improvement in R-Precision and a 13.3% relative improvement in KILT-RL, which measures combined retrieval and generation quality.
Robustness and Generalization
A key finding was the reduction in overfitting. Standard RAG models often show a significant performance gap between training and development sets. By focusing on rich semantic encodings, our proposed objectives narrowed this gap, indicating better generalization to unseen questions where exact keyword matches are absent.
Conclusion
Moving beyond simple token matching is essential for robust retrieval in KIG tasks. By treating the retriever as a "knowledge matcher" through RAC and DKS, we can provide generators with more relevant context, thereby reducing hallucinations and improving the factual accuracy of generated content. Future work will explore unfixing the passage encoder to further increase model expressiveness and integrating structured knowledge sources.
Summary updated