Introduction
Giving neural networks the ability to store and recall information over long time horizons is a massive challenge. Standard Recurrent Neural Networks (RNNs) and LSTMs struggle to retain information over thousands of steps. To fix this, researchers have historically built architectures that mimic standard computers—bolting an external "memory bank" onto a neural "controller" (e.g., Neural Turing Machines and Differentiable Neural Computers, or DNCs).
However, these external memory architectures require complex, hand-designed attention mechanisms to explicitly calculate where to read and write. This explicit addressing is computationally expensive; for instance, a DNC's runtime and memory overhead grows quadratically with the size of its memory due to the need to maintain temporal linkage matrices.
This paper introduces Multigrid Neural Memory, a novel architecture that embeds large-scale, long-term memory directly into the computational flow of a deep neural network. The authors ask: can we build a network where large-scale, addressable memory emerges implicitly just by changing how the neurons are wired together?
Methods: Implicit Memory via Multigrid Routing
The authors abandon the "external memory bank" paradigm. Instead, memory is treated as a first-class citizen, distributed and co-located alongside computation throughout the network's layers.
The core building block is the Multigrid Memory Layer, which merges two existing concepts:
- Convolutional LSTMs: Standard LSTMs where internal matrix multiplications are replaced with spatial convolutions.
- Multigrid Routing: A wiring topology (borrowed from computer vision) that organizes representations into a spatial pyramid of different resolutions.
Instead of routing signals only to adjacent spatial neighbors, the multigrid structure connects coarse-to-fine and fine-to-coarse grids. This allows a signal to hop up the pyramid to a low-resolution grid, move across the network, and hop back down. Consequently, the pathway between any two neurons shrinks from $O(S)$ layers to $O(\log S)$ layers (where $S$ is the spatial diameter).
Because the network can route information so efficiently across this spatial hierarchy, it gains an implicit capacity for attention. The network learns its own dynamic routing strategy to read and write to specific memory cells without needing an explicit attention mask or a separate memory controller. Furthermore, because the underlying operation is convolution, the memory capacity can be scaled up simply by increasing the grid size, without adding any new trainable parameters.
Key Insights
- Attention can be an emergent property: You don't necessarily need to hard-code an attention mechanism (like in Transformers or NTMs). If you provide a network with an efficient enough routing topology, attentional behavior naturally emerges as the network learns to solve the task.
- Decoupling memory size from parameter count: In a standard fully connected network, more memory means more weights. Here, because memory is accessed via convolutional filters sliding over a spatial grid of LSTM cells, you can drastically increase the memory grid size without increasing the parameter count.
- Interoperability: Because the memory is just a specialized Convolutional LSTM grid, it can be easily interfaced with standard CNNs. You can attach "reader" CNNs that treat the memory grid's hidden states as just another input feature map.
Datasets and Results
The authors evaluate their architecture across a diverse set of domains, demonstrating significant improvements over baseline models:
- Mapping & Localization (Synthetic): A custom 2D maze navigation task (15x15 and 25x25 grids) where an agent must explore an environment and later recall the locations of specific visual patches. On the complex 25x25 maze, the Multigrid network achieved a near-perfect 99.17% F-score and successfully retained memory over trajectories of 1,500+ time steps. The DNC baseline completely failed on this task (24.44% F-score) because its explicit attention mechanism couldn't scale efficiently to the required memory size.
- Algorithmic Tasks: Priority Sort and Associative Recall tasks, using both 1D random vectors and sequences of 2D MNIST images. On the difficult "Priority Sort + Classification" task, the Multigrid network achieved a 0.0864 error rate, roughly half the error of the DNC (0.1659), while learning significantly faster.
- Natural Language Processing: The bAbI question answering dataset, which consists of 20 tasks testing diverse aspects of language understanding and reasoning. Despite using a 1D variant with roughly 6x less memory capacity than the DNC baseline (2.86K vs 16.38K), the Multigrid network achieved a lower mean error rate (9.2% vs 16.7%) and failed fewer tasks on average (5.4 vs 11.2).
Limitations and Future Work
While the Multigrid network vastly outperformed the DNC on average in the bAbI QA tasks, the authors note that the DNC's absolute best single run slightly edged out the Multigrid network's best run (3.8% vs 7.5% error). However, the DNC's performance was highly unstable with massive variance, whereas the Multigrid approach was much more consistent.
For future work, the authors suggest that these results should prompt the field to rethink prevailing design principles for neural architectures. The success of multigrid wiring proves that innovating on the spatial connectivity of a network can be just as impactful as innovating on its depth.
Summary updated