Manuscript Offprint
arXiv:2610.16679EvoSpatial: Experience-Driven Skill and Tool Evolution for Spatial Reasoning Agents
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Spatial reasoning agents can inspect tool outputs and repair errors, but reusing these lessons requires preserving both the computation and the conditions that make it valid. We introduce EvoSpatial, a framework that learns from execution experience by updating a library of linked skills and tools. Skills describe procedures, geometric assumptions, and verification steps; tools implement the operations those procedures require. When solving a task, the agent retrieves relevant skills and synthesizes reusable computational functions if existing tools are insufficient. After each task, execution feedback and evidence checks guide skill revision and tool consolidation, without ground-truth answers or benchmark scores. Across 20 benchmarks, EvoSpatial averages 63.9, 4.0 percentage points above the average reported by SpatialClaw. The evolved library also improves held-out and cross-benchmark performance when updates are disabled, and trajectories generated with evolved skills improve supervised fine-tuning, even without external skills at evaluation. Keeping checked procedures on record, together with the tools that support them, lets an agent carry spatial reasoning experience from one task to the next. Code is available on anonymous GitHub.
1 Introduction
Did a chair move toward a doorway, or did the camera simply move? Answering this question across two views requires separating object motion from camera motion, aligning reference frames, and comparing distances (Figure 1). Spatial agents augment vision-language models (VLMs) with segmentation, depth estimation, and reconstruction tools to obtain the required geometric evidence (Chen et al., 2026; Luo et al., 2026; Cho
Did the chair move closer to the doorway? How much did its distance change?

view 1
view 2

Tools + Python kernel
Estimate depth, poses,
segmentation,
3D reconstruct
Combine evidence across views.
• Match the same chair in both views.
• Align cameras using static landmarks. 2.38 m
• Use the scale anchor; compare distances.
2.38 m 3.28 m
Farther by 0.90 m.
Door
3.28 m
A
Chair position: A → B
Figure 1: Interactive spatial reasoning across views. Tools support correspondence, frame alignment, and distance comparison.
et al., 2026). The agent must then choose compatible operations, check their assumptions, and determine whether the measurements support an answer.
Existing spatial agents learn tool coordination or compose operations through visual programs and interactive execution (Chen et al., 2026; Luo et al., 2026; Cho et al., 2026). Interactive execution allows an agent to inspect intermediate results and repair errors before answering. A repaired error can also provide a lesson for later tasks: which computation to use, which assumption failed, or which check prevented a mistake. We ask how a spatial reasoning agent can retain and apply these lessons across tasks.
Self-evolving agents refine their procedures and
- Equal contribution.
Corresponding authors.
This work was conducted during an internship at DeepCybo.
executable capabilities from interaction experience (Li et al., 2026b; Ouyang et al., 2026; Zhang et al., 2026a). In spatial reasoning, these procedures must account for the conditions under which geometric measurements are valid. A coordinate conversion must match the reference frames being compared; separated object centers do not rule out contact between their surfaces. Reusable spatial experience therefore needs to record both the computation and the assumptions that justify its use. It must also specify how to check those assumptions on a new task.
We introduce EvoSpatial, a framework that updates spatial reasoning skills and tools from execution experience (Figure 3). A tool exposes a callable operation, either through a perception model or a computational helper. We call a reusable function synthesized by the agent a generated helper. A skill describes a multi-step procedure, its conditions of use, and the evidence required to verify its outcome (Figure 2). A persistent skill-tool library links each skill to the tools it uses.
(a) Tool
A callable function.
(b) Skill
A reusable procedure.

