NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SpatialCraft: Evolving Procedural Intelligence from Experience and Skills for Spatial Reasoning Agents

Xiwei Liu, Yulong Li, Xuhui Li, Zhixiang Lu, Haolin Yang, Jianxu Chen, Yifan Lu, Di Fan, Yutong XiearXiv 2026

TL;DR

Giving a vision-language model a toolbox of 3D and geometric calculators doesn't automatically make it good at spatial reasoning—if it has no memory, it just repeats the same clumsy mistakes on every new task. SpatialCraft gives frozen AI agents a way to learn from their own history without updating a single neural weight: it distills bite-sized tactical tips (Experiences), runs mini randomized controlled trials to prove they actually work, and compiles the winners into overarching multi-step playbooks (Skills). The result is an agent that genuinely gets better with practice, sweeping all 20 tested benchmark-and-model combinations.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) are notoriously bad at judging 3D distances, orientations, and perspectives from flat pixels alone. To fix this, researchers give them external tools—depth estimators, segmentation models, and 3D reconstructors.

This solves the perception problem, but creates an orchestration bottleneck. Now the agent has to figure out which tool to call, in what order, and what to do when a tool outputs garbage. Most tool-using agents have total amnesia between tasks, discarding hard-won trial-and-error lessons the moment an episode ends. Fine-tuning the model's weights to use tools is expensive and breaks whenever you swap models or tools. Letting a frozen agent take notes in an external memory is much cheaper, if you can solve two big headaches:

  1. Timing: A tip about fixing an empty segmentation mask is vital while grounding an object, and pure distracting noise while calculating metric distances.
  2. Superstition: LLMs love writing down advice that sounds smart in English ("always check the corners!") but fails in practice. Worse, if you score memories just by whether the episode succeeded, tips retrieved on easy tasks look like genius tactics, confounding utility with task difficulty.

Methods

SpatialCraft builds a self-evolving, dual-stream external memory during an offline exploration phase, then freezes that memory for test-time deployment.

Figure 1. Overview of SpatialCraft. Phase 1: (A) contrasting rollouts of the same task distills Experiences, each anchored to the active Skill; (B) randomly withholding an Experience across rollouts isolates its effect from task difficulty; (C) proven Experiences are folded into their Skills. Phase 2: the agent (D) retrieves global Experiences per subtask and (E) activates Skills that bring their anchored Experiences.

It maintains two types of natural-language knowledge:

  • Skills: Multi-step procedural playbooks (initialized from six generic reasoning seeds) with explicit activation conditions, step-by-step execution guides, and termination triggers.
  • Experiences: Short condition -> action tactical rules distilled by contrasting successful and failed rollouts of the exact same task.

Three novel mechanisms tie these together:

  1. Skill Anchoring: Instead of dumping every retrieved tip into the prompt at step zero, Experiences are anchored to the specific Skill that was active when the mistake happened. At test time, they only pop into the context window while that Skill is running, and vanish when it finishes.
  2. Contrastive Utility Score (CUS): Because the agent already runs $N=4$ parallel rollouts per task to learn, SpatialCraft runs a zero-extra-cost A/B test. Each eligible Experience is randomly shown in half the rollouts and withheld in the other half. Comparing outcomes within the same task isolates the true causal impact of the tip from how hard the question was. Bad tips get retired; proven ones "graduate."
  3. Consolidation & Judge Verification: Graduated Experiences get folded directly into their parent Skill's text—just like human muscle memory absorbs conscious tips into smooth routines—keeping the memory bank tiny. Combined with "semantic gradients" (language feedback on trajectory errors), the system proposes revised Skills. Before accepting a revision, an MLLM Judge replays historical error states to verify the new Skill actually triggers better actions than the old one, requiring zero token-likelihood access (making it compatible with closed APIs).
Evolutionary lineage of Skills from generic seeds to specialized spatial procedures

Datasets

