All models

Differentiable Neural Computer

Recurrent neural network that reads from and writes to an external memory matrix.

1,531 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (242 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
44K
Operations
1,531
Framework
PyTorch
Recurrent
Yes
Published
2016, Nature 538, 471-476
Cited by
1,412 (as of 28 October 2026)
Authors
Alex Graves, Greg Wayne, Malcolm Reynolds
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16130
Graph hash
832ad9875e914a3f95e6cba7e1af9de87c98038d55622688269d8d7a4fdda33e
Skeleton hash
a5b5a2252d9978126b818dcb91a77702dd6c0a02e9f82987df86b957c9668f66
Architecture hash
02676cf28057bcfe8b1aebab4d2d27a3c36f3f2b70aa37ed59b94fd90be263bc
Diagram SHA-256
981cd8fea029340653e901639c2c857a07486e29d8cbe5ec0ddd8827230e7e1f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model is a DNC set up for the task used by the example training script, the algorithmic task of repeatedly copying a given input string.

The Differentiable Neural Computer (DNC) is a neural network that can read from and write to an external memory matrix, which the paper compares to the random-access memory in a conventional computer. The motivation is that neural networks are limited in their ability to represent variables and data structures and to store data over long timescales. Like a conventional computer, a DNC can use its memory to represent and manipulate complex data structures, but it learns to do so from data.

The DNC is a recurrent neural network whose state at each timestep includes the current memory contents. A controller, typically a feedforward or LSTM network, receives the input concatenated with what was read from memory at the previous timestep. An access module does the writing and reading, with one component that tracks the order of memory writes and another that tracks which locations have been written to and not yet freed.

With supervised learning, the paper shows a DNC answering synthetic questions designed to emulate reasoning and inference problems in natural language. It also learns to find the shortest path between specified points and to infer the missing links in randomly generated graphs, and then generalizes to transport networks and family trees. With reinforcement learning, a DNC completes a moving blocks puzzle in which changing goals are specified by sequences of symbols.

Key idea. The paper introduces a neural network that reads from and writes to an external memory matrix and learns from data to represent and manipulate complex data structures.

  • Differentiable Neural Computer
  • DNC
  • external memory
  • memory-augmented neural network
  • neural network with dynamic external memory
  • hybrid computing
  • repeat copy task
  • read and write heads
  • neural computer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{Graves_2016, title={Hybrid computing using a neural network with dynamic external memory}, volume={538}, ISSN={1476-4687}, url={http://dx.doi.org/10.1038/nature20101}, DOI={10.1038/nature20101}, number={7626}, journal={Nature}, publisher={Springer Science and Business Media LLC}, author={Graves, Alex and Wayne, Greg and Reynolds, Malcolm and Harley, Tim and Danihelka, Ivo and Grabska-Barwińska, Agnieszka and Colmenarejo, Sergio Gómez and Grefenstette, Edward and Ramalho, Tiago and Agapiou, John and Badia, Adrià Puigdomènech and Hermann, Karl Moritz and Zwols, Yori and Ostrovski, Georg and Cain, Adam and King, Helen and Summerfield, Christopher and Blunsom, Phil and Kavukcuoglu, Koray and Hassabis, Demis}, year={2016}, month=Oct, pages={471–476} }