[论文解读] Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous Sources
CoK 用来自异构来源的动态知识锚定引入到大型语言模型中,采用三阶段过程(推理准备、动态知识自适应、答案整合)以减少幻觉并提高事实性。
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.
研究动机与目标
- 通过在多个领域将推理建立在外部知识之上来减少LLM的幻觉。
- 开发一个框架,动态选择并利用非结构化和结构化知识源。
- 实现推理过程中的推理理由的渐进式纠错,以防止错误传播。
- 引入一个自适应查询生成器,生成语言适应的查询(SPARQL、SQL、自然语言)。
- 展示在事实、医学、物理和生物领域的广泛有效性。
提出的方法
- 三阶段框架:推理准备、动态知识自适应和答案整合。
- 推理准备阶段使用少-shot 链式思维提示和自一致性来识别知识领域并生成初步推理。
- 自适应查询生成器(AQG)为多样化来源和语言(SPARQL、SQL、自然语言句子)生成查询。
- 知识检索将查询转换为来自 Wikidata、表格、医疗资源和领域数据集的格式化知识。
- 渐进式推理纠错利用先前的更正推理来生成并纠正后续推理,以防止错误传播。
- 最终答案通过将更正后的推理和问题作为提示来生成。
实验结果
研究问题
- RQ1CoK 是否能在跨越多领域的知识密集型任务中提升事实正确性并减少幻觉?
- RQ2通过动态知识自适应的渐进式推理纠错是否优于并行或静态检索方法?
- RQ3AQG 在为结构化和非结构化来源(SPARQL、SQL、自然语言)生成合适查询方面有多大效果?
- RQ4在医学、物理、生物学和事实任务中,使用多个领域和来源对性能的影响如何?
- RQ5在不同数据集上,CoK 与标准提示、链式思维、VE 和 ReAct 基线相比如何?
主要发现
- CoK 在事实、医学、物理和生物任务上持续优于 CoT 和 CoT-SC。
- 在三-shot和六-shot 设置下,CoK 产生平均提升(例如 FEVER 上4.3%;MedMCQA 和 MMLU 域上4.9%。)
- CoK 超越 Verify-and-Edit,在若干数据集上(尤其是 HotpotQA)显示出比 ReAct 更强的提升。
- 通过渐进式纠错的动态知识自适应减少错误传播并提高推理理由的事实性,从更高的理由事实性准确性中得出。
- 使用多领域/多来源的知识进一步提升性能(如医学与生物学源结合;多个医学来源)。
- AQG 能为 SPARQL、SQL 和自然语言搜索生成有效查询,支持微调和黑箱式 LLM。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。