Skip to main content
QUICK REVIEW

[Paper Review] KnowledGPT: Enhancing Large Language Models with Retrieval and Storage Access on Knowledge Bases

Xintao Wang, Qianwen Yang|arXiv (Cornell University)|Aug 17, 2023
Topic ModelingComputer Science13 citations
TL;DR

KnowledGPT links LLMs with knowledge bases to retrieve and store knowledge, using program-of-thought prompting and a personalized knowledge base to improve complex queries.

ABSTRACT

Large language models (LLMs) have demonstrated impressive impact in the field of natural language processing, but they still struggle with several issues regarding, such as completeness, timeliness, faithfulness and adaptability. While recent efforts have focuses on connecting LLMs with external knowledge sources, the integration of knowledge bases (KBs) remains understudied and faces several challenges. In this paper, we introduce KnowledGPT, a comprehensive framework to bridge LLMs with various knowledge bases, facilitating both the retrieval and storage of knowledge. The retrieval process employs the program of thought prompting, which generates search language for KBs in code format with pre-defined functions for KB operations. Besides retrieval, KnowledGPT offers the capability to store knowledge in a personalized KB, catering to individual user demands. With extensive experiments, we show that by integrating LLMs with KBs, KnowledGPT properly answers a broader range of questions requiring world knowledge compared with vanilla LLMs, utilizing both knowledge existing in widely-known KBs and extracted into personalized KBs.

Motivation & Objective

  • Motivate bridging LLMs with external knowledge sources to address completeness, timeliness, faithfulness, and adaptability.
  • Introduce a unified framework to retrieve knowledge from knowledge bases (KBs) and store user-specific knowledge in a personalized KB (PKB).
  • Enable multi-hop search and entity disambiguation through code-generated KB operations.
  • Demonstrate the practicality and effectiveness of KB integration across public KBs and PKBs without retraining the LLMs.

Proposed method

  • Use program-of-thought prompting to generate Python code that drives KB access and operations.
  • Provide a unified KB accessor interface with built-in and KB-specific functions for get_entity_info, find_entity_or_value, and find_relationship.
  • Implement an entity linking module to map natural language mentions to KB entities via aliases and similarity measures.
  • Execute generated code per KB in parallel and concatenate results to answer the user query.
  • Introduce a personalized KB (PKB) to store entity descriptions, triples, and entity-aspect information extracted from user documents.
  • Represent knowledge in three forms (entity descriptions, relational triples, and entity-aspect information) to enrich PKB coverage.

Experimental results

Research questions

  • RQ1How does KnowledGPT perform retrieval from knowledge bases for complex, multi-hop queries compared to standard embedding or BM25-based retrieval?
  • RQ2How effective is the entity linking and disambiguation process when aligning natural language mentions with KB entities across diverse KBs?
  • RQ3Does a personalized knowledge base improve answer quality and coverage for user-specific knowledge needs?
  • RQ4What is the impact of using richer PKB representations (descriptions and entity-aspect information) on knowledge extraction and retrieval performance?

Key findings

  • KnowledGPT improves knowledge-based question answering on KBs over vanilla LLMs, particularly for multi-hop queries.
  • GPT-4 excels at code generation and entity linking within KnowledGPT, achieving higher success rates than ChatGPT on intermediate steps.
  • On NLPCC-100 and NLPCC-MH-59KBQA benchmarks, KnowledGPT outperforms BM25 and embedding-based retrieval and surpasses the SPE method in zero-shot settings.
  • A personalized KB with entity descriptions and entity-aspect information increases knowledge extraction coverage beyond triples alone, improving retrieval and answer quality.
  • Case studies show KnowledGPT can correctly chain retrieval steps to answer questions like authors and titles, demonstrating effective multi-hop reasoning with code.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.