Executive Summary
Neural Turing Machines (NTMs) are powerful architectures that combine neural networks with external memory banks. However, they are notoriously difficult to train, often suffering from erratic convergence and overfitting. This research proposes three "structured memory" architectures—NTM1, NTM2, and NTM3—that utilize hierarchical and "hidden" memory layers to smooth updates. These modifications result in faster training and higher accuracy on algorithmic tasks by preventing volatile memory changes.
Introduction
The original NTM design utilizes a simple, linearly organized memory. While effective for basic tasks, this structure presents a significant bottleneck as memory size increases. Models often struggle to converge or exhibit sudden, massive jumps in test loss, a sign of overfitting. The authors hypothesize that the "dynamics" of the memory are too volatile: the controller modifies memory contents too drastically during training. To address this, they propose "memory smoothing"—architectural constraints that prevent memory content from deviating too far from expected values during read/write operations.
Architectural Variants
The authors introduce the concept of Memory Visibility, distinguishing between Controlled Memory (modified directly by write heads) and Hidden Memory (updated based on other memory blocks, not directly accessible by the controller).
Three variants were developed:
- NTM1: Introduces a hidden memory ($M_h$) acting as a buffer. The controller writes to a controlled memory ($M_c$), which updates $M_h$ via a smoothing function. The model reads only from the smoothed $M_h$.
- NTM2: A hierarchical approach where two memory blocks ($M_1$ and $M_2$) are controlled by write heads, but the lower-level memory ($M_2$) is also influenced by the contents of the upper-level memory ($M_1$).
- NTM3: Designed for multi-layer controllers (e.g., a 2-layer LSTM). Each controller layer writes to a dedicated memory block, with the deeper memory receiving updates from the layer above.
Experimental Setup
The models were evaluated on two classic algorithmic benchmarks:
- Copy Task: Storing and repeating a sequence of random binary vectors.
- Associative Recall Task: Retrieving a paired item from a sequence when prompted with its partner.
To ensure the models learned general algorithms rather than memorizing patterns, training iterations used randomized sequence lengths and item values.
Results
The structured memory variants demonstrated significant improvements in training stability and speed.
- Faster Convergence: In the Associative Recall task, NTM2 converged in approximately 37,000 iterations, outperforming the 50,000 iterations required by the original NTM.
- Stability: NTM1 and NTM2 showed significantly fewer loss "spikes" compared to the original NTM, indicating that memory smoothing effectively regularizes the training process.
- Efficiency: NTM1 and NTM2 reached stability on the Copy task much faster than the original NTM when using a single read/write head.
Discussion
The core insight is that smoothing equals stability. Decoupling the controller from the final "read" memory (NTM1) or creating a hierarchy (NTM2) prevents noisy gradients from destabilizing the model. Interestingly, NTM3—the most complex variant—performed the worst. Attaching memory to intermediate LSTM layers introduced excessive noise, leading to poor convergence and frequent outliers. This suggests that while structure helps, improper integration with the controller can be detrimental.
Conclusion
Structured memory provides a robust path forward for NTM-like architectures. NTM2, in particular, proved the most effective for complex tasks, suggesting that multi-level controlled memory helps organize information transformations. Future work will explore how these gains scale to real-world natural language processing and complex reasoning tasks, such as synthetic Question Answering (QA) benchmarks.
Summary updated