Skip to main content
QUICK REVIEW

[Paper Review] Reinforcement Learning Neural Turing Machines

Wojciech Zaremba, Ilya Sutskever|arXiv (Cornell University)|May 4, 2015
Reinforcement Learning in RoboticsComputer Science16 references98 citations
TL;DR

This paper proposes the Reinforcement Learning Neural Turing Machine (RL-NTM), which combines policy gradient learning (Reinforce) for memory access with backpropagation for writing to memory, enabling efficient, constant-time memory access. The RL-NTM can, in principle, learn programs of unbounded running time and successfully solves algorithmic tasks beyond the reach of fully differentiable NTMs.

ABSTRACT

The expressive power of a machine learning model is closely related to the number of sequential computational steps it can learn. For example, Deep Neural Networks have been more successful than shallow networks because they can perform a greater number of sequential computational steps (each highly parallel). The Neural Turing Machine (NTM) [8] is a model that can compactly express an even greater number of sequential computational steps, so it is even more powerful than a DNN. Its memory addressing operations are designed to be differentiable; thus the NTM can be trained with backpropagation. While differentiable memory is relatively easy to implement and train, it necessitates accessing the entire memory content at each computational step. This makes it difficult to implement a fast NTM. In this work, we use the Re inforce algorithm to learn where to access the memory, while using backpropagation to learn what to write to the memory. We call this model the RL-NTM. Reinforce allows our model to access a constant number of memory cells at each computational step, so its implementation can be faster. The RL-NTM is the first mo del that can, in principle, learn programs of unbounded running time. We successfully trained the RL-NTM to solve a number of algorithmic tasks that are simpler than the ones solvable by the fully differentiable NTM. As the RL-NTM is a fairly intricate model, we needed a method for verifying the correctness of our implementation. To do so, we developed a simple technique for numerically checking arbitrary implementations of models that use Reinforce, which may be of independent interest.

Motivation & Objective

  • To address the inefficiency of fully differentiable Neural Turing Machines (NTMs), which require accessing all memory cells at each step.
  • To enable models to learn programs of unbounded running time by decoupling memory access from differentiable optimization.
  • To develop a training method that combines reinforcement learning for memory addressing with backpropagation for memory writing.
  • To create a verification technique for complex models using the Reinforce algorithm, applicable beyond this specific model.

Proposed method

  • Uses the Reinforce algorithm to learn stochastic policies for selecting which memory locations to read from and write to.
  • Employs backpropagation through time to train the network’s weights and the write operations, ensuring gradient flow for learning.
  • Restricts memory access to a constant number of cells per step, significantly improving computational efficiency over full-memory access.
  • Introduces a numerical verification technique to validate implementations of models trained with the Reinforce algorithm.
  • Designs a hybrid training regime where memory access is policy-learned (via Reinforce) and memory content updates are differentiable (via backpropagation).
  • Applies the model to algorithmic tasks requiring sequential reasoning, such as copying and sorting sequences.

Experimental results

Research questions

  • RQ1Can a model trained with a hybrid approach of Reinforce and backpropagation learn to perform complex algorithmic tasks more efficiently than a fully differentiable NTM?
  • RQ2Does decoupling memory access learning from differentiable optimization enable the model to scale to programs of unbounded running time?
  • RQ3Can the proposed numerical verification technique reliably validate implementations of Reinforce-based models?
  • RQ4How does the RL-NTM’s performance compare to the original NTM on tasks requiring sequential computation?
  • RQ5What is the impact of constant-time memory access on training speed and model scalability?

Key findings

  • The RL-NTM successfully learns to solve algorithmic tasks such as sequence copying and sorting, which are more complex than those solved by the fully differentiable NTM.
  • By restricting memory access to a constant number of cells per step, the RL-NTM achieves significantly faster inference and training compared to the original NTM.
  • The model can, in principle, learn programs of unbounded running time due to the non-differentiable, policy-based memory access mechanism.
  • The proposed numerical verification technique successfully validated the RL-NTM implementation, demonstrating its general applicability to other Reinforce-based models.
  • The hybrid training approach—using Reinforce for access and backpropagation for writing—proves effective in learning complex sequential behaviors.
  • The RL-NTM outperforms the standard NTM in terms of computational efficiency while maintaining strong generalization on algorithmic tasks.

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.