Parse Before You Execute: Efficient Tool-Integrated Spatial Reasoning Agents with Executable Primitives
Xiwei Liu, Yulong Li, Xinling Zhuang, Xuhui Li, Yichen Li, Haolin Yang, Zhixiang Lu, Yutong Xie
Abstract
Spatial reasoning in Vision-Language Models (VLMs) has increasingly benefited from tool-integrated pipelines that ground computation in explicit geometry. However, existing systems often compile queries into relatively open-ended artifacts, such as code, task constraints, tool plans, or gathered evidence, leaving what must be resolved before execution under-specified. This can lead to unnecessary tool acquisition and iterative refinement, while still producing plausible reasoning traces from incomplete spatial commitments. We identify this failure mode as under-committed query compilation. To address it, we propose PEPS, a training-free agent Parsing Executable Primitives for Spatial reasoning under a typed FESM schema over Frame, Entity, State, and Metric. PEPS follows a parse-before-execute principle: the Parser commits each query to a compact set of executable requirements; the Executor selectively grounds the required primitives through fixed geometric APIs and deterministic computation; and the Verifier checks whether these requirements are fulfilled, enabling early termination or targeted repair. Experiments on three spatial reasoning benchmarks and four VLM backbones show that PEPS improves reasoning accuracy while substantially reducing refinement rounds, API cost, and end-to-end latency over strong tool-integrated baselines. These results demonstrate that knowing what a query requires before execution makes tool-integrated spatial reasoning not only more reliable, but also more efficient.
Create a lesson
Related papers
Parsing Visual Latents for Multimodal Spatial Reasoning
Shared title terminologycs.CVZhuoying Yang, Yichen Guo, Kathy Jia et al.
GoldiBench: Right Tools, Wrong Amount -- Benchmarking Agents on Effect Judgement in Professional Editing
Shared title terminologycs.CVWang Yang, Xinpeng Li, Yanyan Zhang et al.
GenDSR: Transferring Representations from Video Generation Models for Dynamic Spatial Reasoning
Shared title terminologycs.CVKe Yang, Zhenyu Zhang, Jun Li
SketchDirector: Complex Scene Sketching via Agentic Layout Reasoning and Detail Refinement
Shared title terminologycs.CVYiqi Liang, Xiaodong Cun
ET: Efficient Transfer from Softmax to Hybrid Attention
Shared title terminologycs.CVGuangfu Guo, Xiaoqian Lu, Linsey Pang et al.
EventSSM: Causal Spatial-State Modelling for Asynchronous Events Event-Depth Estimation
Shared title terminologycs.CVSadiq O. Macaulay, Dipon Ghosh, Hadfield Simon