Dspy-based Neural-Symbolic Pipeline to Enhance Spatial Reasoning in LLMs
On the map: LLM reasoning → Spatial and embodied reasoning
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated remarkable capabilities across various tasks, yet they often struggle with spatial reasoning. This paper presents a novel neural-symbolic framework that enhances LLMs' spatial reasoning abilities through iterative feedback between LLMs and Answer Set Programming (ASP). We evaluate our approach on two benchmark datasets: StepGame and SparQA, implementing three distinct strategies: (1) direct prompting baseline, (2) Facts+Rules prompting, and (3) DSPy-based LLM+ASP pipeline with iterative refinement. Our experimental results demonstrate that the LLM+ASP pipeline significantly outperforms baseline methods, achieving an average 82% accuracy on StepGame and 69% on SparQA, marking improvements of 40-50% and 8-15% respectively over direct prompting. The success stems from three key innovations: (1) effective separation of semantic parsing and logical reasoning through a modular pipeline, (2) iterative feedback mechanism between LLMs and ASP solvers that improves program rate, and (3) robust error handling that addresses parsing, grounding, and solving failures. Additionally, we propose Facts+Rules as a lightweight alternative that achieves comparable performance on complex SparQA dataset, while reducing computational overhead.Our analysis across different LLM architectures (Deepseek, Llama3-70B, GPT-4.0 mini) demonstrates the framework's generalizability and provides insights into the trade-offs between implementation complexity and reasoning capability, contributing to the development of more interpretable and reliable AI systems.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Spatial and embodied reasoning, one of 17 directions in LLM reasoning. Builds on 23 of its 26 references that are in the map. First posted on arXiv 27 Nov 2024.
Builds on
23 of 26 references.
Closest ancestors · 3
Same direction, newest first
- 2023An Evaluation of ChatGPT-4's Qualitative Spatial Reasoning Capabilities in RCC-827 Sep
- 2022Transfer Learning with Synthetic Corpora for Spatial Role Labeling and Reasoning30 Oct
- 2022StepGame: A New Benchmark for Robust Multi-Hop Spatial Reasoning in Texts18 Apr
Other references · 20
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2023Logic-LM: Empowering Large Language Models with Symbolic Solvers for Faithful Logical Reasoningcited by 379
- 2022TALM: Tool Augmented Language Modelscited by 197
- 2017Neural-Symbolic Learning and Reasoning: A Survey and Interpretationcited by 195
- 2023Navigate through Enigmatic Labyrinth A Survey of Chain of Thought Reasoning: Advances, Frontiers and Futurecited by 184
- 2020Logical Neural Networkscited by 118
- 2023NeurASP: Embracing Neural Networks into Answer Set Programmingcited by 92
- 2023Review of Large Vision Models and Visual Prompt Engineeringcited by 77
- 2023Coupling Large Language Models with Logic Programming for Robust and General Reasoning from Textcited by 59
8 more
- 2021True Few-Shot Learning with Prompts -- A Real-World Perspectivecited by 38
- 2022Is Neuro-Symbolic AI Meeting its Promise in Natural Language Processing? A Structured Reviewcited by 37
- 2019NLProlog: Reasoning with Weak Unification for Question Answering in Natural Languagecited by 36
- 2023Leveraging Large Language Models to Generate Answer Set Programscited by 33
- 2024Large Language Models Are Neurosymbolic Reasonerscited by 31
- 2024Towards Cognitive AI Systems: a Survey and Prospective on Neuro-Symbolic AIcited by 24
- 2022A Neuro-Symbolic ASP Pipeline for Visual Question Answeringcited by 14
- 2023Explainable Answer-set Programmingcited by 1
Built on by
Citing papers per year: 2025: 4; 2026: 2.
6 papers.
- 2025How Far are VLMs from Visual Spatial Intelligence? A Benchmark-Driven Perspectivecited by 41
- 2025Spatial Reasoning in Multimodal Large Language Models: A Survey of Tasks, Benchmarks and Methodscited by 22
- 2025Benchmarking Chinese Medical LLMs: A Medbench-based Analysis of Performance Gaps and Hierarchical Optimization Strategiescited by 2
- 2026LAST: Leveraging Tools as Hints to Enhance Spatial Reasoning for Multimodal Large Language Modelscited by 2
- 2025Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsingcited by 0
- 2026Accelerating NeurASP with vectorization and cachingcited by 0
- 2026Accelerating NeurASP with vectorization and caching9 Jun 2026
- 2026LAST: Leveraging Tools as Hints to Enhance Spatial Reasoning for Multimodal Large Language Models8 Apr 2026
- 2025Spatial Reasoning in Multimodal Large Language Models: A Survey of Tasks, Benchmarks and Methods14 Nov 2025
- 2025Bridging Natural Language and ASP: A Hybrid Approach Using LLMs and AMR Parsing11 Nov 2025
- 2025How Far are VLMs from Visual Spatial Intelligence? A Benchmark-Driven Perspective23 Sep 2025
- 2025Benchmarking Chinese Medical LLMs: A Medbench-based Analysis of Performance Gaps and Hierarchical Optimization Strategies10 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2024Neuro-symbolic Training for Reasoning over Spatial Language
- 2025FoREST: Frame of Reference Evaluation in Spatial Reasoning Tasks
- 2025Stuck in the Matrix: Probing Spatial Reasoning in Large Language Models
- 2026Do LLMs Build Spatial World Models? Evidence from Grid-World Maze Tasks
- 2024SpaRC and SpaRP: Spatial Reasoning Characterization and Path Generation for Understanding Spatial Reasoning Capability of Large Language Models
- 2026From Symbolic to Geometric: Enabling Spatial Reasoning in Large Language Models
- 2026LLMs as ASP Programmers: Self-Correction Enables Task-Agnostic Nonmonotonic Reasoning
- 2024Can Large Language Models Create New Knowledge for Spatial Reasoning Tasks?