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

arXiv cs.CL / 3/23/2026

📰 NewsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper proposes a flexible framework that uses large language models to solve constrained path planning problems directly from natural language input.
  • It handles previously formulated problems by matching input to a library of templates and, for novel problems, infers representations and constructs formulations via in-context learning.
  • An iterative solution generation and verification loop guides the LLM toward feasible and increasingly optimal solutions, with self-correction rounds inspired by genetic-algorithm refinement.
  • The framework aims to scale to diverse real-world routing tasks with minimal human intervention and flexible natural-language problem specification.
  • The authors demonstrate design, implementation, and evaluation showing the framework's capability across a variety of constrained path planning problems.

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.