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

System-1.x:学习通过语言模型平衡快速与慢速规划

System-1.x: Learning to Balance Fast and Slow Planning with Language Models

UNC Chapel Hill(北卡罗来纳大学教堂山分校)

Swarnadeep Saha, Archiki Prasad, Justin Chih-Yao Chen, Peter Hase, Elias Stengel-Eskin, Mohit Bansal

AI总结:

针对语言模型在长程规划中System-1快速但效果有限、System-2有效但计算成本高且孤立模式忽略用户目标的问题,提出System-1.x规划器,通过混合因子平衡两种模式,在两个任务上优于现有方法并具备可控性、灵活性和泛化性。

摘要:

语言模型可通过两种不同模式解决长程规划问题:快速的“System-1”模式(无需显式搜索或回溯直接生成规划)和慢速的“System-2”模式(通过显式搜索可能的动作逐步规划)。尽管System-2通常更有效,但计算成本更高,导致在长规划或大动作空间中不可行。此外,孤立的System-1或2会忽略用户的最终目标,无法提供控制模型行为的方法。为此,我们提出System-1.x规划器,这是一种基于大语言模型(LLM)的可控规划框架,能够生成混合规划并根据当前问题的难度平衡两种规划模式。System-1.x包含(i)控制器、(ii)System-1规划器和(iii)System-2规划器。基于用户指定的控制System-1与2混合比例的混合因子(x),控制器将问题分解为子目标,并将其分类为易(由System-1解决)或难(由System-2解决)。我们在单个基础LLM上微调所有三个组件,仅需搜索轨迹作为监督。在迷宫导航和方块世界两个不同规划任务上的实验表明,System-1.x规划器优于System-1规划器、经训练近似A*搜索的System-2规划器以及符号规划器(A*)。我们证明了该规划器的三个关键特性:(1)可控性:提高混合因子(如System-1.75 vs 1.5)会执行更多搜索,提升性能;(2)灵活性:通过构建神经System-1与符号System-2结合的神经符号变体,可利用现有符号方法;(3)泛化性:由于能够从不同搜索算法中学习,该方法对搜索算法的选择具有鲁棒性。

英文摘要:

Language models can be used to solve long-horizon planning problems in two distinct modes: a fast 'System-1' mode, directly generating plans without any explicit search or backtracking, and a slow 'System-2' mode, planning step-by-step by explicitly searching over possible actions. While System-2 is typically more effective, it is also more computationally expensive, making it infeasible for long plans or large action spaces. Moreover, isolated System-1 or 2 ignores the user's end goals, failing to provide ways to control the model's behavior. To this end, we propose the System-1.x Planner, a controllable planning framework with LLMs that is capable of generating hybrid plans and balancing between the two planning modes based on the difficulty of the problem at hand. System-1.x consists of (i) a controller, (ii) a System-1 Planner, and (iii) a System-2 Planner. Based on a user-specified hybridization factor (x) governing the mixture between System-1 and 2, the controller decomposes a problem into sub-goals, and classifies them as easy or hard to be solved by either System-1 or 2, respectively. We fine-tune all three components on top of a single base LLM, requiring only search traces as supervision. Experiments with two diverse planning tasks -- Maze Navigation and Blocksworld -- show that our System-1.x Planner outperforms a System-1 Planner, a System-2 Planner trained to approximate A* search, and also a symbolic planner (A*). We demonstrate the following key properties of our planner: (1) controllability: increasing the hybridization factor (e.g., System-1.75 vs 1.5) performs more search, improving performance, (2) flexibility: by building a neuro-symbolic variant with a neural System-1 and a symbolic System-2, we can use existing symbolic methods, and (3) generalizability: by being able to learn from different search algorithms, our method is robust to the choice of search algorithm.

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

↑