Skip to content

Repository files navigation

Theory of Space: Can foundation models construct spatial beliefs through active perception?

🔥 ICLR 2026 🔥

Pingyue Zhang*, Zihan Huang*, Yue Wang*, Jieyu Zhang*, Letian Xue, Zihan Wang, Qineng Wang, Keshigeyan Chandrasegaran, Ruohan Zhang, Yejin Choi, Ranjay Krishna, Jiajun Wu, Li Fei-Fei, Manling Li

(* equal contribution)

Paper Website Datasets Results

News

[2026/01] Theory of Space is accepted by ICLR 2026

Introduction

We introduce Theory of Space (ToS), a benchmark evaluating whether foundation models can actively construct spatial beliefs from partial observations. Unlike passive reasoning, ToS requires agents to explore, revise, and exploit a globally consistent spatial memory. Current multimodal models struggle with this active, self-directed construction of spatial belief, often relying on passive reasoning from static views.

image

Theory of Space

Theory of Space is the ability to build a mental map from partial views. We define it as three coupled abilities:

  • Construct: Actively explore and integrate partial observations into a globally consistent belief.
  • Revision: Revise the belief when new evidence conflicts with earlier assumptions.
  • Exploit: Use the current belief to answer spatial queries and guide the next action.

Exploration Environment

To construct a spatial belief, an agent must actively explore and integrate partial observations. We use procedurally generated multi-room layouts on N×M grids with paired environments:

  • Text World: Symbolic observations with direction/distance bins (pure reasoning).
  • Vision World: Egocentric RGB images from ThreeDWorld (perception + reasoning).

The agent uses an action space of Goto (move to visible object), Rotate (90°/180°/270°), Observe (get text/visual view), and Query (get coordinates).

Evaluation Tasks

The agent must use its current belief to answer spatial queries and guide the next action. We evaluate how the learned map is used at two levels:

  • Route-level tasks test egocentric, path-based reasoning.
  • Survey-level tasks test allocentric, map-like reasoning.

Survey-level probes ask whether a model can infer unseen views and handle geometric transformations beyond memorized paths.

Task suite for Theory of Space

Results (Active Exploration)

Methods Avg. step Route Survey Avg.
directionpersp.takeperc.decact2viewview2act alloc.mapment.rotloc2viewview2loc
Vision-based World
Proprietary Models
GPT-5.2 17.2 40.036.756.243.840.3 43.459.756.937.8 46.0
Gemini-3 Pro 13.6 56.336.768.247.254.0 63.573.065.452.2 57.3
Claude-4.5 Sonnet 19.6 23.723.318.733.310.7 37.434.733.750.9 29.6
Open-source Models
GLM-4.6V 15.0 15.818.53.314.00.7 18.98.018.531.8 14.4
Qwen3-VL 16.3 16.823.313.424.85.7 25.816.321.543.7 21.3
Text-based World
Proprietary Models
GPT-5.2 11.4 68.870.580.371.053.7 77.981.079.166.0 72.0
Gemini-3 Pro 13.5 78.079.290.675.376.3 81.094.083.376.2 81.5
Claude-4.5 Sonnet 18.7 65.365.379.062.751.7 68.876.357.067.0 65.9
Open-source Models
GLM-4.6V 14.5 20.819.712.721.83.7 13.99.322.726.2 16.8
InternVL-3.5 15.0 28.844.826.036.87.3 31.027.733.838.9 30.6
Qwen3-VL 14.1 32.345.748.233.311.7 36.434.735.749.9 36.8

Results (Passive Understanding)

Methods Route Survey Avg.
directionpersp.takeperc.decact2viewview2act alloc.mapment.rotloc2viewview2loc
Vision-based World
Proprietary Models
GPT-5.2 47.335.063.954.549.3 64.883.350.365.6 57.1
Gemini-3 Pro 63.836.357.549.058.0 67.285.370.457.0 60.5
Claude-4.5 Sonnet 47.333.537.740.815.7 54.858.344.754.8 43.1
Open-source Models
GLM-4.6V 11.524.54.719.02.7 22.911.720.033.6 16.7
Qwen3-VL 20.828.322.716.74.7 33.221.727.340.8 24.9
Text-based World
Proprietary Models
GPT-5.2 84.588.297.089.076.0 96.398.394.889.2 90.4
Gemini-3 Pro 82.792.797.087.575.7 86.291.385.780.0 86.5
Claude-4.5 Sonnet 73.080.790.777.759.0 76.974.359.270.7 73.6
Open-source Models
GLM-4.6V 22.339.825.025.34.7 21.29.027.035.7 23.4
InternVL-3.5 36.767.842.741.28.7 37.319.338.743.8 37.4
Qwen3-VL 40.869.356.550.017.7 42.840.342.554.6 45.6

Probing Spatial Belief

