Deep Learning with Dynamic Computation Graphs

02/07/2017
by   Moshe Looks, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/27/2021

Efficient Graph Deep Learning in TensorFlow with tf_geometric

We introduce tf_geometric, an efficient and friendly library for graph d...
research
04/16/2019

Just-in-Time Dynamic-Batching

Batching is an essential technique to improve computation efficiency in ...
research
03/12/2020

Learning distributed representations of graphs with Geo2DR

We present Geo2DR, a Python library for unsupervised learning on graph-s...
research
03/06/2019

Fast Graph Representation Learning with PyTorch Geometric

We introduce PyTorch Geometric, a library for deep learning on irregular...
research
12/10/2018

Functional Design of Computation Graph

Representing the control flow of a computer program as a computation gra...
research
09/30/2015

Convolutional Networks on Graphs for Learning Molecular Fingerprints

We introduce a convolutional neural network that operates directly on gr...
research
02/09/2021

Dynamic Neural Networks: A Survey

Dynamic neural network is an emerging research topic in deep learning. C...

Please sign up or login with your details

Forgot password? Click here to reset