AI & ML Atlas
Neural NetworksarchitectureAnimated walkthrough
Neural Turing Machines
A network with an external memory it can read from and write to with attention.
The idea
A controller network (often an LSTM) is attached to a memory matrix. Read and write heads address memory by content (similarity to a key) and by location (shifting), using soft attention so the whole thing is differentiable and trainable by gradient descent. It learned simple algorithms such as copying and sorting.
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1The controller reads the input and emits head parameters.
- 2The heads compute attention weights over memory rows (content then location).
- 3Read a weighted blend of memory rows.
- 4Write by erasing and adding in the attended rows.
- 5The controller produces the output and continues.
1/5
Step by step
- 1The controller reads the input and emits head parameters.
- 2The heads compute attention weights over memory rows (content then location).
- 3Read a weighted blend of memory rows.
- 4Write by erasing and adding in the attended rows.
- 5The controller produces the output and continues.
Where it is used
Research on algorithmic reasoning and memory.
Watch out for
Hard to train and unstable at scale; transformers took over.