[Paper Review] Dynamic Neural Turing Machine with Soft and Hard Addressing Schemes
This paper introduces the Dynamic Neural Turing Machine (D-NTM), a novel NTM variant that learns a nonlinear, location-based addressing scheme using trainable address vectors alongside content vectors in memory. By combining continuous and discrete attention mechanisms, the D-NTM outperforms NTM and LSTM baselines on Facebook bAbI tasks, with discrete attention yielding superior results on episodic question-answering, demonstrating improved memory control and long-term dependency learning.
We extend neural Turing machine (NTM) model into a dynamic neural Turing machine (D-NTM) by introducing a trainable memory addressing scheme. This addressing scheme maintains for each memory cell two separate vectors, content and address vectors. This allows the D-NTM to learn a wide variety of location-based addressing strategies including both linear and nonlinear ones. We implement the D-NTM with both continuous, differentiable and discrete, non-differentiable read/write mechanisms. We investigate the mechanisms and effects of learning to read and write into a memory through experiments on Facebook bAbI tasks using both a feedforward and GRUcontroller. The D-NTM is evaluated on a set of Facebook bAbI tasks and shown to outperform NTM and LSTM baselines. We have done extensive analysis of our model and different variations of NTM on bAbI task. We also provide further experimental results on sequential pMNIST, Stanford Natural Language Inference, associative recall and copy tasks.
Motivation & Objective
- To address the limitation of fixed linear addressing in the original NTM by introducing a learnable, nonlinear location-based addressing scheme.
- To evaluate whether a dynamic addressing mechanism enables better performance on complex, real-world tasks such as episodic question-answering and natural language inference.
- To investigate the effectiveness of discrete, non-differentiable attention mechanisms in memory networks compared to continuous, differentiable ones.
- To assess the generalization and scalability of the D-NTM across diverse tasks, including algorithmic benchmarks and sequential learning tasks.
- To provide a unified model architecture without task-specific modifications, enabling fair comparison with NTM and LSTM baselines.
Proposed method
- Extends the NTM by introducing a dual-vector memory structure: each memory cell stores a trainable content vector and a learnable address vector.
- Employs both continuous (differentiable) and discrete (non-differentiable) attention mechanisms for reading and writing to memory.
- Uses a GRU or feedforward controller to generate read/write operations based on the current input and memory state.
- Applies REINFORCE with baseline estimation for training the discrete attention mechanism, enabling end-to-end learning despite non-differentiability.
- Implements a least-recently-used (LRU) memory management strategy to handle memory allocation and deletion.
- Employs curriculum learning for the feedforward controller with discrete attention to improve training stability and performance.
Experimental results
Research questions
- RQ1Can a learnable, nonlinear addressing scheme improve the performance of neural Turing machines on complex, real-world tasks?
- RQ2Does discrete attention outperform continuous attention in memory-based models, particularly for tasks requiring precise memory retrieval?
- RQ3Can the D-NTM generalize across diverse tasks such as bAbI, sequential MNIST, SNLI, and algorithmic tasks without task-specific architectural modifications?
- RQ4How does the D-NTM compare to LSTM and standard NTM in handling long-term dependencies and episodic memory?
- RQ5What is the impact of curriculum learning and attention mechanism choice on the model’s ability to learn complex memory interactions?
Key findings
- The D-NTM outperforms both NTM and LSTM baselines on the full Facebook bAbI task suite, achieving higher accuracy across all 18 tasks.
- The D-NTM with discrete attention and a GRU controller achieves 80.9% test accuracy on the Stanford Natural Language Inference (SNLI) task, surpassing both LSTM (77.6%) and NTM (80.2%).
- On the sequential p-MNIST task, the D-NTM demonstrates strong performance in learning long-term dependencies, outperforming comparable models.
- The D-NTM with continuous attention successfully solves both the copy and associative recall tasks, while the discrete-attention variant fails on associative recall, indicating task-specific sensitivity.
- The discrete attention mechanism significantly improves performance on episodic question-answering tasks, suggesting it enables more precise memory access than continuous attention.
- Curriculum learning with the feedforward controller and discrete attention leads to a substantial performance improvement, highlighting its importance in training stability and convergence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.