We probe the agent's internal belief state to understand why failures occur. We provide a direct window into the agent's spatial belief via explicit cognitive-map probing. The agent outputs a structured cognitive map (N×M grid) at each step.

Spatial belief probing

Metrics

  • Correctness (final): Evaluates the predicted global map at the last turn.
  • Perception: Compares the predicted local map to the ground-truth local map for the current field of view.
  • Self-tracking: Compares the agent pose inferred from the predicted global map to the ground-truth agent state.
  • Local ↔ Global: Compares local and global predictions within the same turn (coherence check).
  • Stability: Checks if previously observed objects degrade in the map over time.
  • Uncertainty: Can the agent identify which regions it hasn't seen yet?

Results

Methods Correctness Perception Local ↔ Global Stability Self-tracking Uncertainty
Ori.Pos.Overall Ori.Pos. Ori.Pos. Ori.Pos. Ori.Pos.
Vision-based World
GPT-5.2 20.242.032.2 33.572.4 57.958.7 65.456.4 93.364.7 53.7
Gemini-3 Pro 32.262.552.1 43.868.5 52.968.3 61.862.0 98.873.9 70.2
Text-based World
GPT-5.2 91.075.180.0 10086.8 96.486.0 96.767.6 98.086.7 64.5
Gemini-3 Pro 92.575.581.4 99.988.2 91.684.8 90.867.7 99.985.2 79.2

Probing Conclusion

  • Perception is the bottleneck: Vision perception remains a key bottleneck, especially for object orientation.
  • Unstable belief: Unstable cognitive map prediction degrades spatial belief beyond initial perception.

Belief Revision

An agent must revise its belief when new evidence conflicts with earlier assumptions. We introduce a dynamic perturbation task to probe Belief Revision. After exploration, objects are secretly relocated, creating a "false belief" that conflicts with new observations. The agent must actively re-explore to identify changes and revise its map.

Results

Methods Avg. Steps Identification Belief Correctness Belief Inertia
AllRed. Ori.Pos. Ori.Pos. Ori.Pos.
Vision-based World
GPT-5.2 13.066.20 14.368.0 16.742.9 68.934.7
Gemini-3 Pro 10.293.23 23.982.5 30.363.1 51.114.4
Text-based World
GPT-5.2 6.920.55 97.998.4 89.569.7 5.512.5
Gemini-3 Pro 7.790.18 98.798.8 91.872.9 7.95.7

Belief Revision Conclusion

  • Severe Belief Inertia in Vision: Vision agents fail to overwrite obsolete orientation beliefs despite new evidence.
  • High Redundancy: Vision agents take many redundant steps after changes are visible, indicating failure to recognize the revision is complete.

Key Findings

01. Modality Gap

A clear modality gap persists: text-based settings consistently outperform vision-based settings in spatial belief construction and exploitation.

Vision vs text gap under passive setting Vision vs text gap under active setting

02. Active Exploration is the Bottleneck

Performance drops when models must actively explore.

a) Performance and Efficiency Deficit: Active agents score lower than reasoning on rule-based program histories, and explore less efficiently than the program.

Passive vs active gap in text world Passive vs active gap in vision world

Information gain analysis

b) Incomplete Coverage: Active agent fails to achieve complete information coverage. Models explore redundantly, requiring ≥14 steps without improving belief accuracy, while rule-based proxies reach target coverage in ~9 steps.

c) Complexity-Widened Gap: The active–passive gap increases with complexity; Gemini-3 Pro scales much better. As the number of rooms increases, exploration cost rises accordingly.

Methods 2-room 4-room
pass.act.exp. pass.act.exp.
Text-based World
GPT-5.2 92.377.86.2 86.566.016.4
Gemini-3 Pro 86.780.66.2 81.277.719.7
Vision-based World
GPT-5.2 59.351.510.8 52.640.323.2
Gemini-3 Pro 58.357.86.6 56.251.519.7

03. Cognitive Map Failures

Orientation, stability, and belief drift issues:

  • Orientation Gap: Vision perception is a bottleneck, especially for object orientation.
  • Unstable Map: Beliefs about previously observed objects degrade over time.
  • Belief Drift: New updates corrupt earlier correct perceptions, lowering final correctness.

04. Maps as a Diagnostic Proxy

Map correctness correlates with downstream success.

  • Sufficiency Test: Conditioning on ground-truth maps yields near-perfect accuracy (~95%), confirming the JSON map format captures all necessary information for tasks.
  • Alignment Test: Prompting models to explicitly generate maps before answering slightly degrades performance. This externalization gap indicates the model's latent internal belief is richer than its discretized JSON output.

While lossy, the explicit map remains a strong diagnostic proxy. Map correctness correlates significantly with downstream success:

Methods Text (%) Vision (%)
GPT-5.2 41.8 57.0
Gemini-3 Pro 46.6 64.5

Pearson correlation (r) between spatial-belief correctness and downstream evaluation performance. All correlations are significant (p<.001).

