SphMind: Towards Robust, Training-Free VLM-based Spatial Reasoning with a 360 Camera

Shriram Damodaran, Soumyaratna Debnath, Cheston Tan, Lin WangNeurIPS 2026

TL;DR

Vision-Language Models (VLMs) are essentially "flat-earthers"—trained on standard 2D images, they get completely disoriented by the warped geometry and wrap-around edges of 360° panoramic cameras. SphMind fixes this without a single step of retraining. By outsourcing the 3D spherical math to an external physics-inspired module and gently nudging the VLM's internal activations during inference, SphMind turns off-the-shelf VLMs into capable 360° spatial reasoners.

What Problem Does This Paper Address?

Imagine printing a globe onto a flat, rectangular map—Greenland looks massive, and Alaska is sliced apart from Russia at the edges. That is an Equirectangular Projection (ERP), the standard format for 360° cameras.

For embodied AI and robots, 360° cameras are a superpower, offering holistic situational awareness in a single shot. Naturally, we want Multi-modal Large Language Models (MLLMs/VLMs) to look at these panoramas and reason about them. The problem is a fundamental spatial-semantic gap: VLMs are built on 2D grid assumptions. When fed a 360° ERP image, they read pixel distances literally. An object right next to another might sit across the image's wrap-around seam, tricking the VLM into thinking they are on opposite sides of the room.

Comparison of current VLMs failing on 360° spatial reasoning versus SphMind succeeding via spherical harmonic encoding.

Existing fixes either require expensive, data-hungry fine-tuning, or chop the sphere into flat 2D patches (like a cubemap), which shatters global context across patch boundaries. The authors ask: Can we teach a frozen VLM spherical geometry on the fly?

Methods

SphMind's core philosophy is decoupling: let the VLM handle what objects are in the scene (semantics), and let an external mathematical framework handle where they are on the sphere (geometry). It achieves this via two novel, plug-and-play modules:

  1. Spherical Harmonics-based Spatial Graph (SHSG): First, standard object detectors (like YOLO) spot objects on unwarped cubemap faces, and those detections are lifted onto a true unit sphere ($\mathbb{S}^2$). Instead of using flat $(x,y)$ coordinates, each object's location is encoded using Spherical Harmonics (SH)—the spherical cousin of Fourier series. To answer "What is to the left of the sofa?", SHSG applies an exact, closed-form 3D rotation (a Wigner-D matrix) to the sofa's SH representation and checks which candidate objects align with the shifted peak. (Distance queries use a separate camera-frame depth score).
  2. Inference-Time Geometric Grounding (IGG): Knowing the geometric answer isn't enough; the frozen VLM still needs to generate a coherent, semantically valid response. Before the VLM decodes its final answer token, IGG intercepts its final hidden state ($h_0$). It calculates a "contrastive geometric energy" that penalizes the VLM whenever its token probabilities contradict SHSG's spatial ranking, anchored by a KL-divergence term so the model doesn't forget its pretrained language priors. Crucially, IGG updates $h_0$ using a single norm-preserving Riemannian gradient step—sliding the vector along the surface of its hypersphere so it doesn't accidentally mess up LayerNorm temperatures.

Datasets

Because SphMind is 100% training-free, all datasets are used strictly for zero-shot evaluation:

  • 360° Spatial VQA Benchmark (Newly Derived): ~12,000 synthetic QA pairs analytically generated from real 3D indoor scans in Matterport3D (6 scenes) and Stanford 2D-3D-S (4 areas), testing presence, counting, distance, and direction.
  • ODI-Bench: ~1,000 human-annotated QA pairs on real-world Flickr panoramas, testing relative direction and egocentric orientation.
  • OpenView-VQA: ~1,000 human-annotated queries requiring camera-rotation reasoning (pitch and yaw) from restricted field-of-view crops.

