Self-Knowledge Guided Retrieval Augmentation for Large Language Models

Yile Wang, Peng Li, Maosong Sun, Yang Liu
10/8/2023
cs.CL

No official code found. Best implementation: THUNLP-MT/SKR (27 stars, last commit 2023-12-08).

Abstract

Large language models (LLMs) have shown superior performance without task-specific fine-tuning. Despite the success, the knowledge stored in the parameters of LLMs could still be incomplete and difficult to update due to the computational costs. As complementary, retrieval-based methods can offer non-parametric world knowledge and improve the performance on tasks such as question answering. However, we find that the retrieved knowledge does not always help and even has a negative impact on original responses occasionally. To better make use of both internal knowledge and external world knowledge, we investigate eliciting the model's ability to recognize what they know and do not know (which is also called self-knowledge) and propose Self-Knowledge guided Retrieval augmentation (SKR), a simple yet effective method which can let LLMs refer to the questions they have previously encountered and adaptively call for external resources when dealing with new questions. We evaluate SKR on multiple datasets and demonstrate that it outperforms chain-of-thought based and fully retrieval-based methods by using either InstructGPT or ChatGPT.

View on arXivView PDF

Code Implementations(1)

THUNLP-MT/SKRCommunity65%

Self-Knowledge Guided Retrieval Augmentation for Large Language Models (EMNLP Findings 2023)

270PythonOct 17, 20232 years ago

Similar Papers

Cite this paper

@article{wang2023selfknowledge,
  title  = {Self-Knowledge Guided Retrieval Augmentation for Large Language Models},
  author = {Yile Wang and Peng Li and Maosong Sun and Yang Liu},
  year   = {2023},
  eprint = {2310.05002},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.05002v1}
}

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

Discussion