Skip to main content
QUICK REVIEW

[Paper Review] Structured Memory for Neural Turing Machines

Wei Zhang, Yu Yang|arXiv (Cornell University)|Oct 14, 2015
Ferroelectric and Negative Capacitance DevicesEngineering3 references9 citations
TL;DR

This paper proposes three structured memory architectures—NTM1, NTM2, and NTM3—for Neural Turing Machines to improve training stability and convergence. By introducing hierarchical or auxiliary memory components that smooth memory content updates, NTM1 and NTM2 achieve faster convergence and reduced overfitting on copy and associative recall tasks compared to standard NTM, with NTM2 showing the most consistent performance.

ABSTRACT

Neural Turing Machines (NTM) contain memory component that simulates "working memory" in the brain to store and retrieve information to ease simple algorithms learning. So far, only linearly organized memory is proposed, and during experiments, we observed that the model does not always converge, and overfits easily when handling certain tasks. We think memory component is key to some faulty behaviors of NTM, and better organization of memory component could help fight those problems. In this paper, we propose several different structures of memory for NTM, and we proved in experiments that two of our proposed structured-memory NTMs could lead to better convergence, in term of speed and prediction accuracy on copy task and associative recall task as in (Graves et al. 2014).

Motivation & Objective

  • Address the instability and overfitting issues observed in standard Neural Turing Machines (NTM) during training, especially with larger memory sizes.
  • Investigate whether structured memory organization can stabilize memory content dynamics and improve model convergence.
  • Evaluate whether introducing auxiliary or hierarchical memory components can reduce parameter overfitting and enhance generalization.
  • Compare the performance of three novel NTM variants—NTM1, NTM2, and NTM3—against the original NTM on standard benchmark tasks.
  • Determine the impact of memory structure on training speed, prediction accuracy, and outlier frequency in loss curves.

Proposed method

  • Introduce a hidden memory block (Mh) in NTM1 that accumulates content from the controlled memory (Mc) via a weighted update: Mh(t) = a*Mh(t-1) + b*Mc(t), enabling memory smoothing.
  • In NTM2, use a two-layer hierarchical memory structure where the upper layer (M1) is written to by a dedicated write head, and the lower layer (M2) is updated by both M1 and a second write head, with M2 used for final read.
  • In NTM3, connect multiple memory blocks to different layers of a deep LSTM controller, where each layer's output drives a separate write head, and lower-level memories are updated by both upper-layer memory and write head outputs.
  • Use a shared controller with LSTM for all models, applying the same 'erase and add' write operation h() to update memory based on controller output, write weights, and previous memory state.
  • Apply RMSProp optimization with fixed hyperparameters (lr=1e-4, momentum=0.9, decay=0.95) and binary cross-entropy loss for all models.
  • Repeat experiments at least five times per model and report the most frequent convergence pattern to ensure reliability and reduce bias from random initialization.

Experimental results

Research questions

  • RQ1Can structured memory components improve convergence speed and stability in Neural Turing Machines compared to standard linear memory?
  • RQ2Does introducing auxiliary or hierarchical memory reduce overfitting and outlier losses during training on sequence tasks?
  • RQ3How do different memory architectures (NTM1, NTM2, NTM3) compare in terms of prediction accuracy and convergence frequency on copy and associative recall tasks?
  • RQ4Does memory structure influence the model's ability to generalize, particularly when memory size increases?
  • RQ5Why does NTM3, which uses intermediate LSTM layer outputs, perform worse than NTM1 and NTM2 despite its deeper memory integration?

Key findings

  • NTM1 and NTM2 show significantly faster convergence and fewer outliers in training loss compared to standard NTM on both copy and associative recall tasks.
  • NTM2 converges in approximately 37,000 iterations on the associative recall task, outperforming NTM and NTM1, which require around 50,000 iterations.
  • NTM1 and NTM2 produce fewer high-loss outliers during training, indicating reduced overfitting and more stable parameter tuning.
  • NTM3 exhibits frequent outliers and poor convergence, especially in the copy task, suggesting that intermediate-layer memory integration introduces instability and noise.
  • The use of a hidden memory block (NTM1) or hierarchical memory (NTM2) leads to more consistent and reliable training outcomes than the original NTM or deeper memory structures.
  • Despite faster convergence, standard NTM shows higher outlier frequency and less stable performance, particularly with two read/write heads, indicating inherent instability in unstructured memory design.

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.