Skip to main content
QUICK REVIEW

[Paper Review] Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous Sources

Xingxuan Li, R. P. Zhao|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science16 citations
TL;DR

CoK augments LLMs with dynamic grounding from heterogeneous sources, using a three-stage process (reasoning prep, dynamic knowledge adapting, answer consolidation) to reduce hallucination and improve factuality.

ABSTRACT

We present chain-of-knowledge (CoK), a novel framework that augments large language models (LLMs) by dynamically incorporating grounding information from heterogeneous sources. It results in more factual rationales and reduced hallucination in generation. Specifically, CoK consists of three stages: reasoning preparation, dynamic knowledge adapting, and answer consolidation. Given a knowledge-intensive question, CoK first prepares several preliminary rationales and answers while identifying the relevant knowledge domains. If there is no majority consensus among the answers from samples, CoK corrects the rationales step by step by adapting knowledge from the identified domains. These corrected rationales can plausibly serve as a better foundation for the final answer consolidation. Unlike prior studies that primarily use unstructured data, CoK also leverages structured knowledge sources such as Wikidata and tables that provide more reliable factual information. To access both unstructured and structured knowledge sources in the dynamic knowledge adapting stage, we propose an adaptive query generator that allows the generation of queries for various types of query languages, including SPARQL, SQL, and natural sentences. Moreover, to minimize error propagation between rationales, CoK corrects the rationales progressively using preceding corrected rationales to generate and correct subsequent rationales. Extensive experiments show that CoK consistently improves the performance of LLMs on knowledge-intensive tasks across different domains.

Motivation & Objective

  • Motivate reducing hallucination in LLMs by grounding reasoning in external knowledge across multiple domains.
  • Develop a framework that dynamically selects and utilizes both unstructured and structured knowledge sources.
  • Enable progressive correction of rationales to prevent error propagation during reasoning.
  • Introduce an adaptive query generator to produce language-appropriate queries (SPARQL, SQL, natural language).
  • Demonstrate broad effectiveness across factual, medical, physical, and biological domains.

Proposed method

  • Three-stage framework: reasoning preparation, dynamic knowledge adapting, and answer consolidation.
  • Reasoning preparation uses few-shot chain-of-thought prompting and self-consistency to identify knowledge domains and generate preliminary rationales.
  • Adaptive query generator (AQG) creates queries for diverse sources and languages (SPARQL, SQL, natural sentences).
  • Knowledge retrieval converts queries into formatted knowledge from Wikidata, tables, medical resources, and domain datasets.
  • Progressive rationale correction uses preceding corrected rationales to generate and correct subsequent rationales to prevent error propagation.
  • Final answer is produced by prompting the LLM with corrected rationales and the question.

Experimental results

Research questions

  • RQ1Can CoK improve factual correctness and reduce hallucinations in knowledge-intensive tasks across multiple domains?
  • RQ2Does progressive correction of rationales via dynamic knowledge adapting outperform parallel or static retrieval approaches?
  • RQ3How effective is the AQG at generating appropriate queries for structured and unstructured sources (SPARQL, SQL, natural language)?
  • RQ4What is the impact of using multiple domains and sources on performance in medical, physics, biology, and factual tasks?
  • RQ5How does CoK compare to standard prompting, chain-of-thought, VE, and ReAct baselines across datasets?

Key findings

  • CoK consistently outperforms CoT and CoT-SC across factual, medical, physics, and biology tasks.
  • Across three- and six-shot settings, CoK yields average improvements (e.g., 4.3% on FEVER; 4.9% on MedMCQA and MMLU domains).
  • CoK surpasses Verify-and-Edit and shows stronger gains than ReAct on several datasets (notably HotpotQA).
  • Dynamic knowledge adapting with progressive correction reduces error propagation and improves factuality of rationales, as shown by higher rationale factual accuracy.
  • Using multiple knowledge domains/sources further improves performance (e.g., medical plus biology sources; multiple medical sources).
  • AQG enables effective query generation for SPARQL, SQL, and natural-language searches, supporting both fine-tuned and black-box LLMs.

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.