Investigating the Factual Knowledge Boundary of Large Language Models with Retrieval Augmentation

Ruiyang Ren, Yuhao Wang, Yingqi Qu, Wayne Xin Zhao, Jing Liu, Hua Wu, Ji-Rong Wen, Haifeng WangCOLING 2025

Abstract

Large language models (LLMs) have shown impressive prowess in solving a wide range of tasks with world knowledge. However, it remains unclear how well LLMs are able to perceive their factual knowledge boundaries, particularly under retrieval augmentation settings. In this study, we present the first analysis on the factual knowledge boundaries of LLMs and how retrieval augmentation affects LLMs on open-domain question answering (QA), with a bunch of important findings. Specifically, we focus on three research questions and analyze them by examining QA, priori judgement and posteriori judgement capabilities of LLMs. We show evidence that LLMs possess unwavering confidence in their knowledge and cannot handle the conflict between internal and external knowledge well. Furthermore, retrieval augmentation proves to be an effective approach in enhancing LLMs’ awareness of knowledge boundaries. We further conduct thorough experiments to examine how different factors affect LLMs and propose a simple method to dynamically utilize supporting documents with our judgement strategy. Additionally, we find that the relevance between the supporting documents and the questions significantly impacts LLMs’ QA and judgemental capabilities.

Introduction

Large Language Models (LLMs) are notoriously overconfident and often fail to recognize what they don't know. While LLMs are incredibly powerful at answering open-domain questions, they suffer from hallucinations. A core reason for this is a lack of self-awareness regarding their "factual knowledge boundaries"—they simply do not know when they are out of their depth.

While Retrieval-Augmented Generation (RAG) is widely used to feed external facts to LLMs to reduce hallucinations, it remains unclear how this external information affects the model's self-awareness. This paper systematically investigates whether an LLM can accurately judge if it knows an answer before it speaks, if it can grade its own answer after it speaks, and how retrieval augmentation changes these dynamics.

Methods

The researchers evaluated LLMs using two distinct prompting strategies across both "closed-book" (normal) and "open-book" (retrieval-augmented) settings:

Overview of the experimental framework including QA and Judgemental prompting strategies.
  1. QA Prompting: Standard prompts asking the model to answer a question concisely.
  2. Judgemental Prompting: A novel evaluation approach split into two phases:
  3. Priori Judgement: Asking the LLM before it answers if it possesses the knowledge to do so (giving it the option to "give up").
  4. Posteriori Judgement: Asking the LLM after it generates an answer to evaluate whether its own answer is actually correct.

The study evaluates models on three standard open-domain Question Answering (QA) benchmarks: Natural Questions (NQ), TriviaQA, and HotpotQA, using Wikipedia as the retrieval corpus. Documents were supplied from three sources: a sparse retriever (BM25), a dense retriever (RocketQAv2), and an LLM-as-a-retriever (ChatGPT).

Key Insights and Results

Overconfidence and the Impact of RAG

In closed-book settings, models rarely choose to "give up" and overwhelmingly rate their own incorrect answers as correct. For instance, on the NQ dataset without retrieval, ChatGPT evaluated its own answers as correct 84.4% of the time, but its actual evaluation accuracy was only 43.4%.

Retrieval augmentation acts as a "reality check." Providing external documents doesn't just boost QA accuracy; it significantly improves the model's posteriori judgement. When models have reference text, they become much better at accurately grading their own outputs. Using dense retrieval on NQ, ChatGPT's Exact Match (EM) score jumped from 33.4% to 39.4%, and its self-evaluation accuracy improved to 53.56%.

The "Gullibility" Factor and Model Scaling

LLMs struggle to resolve conflicts between their internal memory and external text. If fed highly relevant but factually incorrect documents, performance often drops below the baseline closed-book performance, indicating that models trust provided context too much. Interestingly, smaller models (like LLaMA2-7B) see a much more dramatic improvement in both accuracy and boundary perception when augmented with retrieval compared to massive models like GPT-4.

Dynamic Retrieval

The authors proposed a Dynamic Retrieval method where the model uses its priori judgement to decide whether it needs to trigger a search or if it can answer from memory.

Comparison of standard RAG versus the proposed dynamic retrieval strategy based on judgmental prompting.

This simple pipeline achieved an EM of 37.81 on NQ, outperforming a standard RAG baseline (35.79 EM) that blindly used retrieval for every question. This suggests that LLMs can effectively use self-judgement to manage external resources.

Conclusion

This study demonstrates that retrieval augmentation is an effective approach for enhancing LLMs’ awareness of their knowledge boundaries. While models remain vulnerable to misleading external information, dynamic retrieval strategies show promise in balancing internal knowledge with external evidence. Future work should focus on making LLMs more resilient to conflicting context and further refining dynamic retrieval to optimize compute and accuracy.

Summary updated

BibTeX
@inproceedings{ren2025investigating,
  author = {Ruiyang Ren and Yuhao Wang and Yingqi Qu and Wayne Xin Zhao and Jing Liu and Hua Wu and Ji-Rong Wen and Haifeng Wang},
  title = {{Investigating the Factual Knowledge Boundary of Large Language Models with Retrieval Augmentation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=jFk8zKhF03},
}
Figure