[Paper Review] Placeto: Learning Generalizable Device Placement Algorithms for Distributed Machine Learning
Placeto introduces a reinforcement learning framework that learns generalizable device placement policies for distributed deep learning by modeling placement as iterative improvements and using graph neural networks to encode structural information. It achieves up to 6.1× faster training and generalizes across unseen graphs without retraining, outperforming prior RNN-based methods in both speed and placement quality.
We present Placeto, a reinforcement learning (RL) approach to efficiently find device placements for distributed neural network training. Unlike prior approaches that only find a device placement for a specific computation graph, Placeto can learn generalizable device placement policies that can be applied to any graph. We propose two key ideas in our approach: (1) we represent the policy as performing iterative placement improvements, rather than outputting a placement in one shot; (2) we use graph embeddings to capture relevant information about the structure of the computation graph, without relying on node labels for indexing. These ideas allow Placeto to train efficiently and generalize to unseen graphs. Our experiments show that Placeto requires up to 6.1x fewer training steps to find placements that are on par with or better than the best placements found by prior approaches. Moreover, Placeto is able to learn a generalizable placement policy for any given family of graphs, which can then be used without any retraining to predict optimized placements for unseen graphs from the same family. This eliminates the large overhead incurred by prior RL approaches whose lack of generalizability necessitates re-training from scratch every time a new graph is to be placed.
Motivation & Objective
- To address the high training overhead of existing RL-based device placement methods that require retraining from scratch for each new computation graph.
- To enable generalization of learned placement policies across unseen graphs from the same family without retraining.
- To reduce the number of placement evaluations required to find high-quality device placements in distributed training.
- To design a policy that is invariant to arbitrary node indexing and traversal order, improving robustness and transferability.
- To develop a scalable, efficient, and generalizable approach to device placement that outperforms RNN-based baselines in both speed and performance.
Proposed method
- Placeto models device placement as a sequence of iterative improvement steps, where the policy predicts a device for one node at a time based on the current partial placement.
- It uses a graph neural network (GNN) to encode the computation graph structure, capturing parent-child and parallel node relationships through message passing, independent of node order or labels.
- The policy network aggregates features from a node’s local neighborhood—parents, children, and parallel nodes—using dedicated subnetworks before making a device decision.
- The GNN-based architecture enables the policy to generalize across graphs with different node indexing or traversal orders, unlike RNN-based methods that depend on sequential processing.
- Placeto employs a reinforcement learning objective with intermediate rewards to guide policy training toward faster convergence.
- The framework learns a single generalizable policy per graph family, which can be applied to any new graph from that family without retraining.
Experimental results
Research questions
- RQ1Can a reinforcement learning policy be trained to generalize across unseen computation graphs in distributed deep learning?
- RQ2Does modeling placement as iterative improvements reduce training complexity and improve policy generalization?
- RQ3Can graph neural networks effectively encode structural information in computation graphs without relying on node labels or traversal order?
- RQ4How does Placeto’s generalization capability compare to RNN-based approaches in terms of placement quality and training efficiency?
- RQ5To what extent does the choice of policy architecture affect generalization performance across different graph families?
Key findings
- Placeto reduces the number of placement evaluations by up to 6.1× compared to RNN-based methods while achieving placements that are on par with or better than the best prior results.
- On the NMT model, Placeto finds a placement that runs 16.5% faster than the RNN-based approach.
- Placeto Zero-Shot, which uses the generalizable policy without retraining, achieves performance nearly identical to Placeto Optimized, which requires thousands of evaluations.
- The RNN-based approach performs poorly in zero-shot settings, with RNN Zero-Shot nearly matching random baseline performance, highlighting its lack of generalization.
- Placeto’s policy generalizes robustly across different node traversal orders, with placement runtimes varying by only 5% on average, compared to 30% for RNN-based methods.
- Ablation studies show that local neighborhood aggregation and pooling from parents, children, and parallel nodes are essential for generalization; removing these components degrades performance by 13–20%.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.