Skip to main content
QUICK REVIEW

[Paper Review] Knowledge Solver: Teaching LLMs to Search for Domain Knowledge from Knowledge Graphs

Chao Feng, Xinyu Zhang|arXiv (Cornell University)|Sep 6, 2023
Topic ModelingComputer Science21 citations
TL;DR

Knowledge Solver teaches LLMs to search for domain knowledge from external knowledge graphs via a multi-hop, zero-shot prompt, improving QA performance on CommonsenseQA, OpenBookQA, and MedQA-USMLE while providing explainable retrieval paths.

ABSTRACT

Large language models (LLMs), such as ChatGPT and GPT-4, are versatile and can solve different tasks due to their emergent ability and generalizability. However, LLMs sometimes lack domain-specific knowledge to perform tasks, which would also cause hallucination during inference. In some previous works, additional modules like graph neural networks (GNNs) are trained on retrieved knowledge from external knowledge bases, aiming to mitigate the problem of lacking domain-specific knowledge. However, incorporating additional modules: 1) would need retraining additional modules when encountering novel domains; 2) would become a bottleneck since LLMs' strong abilities are not fully utilized for retrieval. In this paper, we propose a paradigm, termed Knowledge Solver (KSL), to teach LLMs to search for essential knowledge from external knowledge bases by harnessing their own strong generalizability. Specifically, we design a simple yet effective prompt to transform retrieval into a multi-hop decision sequence, which empowers LLMs with searching knowledge ability in zero-shot manner. Additionally, KSL is able to provide complete retrieval paths and therefore increase explainability of LLMs' reasoning processes. We conduct experiments on three datasets: CommonsenseQA, OpenbookQA, and MedQA-USMLE, and found that our approach improves LLM baseline performance by a relatively large margin.

Motivation & Objective

  • Address the lack of domain-specific knowledge in LLMs which can cause hallucination during inference.
  • Leverage external knowledge graphs to guide LLMs without training extra knowledge-aware modules.
  • Enable zero-shot knowledge retrieval through prompting and extract complete retrieval paths for explainability.
  • Demonstrate performance gains on knowledge-intensive QA datasets and explore finetuning with external knowledge.

Proposed method

  • Retrieve a subgraph G_sub from a structured KG for each question and answer pair [q, A].
  • Encode G_sub into a text prompt T_K and inject it into the LLM to initiate a multi-hop reasoning process.
  • Perform rounds of entity-to-entity navigation where the LLM selects tail entities based on local KG information plus history, yielding an explicit reasoning path.
  • Map the final selected tail entity to an answer choice to produce the prediction, enabling explainability through the retrieved path.
  • Optionally finetune the LLM with a specially constructed instruction-tuning dataset (Algorithm 2) using LoRA to inject knowledge into model parameters.
  • Evaluate zero-shot and finetuned KSL across three datasets using generated text-based evaluations (with GPT-4 judging correctness).

Experimental results

Research questions

  • RQ1Does zero-shot Knowledge Solver improve LLM performance on knowledge-heavy QA tasks across different model families?
  • RQ2Can finetuning with KSL-derived instruction data further improve performance beyond zero-shot gains?
  • RQ3Does KSL provide interpretable retrieval paths that explain model reasoning?
  • RQ4How does the KG size and completeness affect performance on medical QA (MedQA-USMLE) compared to commonsense datasets?

Key findings

  • KSL boosts baseline LLM performance by a substantial margin in zero-shot settings across GPT-3.5, LLaMA-7B, and LLaMA-2-7B.
  • Finetuned KSL (LLaMA-7B) further improves results and can surpass finetuned baselines on the evaluated datasets.
  • MedQA-USMLE shows smaller gains, likely due to limited KG coverage for biomedical knowledge.
  • Qualitative results illustrate improved correctness and explainability through explicit retrieval paths.
  • Ablation suggests that the knowledge-specific inference method and dataset construction, rather than generic instruction tuning, drive the gains.

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.