Evolution improves spatial reasoning in vision language models

SpatialDarwin: Harness Evolution for Spatial Reasoning

Computer Vision and Pattern RecognitionArtificial IntelligenceMachine Learning

Summary

Spatial reasoning is hard for current vision-language models, which sometimes see clues but mix them up incorrectly. The authors created SpatialDarwin, a system that uses evolution-inspired methods to automatically improve how these models combine spatial information. Their evolved solutions match or nearly match expert-designed methods but use much less computing power. These evolved methods also transfer well to new tests and different models without additional training.

What this means in practice

  • For machine learning engineers: Improve spatial reasoning performance in vision-language models with evolved procedures that reduce inference cost.
  • For robotics developers: Equip robots with more efficient and generalized spatial understanding methods derived from evolved harnesses for perception and navigation tasks.

Authors

Shwetha Ram, Fabian Caba Heilbron, Pankaj Nathani

Abstract

Spatial reasoning remains challenging for frontier vision-language models (VLMs). Recent hand-designed harnesses substantially improve spatial reasoning, suggesting that much of the gap is procedural, not perceptual: the model often sees the right evidence but combines it wrongly. We study whether autonomous harness evolution, which has improved other reasoning-heavy tasks, can close this gap, and what it discovers when it does. In SpatialDarwin, a VLM coding agent evolves the spatial reasoning harness around a frozen policy under three conditions: prompt-alone, prompt-and-tools, and prompt + tools + code. Evolution improves held-out performance in every condition. Across independent runs, the harnesses converge on well-known multi-view procedures and evolved tools echo classical vision, including SIFT matching and optical flow. Starting from a minimal seed harness, our evolved harnesses approach the strongest expert-designed harness on MMSI-Bench (69.3% mean over three runs vs 70.6%) while using more than 12x fewer inference tokens per question. Because it reflects the structure of the problem rather than quirks of a benchmark or model, it transfers zero-shot to five unseen benchmarks and five unseen policies. Project page: [https://spatialdarwin.github.io](https://spatialdarwin.github.io)