English

Just-in-Time Dynamic-Batching

Distributed, Parallel, and Cluster Computing 2019-04-17 v1 Databases

Abstract

Batching is an essential technique to improve computation efficiency in deep learning frameworks. While batch processing for models with static feed-forward computation graphs is straightforward to implement, batching for dynamic computation graphs such as syntax trees or social network graphs is challenging due to variable computation graph structure across samples. Through simulation and analysis of a Tree-LSTM model, we show the key trade-off between graph analysis time and batching effectiveness in dynamic batching. Based on this finding, we propose a dynamic batching method as an extension to MXNet Gluon's just-in-time compilation (JIT) framework. We show empirically that our method yields up to 6.25 times speed-up on a common dynamic workload, a tree-LSTM model for the semantic relatedness task.

Keywords

Cite

@article{arxiv.1904.07421,
  title  = {Just-in-Time Dynamic-Batching},
  author = {Sheng Zha and Ziheng Jiang and Haibin Lin and Zhi Zhang},
  journal= {arXiv preprint arXiv:1904.07421},
  year   = {2019}
}

Comments

NeurIPS 2018 Systems for ML Workshop

R2 v1 2026-06-23T08:40:44.924Z