Relational Memory Core
The Relational Memory Core is a recurrent memory module whose memories interact through multi-head attention.
Language · 5,010 operations Structure only
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
- Task
- Language
- Parameters
- 215M
- Operations
- 5,010
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- NeurIPS (arXiv 2018)
- Cited by
- 215 (as of 24 November 2026)
- Authors
- Adam Santoro, Ryan Faulkner, David Raposo and others
- Source
- GitHub: deepmind/sonnet
- License
- Apache-2.0
- Checked
- Structure only: shapes and data types are hypotheses, not measurements.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19816
- Graph hash
- 743f0bca2ea9026d18532ae602230f2efdb222718b82c86d1370e108cb3d9ed6
- Skeleton hash
- d19c3a863b4e218dd2cd27d2da81e7517fe497c0ec7da728c1e6981ad4d135cc
- Architecture hash
- f7e723e9973a792ee24eec80e7540f967472504134288289cf470115af6124ec
- Diagram SHA-256
- 4f5c95c0301ddc2ef7eb3b3cef3e0cc6b7ce3843204bfaff3fe97b6373a76938
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
What it is
The Relational Memory Core (RMC) is a recurrent memory module in which stored memories interact with one another through multi-head dot product attention. The paper starts from the concern that standard memory architectures may struggle with relational reasoning, meaning tasks that depend on understanding how entities are connected.
The memory is a fixed set of slots, and the same attention operation is used both to compute interactions between memories and to incorporate new input. The authors embed this update into an LSTM, reading the memory matrix as a matrix of cell states. In contrast to previous work, the attention is applied between memories at a single time step, not across all previous representations.
The paper reports large gains in reinforcement learning (Mini PacMan), program evaluation and language modeling, and says its results on WikiText-103, Project Gutenberg and GigaWord were the best reported at the time. For language modeling the authors chose 2500 total units, 4 heads, 1 memory, a 5-layer MLP and 1 attention block, based on validation error on WikiText-103. They say the single memory slot was chosen mainly because language modeling needs a large number of parameters, and they do not claim that a single slot is best for the task.
Key idea. The paper introduces the Relational Memory Core, a memory module that uses multi-head dot product attention so that memories can interact, improving recurrent networks on tasks needing relational reasoning.
- relational memory core
- rmc
- relational recurrent neural networks
- relational rnn
- relational reasoning
- memory-based neural networks
- language modeling
- wikitext-103
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{santoro2018relationalrecurrentneuralnetworks,
title={Relational recurrent neural networks},
author={Adam Santoro and Ryan Faulkner and David Raposo and Jack Rae and Mike Chrzanowski and Theophane Weber and Daan Wierstra and Oriol Vinyals and Razvan Pascanu and Timothy Lillicrap},
year={2018},
eprint={1806.01822},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1806.01822},
}