Relational recurrent neural networks
Adam Santoro, Ryan Faulkner, David Raposo, Jack Rae, Mike Chrzanowski, Theophane Weber, Daan Wierstra, Oriol Vinyals, Razvan Pascanu, Timothy Lillicrap
TL;DR
The paper introduces the Relational Memory Core (RMC), a memory-augmented recurrent architecture that enables explicit interactions between memory slots through multi-head attention. By integrating recurrence and attention, the RMC improves relational reasoning over time, addressing limitations of traditional memory systems. Empirical results span a diverse set of tasks, including Nth Farthest, LTE program evaluation, Mini Pacman with partial observability, and language modeling on WikiText-103, Gutenberg, and GigaWord, where the RMC achieves notable gains and in some cases state-of-the-art perplexities. The work suggests that explicit memory-to-memory interactions can substantially enhance relational reasoning in sequential domains and points to future directions involving hybrid memory schemes and online, scalable processing. Overall, the RMC provides a flexible, tunable backbone for relational reasoning in sequences with broad applicability across RL, symbolic reasoning, and language modeling.
Abstract
Memory-based neural networks model temporal data by leveraging an ability to remember information for long periods. It is unclear, however, whether they also have an ability to perform complex relational reasoning with the information they remember. Here, we first confirm our intuitions that standard memory architectures may struggle at tasks that heavily involve an understanding of the ways in which entities are connected -- i.e., tasks involving relational reasoning. We then improve upon these deficits by using a new memory module -- a \textit{Relational Memory Core} (RMC) -- which employs multi-head dot product attention to allow memories to interact. Finally, we test the RMC on a suite of tasks that may profit from more capable relational reasoning across sequential information, and show large gains in RL domains (e.g. Mini PacMan), program evaluation, and language modeling, achieving state-of-the-art results on the WikiText-103, Project Gutenberg, and GigaWord datasets.
