Skip to main content
QUICK REVIEW

[Paper Review] Memory Augmented Neural Networks with Wormhole Connections

Çaǧlar Gülçehre, Sarath Chandar|arXiv (Cornell University)|Jan 30, 2017
Topic ModelingComputer Science8 references44 citations
TL;DR

This paper proposes TARDIS, a memory-augmented neural network that uses discrete wormhole connections via an external memory to mitigate vanishing gradients in long sequences. By storing and retrieving past hidden states through tied read/write heads after memory saturation, TARDIS enables efficient long-term dependency learning, achieving state-of-the-art performance on algorithmic tasks and competitive results on real-world NLP benchmarks like SNLI and sequential MNIST.

ABSTRACT

Recent empirical results on long-term dependency tasks have shown that neural networks augmented with an external memory can learn the long-term dependency tasks more easily and achieve better generalization than vanilla recurrent neural networks (RNN). We suggest that memory augmented neural networks can reduce the effects of vanishing gradients by creating shortcut (or wormhole) connections. Based on this observation, we propose a novel memory augmented neural network model called TARDIS (Temporal Automatic Relation Discovery in Sequences). The controller of TARDIS can store a selective set of embeddings of its own previous hidden states into an external memory and revisit them as and when needed. For TARDIS, memory acts as a storage for wormhole connections to the past to propagate the gradients more effectively and it helps to learn the temporal dependencies. The memory structure of TARDIS has similarities to both Neural Turing Machines (NTM) and Dynamic Neural Turing Machines (D-NTM), but both read and write operations of TARDIS are simpler and more efficient. We use discrete addressing for read/write operations which helps to substantially to reduce the vanishing gradient problem with very long sequences. Read and write operations in TARDIS are tied with a heuristic once the memory becomes full, and this makes the learning problem simpler when compared to NTM or D-NTM type of architectures. We provide a detailed analysis on the gradient propagation in general for MANNs. We evaluate our models on different long-term dependency tasks and report competitive results in all of them.

Motivation & Objective

  • Address the vanishing gradient problem in recurrent networks during long sequence modeling.
  • Improve generalization to sequences longer than seen during training by enabling efficient access to past hidden states.
  • Develop a simpler, more efficient memory mechanism than existing MANNs like NTM and D-NTM by using discrete addressing and tied read/write operations.
  • Demonstrate that external memory can create effective 'wormhole' connections that shortcut gradient flow through time.
  • Evaluate the model on both algorithmic tasks and real-world NLP benchmarks to validate robustness and generalization.

Proposed method

  • Propose TARDIS, a memory-augmented RNN with an external memory matrix to store controller hidden states.
  • Use discrete addressing for read and write operations to avoid gradient diffusion from continuous attention mechanisms.
  • Tie the read and write heads after memory is full, enabling the controller to revisit stored states via a heuristic, not learned routing.
  • Store sequential hidden states in memory slots in order until full, then use the tied heads for selective retrieval.
  • Apply Gumbel-Softmax and REINFORCE with auxiliary cost for differentiable training of discrete memory operations.
  • Integrate memory access as a learned mechanism that enables the controller to dynamically access past representations, forming 'wormhole' connections across time.

Experimental results

Research questions

  • RQ1Can external memory in MANNs reduce the vanishing gradient problem by creating shortcut connections across time?
  • RQ2How does discrete memory addressing compare to continuous addressing in terms of gradient stability and training efficiency?
  • RQ3Can a simple, tied read/write mechanism in a memory-augmented RNN outperform complex architectures like NTM and D-NTM on long-term dependency tasks?
  • RQ4To what extent can TARDIS generalize to sequences longer than those seen during training?
  • RQ5Does the use of wormhole-like memory connections improve performance on real-world NLP tasks such as SNLI and sequential MNIST?

Key findings

  • TARDIS successfully solves both the copy and associative recall tasks with 100% success rate using both Gumbel-Softmax and REINFORCE with auxiliary cost.
  • On the sequential MNIST task, TARDIS with 15 digits achieved near-perfect performance, outperforming standard LSTM and showing stable convergence.
  • On the SNLI benchmark, TARDIS with Gumbel-Softmax achieved 84.3% test accuracy, surpassing the baseline LSTM and attention-based models.
  • TARDIS with Gumbel-Softmax converged faster than the REINFORCE variant, indicating improved training stability and efficiency.
  • Theoretical and empirical analysis confirms that wormhole connections from memory reduce gradient vanishing, especially in long sequences.
  • The model generalizes well to longer sequences than seen during training, demonstrating robustness in extrapolation capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.