[Paper Review] Efficient Algorithms for Device Placement of DNN Graph Operators
This paper presents optimal integer programming and dynamic programming algorithms for device placement of DNN operators in both inference and training workloads, targeting latency minimization and throughput maximization. It achieves up to 2.08× speedup over local search and 7.69× over Scotch, with solutions outperforming expert heuristics by up to 72% in latency reduction on complex, memory-constrained DNN graphs.
Modern machine learning workloads use large models, with complex structures, that are very expensive to execute. The devices that execute complex models are becoming increasingly heterogeneous as we see a flourishing of domain-specific accelerators being offered as hardware accelerators in addition to CPUs. These trends necessitate distributing the workload across multiple devices. Recent work has shown that significant gains can be obtained with model parallelism, i.e, partitioning a neural network's computational graph onto multiple devices. In particular, this form of parallelism assumes a pipeline of devices, which is fed a stream of samples and yields high throughput for training and inference of DNNs. However, for such settings (large models and multiple heterogeneous devices), we require automated algorithms and toolchains that can partition the ML workload across devices. In this paper, we identify and isolate the structured optimization problem at the core of device placement of DNN operators, for both inference and training, especially in modern pipelined settings. We then provide algorithms that solve this problem to optimality. We demonstrate the applicability and efficiency of our approaches using several contemporary DNN computation graphs.
Motivation & Objective
- To address the growing challenge of deploying large, complex DNNs across heterogeneous, memory-constrained accelerators in inference and training workloads.
- To identify and solve the core combinatorial optimization problem underlying efficient device placement in model-parallel DNN execution.
- To provide provably optimal solutions for both latency-sensitive single-stream inference and throughput-optimized pipelined training.
- To support non-contiguous graph partitions across multiple device types, including accelerators with diverse memory and bandwidth constraints.
- To outperform heuristic, expert, and baseline methods in both solution quality and robustness under strict memory limits.
Proposed method
- Formulates the device placement problem as an integer programming (IP) model that jointly optimizes operator partitioning and scheduling for latency minimization in single-stream inference.
- Develops a dynamic programming (DP) approach for throughput maximization in pipelined training, modeling dataflow and overlap of computation and communication.
- Supports arbitrary DAGs, including fine-grained operator graphs, and allows non-contiguous partitions across multiple accelerators.
- Integrates memory and interconnect constraints directly into the optimization, ensuring feasible placements under hardware limits.
- Uses a time-bound IP solver with optimality gap certification to balance solution quality and runtime, enabling practical deployment.
- Employs a unified framework applicable to both training (model-parallel and pipeline-parallel) and inference (single-stream and offline) scenarios.
Experimental results
Research questions
- RQ1What is the correct combinatorial optimization problem that captures the end-to-end device placement and scheduling trade-offs in DNN execution?
- RQ2How can we achieve provably optimal device placement for DNNs under memory and communication constraints in both inference and training?
- RQ3To what extent do non-contiguous graph partitions improve performance compared to contiguous or heuristic splits?
- RQ4How does the proposed method compare to expert-designed, greedy, and state-of-the-art baselines in terms of latency and throughput?
- RQ5Can the optimization framework scale to real-world DNNs with billions of parameters and complex operator graphs?
Key findings
- The IP-based algorithm achieved up to 72% lower latency than the greedy baseline and 42% lower than max-load DP, demonstrating superior performance on latency minimization.
- For the best-performing workload, the IP solver reduced latency by 2.08× compared to local search and 7.69× compared to Scotch, which violated memory constraints in 34% of cases.
- In 5 out of 8 workloads, the IP solver did not converge to optimality within 1 hour, yet still found solutions better than all baselines, indicating strong practical performance.
- The IP solver found solutions within 2% of the final value in under 7 minutes for all workloads, suggesting early termination is viable for high-quality results.
- Human expert splits were outperformed by up to 23% in latency, and in two cases violated memory constraints by over 3×, highlighting the limitations of manual tuning.
- The method achieved an average 1.46× speedup over expert splits and 1.29× over local search, with non-contiguous splits consistently outperforming all alternatives.
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.