Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Device Placement Optimization with Reinforcement Learning

About

The past few years have witnessed a growth in size and computational requirements for training and inference with neural networks. Currently, a common approach to address these requirements is to use a heterogeneous distributed environment with a mixture of hardware devices such as CPUs and GPUs. Importantly, the decision of placing parts of the neural models on devices is often made by human experts based on simple heuristics and intuitions. In this paper, we propose a method which learns to optimize device placement for TensorFlow computational graphs. Key to our method is the use of a sequence-to-sequence model to predict which subsets of operations in a TensorFlow graph should run on which of the available devices. The execution time of the predicted placements is then used as the reward signal to optimize the parameters of the sequence-to-sequence model. Our main result is that on Inception-V3 for ImageNet classification, and on RNN LSTM, for language modeling and neural machine translation, our model finds non-trivial device placements that outperform hand-crafted heuristics and traditional algorithmic methods.

Azalia Mirhoseini, Hieu Pham, Quoc V. Le, Benoit Steiner, Rasmus Larsen, Yuefeng Zhou, Naveen Kumar, Mohammad Norouzi, Samy Bengio, Jeff Dean• 2017

Related benchmarks

TaskDatasetResultRank
Embedding Table PlacementDLRM-20 4 (train)
Latency (ms)22.4
8
Device PlacementResNet
Latency per GPU0.0088
7
Device PlacementInception V3
Latency (G)0.0128
7
Embedding Table PlacementDLRM 1.0 (train)
Running Time (ms)17
7
Embedding Table PlacementDLRM 1.0 (test)
Latency (ms)16
7
Embedding Table PlacementDLRM-100 (test)
Cost (ms)94.8
7
Embedding Table PlacementProd-80 8 (train)
Cost (ms)56.6
7
Showing 7 of 7 rows

Other info

Follow for update