Metraipolis › archive › dc_67460ae3e6e9

Code-driven planning in grid worlds with large language models (2026) · DOI 10.1098/rsos.260255

Source
Metraipolis archive
Original
https://doi.org/10.1098/rsos.260255
License (as archived)
CC-BY-4.0
Archived
2026-10-21T14:06:34.072Z
SHA-256 of the archived text
45f86c8b3ecd3d7e07b39c22476cf6f6355e5cbd80edb55e8e7183a15e2ed971
Stable URL of this page
https://metraipolis.com/documento/dc_67460ae3e6e9

How to cite

Code-driven planning in grid worlds with large language models (2026) · DOI 10.1098/rsos.260255 — Metraipolis archive, https://doi.org/10.1098/rsos.260255 (CC-BY-4.0); archived copy: https://metraipolis.com/documento/dc_67460ae3e6e9 (Metraipolis archive dc_67460ae3e6e9, sha256 45f86c8b3ecd3d7e07b39c22476cf6f6355e5cbd80edb55e8e7183a15e2ed971)
BibTeX
@misc{dc67460ae3e6e9,
  title = {Code-driven planning in grid worlds with large language models (2026) · DOI 10.1098/rsos.260255},
  howpublished = {Metraipolis archive},
  url = {https://doi.org/10.1098/rsos.260255},
  note = {License CC-BY-4.0; archived copy https://metraipolis.com/documento/dc_67460ae3e6e9; sha256 45f86c8b3ecd3d7e07b39c22476cf6f6355e5cbd80edb55e8e7183a15e2ed971},
  year = {2026}
}

Archived text

Reproduced under CC-BY-4.0. Attribution: Metraipolis archive, https://doi.org/10.1098/rsos.260255. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Articolo recente con licenza aperta: scheda dai metadati Crossref (journal-article).
Titolo: Code-driven planning in grid worlds with large language models
Autori: Ashwath Vaithinathan Aravindan, Zhisheng Tang, Mayank Kejriwal
Pubblicato: 2026-10-07 · in: Royal Society Open Science · editore: The Royal Society
DOI: https://doi.org/10.1098/rsos.260255
Licenza dell'articolo: CC-BY-4.0

Abstract (testo degli autori, CC-BY-4.0):
Abstract We propose an iterative programmatic planning (IPP) framework that solves grid-based tasks by using large language models (LLMs) to synthesize interpretable, executable programs that act as agent policies mapping environment states to action sequences, rather than relying on traditional search or reinforcement learning. Alongside prompting strategies such as direct code generation, pseudocode conditioned refinement and curriculum-based prompting, IPP centres on an iterative refinement mechanism that updates code from coarse, task-level feedback. We evaluate our approach using six leading LLMs and two challenging grid-based benchmarks (grid-based reasoning for assessing spatial planning (GRASP) and MiniGrid). Our IPP framework demonstrates improvements over direct code generation for five of the six models, with net energy gains ranging from a few per cent to roughly threefold and, for Gemini-2.5-Pro, a sign flip from a negative baseline to a strongly positive score, establishes a new state-of-the-art result for GRASP and significantly outperforms direct elicitation from GPT-o3-mini (by 43% on the hardest MiniGrid task to 116% on GRASP). While code generation has a higher initial prompting cost compared to direct solution elicitation ($0.08 per task versus $0.002 per instance for GPT-o3-mini), the code can be reused for any number of instances, making the amortized cost significantly lower (by 400 times on GPT-o3-mini across the complete GRASP benchmark). Beyond performance gains, IPP produces reusable, human-readable policies that support transparent inspection and modification, underscoring the advantages of planning as program synthesis over per-instance inference. The code and results can be found at http://github.com/Mystic-Slice/LLM-Planning-CodeGen.

Fonte: https://api.crossref.org/works/10.1098%2Frsos.260255 — metadati Crossref, consultati il 2026-10-21. Interrogazione: «code generation language models».