arXiv:2603.19257cs.CL2026-03中稿 · 2026 SPIE Security…

用大模型直接从自然语言生成满足多种约束的路径规划方案。

Constraint-aware Path Planning from Natural Language Instructions Using Large Language Models

  • 大模型通过匹配模板或自动生成问题形式化描述。
  • 采用多轮自纠错机制逐步优化可行解,提升路径质量。
  • 适合需要灵活描述需求的物流、调度等真实场景应用。

现实中的路径规划任务通常涉及多种约束,如路线数量、最大路径长度、起始点位置和特定任务要求。传统方法需为每类问题设计专用公式与算法,难以扩展。本文提出一种基于大语言模型(LLM)的灵活框架,直接从自然语言输入解决带约束的路径规划问题。核心思想是允许用户以对话方式描述任务,同时让大模型通过解的验证与迭代优化来理解并求解。对于已有研究的问题类型,大模型首先在预定义模板库中匹配对应形式;对新出现的问题,则自主从自然语言中推断问题表示,并以上下文学习方式构建合适形式。两种情况下均通过多轮解生成与验证过程,引导模型产出可行且逐渐优化的解。候选解经多轮自纠正比较与改进,类似遗传算法的演化思路。我们展示了该框架的设计、实现与评估,证明其能有效处理多种带约束的路径规划问题,提供一种可扩展、通用性强的低干预解决方案,支持通过自然语言灵活定义复杂任务。

原文摘要 · Abstract (English)

Real-world path planning tasks typically involve multiple constraints beyond simple route optimization, such as the number of routes, maximum route length, depot locations, and task-specific requirements. Traditional approaches rely on dedicated formulations and algorithms for each problem variant, making them difficult to scale across diverse scenarios. In this work, we propose a flexible framework that leverages large language models (LLMs) to solve constrained path planning problems directly from natural language input. The core idea is to allow users to describe routing tasks conversationally, while enabling the LLM to interpret and solve the problem through solution verification and iterative refinement. The proposed method consists of two integrated components. For problem types that have been previously formulated and studied, the LLM first matches the input request to a known problem formulation in a library of pre-defined templates. For novel or unseen problem instances, the LLM autonomously infers a problem representation from the natural language description and constructs a suitable formulation in an in-context learning manner. In both cases, an iterative solution generation and verification process guides the LLM toward producing feasible and increasingly optimal solutions. Candidate solutions are compared and refined through multiple rounds of self-correction, inspired by genetic-algorithm-style refinement. We present the design, implementation, and evaluation of this LLM-based framework, demonstrating its capability to handle a variety of constrained path planning problems. This method provides a scalable and generalizable approach for solving real-world routing tasks with minimal human intervention, while enabling flexible problem specification through natural language.

路径规划大模型自然语言约束求解

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