Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous Sources
Xingxuan Li1 2] Thanks: Equal contribution. Thanks: Xingxuan Li, Yew Ken Chia, and Bosheng Ding are under the Joint Ph.D. Program between DAMO Academy and their corresponding universities. Ruochen Zhao Thanks: Ruochen Zhao is under the AISG Ph.D. Fellowship Programme. Yew Ken Chia1 3] Bosheng Ding1 2] Shafiq Joty2,4 Affiliation: Soujanya Poria3, Lidong Bing1,5 Affiliation: 1DAMO Academy, Alibaba Group, Singapore, 2Nanyang Technological University, Affiliation: 3Singapore University of Technology and Design, 4Salesforce Research, Affiliation: 5Hupan Lab, 310023, Hangzhou, China Affiliation: {xingxuan.li, yewken.chia, bosheng.ding, Affiliation: {ruochen002,
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, includin
原文 arXiv:2305.13269;中英对照 + 大白话阅读 https://aha.fim.ai/paper/2305.13269v4