Skip to main content
QUICK REVIEW

[Paper Review] SpatialVLM: Endowing Vision-Language Models with Spatial Reasoning Capabilities

Boyuan Chen, Zhuo Xu|arXiv (Cornell University)|Jan 22, 2024
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

SpatialVLM trains a vision-language model on a large-scale synthetic 3D spatial reasoning dataset, enabling qualitative and quantitative spatial reasoning including metric distance estimation from 2D images and chain-of-thought spatial reasoning with LLMs.

ABSTRACT

Understanding and reasoning about spatial relationships is a fundamental capability for Visual Question Answering (VQA) and robotics. While Vision Language Models (VLM) have demonstrated remarkable performance in certain VQA benchmarks, they still lack capabilities in 3D spatial reasoning, such as recognizing quantitative relationships of physical objects like distances or size differences. We hypothesize that VLMs' limited spatial reasoning capability is due to the lack of 3D spatial knowledge in training data and aim to solve this problem by training VLMs with Internet-scale spatial reasoning data. To this end, we present a system to facilitate this approach. We first develop an automatic 3D spatial VQA data generation framework that scales up to 2 billion VQA examples on 10 million real-world images. We then investigate various factors in the training recipe, including data quality, training pipeline, and VLM architecture. Our work features the first internet-scale 3D spatial reasoning dataset in metric space. By training a VLM on such data, we significantly enhance its ability on both qualitative and quantitative spatial VQA. Finally, we demonstrate that this VLM unlocks novel downstream applications in chain-of-thought spatial reasoning and robotics due to its quantitative estimation capability. Project website: https://spatial-vlm.github.io/

Motivation & Objective

  • Motivate and address the lack of 3D spatial reasoning in current VLMs.
  • Develop an automatic, scalable data generation pipeline to create 3D spatial reasoning VQA data from real-world images.
  • Train a VLM on synthetic spatial QA data to improve qualitative and quantitative spatial reasoning.
  • Demonstrate downstream benefits for robotics, reward annotation, and chain-of-thought spatial reasoning with LLM coordination.

Proposed method

  • Use open-vocabulary detection, metric depth estimation, semantic segmentation, and object-centric captioning to extract object contexts from real images.
  • Lift 2D contexts to 3D by estimating depth and converting to 3D point clouds with canonicalized coordinates.
  • Generate 2B spatial QA pairs on 10M images using template-based questions (qualitative and quantitative).
  • Train a Vision-Language Model (PaLM-E family) on a mix of PaLM-E data and SpatialVLM spatial data, with 5% spatial tokens.
  • Enable chain-of-thought spatial reasoning by coordinating SpatialVLM outputs with a large language model (e.g., GPT-4) for multi-hop spatial tasks.
  • Investigate effects of data quality, training pipelines, and ViT freezing on spatial reasoning capabilities.

Experimental results

Research questions

  • RQ1Can synthetic 3D spatial reasoning data improve a VLM's ability to answer qualitative and quantitative spatial questions?
  • RQ2How do data quality, training strategy, and model freezing affect spatial reasoning performance?
  • RQ3Can SpatialVLM provide reliable distance/size estimations to support downstream robotics tasks and chain-of-thought reasoning?

Key findings

  • SpatialVLM achieves higher qualitative spatial reasoning accuracy than GPT-4V, LLaVA-1.5, InstructBLIP, PaLI, PaLM-E, and PaLM 2-E on a binary predicate task (75.2% vs 68.0–60.7%).
  • SpatialVLM attains higher accuracy on quantitative spatial questions, with outputs often in-range for distance estimates, outperforming baselines on distance-related metrics.
  • Co-training with SpatialVLM data yields competitive VQA performance on OKVQA and VQA v2 (e.g., VQA v2 improvement of 2.4% over PaLM 2-E without SpatialVLM data).
  • Unfreezing the ViT improves fine-grained distance estimation; frozen ViT yields lower accuracy across distance ranges.
  • VLMs trained with noisy spatial data still learn general spatial reasoning, with robustness to noise levels in quantitative answers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.