Key Insights and Ideas

  • Prompting can't fix broken geometry: Clever prompt engineering, Chain-of-Thought (CoT), and image-cropping strategies on ODI-Bench barely budge VLM accuracy (hovering within $\pm 1.5\%$ of the baseline). You cannot talk a model out of a fundamental perceptual illusion.
  • True rotational invariance matters: If you spin a 360° camera horizontally, the pixel grid shifts dramatically, causing baseline VLMs to change their answers almost every time (achieving just 4.3% consistency across rotations). Because spherical harmonics are rotation-equivariant, SphMind's spatial math is immune to where the panorama seam happens to fall.
  • Latent steering beats post-hoc filtering: Relying purely on the external SHSG graph gives decent results (45.1%), because object detectors can hallucinate or lack scene context. Steering the VLM's hidden state via IGG jumps accuracy to 58.4%—combining the VLM's visual common sense with strict physical laws. Interestingly, permuting token embeddings destroys this effect, proving IGG taps into real relational directions inside the VLM's latent space.

Key Results

Quantitative gains of SphMind over three VLM backbones across reasoning categories and scenes.

Quantitative gains of SphMind over three VLM backbones across reasoning categories and scenes.
  • 360° VQA: Across Qwen2.5-VL (3B, 7B) and LLaVA-1.5/1.6 (7B), SphMind boosts overall accuracy by +20.5% to +21.4%. Directional reasoning sees massive leaps—for instance, lifting Qwen2.5-3B from near-random (~12%) to ~39%. Newer models (Qwen3-VL, InternVL3.5) also gain over +13% overall.
  • Real-World Generalization: On ODI-Bench, SphMind hits 56.35% on Relative Direction, beating CoT and grounding prompts by +8.7%. On OpenView-VQA, it nearly doubles the zero-shot baseline (21.0% $\rightarrow$ 39.7%), approaching task-specifically trained models (46.0%).
  • Rotational Consistency: Under $90^\circ, 180^\circ,$ and $270^\circ$ azimuthal rotations, SphMind achieves 5.9$\times$ higher full rotational consistency than pixel-based baselines (25.3% vs. 4.3%).

Limitations and Future Work

SphMind's Achilles' heel is its reliance on external object detectors (like YOLO or OWL-ViT) to populate the spatial graph. If the detector misses an object entirely, IGG cannot recover it. It also struggles when anchor objects are ambiguous (e.g., multiple chairs in a room) or when queries are open-ended rather than structured spatial comparisons. Future work aims to eliminate the external detector via VLM-native grounding, tackle multi-step compositional reasoning, and extend spherical grounding to multi-view embodied navigation.

Summary updated

Abstract

Omnidirectional or 360° cameras provide embodied AI agents with a holistic, wide field-of-view (FoV) perception of the 3D structure of their surroundings. This capability has generated significant interest in applying Multi-modal Large Language Models (MLLMs) to omnidirectional spatial reasoning. However, most MLLMs are primarily trained on conventional 2D perspective images and therefore struggle with the severe distortions and wrap-around discontinuities introduced by spherical geometry. As a result, enabling MLLMs to generalize effectively to non-Euclidean 3D spaces without retraining remains an open challenge. In this paper, we propose SphMind, a novel, training-free, and plug-and-play framework designed to bridge this gap. The central idea of SphMind is to decouple semantic perception from geometric reasoning. Instead of requiring MLLMs to learn complex spherical geometric principles internally, the framework preserves their strong semantic understanding while handling geometric reasoning externally. To achieve this, we introduce a Spherical Harmonics-based Spatial Graph (SHSG) that models spatial relationships using equivariant transformations on the sphere. We further integrate this with Inference-Time Geometric Grounding (IGG), a model-agnostic closed-loop optimization process that aligns the internal representations of MLLMs with spherical geometric constraints during inference. Extensive experiments on three benchmark datasets demonstrate the effectiveness of SphMind. Without any additional training, the framework achieves more than 21.4% average improvement in directional reasoning on MP3D and Stanford2D-3D, outperforms all prompt-engineering baselines by 8.7% on the real-world ODI-Bench dataset, and achieves 5.9× higher rotational invariance under panorama rotations compared to existing baselines, all without dataset-specific tuning. We also validate the framework on real-world in-the-wild captures, where SphMind successfully resolves directional reasoning queries that baseline vision-language models fail to answer correctly.
BibTeX
@inproceedings{damodaran2026sphmind,
  author = {Shriram Damodaran and Soumyaratna Debnath and Cheston Tan and Lin Wang},
  title = {{SphMind: Towards Robust, Training-Free VLM-based Spatial Reasoning with a 360 Camera}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=85idnnCtik},
}
Figure