SpatialQuery: Benchmarking Geometry-Grounded Multi-Instance Spatial Reasoning in Vision-Language Models

2026-08-03Computer Vision and Pattern Recognition

Computer Vision and Pattern Recognition
AI summary

The authors look at how vision-language models struggle to understand and measure distances between multiple similar objects in a photo. They created a new test called CIDQ to check if a model can find the closest matching object and estimate distance on the floor from just one image. Their system, SPATIALQUERY, turns the scene into a simple top-down block view to help with this task and adds a way to handle uncertainty during reasoning. Without needing extra training, their approach works better than other models for this distance estimation task. They also provide a large dataset and tools for others to try out their method.

Vision-Language ModelsMetric Spatial ReasoningClosest-Instance Distance QueryBird's-Eye ViewScene CubifyingUncertainty-Aware Chain-of-ThoughtFloor-Plane DistanceRGB ImageBenchmark DatasetModel Prompting
Authors
Hai Nguyen, Tung Vu, Cong Tran
Abstract
Vision-language models (VLMs) achieve strong semantic understanding but remain unreliable in metric spatial reasoning, particularly when queries require comparing multiple instances of the same object category. We study this problem through the Closest-Instance Distance Query (CIDQ), where a model must identify the nearest visible candidate to a unique reference object and estimate their gravity-aligned floor-plane distance. We introduce SPATIALQUERY, a training- free framework for CIDQ reasoning from a single RGB image, together with SPATIALQUERY-1M, a benchmark containing over one million RGB-only question-answer pairs from 200 indoor scenes. SPATIALQUERY recovers instance-level metric geometry and transforms it into a canonical Bird's-Eye View through Scene Cubifying, which represents objects as uniformly sized, category-coded blocks to emphasize their relative floor- plane locations. We further propose Uncertainty-Aware Chain-of-Thought (UA-CoT) prompting, which incorporates geometry- derived per-instance uncertainty into the VLM reasoning process. Without task-specific fine-tuning or architectural modification, SPATIALQUERY with Qwen3-VL-8B achieves a Floor-MAE of 0.259 m, an Unc-Acc@0.3 m of 90.5%, and a proximity-decision accuracy of 84.18%, outperforming fine-tuned spatial specialists, general-purpose VLMs, and closed-source frontier models. Code, benchmark resources, and an interactive demo are available at https://namhai1810.github.io/SpatialQuery/.