arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.10509cs.CL
收藏

将检索与思维链推理交错用于知识密集型多步问题

Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions

Stony Brook University(石溪大学);Allen Institute for AI(艾伦人工智能研究所)

Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, Ashish Sabharwal

AI总结:

针对知识密集型多步问答,提出IRCoT方法,将检索与思维链推理交错进行,用CoT指导检索并用检索结果改进CoT,在多个数据集上显著提升检索与问答性能,并减少幻觉。

摘要:

基于提示的大型语言模型(LLM)在生成自然语言推理步骤或思维链(CoT)以进行多步问答(QA)方面表现出惊人的能力。然而,当所需知识对LLM不可用或在其参数中不是最新时,它们就会遇到困难。虽然使用问题从外部知识源检索相关文本有助于LLM,但我们观察到这种一步式检索-阅读方法对于多步QA是不够的。在这里,\textit{要检索什么}取决于\textit{已经推导出什么},而这又可能取决于\textit{之前检索到什么}。为了解决这个问题,我们提出了IRCoT,一种用于多步QA的新方法,它将检索与CoT中的步骤(句子)交错进行,用CoT指导检索,并反过来利用检索结果改进CoT。将IRCoT与GPT3结合使用,在四个数据集(HotpotQA、2WikiMultihopQA、MuSiQue和IIRC)上显著提高了检索性能(最多提升21个百分点)以及下游QA性能(最多提升15个百分点)。我们在分布外(OOD)设置以及更小的模型(如无需额外训练的Flan-T5-large)中也观察到类似的显著收益。IRCoT减少了模型幻觉,从而产生事实更准确的CoT推理。代码、数据和提示可在\footnote{https://github.com/stonybrooknlp/ircot}获取。

英文摘要:

Prompting-based large language models (LLMs) are surprisingly powerful at generating natural language reasoning steps or Chains-of-Thoughts (CoT) for multi-step question answering (QA). They struggle, however, when the necessary knowledge is either unavailable to the LLM or not up-to-date within its parameters. While using the question to retrieve relevant text from an external knowledge source helps LLMs, we observe that this one-step retrieve-and-read approach is insufficient for multi-step QA. Here, \textit{what to retrieve} depends on \textit{what has already been derived}, which in turn may depend on \textit{what was previously retrieved}. To address this, we propose IRCoT, a new approach for multi-step QA that interleaves retrieval with steps (sentences) in a CoT, guiding the retrieval with CoT and in turn using retrieved results to improve CoT. Using IRCoT with GPT3 substantially improves retrieval (up to 21 points) as well as downstream QA (up to 15 points) on four datasets: HotpotQA, 2WikiMultihopQA, MuSiQue, and IIRC. We observe similar substantial gains in out-of-distribution (OOD) settings as well as with much smaller models such as Flan-T5-large without additional training. IRCoT reduces model hallucination, resulting in factually more accurate CoT reasoning. Code, data, and prompts are available at \url{https://github.com/stonybrooknlp/ircot}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