Deep Learning with Dynamic Computation Graphs
Moshe Looks, Marcello Herreshoff, DeLesley S. Hutchins et al. · arXiv (Cornell University) · 2017
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.
Cited by 82 works. doi:10.48550/arxiv.1702.02181 Open-access PDF
Authors
References
- Torch7: A Matlab-like Environment for Machine Learning
- Improving the speed of neural networks on CPUs
- Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks
- Recursive distributed representations
- Learning task-dependent distributed representations by backpropagation through structure
- GPU implementation of neural networks
- Generalising monads to arrows
- Learning to Compose Neural Networks for Question Answering
- Feed-Forward Networks with Attention Can Solve Some Long-Term Memory Problems
- Monadic parser combinators