05. Vision Deficiencies & Belief Inertia

Vision agents persist in obsolete beliefs.

  • Vision-based Revision Failures: Vision agents suffer from excessive exploration redundancy and poor accuracy in identifying object shifts.
  • Belief Inertia: Agents, especially vision-based ones, persist in obsolete spatial coordinates despite new observations.

Usage

Setup

  1. Clone the release branch
    git clone --single-branch --branch release https://github.com/mll-lab-nu/Theory-of-Space.git
    cd Theory-of-Space
  2. Configure keys and run setup
  • Open setup.sh and set any required API keys / environment variables.
  • Run:
    source setup.sh --run-exp    # setup + run experiments

Model configuration

To add a new model, edit scripts/SpatialGym/base_model_config.yaml and add an entry under the models section. Each model requires specific parameters based on its provider:

OpenAI Models

gpt-5.2:
  provider: openai # API provider (`openai`, `anthropic`)
  model_name: gpt-5.2 # Model identifier used by the API
  max_completion_tokens: 32768 # Maximum tokens for response
  temperature: 1.0 # Sampling temperature
  max_workers: 128 # Maximum parallel API calls
  max_retries: 5 # Retry rounds for batch requests
  max_retries_api: 5 # Retry attempts per API request
  timeout: 500 # Request timeout in seconds
  reasoning_effort: medium # Reasoning effort (low, medium, high)

VLLM Models

First run the following command to serve the model:

vllm serve Qwen/Qwen3-VL-2B-Instruct \
  --host 0.0.0.0 \
  --port 9999 \
  --dtype bfloat16 \
  --served-model-name qwen3-vl-2b-instruct \
  --max_model_len 128000 \

Then add the following entry to scripts/SpatialGym/base_model_config.yaml:

qwen3-vl-2b-instruct:
  provider: openai
  organization: self-hosted
  model_name: qwen3-vl-2b-instruct # same as served-model-name in vllm serve command
  base_url: http://localhost:9999/v1 # same as host and port in vllm serve command
  max_completion_tokens: 8192
  temperature: 0.0
  max_workers: 16
  max_retries: 3
  timeout: 600

For other models, you can refer to the scripts/SpatialGym/base_model_config.yaml for more details.

Commands

Run a single full pipeline (explore + eval + cogmap):

python scripts/SpatialGym/spatial_run.py \
  --phase all \
  --model-name gpt-5.2 \
  --num 25 \ # 25 samples (run00 - run24)
  --data-dir room_data/3-room/ \
  --output-root result/ \
  --render-mode vision,text \ # run both vision and text world
  --exp-type active,passive \ # run both active and passive exploration
  --inference-mode batch # run batch (or direct) inference

See scripts/SpatialGym/README.md for more commands.

Output Structure

Results are organized as:

{output_root}/
└─ {model_name}/
   └─ {room_hash}/
      └─ {render_mode}/
         └─ {exp_type}/
            └─ {think|nothink}/
               ├─ config.json
               ├─ exploration.json
               ├─ evaluation.json
               ├─ images/
               └─ [proxy_agent]/            # only when exp_type = passive
                  ├─ config.json
                  ├─ exploration.json
                  ├─ evaluation.json
                  └─ images/

Visulization & Analysis

After running the experiments, you can find the visulization html under result/gpt-5.2/env_data.html.

By executing python -m http.server <port> under the root directory, you can access the visulization html at http://localhost:<port>/result/gpt-5.2/env_data.html.

The main page will have explore + eval + optional cogmap + false belief + correlation metrics.

Visulization of all samples Visulization charts of all samples

Each sample page features comprehensive data for each turn, along with relevant sample metrics.

Visulization of each sample

Visual Scene Generation

To generate your own scenes, check https://github.com/yw2544/ToS-vision-scenes

Related Resources

  • ToS-vision-scenes: repo for generating 3D scenes for Theory of Space.
  • VAGEN: active exploration is implemented based on VAGEN.

Citation

If you find our framework and paper useful, we appreciate it if you could cite our work:

@inproceedings{zhang2026theoryofspace,
  title     = {Theory of Space: Can Foundation Models Construct Spatial Beliefs through Active Exploration?},
  author    = {Zhang, Pingyue and Huang, Zihan and Wang, Yue and Zhang, Jieyu and Xue, Letian and Wang, Zihan and Wang, Qineng and Chandrasegaran, Keshigeyan and Zhang, Ruohan and Choi, Yejin and Krishna, Ranjay and Wu, Jiajun and Li, Fei-Fei and Li, Manling},
  booktitle = {International Conference on Learning Representations (ICLR)},
  year      = {2026},
}

About

THEORY OF SPACE: a benchmark for evaluating whether foundation models can actively explore under partial observability efficiently to build, update, and exploit globally consistent spatial beliefs.

Resources

Stars

86 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages