Deep Learning with Dynamic Computation Graphs

By Moshe Looks, Marcello Herreshoff, DeLesley S. Hutchins, Peter Norvig. 2017

139 citations recorded by the source corpus.

Neural networks that compute over graph structures are a natural fit for problems in a variety of domains, including natural language (parse trees) and cheminformatics (molecular graphs). However, since the computation graph has a different shape and size for every input, such networks do not directly support batched training or inference. They are also difficult to implement in popular deep learning libraries, which are based on static data-flow graphs. We introduce a technique called dynamic batching, which not only batches together operations between different input graphs of dissimilar shape, but also between different nodes within a single input graph. The technique allows us to create static graphs, using popular libraries, that emulate dynamic computation graphs of arbitrary shape and size. We further present a high-level library of compositional blocks that simplifies the creation of dynamic graph models. Using the library, we demonstrate concise and batch-wise parallel implementations for a variety of models from the literature.

Subfields: Artificial Intelligence, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Quoc V. Le
  3. Caiming Xiong
  4. Richard Socher
  5. Jianfeng Gao
  6. Percy Liang
  7. Luke S. Zettlemoyer
  8. Sergey Levine

In Model Architectures

  1. Richard Socher
  2. Caiming Xiong
  3. Yoshua Bengio
  4. Bryan McCann
  5. Dawn Song
  6. Mohit Iyyer
  7. James Bradbury
  8. Eric P. Xing

Citations in the corpus