TL;DR
This paper introduces OrchestrRL, a novel system that dynamically orchestrates both compute and network resources for disaggregated Reinforcement Learning (RL) training. By adaptively scheduling compute parallelism and reconfiguring network topology on-demand, OrchestrRL significantly boosts throughput and cost-efficiency in large-scale RL workloads.
What Problem Does This Paper Address?
Large Language Model (LLM) training using Reinforcement Learning (RL) often involves disaggregating the generation (roll-out) and training stages to scale. However, this disaggregation introduces two major inefficiencies:
- Compute Bottlenecks: The generation stage is memory and bandwidth-bound, and its workload is highly dynamic. It shifts from many short generations to a long tail of lingering responses, and response lengths can vary significantly. This dynamic nature makes static parallelism configurations suboptimal, leading to stragglers and underutilization.
- Network Mismatch: The decoupled stages generate diverse and dynamic network traffic patterns. Training requires high bisection bandwidth for collective communications, while generation exhibits bipartite patterns. Periodic weight synchronization adds further bursty traffic. Static network fabrics struggle to efficiently handle these varied and evolving demands.
Existing solutions often rely on static configurations or manually tuned strategies, failing to address these dynamic challenges effectively.
Methods
OrchestrRL tackles these problems through a co-designed compute-network orchestration system:
- Adaptive Compute Scheduler: This component dynamically adjusts parallelism configurations (e.g., Tensor Parallelism (TP), Expert Parallelism (EP), Attention-FFN Disaggregation (AFD)) to match evolving workload characteristics within and across generation steps. It employs:
- Proactive Planning: Periodically forecasts workload and computes optimal parallelism to minimize makespan.
- Reactive Balancing: Continuously monitors worker load and migrates requests to mitigate stragglers caused by unpredictable output lengths.
- RFabric (Reconfigurable Fabric): A hybrid optical-electrical network fabric designed for disaggregated RL. It leverages Optical Circuit Switches (OCS) to dynamically reconfigure the aggregation and core layers of the network topology.
- Stage-Aware Topology: RFabric instantiates topology templates tailored to the specific communication demands of Train, Gen, and weight synchronization stages.
- Slack-Aware Orchestration: Reconfiguration timing is governed by available "slack" (idle periods) between communication events, ensuring updates don't impact the critical path.
- Hybrid EPS-OCS Design: Maintains an always-on electrical packet-switched (EPS) substrate for low-latency connectivity, while using OCS for high-bandwidth, on-demand circuits.
Datasets
The paper mentions using the following datasets for evaluation:
- openr1-math-220k [7]: Used for evaluating RL training workloads.
- deepmath-103k [41]: Used for evaluating large-scale simulations.
No new benchmarks were introduced; rather, existing datasets were used to evaluate the proposed system.
Key Insights and Ideas
- Generation is the Achilles' Heel: The generation stage's sensitivity to response length variability and its dynamic workload shifts are the primary bottlenecks in disaggregated RL, far more so than training.
- Static Networks are a Mismatch: The starkly different and evolving communication patterns of training, generation, and weight synchronization stages cannot be efficiently served by static network fabrics.
- Dynamic Reconfiguration is Key: Both compute parallelism and network topology need to be dynamically reconfigured to adapt to the fluid demands of RL workloads. OrchestrRL demonstrates that this co-design approach is crucial for achieving high performance and cost-efficiency.
- Leveraging Slack is Essential: The success of optical circuit switching (OCS) in this context hinges on its ability to reconfigure during available "slack" periods, avoiding disruption to critical communication paths.
- Hybrid Networks Offer the Best of Both Worlds: Combining the always-on, low-latency nature of electrical networks with the high-bandwidth, reconfigurable capabilities of optical networks provides a robust solution for complex RL communication patterns.
Key Results
- Throughput Improvement: OrchestrRL achieved up to a 1.42x throughput improvement over static baselines on a 64-GPU testbed.
- Cost-Efficiency: At scale, simulations showed RFabric achieving superior performance-cost efficiency, matching the performance of an ideal non-blocking Fat-Tree while improving cost-efficiency by 1.53x-2.06x.
- Ablation Studies: Both adaptive compute scheduling and RFabric contributed significantly to the overall gains, with their combination yielding the largest improvements.
- Network Cost: RFabric's network cost was comparable to oversubscribed Fat-Trees and hybrid OCS fabrics like MixNet, but with significantly better performance.
- Resiliency: RFabric demonstrated good resiliency to link failures, with OCS layer failures having a minimal impact compared to NIC-EPS link failures.
Limitations and Future Work
- OCS Reconfiguration Overhead: While RFabric aims to hide OCS reconfiguration costs within slack periods, the sensitivity analysis shows that for stages with very little slack (like generation), even millisecond-scale reconfiguration can cause significant latency increases.
- Complexity of Optimization: Solving the compute parallelism optimization problem can be computationally expensive, though the paper proposes domain-specific heuristics to make it practically solvable.
- Future Work: The paper suggests that OrchestrRL is complementary to agentic RL frameworks that use external tools, indicating potential for integration into more complex RL pipelines. Further exploration of OCS reconfiguration strategies and their impact on different RL stages could be beneficial.
Summary updated