# Spatial memory in a world that will not stay still

> Follow how agents connect changing views, revise spatial memory, and use old observations to choose where to look next, with a close reading of one implementation.

Published: 2026-11-07 · Lumisonde (https://lumisonde.com/reports/persistent-spatial-memory/)
Citations JSON (per-claim receipts): https://lumisonde.com/reports/persistent-spatial-memory/citations.json
Continues: https://lumisonde.com/reports/spatial-intelligence-from-images/
Serial: Spatial Intelligence (https://lumisonde.com/serials/spatial-intelligence/)
Role in this serial: Update a remembered location — Follow the cup across visits as the agent compares observations, revises its map and uses the last known location to choose where to look.
Previous in recommended reading order: https://lumisonde.com/reports/spatial-intelligence-from-images/

## The brief

**Question:** How can an AI agent remember and use an environment when both it and the objects in it move?

**Answer:** An agent connects observations across viewpoints to recognize places and objects it has seen before.[1, 3] New observations update its understanding of the current scene, while earlier observations can help identify a target and guide the next search.[7, 11]

**Takeaway:** A remembered location is a starting point for a search.[7] Spatial memory becomes useful when it helps the agent choose its next observation—and use what it finds to update where to look.[7, 10, 11]

A robot sees a cup on a table, leaves the room, and later receives a request to fetch it. Its next camera image may look different because the robot has turned around. The cup may also have moved while nobody was watching. To use its earlier experience, the robot must distinguish a change in viewpoint from a change in the world.

Spatial memory is environmental information carried forward to support later judgments and actions. It can preserve geometry, objects, relationships, observations over time, or a learned internal state. Building useful memory means connecting observations across movement; maintaining it means deciding what new evidence changes. Using it means turning that evidence into a candidate destination, a search through history, or a fresh observation that tests a remembered location.

The whole problem has two kinds of change and a feedback loop. When the observer moves, old and new views need a common reference. When the world changes, the current-state estimate needs revision, while earlier observations may remain useful history. Those records and estimates guide an action; the resulting view can confirm a candidate, contradict it, or leave it hidden. The payoff is a way to distinguish three achievements: remembering where something was, having evidence for where it is now, and completing a task with it.

We will first see how observations become a reusable spatial reference and what different memories retain. Then we will follow the actual code that clears and refreshes a dynamic point cloud. Finally, we will examine how history, predictions, and new observations enter action—and what the available experiments establish about success.

## Connect different views before calling the world different

An object moving across an image does not necessarily move across the room. The camera's position and orientation—its *pose*—determine where a stationary object appears. Given depth and camera calibration, a robot can turn a pixel into a point relative to the camera, then use the pose to express it in a shared map frame. With a single ordinary camera, depth instead has to be inferred from suitable observations and motion; pure monocular geometry initially has an unknown scale. The sensor setup therefore determines which spatial quantities are available.[1]

Simultaneous localization and mapping, or SLAM, estimates both the observer's pose and the environment. In ORB-SLAM3, ordinary tracking projects existing map points into the predicted camera view and searches nearby for matching image features. Several camera poses and their shared landmarks—scene points seen from more than one view—can then be adjusted together. The adjustment brings each point's predicted position in an image, its projection, closer to where it was observed. Earlier observations constrain the present, and the present can improve the interpretation of earlier observations.[1]

A return after a long absence requires another operation. ORB-SLAM3 first retrieves visually similar stored keyframes, which are selected reference images. It tests candidate matches with three-dimensional correspondences and geometric alignment, then searches for additional support in related views. A plausible picture match becomes a place association only after this verification. A match within the active map can close a loop; a match to a different map can enable a merge. Following a loss of tracking, the system attempts recovery; if tracking remains lost, it can start another map and later test a cross-map association.[1]

This matters beyond navigation. Suppose a robot's location estimate was displaced when it recorded the table. Correcting only the robot's current position would leave the table record in the wrong place. Khronos links each locally reconstructed object fragment to the robot poses at its first and last observations. Its global optimization adjusts robot poses, fragment poses, and background geometry together. That preserves the relationship between a measurement and the frame in which it was made.[2]

A coordinate correction changes where an observation belongs in the map. An environmental update changes what the agent believes occupied that place. Connecting records to their observation poses lets the agent revise its reference while carrying the associated environmental information forward.

## Retain the differences that future questions need

Once observations share a reference, they can be organized around different questions. A route needs obstacles and connections between traversable places. “Find a cup beside the sofa” needs objects and relationships. “Find the cup that was here yesterday” also needs observations over time and evidence for which cup the speaker means.

ConceptGraphs illustrates how object memory is constructed. It takes posed color-and-depth images, segments candidate objects, extracts visual features, and projects their points into map coordinates. A new detection is compared with existing objects that have some geometric overlap. Geometric and feature similarity determine a greedy match; if no score exceeds the threshold, the detection starts a new object record. Matched point clouds are merged and downsampled, and features are averaged using the number of associated detections.[3]

**Schematic before/after, not an executed trace:** a front view and a side view of cup C can contribute different surface points to one C record if the association succeeds. A second cup D with insufficient matching evidence remains a separate record. The transformation is from *detections in individual views* to *reusable object hypotheses*. An incorrect match can merge different objects; a missed match can leave one object represented twice.

ConceptGraphs subsequently captions selected object crops after processing the image sequence. It constructs candidate relationships from spatial overlap, prunes the candidate graph, and asks a language model to infer relations from object descriptions and locations. For a language task, an LLM can select an object from descriptions and bounding boxes; that object's pose then goes to a navigation or grasping pipeline. Geometry, visual evidence, descriptions, and inferred relations have different origins even when they appear in one graph. The paper reports caption errors, missed thin or small objects, and duplicate objects as consequential failure sources.[3]

Spatial experience can also be carried in a learned internal state. A study of blind navigation agents trained recurrent networks to reach specified points in simulated houses without camera images. Within each episode, the agents received idealized, noiseless position and heading relative to their starting point, the goal, their previous action, and a proximity-to-goal stopping cue; their actions were also noiseless. A failed attempt to advance could indirectly reveal an obstacle. Researchers transplanted a trained agent's final internal state into a separately trained probe agent, which could use it to navigate more efficiently and take shortcuts compared with control states. Memory reset between episodes.[4]

In this experiment, a recurrent state carried information from one traversal into a later navigation policy. ConceptGraphs instead makes object locations available through records a language planner can inspect. The representations retain different information and expose it to different consumers.[3, 4]

The consumer can be a bottleneck even when the information survives. In the reported development traces of *Spatial Memory by Agents, for Agents*, a revision put object coordinates behind an additional inspection tool. The query agent did not make that call across 1,284 public queries, and the referring-localization score fell to zero. The geometry still existed; its access path failed. Another trace confused a whole trajectory's duration with a room visit until visit spans were promoted to primary records. Organizing the records and their retrieval interface changed which evidence reached the answer.[5]

Compression and retrieval therefore work together. A short object description can help select a destination, while a retained image can support a later question that the description never anticipated. Keeping both creates a useful division of labor: the compact record narrows the search, and the underlying observation supplies detail for a closer inspection. What can a new view invalidate in those retained records?

## Update what a new view can actually contradict

A moving person can make camera localization harder without being the object the robot wants to remember. DynaSLAM addresses that problem by excluding potentially dynamic semantic classes and, in its RGB-D path, detecting additional inconsistent geometry. Its original method uses semantic masks to protect a reusable static map; it explicitly leaves instance labels for future moving-object tracking. Keeping a person out of the background map and remembering that person's trajectory are different operations.[6]

For an object moved during an absence, there may be no continuous trajectory to track. The robot instead compares a new observation with old geometry. DynaMem stores a sparse voxelized point cloud—a set of small spatial cells with associated information—and both adds new observations and clears old points using the current depth image. If the old cup should block a view but the sensor sees a farther surface, the old occupied space has been contradicted. If a closer object blocks the cup's former position, the view provides a different kind of evidence.[7]

The released implementation makes the distinction inspectable. The following excerpts come from one pinned revision of Hello Robot's `stretch_ai`, dated July 2, 2026. They are static code readings, not executed traces or a verified reproduction of the May 2025 DynaMem paper's experiments. We start at `process_rgbd_images`, whose inputs are RGB, depth, camera intrinsics, and pose. It first clears and adds to the obstacle cloud. Later, it prepares world-coordinate points and updates the separate semantic memory.[8]

Here is the exact semantic-update portion. `valid_depth` filters the *new points to be added*. Notice that the resulting `mask` is not passed into `clear_points`:[8]

```python
        median_depth = torch.from_numpy(median_filter(depth, size=5))
        median_filter_error = (depth - median_depth).abs()
        valid_depth = torch.logical_and(depth < self.max_depth, depth > self.min_depth)
        valid_depth = valid_depth & (median_filter_error < 0.01).bool()
        mask = ~valid_depth

        # Update semantic memory
        self.semantic_memory.clear_points(
            depth, torch.from_numpy(intrinsics), torch.from_numpy(pose), min_samples_clear=10
        )

        with torch.no_grad():
            rgb, features = self.encoder.run_mask_siglip(rgb, self.image_shape)  # type:ignore
            rgb, features = rgb.squeeze(), features.squeeze()

        valid_xyz = world_xyz[~mask]
        features = features[~mask]
        valid_rgb = rgb.permute(1, 2, 0)[~mask]
        if len(valid_xyz) != 0:
            self.add_to_semantic_memory(valid_xyz, features, valid_rgb)
```

The helper `clear_points` projects the old world-coordinate points into the new camera view, using the inverse camera pose, and computes each point's camera-frame depth. Its variable `indices` is a **retain mask**: a true entry keeps an old point. The exact test and its immediate consumer are:[9]

```python
            indices = (
                (xys[:, 0] < 0)
                | (xys[:, 0] >= H)
                | (xys[:, 1] < 0)
                | (xys[:, 1] >= W)
                # the points are projected to the image frame but is blocked by some obstacles
                | (depth[valid_xys[:, 0], valid_xys[:, 1]] < (proj_depth - 0.1))
                # the points are projected to the image frame but they are behind camera
                | (depth[valid_xys[:, 0], valid_xys[:, 1]] < 0.01)
                | (proj_depth < 0.01)
                # depth is too large
                | (proj_depth > 2.5)
            )

            indices = indices.to(self._points.device)
            self._points = self._points[indices]
```

Let `d` denote `proj_depth`, the depth at which an old point would appear, and `D` the measured depth at its projected pixel. An old point survives this geometric stage if it is outside the image, if a nearer surface satisfies `D < d − 0.1`, if the measured depth is below 0.01 m, or if its projected depth is below 0.01 m or above 2.5 m. Otherwise it is cleared. The 0.1 m tolerance also clears old points close to the newly measured surface, before new data is added.[8, 9]

**Schematic inputs and geometric-stage outputs, not sensor recordings or executed tests:** each row is an independent hypothetical old point. All in-image examples have valid projections; depths are in meters. The table applies the code above, before semantic cluster pruning.[9]

| Old point | Projected depth `d` | New depth `D` | Geometric-stage output | What determines it |
| --- | ---: | ---: | --- | --- |
| P1, old cup surface | 1.00 | 1.40 | Clear P1 | New surface is farther away |
| P2, hidden old surface | 1.00 | 0.70 | Retain P2 | `0.70 < 0.90`: nearer occluder |
| P3, near the tolerance band | 1.00 | 0.95 | Clear P3 | Nearer reading does not meet the retain threshold |
| P4, invalid depth reading | 1.00 | 0.00 | Retain P4 | Measured depth is below 0.01 |
| P5, distant old surface | 3.00 | 4.00 | Retain P5 | Projected depth is above 2.5 |
| P6, outside the image | — | — | Retain P6 | Current image cannot test it |

P2 and P3 are both behind a nearer reading, but only P2 lies beyond the 0.1 m tolerance band. P4, P5, and P6 survive for another reason: the helper leaves their old geometry in place when the current depth or projection falls outside its testing conditions.

Passing the geometric retain test does not guarantee that an old point survives the semantic update. When `min_samples_clear` is enabled, the helper applies DBSCAN clustering, a further grouping and noise-removal pass, to the retained points. It uses XYZ together with an observation-count coordinate multiplied by 1,000 and removes points labelled as noise. The semantic caller above sets `min_samples_clear=10`, so P2 must pass this cluster-pruning stage as well. Point features, weights, colors, and observation counts are filtered alongside the points.[8, 9]

The caller then encodes the new image, filters new points, and sends them to `add_to_semantic_memory`. That method samples the valid points before adding their coordinates, features, colors, and observation ID. The refreshed memory is available to text-query methods such as those below, which can select candidate coordinates and observation IDs from the updated point cloud:[8]

```python
    def find_alignment_for_text(self, text: str):
        points, features, _, _ = self.semantic_memory.get_pointcloud()
        alignments = self.find_alignment_over_model(text).cpu()
        return points[alignments.argmax(dim=-1)].detach().cpu()

    def find_obs_id_for_text(self, text: str):
        obs_counts = self.semantic_memory._obs_counts
        alignments = self.find_alignment_over_model(text).cpu()
        return obs_counts[alignments.argmax(dim=-1)].detach().cpu()
```

The alignment routine encodes the query text and takes dot products with normalized stored features to score their similarity. The methods above select the coordinate or observation ID with the highest score. Clearing stale points therefore changes which candidate coordinates and source observations can win a later query.[8]

The paper and implementation have different numerical boundaries. DynaMem v2 describes a 2 m limit and an epsilon term in its clearing rule; the inspected helper uses the 2.5 m projected-depth boundary and 0.1 m margin shown above. Its `depth_is_valid` parameter is unused, so clearing follows the helper's own depth checks. In this update path, the new view changes both the spatial points and the evidence available to subsequent queries.[7, 8, 9]

## Preserve history while revising the present

After clearing an old cup shape, recognizing a cup at another table requires cross-time identity association. Khronos's inspected 2024 method associates fragments geometrically; fragments that have moved remain unassociated. The old and new shapes can therefore remain separate records even after their map coordinates have been corrected.[2]

Persistent identity can be modelled alongside changing state. EvolvingNav's October 2026 version appends time-valid entity versions when observations change, preserving earlier states and provenance. It distinguishes an entity's identity from its mutable location and other state, so queries can retrieve different versions of an entity over time.[10]

“Cup C was observed at A at time t” is a historical claim. “C is at A now” is a current-state judgment. If the cup moves, the first claim can remain true while the second becomes false. DynaMem primarily refreshes queryable current memory and can discard images no remaining voxel references. Historical queries need a retention policy that keeps the relevant earlier evidence available as current memory changes.[7]

EvolvingNav goes beyond the last-seen position by distributing belief across that site, other known candidate sites, and an unknown state. A learned temporal transition model propagates those probabilities as time passes. A new view then changes them according to how likely the target would have been detected there. After no detection, a candidate is weighted by `1 − P(detect | target at that site, current view)`, followed by normalization. An occluded view can leave substantial probability at the old site; a clear empty view can sharply reduce it.[10]

**Schematic likelihood example, not a model output:** suppose two separate inspections each fail to detect the target. If detection would have probability 0.9 at a clear site, the no-detection multiplier is 0.1. If detection would have probability 0.1 behind an occluder, the multiplier is 0.9. Those are weights before normalization, not final location probabilities. The example explains why equally absent detections need not provide equally strong evidence against a remembered location.[10]

An inspection may generate many overlapping images of the same surface. To keep that repetition from amplifying one observation, EvolvingNav admits updates only after enough new surface coverage and starts new time-valid evidence rounds as the world evolves. Its controller also forecasts occupancy at each candidate's estimated arrival time, accounting for change during travel. In its authored benchmark, comparisons with matched static and random worlds show the clearest prediction benefits in learnable routine worlds.[10]

The versions preserve what was observed, while the current-location belief changes with elapsed time and new views. Because that belief can change during a journey, choosing a remembered destination also entails choosing when and where to test it.

## Let memory choose a useful next observation

A query result still has to enter a physical task. In the paper's DynaMem v2 controller, the system first finds a candidate stored image through feature matching, a multimodal model, or their hybrid. An open-vocabulary detector checks that image for the requested object. If it finds no object, the system can return “object not found”; if it finds one, depth supports a three-dimensional target. This verification re-examines a **stored image**, confirming a historical sighting.[7]

Fresh observations enter as the robot moves. DynaMem projects voxel information into a two-dimensional navigation map and plans with A*. The robot executes the first seven waypoints, approximately 0.7–1 m, scans, updates the map, and replans. Exploration can be triggered when the object is not found. A candidate remembered location guides movement; movement returns evidence that can change the candidate and the route.[7]

Some requests need history before a current search even makes sense. “The book that was on the desk yesterday” identifies a target through an earlier event, not merely its latest coordinates. STAR exposes both memory queries and environmental skills as choices within the same decision loop. Long-term records retain time, robot location, caption embeddings, and images. A language-model policy can query those records or choose navigation, detection, and interaction; each action and outcome joins working memory for the next decision.[11]

**Schematic decision sequence, not a STAR execution trace:** a historical query returns an image that identifies the requested book B. A current inspection finds the desk empty. The first result still helps answer *which book*; the second changes *where to search*. The next useful step might be another historical query that suggests a destination, or movement to inspect a candidate location. A new sighting of B can then connect the historical identity to a current location.

These systems implement different forms of that choice. DynaMem schedules short movement-and-scan segments; STAR lets a policy alternate recall and physical tools; EvolvingNav scores candidate inspections using arrival-time target probability, expected new coverage, and travel-related costs.[7, 10, 11]

A remembered site can guide a route to a useful vantage point. From there, a current view supplies target geometry for the next action, while the route may need adjustment to reach a suitable manipulation position. Memory and observation work at different moments in the task: one narrows where to go, and the other refreshes what the robot can act on there.

## Measure the claim the task actually tests

Retrieval, fresh inspection, navigation, and interaction are separately testable parts of this loop. DynaMem's offline DynaBench isolates dynamic three-dimensional grounding: can a query return an appropriate location or reject an absent object? Its nine scenes contain three rounds of changes. Navigation, exploration, and manipulation are explicitly outside that test.[7]

The same paper also reports physical pick-and-drop experiments. Across three lab environments and 30 queries, its two DynaMem querying variants each achieved 70% success, against 30% for static-memory OK-Robot. In two homes, the hybrid system succeeded on 9 of 17 trials. Of the eight home failures, four concerned navigation, three manipulation, and one placement; navigation failures included confusing or failing to find targets and reaching positions unsuitable for manipulation. In these small author-run studies, failure could arise while selecting the target, approaching it, handling it, or completing the drop.[7]

STAR's simulated retrieval experiments construct “Realistic” memory from perception-model predictions. During skill execution, however, all agents detect objects using segmentation masks supplied by the simulator: the simulator identifies the image regions belonging to objects. In the physical Tiago evaluation, success means guiding a user to the correct landmark where the target can be found.[11]

Stale records can also redirect a policy away from information in the current view. In *When Memory Lies*, agents receive the full current 8×8 FrozenLake grid alongside old textual safe-or-danger claims. In the primary GPT-4o L2 text condition, using unfiltered stale memory produced a 74.4% death rate, compared with 28.0% without memory and 31.6% with the authors' explicit stale-entry filter. The present grid already contains the necessary spatial evidence, yet contradictory historical claims still impair action.[12]

For a fetch task, updating a remembered target must lead onward to a reachable approach and successful manipulation. The home trials show failures along that physical path. The grid experiment adds another demand on the same loop: when a new observation contradicts a remembered route, the observation must change the action.

## Conclusion

Spatial memory lets an agent use partial views after their contents have left its field of vision. Map geometry, object records, temporal evidence, and learned state carry different parts of that experience forward. Their usefulness comes from preserving connections: between views of a place, between an object and its observations, and between a retrieved record and the action that consumes it.

Persistence therefore involves both retention and change. Correcting the observer's pose can move associated records into a better reference. A clear new view can remove stale geometry; an occluded view can leave a location plausible. Historical evidence can keep identifying the requested object while the current-location belief moves elsewhere. The code gives this process a concrete consequence: changing the point cloud changes the coordinates and observations available to the next query.

Remembering where an object was helps choose where to search. Establishing where it is requires evidence that bears on the present. Completing the task carries that evidence through approach and interaction. The resulting memory is an active part of exploration: it helps the agent choose a view that will resolve its next uncertainty. How should an agent spend its observation budget when the target can move again before it arrives?

## Limitations

This account uses evidence available through November 4, 2026. The cited methods address different sensors, tasks, time spans, and representations; they are not interchangeable components of one demonstrated agent or a cross-benchmark ranking. The 2026 DynaMem-related code was inspected statically at a pinned revision. It was not executed, connected through every deployment entry point, or shown to match the 2025 paper's experimental configuration. Runtime overrides, pose-error robustness, and the empirical effects of geometric clearing plus cluster pruning remain unverified here. The candidate-producing methods shown do not establish which path every runtime configuration uses or the correctness of a feature match.[7, 8, 9]

The learned-state navigation results concern episode memory under idealized localization and action inputs, rather than long-term object histories. The agent-memory interface examples are development traces, not isolated randomized ablations. EvolvingNav's routine-world results and hidden-relocation tests leave arbitrary unseen changes and indistinguishable-object swaps unresolved. A common, resource-matched comparison of retention and retrieval methods, together with a general risk-and-cost rule for choosing observations, remains outside the results established here.[4, 5, 10]

Long-term identity also depends on distinguishing evidence. If two unseen exchanges produce exactly the same available observations, those observations alone cannot determine which occurred; a distinctive mark, continuous tracking, or another sensor could change that premise. The schematic records, depth cases, probability weights, and decision sequences illustrate operations only. They are not measured traces or model-generated results.

## References

[1] ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial and Multi-Map SLAM — https://arxiv.org/abs/2007.11898v2
[2] Khronos: A Unified Approach for Spatio-Temporal Metric-Semantic SLAM in Dynamic Environments — https://arxiv.org/html/2402.13817v2
[3] ConceptGraphs: Open-Vocabulary 3D Scene Graphs for Perception and Planning — https://arxiv.org/abs/2309.16650v1
[4] Emergence of Maps in the Memories of Blind Navigation Agents — https://arxiv.org/abs/2301.13261v1
[5] Spatial Memory by Agents, for Agents — https://arxiv.org/abs/2610.22736v1
[6] DynaSLAM: Tracking, Mapping and Inpainting in Dynamic Scenes — https://arxiv.org/abs/1806.05620v2
[7] DynaMem: Online Dynamic Spatio-Semantic Memory for Open World Mobile Manipulation — https://arxiv.org/abs/2411.04999v2
[8] voxel_dynamem.py — https://github.com/hello-robot/stretch_ai/blob/6272b28e3ff7be482af3b427a4551d1772ebf7d7/src/stretch/mapping/voxel/voxel_dynamem.py
[9] utils/voxel.py — https://github.com/hello-robot/stretch_ai/blob/6272b28e3ff7be482af3b427a4551d1772ebf7d7/src/stretch/utils/voxel.py
[10] Beyond the Remembered World: Predictive 4D Belief for Persistent Navigation in Evolving Worlds — https://arxiv.org/abs/2609.39166v4
[11] Searching in Space and Time: Unified Memory-Action Loops for Open-World Object Retrieval — https://arxiv.org/abs/2511.14004v3
[12] When Memory Lies: An Empirical Study of Spatial Memory Staleness in VLM Agents — https://arxiv.org/abs/2608.04574v1

---
Every [N] marker above is verifiable: fetch the citations JSON, match the marker id, and check the extraction (summary and key facts) plus placements against the source URL. Verification guide: https://lumisonde.com/for-agents/