cs.CLFeb 26, 2026

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

Authors: Dylan Shim, Minghan Wei

Organizations: Florida Atlantic University, 777 Glades Road, Boca Raton, United States

Abstract

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.

Figures & tables

Explore similar work

CardsList
  1. Programming over Thinking: Efficient and Robust Multi-Constraint Planning

    Jan 14, 2026Derrick Goh Xin Deik, Quanyu Long, Zhengyuan Liu +2LLM PlanningLLM-Based Program Synthesis

  2. Decoupled Travel Planning with Behavior Forest

    Apr 23, 2026Duanyang Yuan, Sihang Zhou, Yanning Hou +7LLM PlanningTravel Planning

  3. Commonsense-Grounded Path Planning from Abstract Instructions

    Sep 19, 2026Masafumi Endo, Kohei Honda, Ryo YonetaniRobot Task PlanningRobot Motion Planning