Self-Knowledge Guided Retrieval Augmentation for Large Language Models

Yile Wang, Peng Li, Maosong Sun, Yang Liu

Introduction

Retrieval-Augmented Generation (RAG) has become a cornerstone of modern Large Language Model (LLM) deployment, providing a mechanism to ground model outputs in external, up-to-date facts. However, the assumption that more information is always better is increasingly being challenged. This paper introduces Self-Knowledge guided Retrieval augmentation (SKR), a framework designed to address the "distraction" problem—where irrelevant or redundant retrieved data causes an LLM to override its correct internal knowledge with incorrect external information.

The Problem: Retrieval as a Distraction

While LLMs benefit from external context for niche or post-training facts, they often possess sufficient internal parameters to answer common or general-knowledge questions. The authors identify a critical failure mode: when a model already "knows" an answer, providing it with semi-related retrieved passages can confuse its reasoning process. For instance, if a model correctly identifies a fact but is then presented with a retrieved document discussing a tangential controversy, the model may pivot to an incorrect response. The core challenge is enabling the LLM to recognize its own knowledge boundaries—knowing when to reach for a tool and when to trust itself.

The SKR Framework

The proposed SKR method follows a three-stage pipeline to bridge the gap between internal parameters and external retrieval:

1. Collecting Self-Knowledge

The researchers first establish a baseline for the model's existing knowledge. By evaluating a training set of questions both with and without RAG, they categorize questions into two groups:

  • Known ($D^+$): Questions the LLM answers correctly using internal knowledge (or where retrieval actually degrades the answer).
  • Unknown ($D^-$): Questions where the LLM only succeeds, or performs significantly better, when provided with retrieved context.

2. Eliciting Self-Knowledge

For a new query, the system must predict whether it falls into the $D^+$ or $D^-$ category. The authors explored four distinct strategies for this prediction:

  • Direct Prompting: Asking the LLM directly if it requires more information.
  • In-Context Learning (ICL): Providing the model with examples of questions it previously knew versus those it did not.
  • Classifier: Training a BERT-based model to predict the necessity of retrieval.
  • k-Nearest Neighbor (kNN): Using a sentence encoder to find similar questions in the training set. If the model historically struggled with similar topics, it triggers retrieval.

3. Adaptive Retrieval

Based on the prediction, the system adaptively chooses its path. If the question is predicted as "Known," the LLM generates an answer directly. If "Unknown," the retriever is triggered, and the external context is prepended to the prompt.

Experimental Results

The SKR method was evaluated across five diverse benchmarks: TemporalQA, CommonsenseQA, TabularQA, StrategyQA, and TruthfulQA. The results consistently demonstrated that a selective approach to retrieval outperforms "always-on" retrieval strategies.

  • Superior Performance: The SKR-kNN variant emerged as the most robust. For InstructGPT (text-davinci-003), it achieved a 4.08% improvement over standard Chain-of-Thought (CoT) and a 2.91% improvement over full retrieval. For ChatGPT (gpt-3.5-turbo), the gains were even more pronounced, with a 4.20% improvement over full retrieval.
  • The Failure of Self-Assessment: Interestingly, direct prompting was the least effective strategy. LLMs proved to be poor judges of their own knowledge gaps in isolation, often displaying overconfidence.
  • Knowledge Clustering: The success of the kNN approach suggests that an LLM’s knowledge is semantically clustered. If a model lacks knowledge about a specific niche topic, it is highly likely to lack knowledge about closely related facts within that same domain.

Conclusion and Future Work

SKR demonstrates that "knowing what you don't know" is a data-driven skill that can significantly enhance the reliability of LLMs. By treating retrieval as a targeted intervention rather than a default state, SKR mitigates the distraction effect and improves overall accuracy.

Future research directions include expanding this self-knowledge mapping to highly specialized domains like medicine or law and developing dynamic update mechanisms to adjust the model's knowledge boundaries as it undergoes fine-tuning or continuous learning.

Summary updated

BibTeX
@inproceedings{wang2023self,
  author = {Yile Wang and Peng Li and Maosong Sun and Yang Liu},
  title = {{Self-Knowledge Guided Retrieval Augmentation for Large Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.691},
}
Figure