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

思维迭代:利用内部对话实现大语言模型的自主推理

Iteration of Thought: Leveraging Inner Dialogue for Autonomous Large Language Model Reasoning

Agnostiq Inc.(阿格诺斯提克公司);University of Toronto(多伦多大学)

Santosh Kumar Radha, Yasamin Nouri Jelyani, Ara Ghukasyan, Oktay Goktas

AI总结:

本文提出思维迭代(IoT)框架,通过内部对话智能体与大语言模型之间的迭代提示循环动态优化推理路径,并在多个复杂推理与问答数据集上验证其优于思维链方法,实现更自主高效的大语言模型推理。

摘要:

迭代式人类参与是一种常见且有效的方式,能够利用大语言模型(LLMs)的高级语言处理能力。通过以对话方式使用结构良好的提示,人类用户可以有效地引导大语言模型生成更周密、更准确的回答。受这一洞见启发,我们提出了思维迭代(Iteration of Thought,IoT)框架,该框架针对输入查询和大语言模型当前迭代的回答生成“激发思考”的提示,从而增强大语言模型的响应。与静态或半静态方法(例如思维链 Chain of Thought,CoT 或思维树 Tree of Thoughts,ToT)不同,IoT 根据不断演化的上下文动态调整其推理路径,并且不会生成最终被丢弃的替代性探索思路。IoT 框架的三个组成部分是:(1)内部对话智能体(Inner Dialogue Agent,IDA),负责生成具有指导性且针对特定上下文的提示;(2)大语言模型智能体(LLM Agent,LLMA),处理这些提示以完善其回答;(3)迭代提示循环,在前两个组成部分之间实现对话。我们引入了该框架的两种变体:自主思维迭代(Autonomous Iteration of Thought,AIoT),由大语言模型决定何时停止迭代;以及引导式思维迭代(Guided Iteration of Thought,GIoT),始终强制执行固定次数的迭代。我们研究了 IoT 在多个数据集上的表现,涵盖 GPQA 数据集中的复杂推理任务、Game of 24 中的探索性问题求解、Mini Crosswords 中的谜题求解,以及 HotpotQA 数据集中的多跳问答。我们的结果表明,IoT 代表了一种可行的大语言模型自主响应优化范式,相较于 CoT 展现出显著改进,从而能够实现更具适应性和更高效的推理系统,并最大限度地减少人类干预。

英文摘要:

Iterative human engagement is a common and effective means of leveraging the advanced language processing power of large language models (LLMs). Using well-structured prompts in a conversational manner, human users can effectively influence an LLM to develop more thoughtful and accurate responses. Motivated by this insight, we propose the Iteration of Thought (IoT) framework for enhancing LLM responses by generating "thought"-provoking prompts vis a vis an input query and the current iteration of an LLM's response. Unlike static or semi-static approaches, e.g. Chain of Thought (CoT) or Tree of Thoughts (ToT), IoT adapts its reasoning path dynamically, based on evolving context, and without generating alternate explorative thoughts which are ultimately discarded. The three components of the IoT framework are (1) an Inner Dialogue Agent (IDA) responsible for generating instructive, context-specific prompts; (2) an LLM Agent (LLMA) that processes these prompts to refine its responses; and (3) an iterative prompting loop that implements a conversation between the former two components. We introduce two variants of our framework: Autonomous Iteration of Thought (AIoT), where an LLM decides when to stop iterating, and Guided Iteration of Thought (GIoT), which always forces a fixed number iterations. We investigate the performance of IoT across various datasets, spanning complex reasoning tasks from the GPQA dataset, explorative problem-solving in Game of 24, puzzle solving in Mini Crosswords, and multi-hop question answering from the HotpotQA dataset. Our results show that IoT represents a viable paradigm for autonomous response refinement in LLMs, showcasing significant improvements over CoT and thereby enabling more adaptive and efficient reasoning systems that minimize human intervention.

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

↑