Figure 2: Tools and skills in EvoSpatial. Tools provide callable operations; skills specify how to combine them and check the resulting evidence.
For each task, EvoSpatial selects relevant skills and generates task-specific usage guidance. When existing tools cannot perform a required computation, it synthesizes a helper. The agent executes code, inspects the results, and repairs errors before submitting an answer. Afterwards, it extracts reusable lessons from checked operations and observed repairs, revises skills, and consolidates generated helpers; the updated library is then available to subsequent tasks.
We evaluate EvoSpatial on 20 benchmarks: it reaches an average score of 63.9, 4.0 percentage points above SpatialClaw's reported average. To separate reuse from continued adaptation, we also evaluate with the evolved library fixed. Jointly evolved skills and tools raise the held-out average from 62.0 to 65.4. Libraries evolved on ERQA and MindCube improve the average on 18 common target benchmarks by 1.73 and 1.76 points over the initial library, respectively. Finally, we test whether trajectories generated with evolved skills improve supervised fine-tuning without external skills at evaluation.
We make three contributions:
-
We introduce EvoSpatial, which retains spatial reasoning experience as linked skills and tools, together with geometric assumptions and verification steps.
-
We combine task-specific usage guidance and helper synthesis with post-task reflection and library curation; the evolved library then improves held-out and cross-benchmark performance even with updates disabled at evaluation.
-
We report a 4.0-point average gain over SpatialClaw across 20 benchmarks. Further experiments assess fixed-library generalization, cross-benchmark transfer, individual components, and learning from skill-guided trajectories.
Tool-augmented spatial reasoning. Specialist perception models (Model and Inc, 2026; Team
(a) Solve the current task
Task t

image + question
Retrieve and select skills
Resident skills
Query-aware skills
Linked tools
Agentic Spatial Reasoning
Plan
Write Code
Execute
Stateful Python kernel
Segment Anything
Depth Anything
VGGT
...
Models as Tools
Depth Map
Answer
Segment Mask
(b) Evolve across tasks
Reuse
EvoSpatial
Reflect
Skills
(Guide the model on how to do.)
• Align Object Orientation
• Match Features Across Views
• Verify Surface Contact
Operationalize
Refine
Explicit links
Tools
(Tool function for complex tasks.)
• compute_dial_rotation()
• find_leftmost_object()
• calculate_path_length()
Update
Skill-Tool Consolidation
Candidates
Review
Select & Merge
Commit
Link
Figure 3: Overview of EvoSpatial. (a) Resident and retrieved skills guide interactive spatial reasoning with linked tools. (b) Execution feedback guides helper synthesis, reflection, and library updates for subsequent tasks.
et al., 2026; Lian et al., 2026b; Tan et al., 2026; Lian et al., 2026a) provide geometric representations that complement direct VLM predictions. SpaceTools learns spatial tool coordination through interactive training (Chen et al., 2026), while pyS-patial composes spatial operations in visual programs (Luo et al., 2026). SpatialClaw uses multi-turn execution to invoke tools, inspect their outputs, and adjust subsequent actions (Cho et al., 2026). EvoSpatial builds on interactive execution by retaining its lessons in a skill-tool library that changes across tasks.
3 Method
EvoSpatial alternates between solving a task and updating its persistent skill-tool library (Figure 3). Given a question and visual inputs (images or sampled video frames), the agent returns an answer and an execution trajectory . It then updates the library using execution feedback :
The trajectory records executed code, observations, repairs, and the submitted answer. Feedback comes from this record and checks of the visual and geometric evidence. Library updates use observed capability gaps, execution failures, and locally verified improvements; they receive neither ground-truth answers nor benchmark correctness scores.
3.1 Interactive Spatial Reasoning
Perception tools. Perception tools provide object regions through grounding and segmentation, and geometric representations through depth estimation and reconstruction (Chen et al., 2026; Luo et al., 2026). These representations include depth maps, camera parameters, and 3D point maps, from which the agent computes distances and other spatial quantities. Table 1 lists the underlying models and their capabilities.
| Model | Capability | Reference |
|---|---|---|
| Depth Anything 3 | Depth, camera parameters, and 3D reconstruction | (Lin et al., 2026) |
| VGGT | Camera parameters, depth maps, and 3D point maps | (Wang et al., 2025a) |
| Pi3X | Multi-view 3D reconstruction | (Wang et al., 2026b) |
| MapAnything | Metric 3D reconstruction | (Keetha et al., 2026) |
| SAM 3 | Image segmentation and video segmentation/tracking | (Carion et al., 2026) |
| SAM 3.1 Object Multiplex | Multi-object video segmentation/tracking | (Carion et al., 2026) |
Table 1: Perception models available to the agent.
Stateful execution. The VLM executes code in a task-local Python kernel that retains intermediate outputs across steps (Cho et al., 2026). To compare distances across views, for example, it can extract reconstructed points using object masks, transform them into a common reference frame, and compute distances. The agent chooses the operations and their order for each task.
Plan, execute, and inspect. A planner identifies the evidence needed to answer the question, given the available tools and selected skills. The execution agent then alternates between writing code and inspecting its outputs. Measurements, error messages, and visualizations such as mask overlays enter the VLM's context; dense intermediate arrays remain in the kernel. The agent uses this feedback to revise its grounding or computation before answering. Kernel state is discarded after each task, while skills and generated helpers persist in the library.
3.2 Skill-Tool Experience Reuse
The library links skills to perception tools, initial computational helpers, and generated helpers through documented interfaces. A helper can support multiple skills, and a skill can use several tools. Records of prior use and assessed utility inform both retrieval and curation.
The Skill Selector retrieves candidates through lexical and semantic matching, then selects complementary skills using task requirements and recorded reliability. For each selected skill, it generates task-specific usage guidance identifying applicable steps, unresolved requirements, and evidence to check before answering. The agent receives the selected skills, guidance, and linked tools, together with a small resident set of trusted skills. The selector may return no candidates when none is suitable.
The Tool Synthesizer checks whether existing tools, alone or in combination, can perform the required computation. If they cannot, it synthesizes a generated helper, following demand-driven tool evolution (Li et al., 2026b). For example, a helper for cross-view measurement might transform reconstructed points into the reference frame required by a skill.
During execution, recurring errors prompt retrieval of repair guidance, while missing operations trigger helper synthesis or refinement. Helpers that pass admission checks become available to the current task and are considered for later reuse (Section 3.3). Appendix A gives the retrieval settings, admission checks, and generation budgets.
3.3 Experience Reflection and Evolution
After each task, the Experience Reflector extracts reusable procedures from execution feedback (Li et al., 2026b; Ouyang et al., 2026). It reviews checked operations, errors revealed by execution or conflicting evidence, and repairs that resolved those errors. For example, an empty text-prompted mask may be repaired through box-guided segmentation. Once the resulting region has been visually checked, this repair can become a fallback procedure. Each candidate records its conditions of use, verification steps, and supporting observations.
The reflector distinguishes supported observations from contradicted assumptions and unresolved judgments. A tool call that completes without error does not by itself establish a correct spatial inference. Relevant checks include compatible coordinate frames, valid measurement scales, and agreement between a mask and the visible object. When evidence is inconclusive, the reflector retains only supported local lessons or proposes no update. Figure 4 gives a contact-verification example: separated centroids do not rule out contact, so the agent must inspect local surfaces and gaps.
The Library Curator incorporates candidate skills and generated helpers into the library. Following incremental context adaptation (Zhang et al., 2026b), it makes local skill edits and preserves existing conditions and checks unless evidence supports a change. It also uses function signatures and comments to identify overlapping operations and merge related implementations, following interface-guided tool consolidation (Li et al., 2026b). New and consolidated helpers undergo execution checks on representative inputs before retention.
Reliability is assessed separately for each observed application of a skill or helper. An LLM judge records support, contradiction, or insufficient evidence for the intended use, linking its assessment to logged calls, outputs, and checks. New entries remain provisional until repeated supported applications justify wider reuse. Contradictory evidence can trigger revision or suspension; inconclusive applications leave reliability unchanged. These records guide selection and curation even when the final answer cannot be verified. Appendix A specifies the assessment and library-management rules.
4 Experiments
We evaluate whether accumulated experience improves spatial reasoning beyond access to perception tools and interactive execution. The experiments compare task-solving performance, test reuse with a fixed library, and isolate the roles of usage guidance and curation. We also examine cross-benchmark transfer and training on skill-guided trajectories.
4.1 Experimental Setup
Benchmarks and metrics. We evaluate 20 benchmarks across five task groups (Table 2), using all examples when a benchmark contains at most 1,000 and a fixed-seed sample of 1,000 otherwise. Categorical questions use accuracy; numerical questions retain benchmark-specific metrics (Appendix G). Scores are percentages averaged over examples within each benchmark. Category and overall scores equally weight the corresponding benchmarks.
Backbone and execution. The main comparison uses Gemma4-31B (Google DeepMind, 2026). We preserve image aspect ratios and limit the longer edge to 768 pixels. The initial visual context contains at most 32 frames, sampled uniformly for longer videos; multi-image inputs retain the first 32 images. Interactive agents may take up to 30 tool-call turns per task.
Comparison methods. No-tool answers directly from visual inputs. Single-Pass Code, VADAR (Marsili et al., 2025), and pySpatial (Luo et al., 2026) generate programs without intermediate feedback. Structured Tool-Call and SpaceTools Toolshed (Chen et al., 2026) interact through named JSON tool calls, whereas SpatialClaw (Cho et al., 2026) executes code iteratively in a persistent kernel. VADAR supports only single-image inputs.
Repeated runs. We conduct three independent runs. In the main comparison, EvoSpatial evolves online from execution feedback, starting with a fresh initial library for each benchmark and run. The runs vary the order of questions; Appendix B specifies the feedback and reset protocol. We report means and sample standard deviations for EvoSpatial in the main comparison, and means for held-out, transfer, and ablation results. Category and overall averages are computed within each run before aggregation across runs.
4.2 Main Results
Table 2 compares baseline scores reported by SpatialClaw (Cho et al., 2026) with our three-run results. EvoSpatial reaches the best overall average (63.9), 4.0 percentage points above SpatialClaw. The largest category gains appear in video spatial and 4D reasoning (+5.7 points) and in multi-view reasoning (+4.6). MMSI-Video and MindCube improve by 6.8 and 5.6 points, respectively. These tasks require combining evidence across views or time, the setting where reusable spatial procedures should help most. Many BLINK questions can be answered through rapid, intuitive visual judgments without lengthy textual reasoning (Fu et al., 2024). All evaluated tool-augmented methods trail the no-tool baseline (75.7), but EvoSpatial scores highest among them (74.8) and narrows the gap to 0.9 points, versus 2.3 for SpatialClaw. This pattern is consistent with findings that extended multimodal reasoning can weaken visual grounding and amplify hallucination (Liu et al., 2025); additional reasoning is not always beneficial for such intuitive judgments.
4.3 Generalization to Unseen Tasks
We next test whether the library remains useful after evolution stops. This experiment uses Gemma4-31B on the 10 non-video benchmarks in Table 2: four single-image, three multi-view, and three general spatial benchmarks. We evolve the library on approximately 20% of each benchmark and evaluate on the remaining 80%. Questions sharing visual inputs stay in the same split. We compare the initial library with skill-only, tool-only, and joint evolution; each single-component variant keeps the other component at initialization. Evaluation retains retrieval and interactive execution under identical budgets, but disables library updates and helper synthesis. All variants share the partition and initial library across three independent runs.
Joint evolution raises the held-out average from 62.0 to 65.4, compared with 63.8 for skill-only and 64.0 for tool-only evolution (Table 3). It performs best in all three task groups, with the largest gain over the initial library in multi-view reasoning (+4.1 points). Since neither single-component variant reaches this level, skills and generated helpers appear to contribute complementary benefits on unseen tasks.
| Benchmark | No-tool | Single-Pass Code | Structured Tool-Call | VADAR (2025) | pySpatial (2026) | SpaceTools (2026) | SpatialClaw (2026) | EvoSpatial (Ours) |
|---|---|---|---|---|---|---|---|---|
| Single-image spatial reasoning | ||||||||
| ERQA (Gemini Robotics Team et al., 2025) | 58.3 | 58.3 | 59.0 | 33.3 | 50.8 | 52.0 | 61.3 | 63.5±0.25 |
| Omni3D (Marsili et al., 2025) | 51.7 | 48.2 | 55.7 | 44.6 | 50.6 | 50.7 | 54.3 | 58.1±0.42 |
| OmniSpatial (Jia et al., 2026) | 57.3 | 60.0 | 59.6 | 42.4 | 58.0 | 60.4 | 63.6 | 67.0±0.36 |
| SPBench (Li et al., 2025b) | 55.1 | 58.2 | 60.5 | 41.6 | 53.5 | 45.1 | 68.4 | 71.0±0.40 |
| Multi-view spatial reasoning | ||||||||
| MindCube (Wang et al., 2025b) | 57.5 | 57.5 | 62.4 | —* | 67.1 | 52.9 | 72.8 | 78.4±0.72 |
| MMSI (Yang et al., 2026b) | 37.9 | 42.3 | 43.0 | —* | 33.2 | 33.1 | 51.3 | 54.0±0.61 |
| SPAR-Bench (Zhang et al., 2025b) | 55.2 | 61.1 | 58.7 | —* | 51.7 | 53.9 | 63.3 | 68.8±0.58 |
| Video spatial & 4D reasoning | ||||||||
| MMSI-Video (Lin et al., 2025) | 36.9 | 37.1 | 35.1 | —* | 28.7 | 36.6 | 41.6 | 48.4±0.70 |
| OSI-Bench (Wu et al., 2025) | 35.6 | 36.8 | 40.3 | —* | 32.0 | 30.2 | 41.9 | 48.2±0.67 |
| PAI-Bench (Zhou et al., 2025) | 65.0 | 64.2 | 65.6 | —* | 46.0 | 65.1 | 68.1 | 72.0±0.44 |
| VSI-Bench-U (Brown et al., 2025) | 48.0 | 47.8 | 50.1 | —* | 44.4 | 33.6 | 48.5 | 54.2±0.71 |
| VSTI-Bench (Fan et al., 2026) | 54.7 | 64.2 | 63.5 | —* | 55.0 | 56.0 | 67.6 | 72.7±0.64 |
| DSI-Bench (Zhang et al., 2025c) | 45.3 | 57.9 | 58.4 | —* | 43.7 | 43.0 | 62.9 | 69.0±0.53 |
| General spatial reasoning | ||||||||
| BLINK (Fu et al., 2024) | 75.7 | 73.9 | 73.9 | —* | 60.3 | 58.2 | 73.4 | 74.8±0.27 |
| SpatialTree (Xiao et al., 2025) | 59.9 | 58.9 | 57.7 | —* | 53.9 | 52.7 | 60.7 | 64.3±0.37 |
| ViewSpatial (Li et al., 2025a) | 51.7 | 52.0 | 55.5 | —* | 49.9 | 52.1 | 60.2 | 64.4±0.44 |
| General video understanding | ||||||||
| CVBench (Zhu et al., 2025) | 69.8 | 71.3 | 73.6 | —* | 67.7 | 46.8 | 72.2 | 74.0±0.17 |
| PerceptionComp (Li et al., 2026c) | 36.8 | 39.2 | 42.5 | —* | 37.1 | 38.6 | 44.0 | 48.1±0.61 |
| Video-MME (Fu et al., 2025) | 74.8 | 74.6 | 75.8 | —* | 50.3 | 74.6 | 77.0 | 78.2±0.27 |
| Video-MME-v2 (Fu et al., 2026) | 40.7 | 40.2 | 44.0 | —* | 23.0 | 37.4 | 44.4 | 48.9±0.53 |
| Average (20 benchmarks) | 53.4 | 55.2 | 56.7 | —* | 47.8 | 48.7 | 59.9 | 63.9 |
Table 2: Performance across 20 benchmarks with Gemma4-31B. Baseline scores are reported by Spatial-Claw (Cho et al., 2026). Subscripts denote sample standard deviations over three runs of EvoSpatial; * marks unsupported video or multi-image inputs.
| Library | Single-image | Multi-view | General | Avg. (10) |
|---|---|---|---|---|
| Initial | 61.0 | 61.3 | 64.1 | 62.0 |
| Evolved skills only | 62.6 | 63.4 | 65.9 | 63.8 |
| Evolved tools only | 63.1 | 63.7 | 65.5 | 64.0 |
| Evolved skills & tools | 64.2 | 65.4 | 66.9 | 65.4 |
Table 3: Generalization to unseen tasks. The library evolves on approximately 20% of each benchmark and remains fixed during evaluation on the remaining 80%.
4.4 Ablation Studies
We examine task-specific usage guidance, geometric verification guidance, and library curation under the held-out protocol in Section 4.3. All variants use Gemma4-31B with matched data partitions and execution budgets, and keep the library fixed during evaluation. Table 5 reports means over three independent runs.
Task-specific usage guidance. Removing the Skill Selector's task-specific usage guidance reduces the average score from 65.4 to 64.1, with the library, selected skills, and linked tools unchanged. Scores decline in all three task groups, most sharply in multi-view reasoning (2.0 points). The retrieved procedure alone is less useful than the same procedure with guidance on which steps apply and what evidence to check.
Geometric verification guidance. We remove geometric verification guidance from skill text and task-specific usage guidance using a fixed LLM filter. The evolved library, selected skill IDs, geometric assumptions, core computations, and tool implementations stay unchanged. The agent may still verify evidence on its own. The average score falls from 65.4 to 63.6 (-1.8 points), with the largest decline in multi-view reasoning (-2.7), compared with single-image (-1.3) and general reasoning (-1.5). This pattern supports the value of explicit verification guidance when combining evidence across views, where reference-frame, scale, and cross-view consistency checks help ensure that the retained geometric assumptions hold.
Library curation. We replace the Library Curator's skill updates and tool merging with append-only storage of new skills and generated helpers. This variant uses the same initial library and adaptation data, retaining reflection, helper synthesis, and usage-based qualification. Its average score falls to 63.7 (-1.7 points), with declines in every task
| Base model | Method | Single-image | Multi-view | General | Avg. (10) | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ERQA | Omni3D | Omni Spatial | SPBench | Mind Cube | MMSI | SPAR-Bench | BLINK | Spatial Tree | View Spatial | |||
| Gemma4-31B | No-tool | 58.3 | 51.7 | 57.3 | 55.1 | 57.5 | 37.9 | 55.2 | 75.7 | 59.9 | 51.7 | 56.0 |
| EvoSpatial | 63.5 | 58.1 | 67.0 | 71.0 | 78.4 | 54.0 | 68.8 | 74.8 | 64.3 | 64.4 | 66.4 | |
| Gemma4-26B-A4B | No-tool | 56.0 | 44.8 | 56.9 | 45.1 | 47.8 | 31.5 | 48.3 | 70.2 | 53.7 | 53.1 | 50.7 |
| EvoSpatial | 58.5 | 52.1 | 60.4 | 65.0 | 68.7 | 45.0 | 67.0 | 72.6 | 61.0 | 62.0 | 61.2 | |
| Qwen3.6-35B-A3B | No-tool | 57.2 | 51.2 | 57.0 | 52.4 | 45.4 | 38.0 | 47.8 | 70.6 | 58.3 | 52.0 | 53.0 |
| EvoSpatial | 60.5 | 57.1 | 63.0 | 66.0 | 66.7 | 48.0 | 62.5 | 75.0 | 63.3 | 56.5 | 61.9 | |
| Qwen3.6-27B | No-tool | 59.5 | 55.9 | 60.8 | 58.0 | 51.2 | 40.9 | 55.0 | 70.5 | 62.6 | 53.9 | 56.8 |
| EvoSpatial | 63.5 | 60.7 | 65.9 | 67.6 | 75.0 | 55.5 | 72.3 | 78.2 | 67.5 | 62.5 | 66.9 | |
| Qwen3.8-27B | No-tool | 60.5 | 56.7 | 61.7 | 58.9 | 52.6 | 42.1 | 55.8 | 71.4 | 63.5 | 54.8 | 57.8 |
| EvoSpatial | 64.5 | 61.3 | 66.7 | 68.4 | 75.8 | 56.1 | 72.8 | 78.5 | 68.2 | 63.3 | 67.6 | |
Table 4: EvoSpatial across base models. No-tool and EvoSpatial scores on 10 benchmarks.
group. Revising and consolidating entries works better than simply accumulating them.
| Ablation setting | Single-image | Multi-view | General | Avg. (10) |
|---|---|---|---|---|
| EvoSpatial (full) | 64.2 | 65.4 | 66.9 | 65.4 |
| Skill Selector (w/o task-specific usage guidance) | 63.1 | 63.4 | 66.0 | 64.1 |
| Geometric verification (w/o verification guidance) | 62.9 | 62.7 | 65.4 | 63.6 |
| Library Curator (append-only) | 62.6 | 63.1 | 65.8 | 63.7 |
Table 5: Ablations of guidance and library curation. We remove task-specific usage guidance or geometric verification guidance, or use append-only storage.
4.5 Cross-benchmark Transfer
We evolve separate libraries on ERQA and MindCube from the same initial library using Gemma4-31B, then freeze them for evaluation on 18 common targets excluding both sources. Relative to the fixed Initial library, ERQA-evolved and MindCube-evolved improve the equally weighted target average by 1.73 and 1.76 points (Figure 5).
Transfer profiles differ: ERQA yields larger single-image gains (3.97 versus 1.60), while MindCube yields larger multi-view (3.85 versus 2.30) and video spatial/4D gains (1.82 versus 0.87). Manual inspection suggests ERQA's image-level procedures are seldom invoked in some video tasks. MindCube instead improves all six video spatial/4D targets, including those with small ERQA-transfer declines. Both sources yield smaller gains on general video understanding. Transfer therefore extends beyond ERQA but depends on compatibility with target requirements.
4.6 Learning from Skill-Guided Trajectories
To test the training value of evolved skills, Gemma4-31B generates Structured Tool-Call trajectories on SenseNova-SI-800K (Cai et al., 2026) with or without fixed ERQA-evolved skills. Both conditions share tools and execution budgets, with evolution and helper synthesis disabled. Identical correctness and execution checks retain the same 200K questions passing under both conditions. Their trajectories train Unguided Trace SFT and Skill-Guided Trace SFT from Gemma4-31B with matched supervised token budgets and optimization settings. Skill documents are omitted from training inputs; only assistant actions and answers receive supervision. Reference answers serve only post-generation filtering.
Evaluation uses Structured Tool-Call without external skills or updates on nine benchmarks excluding ERQA; training excludes shared evaluation images and scenes. Table 6 includes the original Base Model, aggregated from the main-table baseline. Skill-Guided Trace SFT improves over Unguided Trace SFT by 1.2–1.4 points in every task group, demonstrating the training value of skills under matched questions and budgets.
4.7 Evaluation across Base Models
Table 4 evaluates EvoSpatial with five Gemma and Qwen backbones on 10 benchmarks. Average scores range from 61.2 (Gemma4-26B-A4B) to 67.6 (Qwen3.8-27B).
(1) Earlier failure: ERQA_51

