让大模型自己和自己对话,逐步优化答案。
Iteration of Thought: Leveraging Inner Dialogue for Autonomous Large Language Model Reasoning
- 用动态对话机制让模型自我追问、自我修正。
- 在多个复杂推理任务上显著优于传统思维链方法。
- 适合需要自主推理、减少人工干预的场景。
人类通过反复交互能有效激发大语言模型(LLM)的深层推理能力。受此启发,我们提出迭代思维(IoT)框架,通过生成与当前输入和模型回应相匹配的‘思考’引导提示,动态优化模型输出。不同于静态或半静态方法(如思维链CoT或思想树ToT),IoT不生成被舍弃的备选路径,而是基于不断演化的上下文进行自适应推理。该框架包含三个组件:负责生成指导性提示的内对话代理(IDA)、处理提示并改进回答的模型代理(LLMA),以及二者间的迭代提示循环。我们提出两种变体:自主迭代(AIoT)由模型决定停止时机,引导式迭代(GIoT)则固定迭代次数。在涵盖复杂推理(GPQA)、24点游戏探索(Game of 24)、迷你填字谜(Mini Crosswords)及多跳问答(HotpotQA)等多个数据集上的实验表明,IoT显著优于CoT,是一种可行的自主响应优化范式,推动更灵活高效的推理系统发展。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。