SpatialCraft: Evolving Procedural Intelligence from Experience and Skills for Spatial Reasoning Agents
Organizations: Mohamed bin Zayed University of Artificial Intelligence · University of Liverpool · University of Southern California
Abstract
Spatial reasoning agents increasingly rely on external tools, such as 3D reconstruction, segmentation, and geometric computation, to answer questions that a multimodal large language model (MLLM) cannot resolve from pixels alone. Tool access, however, shifts the bottleneck to orchestration: the agent must decide which tools to call, in what order, and how to interpret their outputs, yet a stateless agent repeats the same mistakes across tasks. We ask whether a frozen tool-using agent can improve its orchestration from its own interaction history, without parameter updates. We present SpatialCraft, a self-evolving framework that maintains two forms of external knowledge: Experiences, condition-action tactics distilled by contrasting rollouts of the same task, and Skills, multi-step procedures with explicit activation and termination conditions. Three designs couple the two streams. Experiences can be anchored to a Skill, appearing only while it is active rather than once per task. A Contrastive Utility Score estimates each Experience's effect by randomly withholding it across rollouts of the same task, separating its contribution from task difficulty, and Experiences with consistently positive utility are consolidated into the Skills they support. Across five spatial benchmarks and four backbones, SpatialCraft achieves the best accuracy in all 20 settings, showing that a frozen agent can learn to orchestrate spatial tools from its own experience.
Figures & tables
| GPT-5.4 | GPT-5.4-mini | ||||||||||||
| Method | Robo. | ERQA | Omni. | SAT | View. | Avg. | Robo. | ERQA | Omni. | SAT | View. | Avg. | |
| CoT (no mem.) | 59.4 ±1.1 | 47.5 ±0.9 | 25.7 ±0.2 | 66.1 ±1.6 | 45.6 ±0.1 | 48.9 | 54.5 ±1.8 | 34.5 ±0.1 | 23.6 ±1.1 | 56.1 ±1.4 | 33.5 ±0.6 | 40.4 | |
| ReAct (tools) | 61.1 ±2.1 | 58.0 ±0.5 | 30.4 ±1.4 | 68.7 ±1.2 | 49.2 ±0.6 | 53.5 4.6 | 55.2 ±1.2 | 35.2 ±1.9 | 29.5 ±1.0 | 60.2 ±0.8 | 38.9 ±0.3 | 43.8 3.4 | |
| RAG | 58.9 ±1.5 | 64.0 ±1.8 | 31.2 ±1.1 | 91.3 ±0.9 | 52.2 ±0.4 | 59.5 10.6 | 61.5 ±2.0 | 55.2 ±0.8 | 33.9 ±1.5 | 85.1 ±0.5 | 46.2 ±0.4 | 56.4 16.0 | |
| MemP | 65.1 ±0.6 | 65.5 ±1.3 | 34.0 ±1.6 | 91.7 ±1.3 | 60.6 ±0.3 | 63.4 14.5 | 63.8 ±2.2 | 58.2 ±2.1 | 30.9 ±0.6 | 85.1 ±1.4 | 45.2 ±0.5 | 56.6 16.2 | |
| MemRL-R | 67.4 ±2.3 | 67.0 ±2.0 | 35.6 ±0.4 | 92.3 ±1.0 | 61.8 ±0.5 | 64.8 15.9 | 63.2 ±0.9 | 59.0 ±1.3 | 29.9 ±1.7 | 85.3 ±1.5 | 47.3 ±0.7 | 56.9 16.5 | |
| Setting | RoboSpatial | Omni3D | ||
| SpatialCraft (full) | 70.9 0.6 | – | 46.0 1.4 | – |
| w/o Experiences | 61.3 0.9 | 9.6 | 40.5 0.6 | 5.5 |
| w/o Skills | 58.9 0.6 | 12.0 | 38.8 0.8 | 7.2 |
| w/o Anchoring (All global) | 65.7 1.0 | 5.2 | 42.4 0.8 | 3.6 |
| w/o Consolidation | 67.8 0.7 | 3.1 | 43.6 1.1 | 2.4 |
| CUS LLM-based pruning | 63.4 1.1 | 7.5 | 42.0 1.1 | 4.0 |
| Method | Skill and Experience Reuse Rate ( ) | Efficiency Metrics | ||||||||
| In-domain | Cross-task Reuse | Cross-agent Reuse | Storage Cost ( ) | Execution Cost | Units | |||||
| Robospatial | Omni-3D | SAT | Qwen3.5-9B | Qwen3.6-27B | Total Stored Tokens | Avg Tokens per Unit | Prompt Tokens/Step | Retrieval Ratio ( ) | ||
| RAG | 38.7 ±4.8 | 34.3 ±2.1 | 36.8 ±4.4 | 13.9 ±0.7 | 18.3 ±0.6 | 159,600 | 912 ±248 (T) | 2744.8 ±7.2 | 100 ±0.0 | 175 |
| MemP | 55.2 ±3.9 | 41.7 ±5.2 | 39.5 ±2.7 | 28.1 ±1.4 | 34.9 ±1.4 | 22,464 | 208 ±53 (P) | 601.8 ±8.8 | 18.6 ±0.7 | 108 |
| SMA | 61.1 ±2.9 | 53.1 ±7.6 | 47.4 ±6.0 | 37.3 ±4.0 | 46.1 ±3.1 | 39,200 | 224 ±56 (P) | 632.6 ±4.9 | 19.9 ±0.8 | 175 |
| SpatialCraft | ||||||||||
| Symbol | Meaning |
| Task: spatial query and image inputs | |
| , | Frozen executor; knowledge-operation instance |
| Tool set | |
| Binary reward of trajectory | |
| , | Accumulation and deployment splits |
| Skill: activation, procedure, termination |
Appendix figures & tables25 assets
Supplementary material from the paper’s appendix.
Appendix
| Skill seed | Activation | Termination | Execution procedure |
| Structured CoT | When a decision requires reasoning over multiple constraints or previously observed feedback. | A concrete action satisfying the identified constraints has been selected. | 1 Identify the immediate objective of the current decision. 2 Enumerate the constraints implied by the current state and interaction history. 3 Summarize previous observations and feedback relevant to the decision. 4 Compare candidate actions according to these constraints. 5 Select the action that best satisfies the current objective. |
| ReAct Decision | When new environmental feedback becomes available and should affect the next decision. | The next action has been selected based on the newly incorporated feedback. | 1 Interpret the most recent environmental feedback. 2 Update the current belief about plausible states or outcomes. 3 Determine whether additional evidence is required. 4 Select the next action according to the updated belief. |
| Hypothesis Elimination | When multiple competing hypotheses remain plausible under the available evidence. | An action targeting the unresolved hypothesis uncertainty has been selected. | 1 Enumerate the major hypotheses consistent with existing observations. 2 Remove hypotheses that contradict known evidence. 3 Identify the uncertainty that distinguishes the remaining hypotheses. 4 Select an action that is expected to reduce this uncertainty. |
| Self-Consistency Check | When a candidate decision must satisfy known constraints or remain consistent with previous observations. | A candidate passes all identified consistency checks. | 1 Generate a candidate action or conclusion. 2 Check the candidate against known constraints and previous feedback. 3 Revise the candidate if any inconsistency is detected. 4 Repeat the verification until no clear contradiction remains. |
| Explore--Exploit Arbitration | When several plausible actions are available and the agent must balance information gathering against exploiting existing evidence. | An action has been selected according to an explicit exploration or exploitation decision. | 1 Assess the current uncertainty and the information gained from recent actions. 2 Favor exploration when uncertainty remains high or recent information gain is insufficient. 3 Favor exploitation when accumulated evidence strongly supports a particular action. 4 Select the action corresponding to the chosen exploration–exploitation strategy. |
| Strategic Planning | At the beginning of a task, when little or no task-specific interaction feedback is available. | An initial strategy has been instantiated and the first informative feedback becomes available. | 1 Identify the overall task objective and available action space. 2 Establish an initial hypothesis or search space from the task constraints. 3 Select an informative initial strategy that can reduce uncertainty. |
| Benchmark | Total | ||
| RoboSpatial | 350 | 175 | 175 |
| ERQA | 400 | 200 | 200 |
| Omni3D-Bench | 501 | 251 | 250 |
| SAT | 600 | 300 | 300 |
| ViewSpatial | 5,712 | 2,856 | 2,856 |
| Parameter | Value | Description |
| Execution ( ) | ||
| Temperature / top- (accumulation) | 0.7 / 0.9 | Diverse rollouts for contrast |
| Temperature (deployment) | 0 | Greedy decoding |
| Output budget per call | 16,384 | Execution calls |
| Steps per trajectory | 50 | Tool and answer steps |
| Recovery call | 1 per step, 1,024 | Issued after truncation; consumes no step |
| In-domain | Cross-task | Cross-agent | Transfer summary | ||||
| Method | RoboSpatial | Omni3D | SAT | Qwen3.5-9B | Qwen3.6-27B | Avg. | Rec. (%) |
| ReAct (no memory) | 55.2 ±1.2 | 29.5 ±1.0 | 60.2 ±0.8 | 57.0 ±2.2 | 62.9 ±1.5 | 52.4 | 0.0 |
| RAG | 61.5 ±2.0 | 29.0 ±1.3 | 70.4 ±1.6 | 54.8 ±1.9 | 60.1 ±1.7 | 53.6 1.2 | 8.3 |
| MemP | 63.8 ±2.2 | 30.6 ±1.4 | 74.6 ±1.3 | 55.9 ±1.6 | 64.2 ±1.5 | 56.3 3.9 | 27.7 |
| SMA | 67.4 ±2.1 | 32.8 ±1.1 | 79.2 ±1.0 | 57.6 ±1.3 | 66.0 ±1.2 | 58.9 6.5 | 45.9 |
| SpatialCraft | 70.9 ±0.6 | 39.1 ±1.2 | 85.2 ±0.8 | 60.3 ±0.9 | 69.4 ±1.0 | 63.5 11.1 | 78.4 |
| Deployed Experience bank | RoboSpatial | Omni3D |
| Full knowledge base | 70.9 ±0.6 | 46.0 ±1.4 |
| Top 20% by | 66.3 ±0.9 4.6 | 43.1 ±1.2 2.9 |
| Top 20% by naive score | 68.6 ±1.0 2.3 | 44.7 ±1.3 1.3 |
| Random 20% | 68.9 ±0.8 2.0 | 44.9 ±1.1 1.1 |
| Bottom 20% by | 71.2 ±0.7 0.3 | 46.3 ±1.2 0.3 |
| 20% retired Experiences | 69.3 ±0.9 1.6 | 45.2 ±1.3 0.8 |
| Robo. | ERQA | Omni. | SAT | View. | |
| 175 | 200 | 251 | 300 | 2,856 | |
| Revision attempts | 188 | 221 | 274 | 318 | 3,042 |
| Acceptance rate (%) | 48.9 | 46.6 | 51.5 | 41.2 | 44.8 |
| Accepted (Ref. / Disc.) | 78 / 14 | 89 / 14 | 124 / 17 | 117 / 14 | 1,321 / 42 |
| Judge ties (%) | 34.7 | 38.2 | 29.6 | 41.5 | 36.9 |
| Post-acc. (%) | 81.4 | 77.9 | 79.1 | 72.3 | 80.6 |
| Variant | Accept. (%) | Post-acc. (%) | Final Score | Spatial |
| SpatialCraft (full) | 48.9 | 81.4 | 0.12 | 10 |
| w/o Semantic Gradients | 36.2 | 68.5 | 0.06 | 7 |
| w/o Candidate Verification | 100.0 | 51.7 | 0.02 | 9 |
| w/o Online Score (FIFO) | 47.3 | 79.8 | 0.01 | 6 |
| Final knowledge base | Experience lifecycle | Stored tokens | |||||||
| Setting | Skills | Experiences (anc./glob.) | Created | Absorbed | Retired | Grad. rate (%) | Skills | Experiences | Total |
| GPT-5.4-mini across benchmarks | |||||||||
| RoboSpatial | 12 | 45 (24 / 21) | 239 | 39 | 155 | 16.3 | 2,580 (215) | 3,510 (78) | 6,090 |
| ERQA | 11 | 52 (27 / 25) | 268 | 41 | 175 | 15.3 | 2,178 (198) | 3,848 (74) | 6,026 |
| Omni3D-Bench | 13 | 58 (33 / 25) | 331 | 63 | 210 | 19.0 | 3,146 (242) | 4,814 (83) | 7,960 |
| SAT | 10 | 49 (24 / 25) | 287 | 48 | 190 | 16.7 | 1,870 (187) | 3,479 (71) | 5,349 |
| Component | Calls | Input (k) | Output (k) | Share (%) |
| Rollouts | ||||
| Execution ( ) | 31.2 | 268.3 | 11.9 | 46.4 |
| Decomposition & rewrite | 2.0 | 3.7 | 0.6 | 0.7 |
| Termination checks | 8.4 | 23.5 | 0.4 | 4.0 |
| Experience accumulation | ||||
| Rollout summary | 1.0 | 46.0 | 2.6 | 8.1 |
| Field | Type / shape | Description |
| A. Reconstruction call | ||
| Reconstruct(frames, frame_indices=None) | ||
| frames | List of FrameImage or PIL images | Input batch, with at most reconstruct_max_frames entries (64 in our experiments). PIL denotes Python Imaging Library. |
| frame_indices | Optional frame indices | For FrameImage inputs, absolute indices are extracted from each image’s frame_index attribute, so this argument may be omitted. |
| Return value | Reconstruction | Per-frame geometry, camera parameters, and a top-down rendering helper. |
| B. Reconstruction attributes | ||
| Field | Type / shape | Description |
| A. Image-mode segmentation | ||
| segment_image_by_text(image, prompt, label=None) | ||
| Inputs | PIL image; text | image : input image; prompt : free-form text description. |
| Return value | PerFrameMask | One channel per detected instance. |
| segment_image_by_points(image, points, point_labels, label="object") | ||
| Inputs | PIL image; point and label lists | points : [x, y] pixel coordinates; point_labels : parallel list with for foreground and for background. |
| Field | Type / shape | Description |
| A. Distances and angles | ||
| euclidean_distance(p1, p2) | ||
| Inputs | Two arrays | Two 1D arrays of length 3. |
| Return value | float | Euclidean distance between p1 and p2 . |
| angle_between_vectors(v1, v2) | ||
| Inputs | Two 3D vectors | Vectors v1 and v2 . |
| Field | Type / shape | Description |
| A. Centroids and area | ||
| centroid(mask) | ||
| Input | ; boolean | A 2D boolean mask. |
| Return value | (cx, cy) | Median pixel coordinates of the mask; (nan, nan) when the mask is empty. |
| centroids(masks) | ||
| Input | ; boolean | A batch of boolean masks. |
| Field | Type / shape | Description |
| A. Bounding-box overlays | ||
| draw_bbox(image, bboxes, colors=None, thickness=None) | ||
| bboxes | Single box or list of boxes | Each box is (x1, y1, x2, y2) in pixels. |
| Return value | PIL image | Axis-aligned rectangle outlines drawn on a new image of the same size. |
| B. Line overlays | ||
| draw_line(image, lines, colors=None, thickness=None) | ||
| Field | Type / shape | Description |
| A. Detection call | ||
| detect(image, prompt, box_threshold=0.35, text_threshold=0.25) | ||
| image | PIL image, FrameImage , or InputImages[i] entry | Input image. |
| prompt | String or list of text descriptions | Open-vocabulary detection prompt. |
| box_threshold | Confidence threshold | Detector confidence filtering; defaults to 0.35 . |
| text_threshold | Confidence threshold | Detector confidence filtering; defaults to 0.25 . |
| Field | Type / shape | Description |
| A. Object-pose estimation | ||
| predict_obj_pose(image, recon, seg, frame, object=0, label="object") | ||
| image | PIL image or FrameImage | Image used for orientation estimation. |
| recon | Reconstruction | Corresponding reconstructed scene. |
| seg | Single-frame PerFrameMask | Aligned with recon . Whenever possible, the selected mask should contain one complete, non-occluded object. |
| frame | Absolute frame index | Frame used for orientation estimation. |
| Field | Type / shape | Description |
| A. Frame and identity | ||
| frame_index | int | Absolute frame used for orientation estimation. |
| label | str | Object label. |
| B. Semantic object frame | ||
| centroid | ; float32 | Robust object centroid in world coordinates. |
| rotation | ; float64 | Object-to-world rotation matrix. Columns are the local , , and axes expressed in world coordinates. |
| Field | Type / shape | Description |
| A. Scale estimation | ||
| estimate_scale(recon, frames, frame_indices=None, max_frames=3) | ||
| recon | Reconstruction | Reconstruction to be checked. |
| frames | Input images | Images corresponding to the reconstruction. |
| frame_indices | Optional absolute frame indices | Selects absolute frame indices; defaults to None . |
| max_frames | View-count limit | Limits the number of high-confidence views used for estimation; defaults to 3 . |
Tool-Using Agents
Tool-using agents plan and act through external tools, APIs, software interfaces, and environments to complete tasks beyond language generation.
See all 317 papers