All models

Neural Map agent

A DRL agent that writes what it sees into a 2D map memory at its own location and reads it back with attention.

Reinforcement learning and control · 50 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
247.3K
Operations
50
Framework
PyTorch
Recurrent
No
Published
ICLR 2018
Cited by
298 (as of 4 October 2026)
Authors
Emilio Parisotto, Ruslan Salakhutdinov
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m14355
Graph hash
0227249003115b73a5cb83d0f39d1a91e262044c74256c4e476cf2d6888c8579
Skeleton hash
53928ec82043ae2fb9a0a8436a236bcc5af40626b9bc97f448701a690ad4e246
Architecture hash
87341885dabe7121fc2f59fa1af4cb415378c1e56f10b752b40d1fe3b70ebc93
Diagram SHA-256
36cb971c49b54d61c87d185cf031626d515bc7046be6e55c27ea0b9df9384393
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Neural Map is a memory for deep reinforcement learning agents: a spatially structured 2D memory image that learns to store arbitrary information about the environment over long time lags. The motivation is that memory is critical for reasoning in partially observable environments, yet DRL agents had so far used relatively simple memory architectures. The usual fixes, a temporal convolution over past frames or an LSTM layer, and even memory networks, are limited to remembering information from the last k frames.

The write operator is selectively limited to affect only the part of the map that represents the area where the agent is currently located. The map itself is a C × H × W feature block, where C is the feature dimension, H the vertical extent and W the horizontal extent. Each step runs a global read, which passes the current map through a deep convolutional network to produce a C-dimensional feature vector summarizing the whole map. A context read then performs context-based addressing to check whether certain features are stored in the map. The map's output is processed by another deep network to get the policy outputs.

Training uses a modified Asynchronous Advantage Actor-Critic in which the policy is executed and updated synchronously at each time step across several concurrent environments. Empirically the Neural Map surpasses previous DRL memories on a set of challenging 2D and 3D maze environments and generalizes to environments not seen during training. The 3D test is a maze environment based on the video game Doom. The only saved code is a third-party, work-in-progress Keras implementation of a Memory-Q-Network.

Key idea. A spatially structured 2D memory image with a write operator restricted to the agent's current location, letting a DRL agent store information about its environment over long time lags.

  • Neural Map
  • Neural Map agent
  • structured memory
  • deep reinforcement learning
  • memory-augmented agent
  • maze navigation
  • A3C
  • Doom

AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{parisotto2017neuralmapstructuredmemory,
      title={Neural Map: Structured Memory for Deep Reinforcement Learning}, 
      author={Emilio Parisotto and Ruslan Salakhutdinov},
      year={2017},
      eprint={1702.08360},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1702.08360}, 
}