A Think Again Media Group publication
Bot Stumper

A neural machine tested beyond the length of its lessons

Neural Turing Machine experiments and a separate place for storage

By Phil Springer, Editor · Published · Bot Stumper

Neural Turing Machine experiments and a separate place for storage

The Neural Turing Machine introduced by Alex Graves, Greg Wayne and Ivo Danihelka in 2014 coupled a neural-network controller to an external, addressable memory. The combined system learned from examples of inputs and desired outputs. Its memory interactions were differentiable, so the controller and storage operations could be trained together. The researchers reported preliminary results on copying, sorting and associative recall, presenting the architecture as a way to learn simple algorithms.

In the copying experiment, training sequences contained between 1 and 20 random eight-bit vectors. The researchers then examined performance on longer sequences. Their memory-interaction plots suggested that the network had learned an orderly copying procedure. Capacity remained bounded by the experimental memory, which had 128 locations. Once addressing wrapped around that store, earlier information was overwritten. The reported generalization therefore operated within the capacity of the tested system.

Mark Collier and Joeran Beel revisited the Neural Turing Machine in a 2018 implementation study. Their description separated computation in the controller from information stored in a memory matrix. Rows represented storage locations, and read and write heads accessed them through weighted attention. The controller could be a feedforward or recurrent network. Even with a feedforward controller, the complete system retained state because the external store persisted between steps. Their account also described the combination of content-based and location-based addressing.

The same study made reproduction an empirical issue. Collier and Beel noted that the original authors had supplied no implementation code, while several publicly available implementations reported unstable or unsuccessful training. Their own implementation learned three sequence tasks from the original experiments: copying, repeated copying and associative recall. These benchmarks involved storing sequences and recovering information after further inputs or specified repetitions. Comparisons showed that the initial contents of memory materially affected convergence time. The authors published their implementation and documented the choices behind it. Their results concerned both the architecture's capabilities and the conditions under which those capabilities had been reproduced.

In a separate 2015 investigation, Wei Zhang, Yang Yu and Bowen Zhou examined structured memory for the Neural Turing Machine. Their experiments had encountered convergence problems and unstable test performance, especially with larger stores. They proposed three architectural variants with additional or differently connected memory blocks. One variant separated a directly controlled store from a second store that accumulated its contents. Another connected both memory blocks to the controller through write heads. The study evaluated copying and associative recall using randomly generated binary inputs. Each model's experiments were repeated at least five times, and the displayed curves represented the most frequently observed behavior. Two variants showed faster convergence and fewer large error excursions than the original arrangement or the third variant. The third variant linked different controller layers to different memories, so that representations from intermediate layers also entered the storage system.

Related work by Karol Kurach, Marcin Andrychowicz and Ilya Sutskever explored a different connection between learned computation and addressable storage. Their Neural Random-Access Machines study first appeared in 2015 and was published as an ICLR conference paper in 2016. The model included operations on pointers, the addresses identifying entries in an external memory. Its experiments involved simple data structures including linked lists and binary trees. The authors emphasized that computation depth, memory size and the number of learned parameters could vary independently in this family of designs. They contrasted this with recurrent architectures in which those quantities were closely coupled. The authors reported successful learning on several tasks and generalization to arbitrary sequence lengths on easier ones. They also recorded difficulties for standard optimization methods on the deeply layered computations. The external store was variable in size, and the model was trained using input-output examples with backpropagation.

Jack Rae and his coauthors investigated another limitation in 2016: the cost of enlarging an external store. Their Sparse Access Memory study described how dense memory access in earlier systems consumed increasing computation and physical memory as storage grew. Their example assigned approximately 30 mebibytes of physical memory to a straightforward NTM with 64 stored entries and a 100-step sequence; at 64,000 entries, the overhead exceeded 29 gibibytes. They evaluated a different access scheme on synthetic sequence tasks, reasoning tests and character recognition. In their reported comparisons, an implementation ran up to 1,000 times faster and required up to 3,000 times less physical memory than non-sparse models. The authors also reported comparable data efficiency on their benchmark tasks. These were measurements of particular experimental systems and memory sizes. The authors reported experiments scaled to hundreds of thousands of memory locations and time steps. They also extended the sparse approach to a differentiable neural computer with temporal links between stored memories.

The Question

What did the Neural Turing Machine introduced in 2014 couple to its neural controller?

Show the answer

The Answer

External read-write memory. Graves, Wayne and Danihelka's architecture gave its controller a separate addressable store accessed through learned read and write operations.

Send this question to a friend

Read next

By clicking “Send me a stumper” you agree to Bot Stumper’s Terms of Use and Privacy Policy.