wrong answer: D | ground truth: B
Centroid separation used to reject contact.
(2) Update the verification skill

Verify Real Contact
Inspect surfaces, not just centers.
-
Localize the candidate interface.
-
Inspect boundaries and visible gaps.
-
Zoom again if evidence is unclear.
(3) New scene: ERQA_369

Retrieved skill: Verify Real Contact
(4) Inspect local evidence before deciding
Task-local operations: VLM localization -> crop / resize -> compare interfaces.

book / medicine box
plug / jar
gripper / cables
Images and local crops are recorded scene evidence.

No-evolving baseline:
A: book touches medicine box


EvoSpatial:
D: none of the listed pairs

Figure 4: From failure reflection to skill reuse. A revised contact-verification skill directs the agent to inspect local surfaces before answering in a subsequent scene.

Figure 5: Cross-benchmark transfer from ERQA and MindCube. Score gains over the initial library on 18 common target benchmarks, excluding both sources. Libraries remain fixed during target evaluation.
| Training condition | Single-image | Multi-view | General | Avg. (9) |
|---|---|---|---|---|
| Base Model | 58.6 | 54.7 | 62.4 | 58.6 |
| Unguided Trace SFT | 59.6 | 55.9 | 63.2 | 59.6 |
| Skill-Guided Trace SFT | 60.8 | 57.3 | 64.4 | 60.9 |
Table 6: Learning from skill-guided trajectories. The two SFT variants use trajectories generated with or without evolved skills for the same 200K questions.
4.8 Token Efficiency
Table 7 reports mean ERQA token costs for Gemma4-31B with SpatialClaw or EvoSpatial, and Qwen3.8-27B with SpatialClaw, including EvoSpatial's post-answer evolution. With Gemma4-31B, EvoSpatial improves accuracy by 2.2 points while reducing total tokens from 68.5k to 54.2k (20.9%). Mean tool-call turns decrease from 5.09 to 4.32 (15.1%), with reductions in both successful and failed episodes (Appendix C). Shorter interactions support reduced repeated-context input: input tokens fall from 65.8k to 50.8k despite the added cost of skill documents, selection, and evolution.
| System | Acc. (%) | Input (k/question) | Output (k/question) | Avg. total (k/question) |
|---|---|---|---|---|
| Gemma4-31B + SpatialClaw | 61.3 | 65.8 | 2.7 | 68.5 |
| Gemma4-31B + EvoSpatial | 63.5 | 50.8 | 3.4 | 54.2 |
| Qwen3.8-27B + SpatialClaw | 63.0 | 145.9 | 17.6 | 163.5 |
Table 7: Token efficiency on ERQA. Token counts are averaged per question.
5 Case Study
Figure 4 shows reflection turning a faulty centroid-based contact judgment into a reusable instruction to inspect local surfaces and gaps. The revised skill guides evidence gathering in another scene, transferring a verification criterion rather than an answer.
6 Conclusion
We presented EvoSpatial, which evolves linked spatial skills and tools from execution feedback, retaining geometric assumptions and verification steps alongside reusable computations. It exceeds SpatialClaw's reported average by 4.0 points across 20 benchmarks. Fixed-library evaluations, transfer from two sources, and ablations support both experience reuse and explicit verification guidance. Skill-guided trajectories also improve fine-tuning without external skills at evaluation. Checked spatial experience thus benefits both subsequent reasoning and model training.
Limitations
Runtime isolation. For rapid research iteration, the prototype executes agent-generated code without sandbox isolation. This code inherits the runtime’s permissions and could damage the host or its data; we observed no such incidents. A compatible initial isolation scheme is to host the task-local Python kernel in a dedicated, non-privileged Docker container or Kubernetes Pod with restricted filesystem mounts, network access, and resource budgets. This preserves state across tool-call turns while limiting access to the host. We have not evaluated this deployment configuration or its security guarantees.
Cross-benchmark transfer. Our cross-benchmark transfer analysis uses ERQA and MindCube as evolution sources. Model API costs limit the exploration of additional sources and combinations, leaving transfer across a broader range of source domains untested.
Ethics Statement
Data and benchmarks. We use publicly available benchmarks and collect no new human-subject data. We follow the source datasets’ licenses and terms and introduce no personally identifiable or sensitive information.
Code execution. The agent executes LLM-generated code to inspect visual and geometric evidence. As discussed in Limitations, execution is not sandboxed, so generated code could perform unintended operations with the runtime’s permissions. We observed no harmful behavior during the study and recommend sandboxing before deployment.
References
Ellis Brown, Jihan Yang, Shusheng Yang, Rob Fergus, and Saining Xie. 2025. Benchmark designers should “train on the test set” to expose exploitable non-visual shortcuts. ArXiv Preprint.
Zhongang Cai, Ruisi Wang, Chenyang Gu, Fanyi Pu, Junxiang Xu, Yubo Wang, Wanqi Yin, Zhitao Yang, Chen Wei, Tongxi Zhou, Qingping Sun, Hui En Pang, Jiaqi Li, Oscar Qian, Zhiqian Lin, Xuanke Shi, Kewang Deng, Xiaoyang Han, Zukai Chen, and 9 others. 2026. Scaling spatial intelligence with multimodal foundation models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 7879–7890.
Nicolas Carion, Laura Gustafson, Yuan-Ting Hu, Shoubhik Debnath, Ronghang Hu, Didac Suris, Chaitanya
Ryali, Kalyan Vasudev Alwala, Haitham Khedr, Andrew Huang, and 1 others. 2026. Sam 3: Segment anything with concepts. In International Conference on Learning Representations (ICLR).
Siyi Chen, Mikaela Angelina Uy, Chan Hee Song, Faisal Ladhak, Adithyavairavan Murali, Qing Qu, Stan Birchfield, Valts Blukis, and Jonathan Tremblay. 2026. Spacetools: Tool-augmented spatial reasoning via double interactive rl. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 37109–37120.
Seokju Cho, Ryo Hachiuma, Abhishek Badki, Hang Su, Byung-Kwan Lee, Chan Hee Song, Sifei Liu, Subhashree Radhakrishnan, Seungryong Kim, Yu-Chiang Frank Wang, and Min-Hung Chen. 2026. Spatialclaw: Rethinking action interface for agentic spatial reasoning. Preprint, arXiv:2606.13673.
Zhiwen Fan, Jian Zhang, Renjie Li, Junge Zhang, Runjin Chen, Hezhen Hu, Kevin Wang, Huaizhi Qu, Dilin Wang, Zhicheng Yan, and 1 others. 2026. Vlm-3r: Vision-language models augmented with instruction-aligned 3d reconstruction. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR).
Chaoyou Fu, Yuhan Dai, Yongdong Luo, Lei Li, Shuhui Ren, Renrui Zhang, Zihan Wang, Chenyu Zhou, Yunhang Shen, Mengdan Zhang, and 1 others. 2025. Video-mme: The first-ever comprehensive evaluation benchmark of multi-modal llms in video analysis. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR).
Chaoyou Fu, Haozhi Yuan, Yuhao Dong, Yi-Fan Zhang, Yunhang Shen, Xiaoxing Hu, Xueying Li, Jinsen Su, Chengwu Long, Xiaoyao Xie, Yongkang Xie, Xiawu Zheng, Xue Yang, Haoyu Cao, Yunsheng Wu, Ziwei Liu, Xing Sun, Caifeng Shan, and Ran He. 2026. Video-mme-v2: Towards the next stage in benchmarks for comprehensive video understanding. ArXiv Preprint.
Xingyu Fu, Yushi Hu, Bangzheng Li, Yu Feng, Haoyu Wang, Xudong Lin, Dan Roth, Noah A Smith, Wei-Chiu Ma, and Ranjay Krishna. 2024. Blink: Multimodal large language models can see but not perceive. In European Conference on Computer Vision (ECCV).
Gemini Robotics Team, Saminda Abeyruwan, Joshua Ainslie, Jean-Baptiste Alayrac, Montserrat Gonzalez Arenas, Travis Armstrong, Ashwin Balakrishna, Robert Baruch, Maria Bauza, Michiel Blokzijl, and 1 others. 2025. Gemini robotics: Bringing ai into the physical world. ArXiv Preprint.
Google DeepMind. 2026. Gemma 4. https://deepmind.google/models/gemma/gemma-4/. Accessed: 2026-04-14.
Mengdi Jia, Zekun Qi, Shaochen Zhang, Wenyao Zhang, Xinqiang Yu, Jiawei He, He Wang, and Li Yi. 2026.
Omnispatial: Towards comprehensive spatial reasoning benchmark for vision language models. In International Conference on Learning Representations (ICLR).
Zhiyuan Jiang, Fangrui Huang, Hanwen Xing, Xander Wu, Yipeng Gao, Rui Cao, Mengdi Wang, Shilong Liu, and Yijiang Li. 2026. Demystifying agent skills: Why they work-until they don't. Preprint, arXiv:2608.14036.
Nikhil Varma Keetha, Norman Müller, Johannes Schönberger, Lorenzo Porzi, Yuchen Zhang, Tobias Fischer, Arno Knapitsch, Duncan Zauss, Ethan Weber, Nelson Antunes, Jonathon Luiten, Manuel Lopez-Antequera, Samuel Rota Bulò, Christian Richardt, Deva Ramanan, Sebastian Scherer, and Peter Kontschieder. 2026. Mapanything: Universal feed-forward metric 3d reconstruction. In Thirteenth International Conference on 3D Vision.
Dingming Li, Hongxing Li, Zixuan Wang, Yuchen Yan, Hang Zhang, Siqi Chen, Guiyang Hou, Shengpei Jiang, Wenqi Zhang, Yongliang Shen, Weiming Lu, and Yueting Zhuang. 2025a. Viewspatial-bench: Evaluating multi-perspective spatial localization in vision-language models. ArXiv Preprint.
Hao Li, Chunjiang Mu, Jianhao Chen, Siyue Ren, Zhiyao Cui, Yiqun Zhang, Lei Bai, and Shuyue Hu. 2026a. Organizing, orchestrating, and benchmarking agent skills at ecosystem scale. Preprint, arXiv:2603.02176.
Haotian Li, Shijun Yang, Weizhen Qi, Silei Zhao, Rui Hua, Mingzhu Song, Xiaojian Yang, and Chao Peng. 2026b. Yunjue agent tech report: A fully reproducible, zero-start in-situ self-evolving agent system for open-ended tasks. Preprint, arXiv:2601.18226.
Hongxing Li, Dingming Li, Zixuan Wang, Yuchen Yan, Hang Wu, Wenqi Zhang, Yongliang Shen, Weiming Lu, Jun Xiao, and Yueting Zhuang. 2025b. Spatialladder: Progressive training for spatial reasoning in vision-language models. Preprint, arXiv:2510.08531.
Shaoxuan Li, Zhixuan Zhao, Hanze Deng, Zirun Ma, Shulin Tian, Zuyan Liu, Yushi Hu, Haoning Wu, Yuhao Dong, Benlin Liu, Ziwei Liu, and Ranjay Krishna. 2026c. PerceptionComp: A video benchmark for complex perception-centric reasoning. ArXiv Preprint.
Xiangyi Li, Yimin Liu, Wenbo Chen, Bingran You, Zonglin Di, Yifeng He, Shenghan Zheng, Kyoung Whan Choe, Jiankai Sun, Shuyi Wang, Chujun Tao, Binxu Li, Xuandong Zhao, Hejia Geng, Xiaojun Wu, Junwei Zhou, Xiaokun Chen, Hanwen Xing, Yubo Li, and 59 others. 2026d. Skillsbench: Benchmarking how well agent skills work across diverse tasks. Preprint, arXiv:2602.12670.
Yanzhou Li, Yiran Zhang, Xiaoyu Zhang, Xiaoxia Liu, and Yang Liu. 2026e. Codeskill: Learning self-evolving skills for coding agents. Preprint, arXiv:2605.25430.
Shijie Lian, Changti Wu, Laurence Tianruo Yang, Hang Yuan, Bin Yu, Lei Zhang, and Kai Chen. 2026a. Euclid's gift: Enhancing spatial perception and reasoning in vision-language models via geometric surrogate tasks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings, pages 9824–9835.
Shijie Lian, Bin Yu, Xiaopeng Lin, Changti Wu, Hang Yuan, Xiaolin Hu, Zhaolong Shen, Yuzhuo Miao, Haishan Liu, Yuxuan Tian, Yukun Shi, Cong Huang, and Kai Chen. 2026b. Physbrain 1.0 technical report. Preprint, arXiv:2605.15298.
Haotong Lin, Sili Chen, Jun Hao Liew, Donny Y. Chen, Zhenyu Li, Yang Zhao, Sida Peng, Hengkai Guo, Xiaowei Zhou, Guang Shi, Jiashi Feng, and Bingyi Kang. 2026. Depth anything 3: Recovering the visual space from any views. In International Conference on Learning Representations (ICLR).
Jingli Lin, Runsen Xu, Shaohao Zhu, Sihan Yang, Peizhou Cao, Yunlong Ran, Miao Hu, Chenming Zhu, Yiman Xie, Yilin Long, Wenbo Hu, Dahua Lin, Tai Wang, and Jiangmiao Pang. 2025. Mmsi-video-bench: A holistic benchmark for video-based spatial intelligence. ArXiv Preprint.
Chengzhi Liu, Zhongxing Xu, Qingyue Wei, Juncheng Wu, James Zou, Xin Eric Wang, Yuyin Zhou, and Sheng Liu. 2025. More thinking, less seeing? assessing amplified hallucination in multimodal reasoning models. Preprint, arXiv:2505.21523.
Yuxuan Liu, Haoran Li, Yuhao Zhang, Jiahe Guo, Hongyu Luo, Wenbin Hu, Huihao Jing, Kawai Chung, Junle Chen, Changxuan Fan, Qing Zong, Lingyun Xie, and Yangqiu Song. 2026. Skillscript-bench: Benchmarking self-evolution of executable agent skill packages beyond markdown. Preprint, arXiv:2610.04008.
Zhengxi Lu, Zhiyuan Yao, Jinyang Wu, Chengcheng Han, Qi Gu, Xunliang Cai, Weiming Lu, Jun Xiao, Yueting Zhuang, and Yongliang Shen. 2026. Skill0: In-context agentic reinforcement learning for skill internalization. Preprint, arXiv:2604.02268.
Zhanpeng Luo, Ce Zhang, Silong Yong, Cunxi Dai, Qianwei Wang, Haoxi Ran, Guanya Shi, Katia P. Sycara, and Yaqi Xie. 2026. pyspatial: Generating 3d visual programs for zero-shot spatial reasoning. In The Fourteenth International Conference on Learning Representations.
Damiano Marsili, Rohun Agrawal, Yisong Yue, and Georgia Gkioxari. 2025. Visual agentic ai for spatial reasoning with a dynamic api. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR).
Foundation Model and Li Auto Inc. 2026. Me-vlm: A unified vlm for embodied cognition and agent coordination. Preprint, arXiv:2609.24526.
Siru Ouyang, Jun Yan, I-Hung Hsu, Yanfei Chen, Ke Jiang, Zifeng Wang, Rujun Han, Long Le, Samira Daruki, Xiangru Tang, Vishy Tirumalashetty, George Lee, Mahsan Rofouei, Hangfei Lin, Jiawei Han, Chen-Yu Lee, and Tomas Pfister. 2026. Reasoning-bank: Scaling agent self-evolving with reasoning memory. In The Fourteenth International Conference on Learning Representations.
Xihao Piao, Zifeng Wang, and Zhen Chen. 2026. Do self-evolving skills generalize to held-out tasks? Preprint, arXiv:2609.39148.
Huajie Tan, Enshen Zhou, Zhiyu Li, Yijie Xu, Yuheng Ji, Xiansheng Chen, Cheng Chi, Pengwei Wang, Huizhu Jia, Yulong Ao, Mingyu Cao, Sixiang Chen, Zhe Li, Mengzhen Liu, Zixiao Wang, Shanyu Rong, Yaoxu Lyu, Zhongxia Zhao, Peterson Co, and 16 others. 2026. Robobrain 2.5: Depth in sight, time in mind. arXiv preprint arXiv:2601.14352.
DeepCybo Team, Yu Bin, Haipeng Cao, Zheng Chang, Kai Chen, Youning Chen, Kailin Deng, Yichao Du, Xiaotong Fu, Haoyang Ge, Yunlong Guo, Chenliu Hao, Jiyan He, Xuguo He, Yakun Hou, Kai Hu, Cong Huang, Tuopusen Huang, Yu Huang, and 35 others. 2026. Physbrain 1.5: From vision-language models to physical foundation models. Preprint, arXiv:2609.14973.
Jianyuan Wang, Minghao Chen, Nikita Karaev, Andrea Vedaldi, Christian Rupprecht, and David Novotny. 2025a. Vggt: Visual geometry grounded transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5294–5306.
Jiongxiao Wang, Qiaojing Yan, Yawei Wang, Yijun Tian, Soumya Smruti Mishra, Zhichao Xu, Megha Gandhi, Panpan Xu, and Lin Lee Cheong. 2026a. Reinforcement learning for self-improving agent with skill library. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1529–1550, San Diego, California, United States. Association for Computational Linguistics.
Qineng Wang, Baiqiao Yin, Pingyue Zhang, Jianshu Zhang, Kangrui Wang, Zihan Wang, Jieyu Zhang, Keshigeyan Chandrasegaran, Han Liu, Ranjay Krishna, Saining Xie, Jiajun Wu, Li Fei-Fei, and Manling Li. 2025b. Spatial mental modeling from limited views. ArXiv Preprint.
Yifan Wang, Jianjun Zhou, Haoyi Zhu, Wenzheng Chang, Yang Zhou, Zizun Li, Junyi Chen, Jiangmiao Pang, Chunhua Shen, and Tong He. 2026b. : Permutation-equivariant visual geometry learning. In The Fourteenth International Conference on Learning Representations.
Mingrui Wu, Zhaozhi Wang, Fangjinhua Wang, Jiaolong Yang, Marc Pollefeys, and Tong Zhang. 2025. From indoor to open world: Revealing the spatial reasoning gap in mllms. ArXiv Preprint.
Peng Xia, Jianwen Chen, Hanyang Wang, Jiaqi Liu, Kaide Zeng, Yu Wang, Siwei Han, Yiyang Zhou, Xujiang Zhao, Haifeng Chen, Zeyu Zheng, Cihang Xie, and Huaxiu Yao. 2026. SkillRL: Evolving agents via recursive skill-augmented reinforcement learning. In ICLR 2026 Workshop on Memory for LLM-Based Agentic Systems.
Yuxi Xiao, Longfei Li, Shen Yan, Xinhang Liu, Sida Peng, Yunchao Wei, Xiaowei Zhou, and Bingyi Kang. 2025. Spatialtree: How spatial abilities branch out in mllms. ArXiv Preprint.
Renjun Xu and Yang Yan. 2026. Agent skills for large language models: Architecture, acquisition, security, and the path forward. Preprint, arXiv:2602.12430.
Guanqun Yang, Wenlong Zhang, Tian Shi, and Ping Wang. 2026a. Skillseek: Revisiting agent skill retrieval at marketplace scale. Preprint, arXiv:2609.38822.
Sihan Yang, Runsen Xu, Yiman Xie, Sizhe Yang, Mo Li, Jingli Lin, Chenming Zhu, Xiaochen Chen, Haodong Duan, Xiangyu Yue, Dahua Lin, Tai Wang, and Jiangmiao Pang. 2026b. Mmsi-bench: A benchmark for multi-image spatial intelligence. In International Conference on Learning Representations (ICLR).
Barry Zhang, Keith Lazuka, and Mahesh Murag. 2025a. Equipping agents for the real world with agent skills. Accessed: 2026-07-07.
Hanrong Zhang, Shicheng Fan, Henry Peng Zou, Yankai Chen, Zhenting Wang, Jiayu Zhou, Chengze Li, Wei-Chieh Huang, Yifei Yao, Kening Zheng, Xue Liu, Xiaoxiao Li, and Philip S. Yu. 2026a. CoEvoSkills: Self-evolving agent skills via co-evolutionary verification. Preprint, arXiv:2604.01687.
Jiahui Zhang, Yurui Chen, Yueming Xu, Ze Huang, Jilin Mei, Chunhui Chen, Yanpeng Zhou, Yu-Jie Yuan, Xinyue Cai, Guowei Huang, Xingyue Quan, Hang Xu, and Li Zhang. 2025b. From flatland to space: Teaching vision-language models to perceive and reason in 3d. In Advances in Neural Information Processing Systems (NeurIPS).
Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu, Mengmeng Ji, Hanchen Li, Urmish Thakker, James Zou, and Kunle Olukotun. 2026b. Agentic context engineering: Evolving contexts for self-improving language models. In The Fourteenth International Conference on Learning Representations.
Ziang Zhang, Zehan Wang, Guanghao Zhang, Weilong Dai, Yan Xia, Ziang Yan, Minjie Hong, and Zhou Zhao. 2025c. Dsi-bench: A benchmark for dynamic spatial intelligence. ArXiv Preprint.
Boyuan Zheng, Michael Y. Fatemi, Xiaolong Jin, Zora Zhiruo Wang, Apurva Gandhi, Yueqi Song, Yu Gu, Jayanth Srinivasa, Gaowen Liu, Graham Neubig, and Yu Su. 2025. Skillweaver: Web agents can self-improve by discovering and honing skills. Preprint, arXiv:2504.07079.
Fengzhe Zhou, Jiannan Huang, Jialuo Li, Deva Ramanan, and Humphrey Shi. 2025. Pai-bench: A comprehensive benchmark for physical ai. ArXiv Preprint.
Nannan Zhu, Yonghao Dong, Teng Wang, Xueqian Li, Shengjun Deng, Yijia Wang, Zheng Hong, Tiantian Geng, Guo Niu, Hanyan Huang, and 1 others. 2025. Cvbench: Benchmarking cross-video synergies for complex multimodal reasoning. ArXiv Preprint.
A Implementation of Experience Reuse
We describe the retrieval, feedback, and curation settings used to manage the skill–tool library. Appendix B specifies the online evaluation protocol.
Retrieval. The resident layer contains at most two active, trusted skills explicitly marked as resident; it may be empty. On-demand retrieval combines BM25 with sentence embeddings from BAAI/bge-small-en-v1.5, retaining up to twelve candidates from each channel. We combine their ranks using reciprocal-rank fusion:
where is the candidate set from channel c, and a candidate absent from that channel contributes zero. The final ranking score is
where A measures applicability, summarizes observed reliability, and penalizes archived entries. We set , , and the archival penalty to 0.01. Reliability uses the smoothed estimate , where and count supported and contradicted applications, respectively. Inconclusive applications increment neither count. We use statistics for matching task intents when available and global statistics otherwise. Applicability combines compatibility of operations, modalities, and capabilities. Incompatible inputs can exclude a candidate, while missing tools or capabilities can reduce its score. If dense retrieval is unavailable, the system uses sparse retrieval alone and records this fallback.
Execution interface. The planner receives the question, input metadata, tool descriptions, and selected skills. The execution agent reads each code cell's output before generating the next cell. Outputs include printed measurements, variable summaries, errors, and images registered through show(). Execution ends when the agent submits an answer through ReturnAnswer() or reaches the step limit.
Selection and synthesis. The selector receives at most eight candidates and chooses at most three on-demand skills. For each skill, it generates task-specific usage guidance covering relevant operations, unmet requirements, evidence to verify, and how the results should inform the answer. If the guidance is invalid or confidence in applicability is insufficient, the retrieved skill is withheld; resident skills remain available. By default, synthesis allows at most one pre-task proposal and one repair attempt per task. A repeated matching execution error triggers repair on its second occurrence. Admission checks inspect the Python abstract syntax tree, enforce import and operation restrictions, and compile and load the function before LLM curation. Execution checks on representative inputs verify the documented output structure and applicable computational properties. Repaired or merged helpers are checked against retained examples before replacing an existing implementation. Each generated helper returns a structured result containing success status, a value, a failure reason, and metadata.
Usage assessment. We assess skill application and helper utility from observed trajectories, without counterfactual rollouts. Each assessment records the skill or helper, its intended operation, the relevant observation or check, and a supported, contradicted, or inconclusive verdict. Positive evidence requires a checked result, such as a repaired input mismatch or a visually verified segmentation fallback. Errors and violated preconditions count as negative evidence only for the implicated skill or helper. Exposure alone, error-free execution, and confidence in the final answer do not establish utility. These assessments guide library management but do not establish causal benefit.
Curation and lifecycle. Skill updates make local changes supported by approved candidates, and a deterministic merge preserves unspecified fields. Usage statistics come from execution records and are maintained separately from curator-generated content. The active library holds at most 64 skills and 16 generated helpers. New entries have probationary status, and at most two probationary generated helpers are exposed at a time. By default, a skill can become trusted after two supported applications on distinct tasks. Promotion of a generated helper requires two evidence-backed helpful-use judgments, each with confidence of at least 0.70. Confidence without an identified supporting check is insufficient for promotion. Contradictory evidence can trigger revision or quarantine; inconclusive judgments affect neither promotion nor demotion. Archiving preserves content, and archived skills remain eligible for retrieval with a score penalty. Selection, reflection, curation, and utility assessment use separate sessions of the configured backbone; they do not use independently trained evaluators.
Feedback protocol. During online adaptation, trajectory assessment and library updates finish before the next task begins. Reflection receives execution records, observed repairs, and visual or geometric checks. In held-out transfer evaluations, the library is built on a disjoint adaptation stream and remains fixed during testing. Token measurements include task-solving, verification, and evolution requests. The library distinguishes initial handwritten helpers from generated helpers.
B Evolution Protocol for the Main Results
The main results in Table 2 evaluate EvoSpatial during online evolution under the following protocol.
Initialization and isolation. Each benchmark starts from a fresh copy of the initial skill–tool library. No evolved skills, generated helpers, or accumulated library records are shared across the 20 benchmarks. Each of the three runs also starts from the initial library, without state carried over from another run.
Sequential feedback and updates. The agent processes questions sequentially within each benchmark. After submitting an answer, it uses execution records and evidence checks to reflect and update the library before starting the next question. Only the offline scorer accesses benchmark labels; neither the agent nor the library-management modules receive them. Updated entries remain available to later questions in the same benchmark and run. Each score uses the answer submitted before the corresponding post-answer update.
Task order and reporting. The three runs use different question orders, forming separate evolution streams over the same benchmark examples. We report the mean and sample standard deviation of the three run-level scores. Category and overall averages are computed within each run before aggregation. These results measure performance during online evolution; Sections 4.3 and 4.5 separately evaluate reuse with a fixed library.
C Tool-Call Turns on ERQA
We compare mean tool-call turns on ERQA for SpatialClaw and EvoSpatial with Gemma4-31B and Qwen3.8-27B (Table 8). One turn is one executed agent code cell, including failed attempts and answer submission; multiple tool calls within a cell count as one turn. We average over all episodes and separately over those with correct and incorrect final answers, including unanswered episodes as failures. Selection, reflection, and library-update calls are excluded from turn counts but included in token costs.
| System | All episodes | Successful episodes | Failed episodes |
|---|---|---|---|
| Gemma4-31B + SpatialClaw | 5.09 | 4.59 | 5.80 |
| Gemma4-31B + EvoSpatial | 4.32 | 4.24 | 4.46 |
| Qwen3.8-27B + SpatialClaw | 10.30 | 7.89 | 14.98 |
| Qwen3.8-27B + EvoSpatial | 8.15 | 6.45 | 11.24 |
Table 8: Mean tool-call turns on ERQA.
EvoSpatial reduces mean turns from 5.09 to 4.32 with Gemma4-31B (15.1%) and from 10.30 to 8.15 with Qwen3.8-27B (20.9%). Reductions occur in both successful and failed episodes. They are larger among failures: 23.1% for Gemma4-31B and 25.0% for Qwen3.8-27B, compared with 7.6% and 18.3% among successes. Shorter interactions occur in both outcome groups, with the largest reductions on episodes that ultimately fail. This pattern supports the interpretation that reusable procedures help limit prolonged, unproductive interaction and reduce repeated context input.
D LLM Judge Reliability
Table 9 reports the Gemma4-31B judge's agreement with human judgments, acceptance of unsupported applications, and consistency across repeated judgments, separately for skills and generated helpers.
| Assessed artifact | Human agreement ↑ | Unsupported acceptance ↓ | Repeat consistency ↑ |
|---|---|---|---|
| Skills | 84.0 | 9.0 | 90.0 |
| Generated helpers | 88.0 | 6.0 | 94.0 |
| Overall | 85.3 | 8.0 | 91.3 |
Table 9: LLM judge reliability. All values are percentages.
On the audited records, the judge agrees with human judgments on 85.3% of cases and repeats its own verdicts with 91.3% consistency. These rates support its use as a largely human-aligned and repeatable source of local feedback for library management.
E Representative Prompt Templates
The following templates cover skill selection, tool synthesis, reflection, and library curation. For readability, we omit lengthy JSON schemas and task-dependent tool documentation. Angle brackets mark content supplied at runtime, and terminology follows the main text.
Skill selection
You are the Skill Selector for a spatial reasoning agent. The retriever favors recall, so some candidates may be distractors. Decide whether skills are needed, and select the smallest sufficient set of complementary skills. Check the input modality, preconditions, contraindications, required evidence, available tools, and requirements that each skill does not cover. Do not select a skill by topical similarity alone; selecting none is valid.
For each selected skill, return the operations for which it can be used, the requirements it does not cover, and the evidence needed before its advice can affect the answer. Input: <question>, <task signature>, <resident skills>, and <retrieved candidates>. Output: selected skill IDs, task-specific usage guidance, rejected candidates, and a brief rationale.
Skills and task-specific usage guidance supplied to the execution agent
These skills are reusable strategies distilled from checked operations and observed repairs. Treat them as optional guidance whose applicability must be verified. First identify the task requirements independently. Use a skill only when its conditions match the task, and verify the visual and geometric evidence before allowing it to affect the an- swer. If the required evidence is missing or contradictory, solve the task using other evidence.
For each selected skill: <when to use>; <when not to use>; <procedure>; <verification>; <failure modes>; <recommended tools>; and <task-specific usage guidance>.
Demand-driven tool synthesis
Decide whether the task lacks a reusable Python helper. Reuse existing spatial tools rather than wrapping or duplicating them. Propose a small deterministic function only when it would simplify repeated coordinate parsing, validation, aggregation, or numerical computation. Give it a documented signature, an example call, and tests. The helper must have one function definition and no file, network, or process access or global state.
Input: <question>, <input metadata>, <relevant existing tools and skills>, and, when available, <execution failure>. Output: whether a helper is needed, the reason, and the proposed function and interface.
Experience reflection
Identify a reusable lesson supported by the execution record. For each relevant operation, distinguish supporting evidence, an observed contradiction, and an unresolved judgment. Link every proposed lesson to a concrete output, visual observation, or executed check.
For a repaired failure, explain what failed, which change resolved it, and what observation verifies the repair. For a supported procedure, retain its preconditions and verification steps. A tool returning without error does not establish that the final answer is correct. If evidence is insufficient, return no candidate. Exclude task-specific answers and conclusions.
Input: <question>, <visual observations>, <compact trajectory>, and <execution checks>. Output: a supported skill candidate and its evidence, or no candidate.
Library curation
Integrate pending skill candidates into the existing library by adding, updating, merging, archiving, or rejecting them. Group skills by the underlying spatial reasoning pattern rather than surface wording. Prefer concise, operational guidance that can transfer across tasks; retain applicable conditions, verification signals, and useful failure modes. Do not retain sample-specific answers or conclusions. Every accepted update must identify its supporting candidates and execution evidence, and existing skills should be preserved unless explicitly archived or deprecated.
Generated helper candidates. Accept a generated helper only when its code matches its description, its interface is reusable, its execution checks pass, and it does not duplicate a stronger tool. Recheck merged implementations against retained examples. Preserve existing trusted tools unless they are obsolete, duplicated, or harmful.
Input: <existing skills and tools> and <new candidates>. Output: library updates and decisions on pending candidates.
F An Evolved Skill and Its Linked Tools
The example below pairs an evolved spatial reasoning procedure with its verification steps and linked tools.
Metric Spatial Relationship Verification
When to use. Verify both a metric distance and a directional relation between a robot gripper and a target in a 3D scene.
Procedure. Reconstruct the scene and segment the gripper and target. Identify their relevant 3D reference points and a consistent direction axis. Compare the Euclidean distance between the points with the stated distance, and use the sign of their displacement projected onto the axis to check the directional relation.
Verification. Confirm that the distance is within tolerance and that the directional projection has the expected sign. Inspect the masks and coordinate frame if either check disagrees with the visual evidence.
Linked tools.
-
tools.Reconstruct.Reconstruct(frames) supplies depth and 3D geometry.
-
tools.Evolved. segment_with_fallback(image, prompt, ...) supplies object masks, retrying with box grounding when text segmentation fails.
The library records these tool links separately, allowing the skill to recommend operations without embedding their implementations.
G Benchmark Scoring
Table 10 lists the metrics used for the benchmark suite adopted from SpatialClaw (Cho et al., 2026). Categorical questions receive binary correctness scores. Numerical questions use mean relative accuracy (MRA) with the thresholds specified by the source benchmark. SPAR-Bench also uses view-change inference (VCI), which averages MRA over five movement axes. We average example scores within each benchmark and weight benchmarks equally when computing the overall score.
| Benchmark | Metric |
|---|---|
| ERQA (Gemini Robotics Team et al., 2025) | Acc |
| Omni3D (Marsili et al., 2025) | Acc + MRA |
| OmniSpatial (Jia et al., 2026) | Acc |
| SPBench (Li et al., 2025b) | Acc + MRA |
| MindCube (Wang et al., 2025b) | Acc |
| MMSI (Yang et al., 2026b) | Acc |
| SPAR-Bench (Zhang et al., 2025b) | Acc + MRA + VCI |
| MMSI-Video (Lin et al., 2025) | Acc |
| OSI-Bench (Wu et al., 2025) | Acc + MRA |
| PAI-Bench (Zhou et al., 2025) | Acc |
| VSI-Bench-U (Brown et al., 2025) | Acc + MRA |
| VSTI-Bench (Fan et al., 2026) | Acc + MRA |
| DSI-Bench (Zhang et al., 2025c) | Acc |
| BLINK (Fu et al., 2024) | Acc |
| SpatialTree (Xiao et al., 2025) | Acc + MRA |
| ViewSpatial (Li et al., 2025a) | Acc |
| CVBench (Zhu et al., 2025) | Acc |
| PerceptionComp (Li et al., 2026c) | Acc |
| Video-MME (Fu et al., 2025) | Acc |
| Video-MME-v2 (Fu et al., 2026) | Acc |
Table 10: Benchmark scoring protocols. Acc: categorical accuracy; MRA: mean relative accuracy; VCI: view-change inference.