On-the-fly Operation Batching in Dynamic Computation Graphs
Not on the map. Why?
Abstract (arXiv)
Dynamic neural network toolkits such as PyTorch, DyNet, and Chainer offer more flexibility for implementing models that cope with data of varying dimensions and structure, relative to toolkits that operate on statically declared computations (e.g., TensorFlow, CNTK, and Theano). However, existing toolkits - both static and dynamic - require that the developer organize the computations into the batches necessary for exploiting high-performance algorithms and hardware. This batching task is generally difficult, but it becomes a major hurdle as architectures become complex. In this paper, we present an algorithm, and its implementation in the DyNet toolkit, for automatically batching operations. Developers simply write minibatch computations as aggregations of single instance computations, and the batching algorithm seamlessly executes them, on the fly, using computationally efficient batched operations. On a variety of tasks, we obtain throughput similar to that obtained with manual batches, as well as comparable speedups over single-instance learning on architectures that are impractical to batch manually.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 May 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 2; 2024: 2.
7 papers.
- 2021Effective Batching for Recurrent Neural Network Grammarscited by 12
- 2021TOD: GPU-accelerated Outlier Detection via Tensor Operationscited by 6
- 2024Performance Control in Early Exiting to Deploy Large Models at the Same Cost of Smaller Onescited by 4
- 2023ED-Batch: Efficient Automatic Batching of Dynamic Neural Networks via Learned Finite State Machinescited by 1
- 2023ACRoBat: Optimizing Auto-batching of Dynamic Deep Learning at Compile Timecited by 1
- 2022An Artificial Neural Network Functionalized by Evolutioncited by 0
- 2024Palantir: Towards Efficient Super Resolution for Ultra-high-definition Live Streamingcited by 0
- 2024Performance Control in Early Exiting to Deploy Large Models at the Same Cost of Smaller Ones26 Dec 2024
- 2024Palantir: Towards Efficient Super Resolution for Ultra-high-definition Live Streaming12 Aug 2024
- 2023ACRoBat: Optimizing Auto-batching of Dynamic Deep Learning at Compile Time17 May 2023
- 2023ED-Batch: Efficient Automatic Batching of Dynamic Neural Networks via Learned Finite State Machines8 Feb 2023
- 2022An Artificial Neural Network Functionalized by Evolution16 May 2022
- 2021TOD: GPU-accelerated Outlier Detection via Tensor Operations26 Oct 2021
- 2021Effective Batching for Recurrent Neural Network Grammars31 May 2021