在复杂环境中进行规划需要智能体高效查询世界模型,以找到从起点到目标的可行动作序列。近期研究表明,大语言模型(Large Language Models, LLMs)凭借其丰富的先验知识和推理能力,有望通过搜索有潜力的状态并适配来自环境的反馈来辅助规划。本文提出并研究了两种利用LLM实现查询高效规划的本质上相互竞争的框架。第一种将LLM用作基于搜索的规划器中的启发式函数,用于选择有潜力的节点进行扩展并提出可行动作。第二种将LLM用作生成式规划器,生成从起点到目标的完整动作序列,查询世界模型,并根据反馈调整策略。我们的研究表明,尽管两种方法均优于同类基线模型,但将LLM用作生成式规划器所需的交互次数显著更少。核心发现是,与作为启发式函数的LLM相比,作为规划器的LLM能够基于即时反馈更快地调整其规划策略。我们在Robotouille和PDDL规划基准上开展了评估与消融实验,并讨论了其与现有查询高效规划算法理论的关联。代码可在https://github.com/portal-cornell/llms-for-planning获取。
英文摘要:
Planning in complex environments requires an agent to efficiently query a world model to find a feasible sequence of actions from start to goal. Recent work has shown that Large Language Models (LLMs), with their rich prior knowledge and reasoning capabilities, can potentially help with planning by searching over promising states and adapting to feedback from the world. In this paper, we propose and study two fundamentally competing frameworks that leverage LLMs for query-efficient planning. The first uses LLMs as a heuristic within a search-based planner to select promising nodes to expand and propose promising actions. The second uses LLMs as a generative planner to propose an entire sequence of actions from start to goal, query a world model, and adapt based on feedback. We show that while both approaches improve upon comparable baselines, using an LLM as a generative planner results in significantly fewer interactions. Our key finding is that the LLM as a planner can more rapidly adapt its planning strategies based on immediate feedback than LLM as a heuristic. We present evaluations and ablations on Robotouille and PDDL planning benchmarks and discuss connections to existing theory on query-efficient planning algorithms. Code is available at https://github.com/portal-cornell/llms-for-planning
QueryAttack: Jailbreaking Aligned Large Language Models Using Structured Non-natural Query Language
Tsinghua Shenzhen International Graduate School(清华大学深圳国际研究生院);Pengcheng Laboratory(鹏城实验室);The Chinese University of Hong Kong(香港中文大学);Jilin University(吉林大学);Southwest University(西南大学);University of Electronic Science and Technology of China(电子科技大学);Shenzhen University(深圳大学)
Skeletons Matter: Dynamic Data Augmentation for Text-to-Query
School of Data Science, Fudan University(复旦大学数据科学学院);School of Computer Science and Technology, Donghua University(东华大学计算机科学与技术学院);College of Computer Science and Artificial Intelligence, Fudan University(复旦大学计算机科学与人工智能学院);Ant Group(蚂蚁集团);Shanghai Key Laboratory of Data Science(上海数据科学 key laboratory)
LLMs as Planning Formalizers: A Survey for Leveraging Large Language Models to Construct Automated Planning Models
Ingenuity Labs Research Institute, Queen’s University(英杰实验室研究 institute,皇后大学);School of Computing, Queen’s University(计算学院,皇后大学);Department of Electrical and Computer Engineering, Queen’s University(电气与计算机工程学院,皇后大学)
Opportunistic Collaborative Planning with Large Vision Model Guided Control and Joint Query-Service Optimization
Shenzhen Research Institute of Big Data, The Chinese University of Hong Kong (Shenzhen)(深圳大数据研究院,香港中文大学(深圳));Shenzhen Institutes of Advanced Technology (SIAT), Chinese Academy of Sciences(深圳先进技术研究院,中国科学院);State Key Laboratory of Internet of Things for Smart City (SKL-IOTSC), University of Macau(智能城市物联网国家重点实验室,澳门大学);Manifold Tech Limited(曼陀科技有限公司);School of Electrical Engineering and Telecommunications, the University of New South Wales(新南威尔士大学电子与电信工程学院)
On Query-efficient Planning in MDPs under Linear Realizability of the Optimal State-value Function
DeepMind;University College London(伦敦大学学院);University of Illinois(伊利诺伊大学);University of Cambridge(剑桥大学);University of Alberta(阿尔伯塔大学)
我们认为,在最佳的价值函数位于接近的跨度的特征地图的假设下,在固定水平的MDP与生成模型的局部规划。生成模型提供了对MDP的本地访问:规划器可以要求从先前返回的状态和任意动作进行随机转换,并且仅可访问此过程中遇到的状态的特征。与之前的工作(例如Latestival et al.(2020))相反,假设所有策略都是线性可实现的,我们考虑了单个线性可实现(确定性)策略的显著宽松假设。Weisz等人(2020)最近的一个下限确定了当最优策略的动作价值函数是线性可实现的时,相关问题需要指数数量的查询,无论是在$H$(MDP的视野)还是$d$(特征映射的维度)中。它们的构建关键依赖于具有指数级大的动作集。相比之下,在这项工作中,我们建立了多$(H,d)$规划是可能的状态价值函数实现时,动作集有一个恒定的大小。特别是,我们提出了TensorPlan算法,它使用聚$((dH/δ)^A)$模拟器查询,以找到一个$δ$最优的政策相对于任何确定性的政策,其中的价值函数是线性实现与一些有界参数。这是第一个只使用单个竞争价值函数的线性可实现性来给出多项式查询复杂度保证的算法。计算成本是否同样有界仍然是一个悬而未决的问题。我们将上界扩展到近可实现的情况下,无限地平线贴现设置。我们还提出了一个下界在无限地平线的情节设置:Plancies,实现恒定的次优需要指数许多查询,无论是在$d$或行动的数量。
SKL of Processors, Institute of Computing Technology, CAS, Beijing, China(处理器SKL,计算技术研究所,中国科学院,北京);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学,北京);Cambricon Technologies, Beijing, China(寒武纪科技,北京);SKL of Computer Science, Institute of Software, CAS, Beijing, China(计算机科学SKL,软件研究所,中国科学院,北京);Shanghai Innovation Center for Processor Technologies, SHIC, Shanghai, China(上海处理器技术创新中心,SHIC,上海,中国);University of Science and Technology of China(中国科学技术大学);Autodesk Research(Autodesk研究)