arXiv:2503.01700cs.ROcs.AI2025-03被引 12

让大模型生成代码作为符号规划器,提升机器人任务规划的准确性和泛化能力。

Code-as-Symbolic-Planner: Foundation Model-Based Robot Planning via Symbolic Code Generation

  • 用代码替代纯文本推理,让大模型生成可执行的符号规划代码
  • 在7个典型任务上平均提升24.1%成功率,跨环境与多机器人场景表现优异
  • 适合需要复杂约束求解的机器人规划研究者和开发者

近期研究显示大型语言模型(LLM)在机器人任务与运动规划(TAMP)中具有巨大潜力。现有方法通过生成基于文本或代码的推理链来制定子目标和动作计划,但未充分挖掘LLM在符号计算和代码生成方面的优势。许多机器人TAMP任务涉及多重约束下的复杂优化,纯文本推理难以胜任。虽然引入预定义求解器和规划器能提升性能,但泛化能力有限。鉴于LLM编码能力不断增强,我们通过引导其生成代码作为符号规划器,用于优化求解和约束验证,而非仅用于接口调用。不同于以往将代码作为与动作模块交互的桥梁,本方法让大模型生成代码作为求解器、规划器和验证器,同时保留文本推理以融入常识。借助多轮引导与答案演化框架,所提Code-as-Symbolic-Planner在七个典型TAMP任务及三种主流大模型上,平均成功率相比最优基线提升24.1%。该方法在离散与连续环境、2D/3D仿真与真实场景、单/多机器人任务中均表现出强有效性和泛化能力。项目网站:https://yongchao98.github.io/Code-Symbol-Planner/ 提供提示词、视频与代码。

原文摘要 · Abstract (English)

Recent works have shown great potentials of Large Language Models (LLMs) in robot task and motion planning (TAMP). Current LLM approaches generate text- or code-based reasoning chains with sub-goals and action plans. However, they do not fully leverage LLMs' symbolic computing and code generation capabilities. Many robot TAMP tasks involve complex optimization under multiple constraints, where pure textual reasoning is insufficient. While augmenting LLMs with predefined solvers and planners improves performance, it lacks generalization across tasks. Given LLMs' growing coding proficiency, we enhance their TAMP capabilities by steering them to generate code as symbolic planners for optimization and constraint verification. Unlike prior work that uses code to interface with robot action modules, we steer LLMs to generate code as solvers, planners, and checkers for TAMP tasks requiring symbolic computing, while still leveraging textual reasoning to incorporate common sense. With a multi-round guidance and answer evolution framework, the proposed Code-as-Symbolic-Planner improves success rates by average 24.1\% over best baseline methods across seven typical TAMP tasks and three popular LLMs. Code-as-Symbolic-Planner shows strong effectiveness and generalizability across discrete and continuous environments, 2D/3D simulations and real-world settings, as well as single- and multi-robot tasks with diverse requirements. See our project website https://yongchao98.github.io/Code-Symbol-Planner/ for prompts, videos, and code.

机器人规划大模型符号推理代码生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。