The authors do not introduce a new dataset; instead, they evaluate across five existing spatial reasoning benchmarks (splitting each into an accumulation set $\mathcal{D}_{\text{env}}$ where memory evolves, and a read-only test set $\mathcal{D}_{\text{dep}}$):

  • RoboSpatial & ERQA: Embodied scene and robotic manipulation reasoning.
  • Omni3D-Bench: Metric 3D queries (sizes, distances).
  • SAT: Egocentric and two-frame spatial dynamics.
  • ViewSpatial: Multi-perspective orientation and localization.

Key Insights and Ideas

  • A tactic is only as useful as its timing: Ablating Skill-anchoring (making all Experiences global from the start of the task) wipes out more than half of the Experiences' total accuracy boost. Context-rot is real; surfacing advice right at the step that needs it is everything.
  • What you throw away matters more than how you retrieve: Scoring memories by naive win-rate instead of the within-task A/B test (CUS) drops accuracy by up to 4.7 percentage points, and skipping CUS during training causes the agent's performance to peak early and then actively regress as junk advice piles up.
Training curves showing performance regression when Contrastive Utility Score (CUS) is removed
  • Procedural guidance rescues overwhelmed smaller models: Giving a smaller model (Qwen3.5-9B) raw spatial tools actually hurts its average accuracy (dropping from 52.4% CoT to 50.4% ReAct) because it fumbles the orchestration. Adding SpatialCraft lifts it to 59.0%.
  • Skills handle syntax; Experiences handle reality: Error analysis shows Skills drastically cut malformed calls and unknown tool names, while adding Experiences cuts input-validation and execution crashes roughly in half—adapting abstract pipelines to messy visual inputs.

Key Results

Tested across 5 benchmarks and 4 backbones (GPT-5.4, GPT-5.4-mini, Qwen3.6-27B, and Qwen3.5-9B), SpatialCraft takes 1st place in all 20 settings:

  • Big accuracy jumps: Beats tool-only ReAct by 7.6 to 22.6 percentage points on macro-average, and beats the strongest memory baseline (SMA) by 2.3 to 4.2 points (e.g., reaching 72.9% average with GPT-5.4 vs. 53.5% tool-only, and surging +8.3 points over SMA on 3D-heavy Omni3D).
  • Tiny footprint: Stores ~6,090 total tokens (12 Skills, 45 Experiences)—roughly 6x smaller than SMA (39,200 tokens) and 26x smaller than RAG (159,600 tokens)—while injecting fewer prompt tokens per step.
  • Plug-and-play transfer: Freezing a knowledge base learned by GPT-5.4-mini on RoboSpatial and dropping it directly onto unseen benchmarks (Omni3D, SAT) or completely different models (Qwen family) achieves 66.7%–80.6% Skill reuse and consistently boosts target accuracy without re-learning.

Limitations and Future Work

While the main text does not feature a dedicated limitations section, two practical constraints stand out from the setup and experiments:

  • Upfront Exploration Cost & Supervision: Building the knowledge base on $\mathcal{D}_{\text{env}}$ requires ground-truth answers ($y^*$) to compute binary rewards and critique rollouts, plus running multiple rollouts ($N \ge 2$) per task so CUS can contrast shown vs. withheld exposures.
  • Backbone Reasoning Ceilings: Self-evolution yields diminishing returns when the underlying model struggles to critique its own contrasts—increasing rollouts from $N=0$ to $N=4$ boosts GPT-5.4-mini by 13.7 points, whereas the smaller Qwen3.5-9B gains only 1.7 points from extra rollouts (though it still benefits heavily from importing a stronger model's learned memory).

Summary updated

BibTeX
@misc{liu2026spatialcraft,
  author = {Xiwei Liu and Yulong Li and Xuhui Li and Zhixiang Lu and Haolin Yang and Jianxu Chen and Yifan Lu and Di Fan and Yutong Xie},
  title = {{SpatialCraft: Evolving Procedural Intelligence from Experience and Skills for Spatial Reasoning Agents}},
  year = {2026},
  eprint = {2611.31475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31475},
}
Figure