Abstract
Autonomous exploration in unknown environments requires an agent to navigate, remember its path, and plan future movements. Traditional robotics relies on modular SLAM (Simultaneous Localization and Mapping) pipelines, which are robust but often rigid. Conversely, deep reinforcement learning (RL) agents often struggle with long-term dependencies in large environments. This paper presents Neural SLAM, a differentiable architecture that integrates SLAM procedures into a neural network. By utilizing an external 2D memory and an addressing mechanism inspired by Neural Turing Machines, the agent learns to build internal cognitive maps. Experimental results in simulated grid worlds and 3D environments show that Neural SLAM outperforms standard recurrent models in exploration efficiency and generalization.
Introduction
The ability to explore and map unknown spaces is a cornerstone of autonomous robotics. This task involves a complex interplay of localization, mapping, and path planning. While traditional SLAM systems provide a structured approach, they are typically hand-engineered and may not adapt well to diverse environments. Deep Reinforcement Learning (RL) offers a promising alternative for learning navigation policies from data. However, standard architectures like LSTMs possess limited "short-term" memory, making them unsuitable for global navigation in expansive areas. Neural SLAM addresses these limitations by embedding the structural inductive bias of traditional SLAM into a fully differentiable neural network.
Methods
The Neural SLAM architecture extends the Asynchronous Advantage Actor-Critic (A3C) framework by incorporating an external 2D memory grid ($M_t$) of size $H \times W \times C$. This grid serves as a global map where the agent stores feature-rich representations of the environment.
As shown in Figure 1, the system consists of several differentiable modules that mirror traditional SLAM operations:
- Localization and Motion Prediction: The agent maintains a belief of its current position, which is updated based on a learned motion model.
- Data Association: Current sensor observations are compared with existing memory slots using cosine similarity to determine the agent's relative location.
- Measurement Update: The model interpolates between predicted positions and observed data, employing a shift kernel to mitigate motion noise.
- Mapping: "Write" heads allow the agent to update the 2D memory grid dynamically as it explores.
The final navigation policy is derived from a combination of the LSTM's hidden state and a "read" vector extracted from the updated global memory.
Experiments and Results
The model was evaluated in procedurally generated grid worlds and the Gazebo simulator. In $16 \times 16$ grid worlds, Neural SLAM achieved a success ratio of 46/50, significantly outperforming the A3C-Nav2 baseline (37/50). Furthermore, the agent demonstrated superior efficiency; in specific exploration tasks, Neural SLAM completed the objective in 24 steps, whereas a baseline with external memory but no motion model (A3C-Ext) required 56 steps.
The results indicate that the inductive bias provided by the SLAM-like structure allows the agent to learn more effective exploration strategies. Unlike traditional occupancy grids that store binary data, Neural SLAM learns to store task-relevant features, enabling better planning and generalization to larger, unseen maps (Figure 2).
Discussion and Future Work
Neural SLAM successfully bridges the gap between structured robotics algorithms and flexible learning-based approaches. By forcing the network to follow a "predict-associate-update" cycle, the framework facilitates the emergence of complex navigation behaviors.
However, limitations remain regarding the scalability of the fixed-size 2D memory grid. Future research will focus on scaling the memory for larger, multi-room environments, potentially through hierarchical structures. Additionally, the use of memory uncertainty as a source of intrinsic motivation could further enhance the agent's exploration capabilities in sparse-reward scenarios. Moving toward raw RGB-D camera feeds and physical robotic deployment remains the ultimate goal for this architecture.
Summary updated