Papers › Can Large Language Models be Good Path Planners? A Benchmark and Investigation on...

Can Large Language Models be Good Path Planners? A Benchmark and Investigation on Spatial-temporal Reasoning

5 Oct 2023arXiv:2310.03249archive 2025-07-28

Mohamed Aghzal, Erion Plaku, Ziyu Yao

Large language models (LLMs) have achieved remarkable success across a wide spectrum of tasks; however, they still face limitations in scenarios that demand long-term planning and spatial reasoning. To facilitate this line of research, in this work, we propose a new benchmark, termed Path Planning from Natural Language (PPNL). Our benchmark evaluates LLMs' spatial-temporal reasoning by formulating ''path planning'' tasks that require an LLM to navigate to target locations while avoiding obstacles and adhering to constraints. Leveraging this benchmark, we systematically investigate LLMs including GPT-4 via different few-shot prompting methodologies as well as BART and T5 of various sizes via fine-tuning. Our experimental results show the promise of few-shot GPT-4 in spatial reasoning, when it is prompted to reason and act interleavedly, although it still fails to perform long-term temporal reasoning. In contrast, while fine-tuned LLMs achieved impressive results on in-distribution reasoning tasks, they struggled to generalize to larger environments or environments with more obstacles.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.03249")

Code

Syntology Ran 28 of 28 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 28 ran with no contract checked.

By repository: official repository: 28 samples from 1 repository, 28 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mohamedaghzal/llms-as-path-planners officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

28 samples harvested; 28 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

28ran

Licence: 28 of the 28 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from mohamedaghzal/llms-as-path-planners. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

a_star mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/generate_samples.py official repository ran no licence file found · pointer only · 1d7ecad86c4cf33d · report
actions_and_effects mohamedaghzal/llms-as-path-planners/ppnl-spatial-temporal-reasoning/ICL/actions_and_effect_prompts.py official repository ran fingerprinted no licence file found · pointer only · f514998c2d24dde3 · report
build_path mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/place_agent_goals_sg.py official repository ran no licence file found · pointer only · e668aeb35a33a774 · report
construct_grid mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/place_agent_goals_sg.py official repository ran no licence file found · pointer only · 8419ce244e148b28 · report
count_obstacles mohamedaghzal/llms-as-path-planners/ppnl-spatial-temporal-reasoning/ICL/actions_and_effect_prompts.py official repository ran no licence file found · pointer only · f7e0e94c07eec3e4 · report
draw_path mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/prompting.py official repository ran no licence file found · pointer only · 5a4054d663046894 · report
exact_match mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/evaluate.py official repository ran no licence file found · pointer only · 806fb301720451ec · report
fixed_length mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/helpers.py official repository ran no licence file found · pointer only · caa8df4c4d1fd565 · report
generate_code mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/generate_samples.py official repository ran no licence file found · pointer only · c274f392ee719051 · report
generate_code_alternate_column mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/representations.py official repository ran no licence file found · pointer only · 0702ff5547719980 · report
generate_code_rectangle mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/representations.py official repository ran no licence file found · pointer only · b1c836fbb3f4d4fc · report
generate_code_spiral mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/representations.py official repository ran no licence file found · pointer only · 35a7867d3c2e93af · report
generate_effects mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/prompting.py official repository ran no licence file found · pointer only · 00e00e527a7e268c · report
generate_grid mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/generate_samples.py official repository ran no licence file found · pointer only · 89b81366df015ab8 · report
generate_worlds mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/place_agent_goals_sg.py official repository ran no licence file found · pointer only · cebb72c7aecd9c49 · report
get_actual mohamedaghzal/llms-as-path-planners/ppnl-spatial-temporal-reasoning/ICL/parse_react_mg_path.py official repository ran no licence file found · pointer only · d3e9e3908a9df9c8 · report
is_row mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/planning_samples.py official repository ran no licence file found · pointer only · 3a2159f19cba31c7 · report
one_opening_per_column mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/one_entrance.py official repository ran no licence file found · pointer only · 1ddb64e34d0ffc15 · report
one_opening_per_row mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/one_entrance.py official repository ran no licence file found · pointer only · f62c1ffb342ad79d · report
out_of_bounds mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/prompting.py official repository ran no licence file found · pointer only · a93c8460f75834dc · report
parse_react_path mohamedaghzal/llms-as-path-planners/ppnl-spatial-temporal-reasoning/ICL/parse_react_mg_path.py official repository ran no licence file found · pointer only · 2aa266d417a4012c · report
rectangle mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/geometries.py official repository ran no licence file found · pointer only · ba3aa7daeaf50708 · report
sample mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/one_entrance.py official repository ran no licence file found · pointer only · 822d5128406dc0b4 · report
single_environment mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/helpers.py official repository ran no licence file found · pointer only · 8ed9120665b11d99 · report
spiral_maze mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/geometries.py official repository ran no licence file found · pointer only · 8d0323e6656ee492 · report
success_sg mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/evaluate.py official repository ran no licence file found · pointer only · d74bce6422f92cd8 · report
triangle mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/geometries.py official repository ran no licence file found · pointer only · 02579eedf3922c00 · report
valid_position mohamedaghzal/llms-as-path-planners/gpt-4-path-planning/src/evaluate.py official repository ran no licence file found · pointer only · 4ac5d326cb14bb91 · report

Tasks

NavigateSpatial Reasoning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdafactorAdamAttentionAttention DropoutBARTBPEDense ConnectionsDropoutGPT-4Gated Linear UnitInverse Square Root ScheduleLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSentencePieceSoftmaxT5Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections