Research
Spatial Memory by Agents, for Agents
A robot that remembers where things were and what it has seen can reuse those past observations for localization, navigation, and answering questions — but building such a memory requires many…

- arXiv
- 2610.22736 · Preprint · not peer-reviewed
- Published
- 2026-10-15
- Authors
- Qianwei Wang, Ce Zhang, Zhanpeng Luo, Pengpeng Su, Shuo Yang, Hao Xu
In plain words
A robot that remembers where things were and what it has seen can reuse those past observations for localization, navigation, and answering questions — but building such a memory requires many coupled decisions about what to keep and how to fetch it again for semantic, metric, and temporal needs.
AI summary
Overview
Research area: Robotics — specifically spatial memory for embodied agents, at the intersection of robot perception, memory retrieval systems, and LLM-based coding agents.
Technical level: Advanced. The paper assumes familiarity with robot localization and navigation, memory construction and retrieval pipelines, and automated code-generation agents used as design tools.
Scope (one sentence): The paper tests whether coding agents can autonomously design a robot's spatial memory system — deciding what observations to store and how to retrieve them — by iteratively writing and revising code under a fixed development budget, and then benchmarking the frozen results across five task tracks.
What This Paper Is About
A robot that remembers where things were and what it has seen can reuse those past observations for localization, navigation, and answering questions — but building such a memory requires many coupled decisions about what to keep and how to fetch it again for semantic, metric, and temporal needs. Rather than hand-designing that memory, the authors ask whether a coding agent can write the memory construction and retrieval code itself, improving it through repeated implementation-and-evaluation cycles. The goal is to see whether this automated design loop produces a memory system that generalizes to new observation histories and to questions the designer never saw.
Key Contributions
-
An automated design loop for spatial memory. A Designer Agent writes and revises code for both memory construction and retrieval, using feedback from a Query Agent that stays fixed throughout the process, all under a fixed development budget.
-
A leakage-resistant evaluation protocol. After the design search ends, the resulting implementations are frozen and then used to build memories from held-out observation histories — with no access to the downstream questions — before being evaluated with the same Query Agent used during development.
-
A five-track benchmark comparison. The designed memories are scored across five complementary task tracks and compared against baselines, including ReMEmbR, described as the strongest evaluated baseline that supports all five tracks.
-
A qualitative failure analysis. The authors connect performance differences to how well evidence is retained and retrieved, and identify specific breakdowns in grounding and in the use of retrieved evidence.
Main Findings
-
Coding agents beat the strongest baseline. Across three independent design searches, Codex / GPT-6 Astra averaged 44.23 on the equally weighted five-track score, compared with 29.32 for ReMEmbR — a 50.9% relative improvement.
-
The gains hold across repeated searches. The headline comparison reflects three independent design searches rather than a single lucky run, which is the paper's evidence that the approach is not a one-off artifact.
-
Design quality traces back to evidence handling. Qualitative analysis attributes differences in performance to how well a memory retains evidence and how effectively it retrieves that evidence later.
-
Specific failure modes remain. The analysis identifies grounding failures and failures in how retrieved evidence is actually used, meaning the designed systems do not always convert stored observations into correct answers.
-
Trade-offs are task-dependent. The abstract reports task-dependent trade-offs between performance and computational cost, indicating that no single designed memory dominates on every axis.
-
Details beyond these are not in the abstract. The abstract does not report per-track scores, variance across the three searches, development-budget size, dataset scale, or the specific baselines beyond ReMEmbR.
Methodology in Plain English
The setup is a design competition where the contestant is an AI coding agent. A Designer Agent is given a budget and asked to write code that builds a spatial memory from robot observations and code that retrieves from that memory. After each attempt, a Query Agent — held fixed so the goalposts don't move — exercises the memory and produces feedback, which the Designer uses to revise its code.
Crucially, the authors separate design from evaluation. Once the Designer's work is finished, its code is frozen. The frozen code is then run on observation histories the Designer never got to tune against, and it must build memories from those histories without ever seeing the questions that will later be asked. Only then does the Query Agent pose questions across five different task types. This structure is what makes the result meaningful: it tests whether the automatically designed memory generalizes, rather than whether the Designer memorized the test. The same Query Agent is used in both phases so that any improvement can be attributed to the memory design rather than to a change in the question-answering component.
Why This Matters
Research impact. The paper reframes spatial memory design as a search problem that coding agents can run, rather than a hand-engineered pipeline. If the design loop generalizes, it offers a way to produce memory systems tailored to a robot's deployment conditions without a human redesigning the pipeline each time. The failure analysis — grounding and evidence use — also points the community at where automated design still falls short.
Real-world applications:
- Warehouse and logistics robots that need to recall where items or obstacles were previously observed to plan efficient routes.
- Domestic service robots answering user questions like where an object was last seen, which requires both semantic and metric recall.
- Inspection and maintenance robots in facilities that must reconstruct the spatial history of a site across repeated patrols.
- Assistive and augmented-reality systems that surface past observations to a human user on demand.
Industry relevance. Teams deploying robot fleets face a recurring cost: spatial memory pipelines are bespoke and labor-intensive to build and retune. An agent-driven design loop suggests a path to cheaper, faster iteration — and the reported task-dependent cost trade-offs are exactly the kind of information deployment teams need when choosing between memory richness and compute.
Future Directions
- Closing the grounding and evidence-use gap. The identified failures suggest that better retrieval is not sufficient; future work must ensure retrieved evidence is correctly grounded and actually used in the answer.
- Cost-aware design objectives. Since trade-offs between performance and computational cost are task-dependent, an open question is whether the Designer Agent can be given explicit cost targets rather than optimizing an equally weighted score.
- Broadening the task suite. Five tracks are covered here; extending to more task types would test whether a design search overfits to the tracks it was evaluated on.
- Transfer across robots and environments. The abstract does not establish whether a memory designed in one setting carries over to another embodiment, sensor suite, or building — a natural next test.
Target Audience
Robotics researchers working on spatial memory, embodied question answering, and long-horizon navigation; practitioners building memory and retrieval pipelines for deployed robots; and researchers interested in using LLM coding agents as automated system designers rather than as components inside the system. Readers looking for detailed per-track results, ablations, or implementation specifics will need the full paper, since the abstract reports only the aggregate five-track comparison.
Authors’ abstract
Spatial memory enables robots to reuse past observations for localization, navigation, and question answering. Designing such memory involves jointly deciding what to retain and how to retrieve it for diverse semantic, metric, and temporal needs. We investigate whether coding agents can automate this design process through iterative implementation and evaluation. Under a fixed development budget, a Designer Agent writes and revises code for memory construction and retrieval…
The full abstract on arXivRelated papers
- ECHO-G: Embodied Co-speech Humanoid mOtion Generation 2026-09-30 · cs.RO · Also by Hao Xu, Shuo Yang
- EnactOpt: Diagnosis-Guided Harness Evolution for Embodied Agents 2026-10-10 · cs.RO · Also by Shuo Yang
- Coding Agents for Generalized Task and Motion Planning Problems 2026-09-24 · cs.RO · Also by Qianwei Wang
- Whole-Body UMI: Transferring UMI Manipulation Skills to Humanoid Whole-Body Manipulation via Real-Time Motion Generation 2026-09-19 · cs.RO · Also by Shuo Yang
- Progress Reward Modeling for Robotic Learning: A Comprehensive Survey 2026-07-22 · cs.RO · Also by Ce Zhang