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

Ruiyang Ren, Yuhao Wang, Yingqi Qu, Wayne Xin Zhao, Jing Liu +4 more
7/20/2023
cs.CLcs.IR

Official code: RUCAIBox/LLM-Knowledge-Boundary (83 stars, last commit 2023-07-31). 1 more implementation below.

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. The code to reproduce this work is available at https://github.com/RUCAIBox/LLM-Knowledge-Boundary.

View on arXivView PDF

Code Implementations(2)

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

834Shell, PythonJul 21, 20233 years ago
chatgptinformation-retrievallarge-language-modelsnatural-language-processing

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

217Shell, PythonJul 11, 20233 years ago
chatgptinformation-retrievallarge-language-modelsnatural-language-processing

Similar Papers

Cite this paper

@article{ren2023investigating,
  title  = {Investigating the Factual Knowledge Boundary of Large Language Models with Retrieval Augmentation},
  author = {Ruiyang Ren and Yuhao Wang and Yingqi Qu and Wayne Xin Zhao and Jing Liu and Hao Tian and Hua Wu and Ji-Rong Wen and Haifeng Wang},
  year   = {2023},
  eprint = {2307.11019},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.11019v3}
}

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

Discussion