使用 And-Or 递归器与 Refiner 预言机实现目标驱动 LLM 对话线程的全自动化
Full Automation of Goal-driven LLM Dialog Threads with And-Or Recursors and Refiner Oracles
AI总结:
本文提出一种基于 And-Or 树递归探索与 Horn Clause 解释器的算法,实现了 LLM 对话线程中深度逐步推理的全自动化,并利用语义相似度和预言机建议验证步骤,最终应用于因果解释与推荐等任务。
摘要:
我们通过递归探索备选方案(OR 节点)并展开细节(AND 节点)至给定深度,实现了 LLM 对话线程中深度的逐步推理自动化。从单一简明的特定任务启动器出发,我们通过合成一个总结迄今为止所采取深度优先步骤的提示词,引导自动化对话线程保持专注于该任务。我们的算法源自 Horn Clause 解释器的简单递归下降实现,不同之处在于我们调整了逻辑引擎以适应 LLM 已训练的自然语言推理模式。利用与真实事实的语义相似性或来自另一个 LLM 实例的预言机建议,我们限制了搜索空间,并验证了作为答案返回的证明步骤轨迹。最终,生成的 Horn Clause 程序的唯一最小模型收集了推理过程的结果。作为应用,我们概述了后果预测、因果解释、推荐系统以及科学文献主题聚焦探索的实现方案。
英文摘要:
We automate deep step-by step reasoning in an LLM dialog thread by recursively exploring alternatives (OR-nodes) and expanding details (AND-nodes) up to a given depth. Starting from a single succinct task-specific initiator we steer the automated dialog thread to stay focussed on the task by synthesizing a prompt that summarizes the depth-first steps taken so far. Our algorithm is derived from a simple recursive descent implementation of a Horn Clause interpreter, except that we accommodate our logic engine to fit the natural language reasoning patterns LLMs have been trained on. Semantic similarity to ground-truth facts or oracle advice from another LLM instance is used to restrict the search space and validate the traces of justification steps returned as answers. At the end, the unique minimal model of a generated Horn Clause program collects the results of the reasoning process. As applications, we sketch implementations of consequence predictions, causal explanations, recommendation systems and topic-focussed exploration of scientific literature.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。