Mitigating spatial hallucination in large language models for path planning via prompt engineering.
Ontology highlight
ABSTRACT: Spatial reasoning in Large Language Models (LLMs) serves as a foundation for embodied intelligence. However, even in simple maze environments, LLMs often struggle to plan correct paths due to hallucination issues. To address this, we propose S2ERS, an LLM-based technique that integrates entity and relation extraction with the on-policy reinforcement learning algorithm Sarsa for optimal path planning. We introduce three key improvements: (1) To tackle the hallucination of spatial, we extract a graph structure of entities and relations from the text-based maze description, aiding LLMs in accurately comprehending spatial relationships. (2) To prevent LLMs from getting trapped in dead ends due to context inconsistency hallucination by long-term reasoning, we insert the state-action value funct
SUBMITTER: Zhang H
PROVIDER: S-EPMC11909242 | biostudies-literature | 2025 Mar
REPOSITORIES: biostudies-literature
ACCESS DATA