TL;DR
DOPPLER introduces a dual-policy reinforcement learning framework to optimize device placement for machine learning workloads running on asynchronous, work-conserving multi-GPU systems. By decoupling node selection from device placement and utilizing a cost-effective three-stage training pipeline (imitation, simulation, and online refinement), it achieves up to a 52.7% reduction in execution time compared to state-of-the-art baselines.
What Problem Does This Paper Address?
Modern deep learning frameworks like PyTorch and TensorFlow typically execute computation graphs in a bulk-synchronous, lock-step manner. This creates massive inefficiencies: if one GPU is slow or stuck in a communication-dominated phase (like an all-reduce aggregation), other devices sit idle.
Asynchronous, "work-conserving" (WC) schedulers fix this by running operations as soon as their data dependencies are met, effectively overlapping computation and communication. However, optimizing device assignment (deciding which GPU handles which operation) in a WC system is incredibly difficult. Because execution order is non-deterministic and highly sensitive to hardware contention, traditional placement methods fall short. Prior learning-based approaches rely on a single policy that fails to capture these complex, time-dependent system dynamics.
Methods
DOPPLER tackles this complexity using a novel dual-policy sequential decision scheme combined with a three-stage training framework.
The Dual-Policy Scheme
Instead of deciding placement all at once, DOPPLER splits the problem into two distinct, sequential choices managed by separate neural networks:
SEL(Selection Policy): Traverses the dataflow graph to choose which operation to schedule next, closely approximating the non-deterministic flow of "time" in the scheduler.PLC(Placement Policy): Decides where (on which GPU) to place that specific operation to balance the computational load and minimize inter-device communication.
Three-Stage Training Framework
To make training practical and cost-effective, the authors design a pipeline that transitions from offline heuristics to real-world deployment:
- Stage I (Imitation Learning): Pre-trains the policies offline to mimic a standard expert heuristic (Critical Path), giving the model a solid baseline.
- Stage II (Simulation-based RL): Refines the policies offline using a fast software simulator ("digital twin") of the WC system, avoiding slow and wear-heavy exploration on real hardware.
- Stage III (Real-System RL): Deploys the model online on actual hardware, continuously tuning the policies using real execution times as a "free" reward signal during production.
Additionally, to keep Graph Neural Network (GNN) message passing scalable, DOPPLER executes message passing only once per episode rather than at every single step, drastically reducing training time without sacrificing convergence.
Datasets
The authors evaluate DOPPLER on four static dataflow graph workloads representing diverse operator mixes and dependency structures:
- CHAINMM: A chain of matrix multiplications and additions (112 nodes).
- FFNN: A dense feedforward neural network with linear layers and nonlinear activations (192 nodes).
- LLAMA-BLOCK: A single transformer block modeled after the Llama architecture (215 nodes).
- LLAMA-LAYER: A complete Llama transformer layer.
Evaluation was conducted on real hardware setups, specifically 4× NVIDIA Tesla P100 (16GB) and 8× NVIDIA V100 (32GB) GPUs.
Key Insights and Ideas
- Decoupling "When" from "Where": The core "aha" moment is that predicting device placement in an asynchronous system requires understanding the temporal flow of the system. Decoupling the traversal order (
SEL) from the device assignment (PLC) allows the model to naturally adapt to stochastic work-conserving execution. - Dynamic Strategy Shifting: Profiling revealed that DOPPLER automatically shifts its strategy depending on the workload state. When a phase is computation-bound, it distributes tasks evenly across GPUs (level-wise load balancing). When it becomes network-bound, it co-locates dependent nodes on the same GPU to eliminate communication bottlenecks.
- Free Online Adaptation: Real-world hardware suffers from non-deterministic noise (NVLink jitter, OS background tasks). Stage III allows the model to adapt dynamically in production without overhead, treating actual execution time as the RL reward.
Key Results
- Massive Speedups: DOPPLER-SYS consistently outperformed all baselines, reducing execution times by up to 52.7% compared to the best learning-based baseline (GDP) and up to 78.2% over the traditional Critical Path heuristic.
- Beating Expert Design: It outperformed a highly optimized, expert-designed custom baseline (
ENUMERATIVEOPTIMIZER) by up to 13.8%. - Excellent Transferability: A policy trained on 4× P100 GPUs generalized remarkably well to an 8× V100 GPU cluster with partial NVLink connectivity. With just 2K episodes of few-shot fine-tuning, it optimized intra-GPU data transfers from 82.7% to 94.7%, outperforming models trained from scratch on the target hardware.
Limitations and Future Work
- Graph Scalability: While DOPPLER scales linearly with graph size, the authors did not test massive, monolithic graphs. However, they argue this is mitigated in practice because modern large-scale training relies on data parallelism and pipelining, meaning workloads are naturally broken down into repeated blocks or layers rather than one giant graph.
- Simulator Mismatch: The simulator used in Stage II tends to overestimate running times and struggles to differentiate between assignments with very similar performance profiles. This highlights why the real-system online refinement stage (Stage III) remains mandatory for peak performance.
Summary updated