arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.19000cs.LG
收藏

让大型语言模型成为更好的零样本推理器:面向结构的自主推理

Make LLMs better zero-shot reasoners: Structure-orientated autonomous reasoning

Michigan State University(密歇根州立大学);Alibaba Group(阿里巴巴集团)

Pengfei He, Zitao Li, Yue Xing, Yaling Li, Jiliang Tang, Bolin Ding

AI总结:

本文提出面向结构的分析方法与多智能体系统 SARA,通过结构引导、精炼和外部检索增强 LLM 零样本多步推理,在准确率、少样本对比及抗攻击鲁棒性上表现优异。

摘要:

使用大型语言模型(LLM)的零样本推理方法具有显著优势,包括对新颖任务的强泛化能力,以及对人工构造示例依赖的降低。然而,当前零样本方法在复杂任务中仍存在局限,例如回答需要多步推理的问题。本文通过引入一种新颖的面向结构的分析方法来解决这一局限,以帮助 LLM 更好地理解问题并指导其解题过程。我们首先展示现有推理策略 Chain-of-Thought 和 ReAct 如何从这种面向结构的分析中获益。除实证研究外,我们还利用概率图模型从理论上解释为什么面向结构的分析能够改善 LLM 的推理过程。为进一步提升复杂问答任务中的可靠性,我们提出多智能体推理系统 Structure-oriented Autonomous Reasoning Agents(SARA):该系统通过精炼技术更好地促使推理过程遵循面向结构的分析,并具备外部知识检索能力以减少事实性错误。大量实验验证了所提推理系统的有效性。令人惊讶的是,在某些情况下,该系统甚至超过少样本方法。最后,该系统不仅提高了复杂任务中的推理准确率,还对可能破坏推理过程的攻击表现出鲁棒性。

英文摘要:

Zero-shot reasoning methods with Large Language Models (LLMs) offer significant advantages including great generalization to novel tasks and reduced dependency on human-crafted examples. However, the current zero-shot methods still have limitations in complex tasks, e.g., answering questions that require multi-step reasoning. In this paper, we address this limitation by introducing a novel structure-oriented analysis method to help LLMs better understand the question and guide the problem-solving process of LLMs. We first demonstrate how the existing reasoning strategies, Chain-of-Thought and ReAct, can benefit from our structure-oriented analysis. In addition to empirical investigations, we leverage the probabilistic graphical model to theoretically explain why our structure-oriented analysis can improve the LLM reasoning process. To further improve the reliability in complex question-answering tasks, we propose a multi-agent reasoning system, Structure-oriented Autonomous Reasoning Agents (SARA), that can better enforce the reasoning process following our structure-oriented analysis by refinement techniques and is equipped with external knowledge retrieval capability to reduce factual errors. Extensive experiments verify the effectiveness of the proposed reasoning system. Surprisingly, in some cases, the system even surpasses few-shot methods. Finally, the system not only improves reasoning accuracy in complex tasks but also demonstrates robustness against potential attacks that corrupt the reasoning process.

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

↑