cs.AINov 26, 2026

DATUM: A System of Syntactic Kernel and Semantic Wrapper for Trustworthy LLM Spatial Reasoning

Authors: Zhangyu Wang

Organizations: School of Computing and Information Science, University of Maine, Orono, ME, USA

Abstract

AI-generated mathematical proofs can be trusted because formal kernels such as Lean verify them, but spatial reasoning has no such kernel. We present DATUM, which verifies large language model (LLM) spatial reasoning formally as a typed graph. A semantic wrapper transcribes plain-language question and reasoning into typed spatial statements and splits vague wording such as ``north of'' into explicit interpretation branches. A syntactic kernel checks each statement by fixed rules grounded in GIScience principles and, like a compiler, reports error stacktraces as typed exception reports. DATUM provides automated, reliable and human-readable verification tools of LLM generated spatial reasoning. On 585 spatial QA tasks, DATUM detects wrong conclusions with F1 0.95 at 85--87% coverage, against 0.44--0.81 for existing LLM-as-judge baselines. DATUM's exception reports also enables LLM self-correction, fixing 103 out of 124 reasoning errors, against 72--84 for baselines.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Aug 1, 2026

SymboUQ: Symbolic Uncertainty Quantification for Spatial Reasoning in LLMs

Although large language models (LLMs) can produce fluent spatial reasoning traces, their intermediate relations may fail to support the final conclusion, making token-level confidence insufficient for final-answer reliability estimation. Existing formal verifiers provide stronger semantic evidence, but their applicability is partial: a parsed claim need not yield a definite semantic verdict. To address this issue, we introduce SymboUQ, a symbolic uncertainty quantification framework that estimates final-answer reliability from reasoning traces by distinguishing symbolizability, whether a claim can be represented in the verifier's formal language, from semantic determinacy, whether its execution yields an entailed or contradicted verdict rather than an unknown or not-evaluable outcome. SymboUQ comprises (i) a Layout Auditor that executes ordered spatial claims and extracts feasibility, conflict, and repair evidence; (ii) a label-free Determinacy Profile that characterizes effective executable coverage; and (iii) a Determinacy-Aware Reliability Composer that integrates constraint-based, representation-based, and decoding-based scores according to verifier applicability. Extensive experiments on five spatial reasoning benchmarks with four frozen LLM backbones show that SymboUQ achieves approximately an 8% relative improvement in AUROC and a 7% relative reduction in class-balanced Brier loss over the strongest baseline.
Aug 5, 2026

Trace, Verify, and Correct: A Training-Free Framework for Spatial Reasoning in Multimodal LLMs

Although Multimodal Large Language Models (MLLMs) have made substantial progress, their spatial reasoning may still produce intermediate judgments inconsistent with the input image, allowing errors to propagate through the reasoning chain and affect the final answer. Existing methods mainly improve spatial reasoning through training or additional spatial information, without considering whether the reasoning process itself is faithful to the model input. Our study shows that unfaithful reasoning chains significantly reduce final-answer accuracy. To address this issue, we propose a modular and training-free framework for spatial reasoning verification and correction. The framework constructs a Spatial Evidence Graph (SEG), which associates atomic spatial evidence extracted from Chain-of-Thought reasoning with visual entities, spatial relations, source steps, and visual evidence. Spatial Evidence Reliability Assessment (SERA) evaluates the reliability of visual evidence based on object existence, localization, and geometric measurements. The framework then identifies the earliest spatial evidence unit contradicted by reliable visual evidence and guides the original MLLM to revise the subsequent reasoning and final answer. Across 15 model-dataset settings, our method achieves an average accuracy of 68.94%, outperforming the compared baselines by 8.55 percentage points on average. Our code will be open-sourced.
Nov 27, 2026

From Space to Math: Teaching MLLMs to Abstract Spatial Reasoning as Mathematics

Spatial reasoning remains a persistent bottleneck of multimodal large language models (MLLMs). Existing methods, whether training-based or relying on external information sources, almost universally conduct reasoning in natural language, which loses numerical precision and entangles perception with reasoning. We observe that spatial reasoning problems are inherently mathematical, and that the resulting mathematical formulations are typically elementary for modern MLLMs. Motivated by this, we propose MASIR, a new reasoning paradigm that abstracts spatial problems into their mathematical form and solves them accordingly. To train this capability, we develop a staged SFT pipeline with an automated data construction process. GRPO follows to improve generalization, with general reasoning problems incorporated to preserve the model's broader capabilities. Extensive experiments demonstrate consistent and substantial improvements across diverse benchmarks, attaining state-of-the-art performance among open-source models across all benchmarks, and surpassing closed-source models on half of the benchmarks.