TL;DR
DOPPLER is a new reinforcement learning framework that optimizes how machine learning operations are assigned to GPUs in asynchronous, "work-conserving" systems. By splitting the decision into two policies—one to select the next operation and one to place it—and using a three-stage "imitation-to-real" training pipeline, it achieves up to a 52.7% reduction in execution time compared to state-of-the-art baselines.
The Challenge of Asynchronous Execution
Most deep learning frameworks (like PyTorch or TensorFlow) operate in a bulk-synchronous fashion. They execute operations in lock-step levels: all multiplications must finish before any additions or data transfers begin. This creates "idle bubbles" where expensive GPUs sit doing nothing while waiting for a single slow operation or a communication phase to complete.
Work-conserving (WC) systems are more efficient; they schedule operations asynchronously as soon as their data dependencies are met. However, optimizing device placement in a WC system is notoriously difficult. Because execution order is non-deterministic and sensitive to hardware noise (like network jitter), traditional "single-policy" placement algorithms fail to capture the complex temporal dynamics. The authors aim to find a way to learn placement policies that actually thrive in these chaotic, high-performance environments.
The DOPPLER Approach
The authors introduce DOPPLER, which tackles the placement problem through two main architectural innovations:
1. Dual-Policy Architecture
Instead of relying on a single model to decide where every operation goes, DOPPLER splits the task into two distinct networks:
- SEL (Selection): Traverses the dataflow graph to decide the order in which nodes should be assigned. This effectively approximates the flow of time in the system and allows the model to "plan" for future bottlenecks.
- PLC (Placement): Decides which device (e.g., which GPU) should handle the selected node to balance the computational load and minimize data transfer overhead.
2. Three-Stage Training Pipeline
To effectively train these policies and bridge the gap between simulated environments and real-world hardware, DOPPLER employs a robust "imitation-to-real" pipeline:
- Stage I (Imitation): The model "shadows" a simple, fast heuristic (like Critical Path) to learn basic rules of thumb and bootstrap its understanding.
- Stage II (Simulation): The model trains in a "digital twin" simulator using reinforcement learning. This allows for thousands of trial-and-error episodes without tying up expensive physical hardware.
- Stage III (Real-System RL): The model is deployed on real hardware and continues to fine-tune itself using actual execution times as rewards. This crucial step accounts for actual hardware contention, NVLink jitter, and system-level noise that simulators miss.
To keep training fast, DOPPLER uses an Efficient Message Passing Approximation, running its Graph Neural Network (GNN) only once per episode rather than at every single step.
Key Insights and Results
The framework was evaluated on four distinct machine learning workloads represented as dataflow graphs (CHAINMM, FFNN, LLAMA-BLOCK, and LLAMA-LAYER) using clusters of NVIDIA Tesla P100 and V100 GPUs.
- Phase-Aware Strategy: Profiling showed that DOPPLER learns two distinct behaviors. In computation-heavy phases, it spreads work across all GPUs to maximize throughput. In communication-heavy phases, it learns to co-locate dependent nodes on the same GPU to avoid slow inter-device transfers.
- Massive Speedups: DOPPLER achieved up to 52.7% lower execution times than the best prior learning-based baseline (GDP).
- Beating the Experts: It outperformed a sophisticated, expert-designed greedy search algorithm (ENUMERATIVEOPTIMIZER) by up to 13.8%.
- Transferability: A policy trained on a simple FFNN graph could be "zero-shot" transferred to a complex Llama graph and still perform reasonably well, reaching peak performance with just a small amount of fine-tuning (4k episodes).
- Scalability: The training and inference time for DOPPLER scales linearly with the number of nodes in the graph, making it viable for large-scale models.
Limitations and Future Work
Currently, DOPPLER is designed for static dataflow graphs where the structure doesn't change during execution. While this covers most training and inference workloads, it doesn't yet handle dynamic graphs. Additionally, experiments focused on 4-8 GPU setups. While the authors discuss scaling to massive clusters via data parallelism and pipelining, the dual-policy approach hasn't been tested on thousands of nodes yet.
Looking forward, the authors suggest integrating DOPPLER directly into compilers to automate the entire "graph-to-hardware" pipeline without human intervention.
Summary updated