Skip to main content
QUICK REVIEW

[Paper Review] GDP: Generalized Device Placement for Dataflow Graphs

Yanqi Zhou, Sudip Roy|arXiv (Cornell University)|Sep 28, 2019
Ferroelectric and Negative Capacitance DevicesEngineering21 references25 citations
TL;DR

This paper proposes GDP, a generalized device placement method for dataflow graphs using a scalable graph neural network with sequential attention and superposition-based fine-tuning. It achieves 16% faster inference than human experts and 9.2% improvement over prior art, with 15× faster convergence and strong generalization to unseen graphs including large models like 8-layer GNMT.

ABSTRACT

Runtime and scalability of large neural networks can be significantly affected by the placement of operations in their dataflow graphs on suitable devices. With increasingly complex neural network architectures and heterogeneous device characteristics, finding a reasonable placement is extremely challenging even for domain experts. Most existing automated device placement approaches are impractical due to the significant amount of compute required and their inability to generalize to new, previously held-out graphs. To address both limitations, we propose an efficient end-to-end method based on a scalable sequential attention mechanism over a graph neural network that is transferable to new graphs. On a diverse set of representative deep learning models, including Inception-v3, AmoebaNet, Transformer-XL, and WaveNet, our method on average achieves 16% improvement over human experts and 9.2% improvement over the prior art with 15 times faster convergence. To further reduce the computation cost, we pre-train the policy network on a set of dataflow graphs and use a superposition network to fine-tune it on each individual graph, achieving state-of-the-art performance on large hold-out graphs with over 50k nodes, such as an 8-layer GNMT.

Motivation & Objective

  • Address the challenge of efficient and scalable device placement in heterogeneous hardware for large, complex neural network architectures.
  • Overcome the limitations of prior reinforcement learning-based methods that require retraining from scratch for each graph and lack generalization.
  • Enable transferable, end-to-end device placement policies that generalize to previously unseen dataflow graphs without retraining from scratch.
  • Reduce the computational cost of policy search while maintaining or improving placement quality across diverse workloads.
  • Achieve state-of-the-art performance on large-scale graphs (e.g., 50k+ nodes) with minimal fine-tuning and fast convergence.

Proposed method

  • Employ a graph-embedding network to encode operation features and dependencies into a trainable graph representation.
  • Use a scalable sequence-to-sequence placement network based on an improved Transformer with soft attention to generate device assignments at the node level.
  • Introduce a superposition network that conditions the policy on input graph embeddings, enabling effective batch training of graphs of vastly different sizes.
  • Train the policy end-to-end using a supervised reward signal, eliminating the need for complex multi-level loss manipulation.
  • Implement a pre-training and fine-tuning strategy: pre-train on a diverse set of graphs and fine-tune on individual graphs using superposition to accelerate convergence.
  • Eliminate the need for explicit hierarchical grouping or co-location heuristics by learning flexible, per-node placement decisions through attention mechanisms.

Experimental results

Research questions

  • RQ1Can a deep reinforcement learning-based device placement policy generalize across diverse, previously unseen dataflow graphs without retraining?
  • RQ2How does a scalable sequential attention mechanism in a graph neural network improve placement quality and convergence speed compared to hierarchical or LSTM-based controllers?
  • RQ3To what extent does superposition-based batch training improve optimization stability and performance when handling graphs of vastly different sizes?
  • RQ4Can pre-trained graph embeddings and policies achieve high-quality placements on large, held-out graphs like 8-layer GNMT with minimal fine-tuning?
  • RQ5How does the proposed method compare in performance and efficiency to human experts and prior state-of-the-art methods like HDP and Placeto?

Key findings

  • GDP achieves an average 16% reduction in end-to-end step time compared to human expert placements across diverse models including Inception-v3, AmoebaNet, and WaveNet.
  • The method improves by 9.2% over the prior art (HDP) in step time while reducing policy search time by 15× compared to prior RL-based methods.
  • Fine-tuning the pre-trained model on held-out graphs (GDP-generalization+finetune) outperforms both human experts and HDP on all six test graphs, with 2-layer RNNLM and 2-stack WaveNet matching GDP-one performance.
  • Zero-shot inference on the pre-trained model (GDP-generalization-zeroshot) performs nearly as well as fine-tuned inference, demonstrating strong transferability of graph embeddings and policies.
  • Ablation studies show that attention improves run time by 18% and superposition improves performance by 6.5% on average, with superposition being essential for stable training across mixed-size graphs.
  • Fine-tuning after pre-training reduces search time by 86% and further improves run time by 5% on average compared to training from scratch (GDP-one), confirming the effectiveness of the pre-training and fine-tuning pipeline.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.