mlsanityData to 14 Oct 2026

ED-Batch: Efficient Automatic Batching of Dynamic Neural Networks via Learned Finite State Machines

arXiv 2302.03851 ↗First posted 8 Feb 2023cs.LG cs.SEcited by 1

Not on the map. Why?

Abstract (arXiv)

Batching has a fundamental influence on the efficiency of deep neural network (DNN) execution. However, for dynamic DNNs, efficient batching is particularly challenging as the dataflow graph varies per input instance. As a result, state-of-the-art frameworks use heuristics that result in suboptimal batching decisions. Further, batching puts strict restrictions on memory adjacency and can lead to high data movement costs. In this paper, we provide an approach for batching dynamic DNNs based on finite state machines, which enables the automatic discovery of batching policies specialized for each DNN via reinforcement learning. Moreover, we find that memory planning that is aware of the batching policy can save significant data movement overheads, which is automated by a PQ tree-based algorithm we introduce. Experimental results show that our framework speeds up state-of-the-art frameworks by on average 1.15x, 1.39x, and 2.45x for chain-based, tree-based, and lattice-based DNNs across CPU and GPU.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 11 of its 25 references that are in the map. First posted on arXiv 8 Feb 2023.

Builds on

11 of 25 references.

References · 11

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2015Bidirectional LSTM-CRF Models for Sequence Taggingcited by 546
  3. 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 306
  4. 2018Chinese NER Using Lattice LSTMcited by 81
  5. 2017DyNet: The Dynamic Neural Network Toolkitcited by 21
  6. 2020Nimble: Lightweight and Parallel GPU Task Scheduling for Deep Learningcited by 17
  7. 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
  8. 2017Deep Learning with Dynamic Computation Graphscited by 15
  9. 2016Lattice-Based Recurrent Neural Network Encoders for Neural Machine Translationcited by 11
  10. 2017On-the-fly Operation Batching in Dynamic Computation Graphscited by 7
  11. 2019Just-in-Time Dynamic-Batchingcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.