Abstract
Training large-scale Deep Neural Networks (DNNs) requires thousands of GPUs running for extended periods, making hardware failures an inevitable disruption. Current resilience strategies often involve significant overhead, such as idle warm spares or time-consuming checkpoint-restarts. We present ReCycle, a system that enables uninterrupted training by dynamically adapting pipeline schedules. ReCycle "recycles" idle time (pipeline bubbles) to absorb the workload of failed nodes by re-routing tasks to peer GPUs. Our evaluation shows that ReCycle maintains high throughput with zero overhead during normal operation and outperforms existing resilient training frameworks.
Introduction
The training of foundation models like GPT-4 or Llama-3 is a massive undertaking, often requiring weeks of continuous computation across thousands of GPUs. At this scale, hardware failures are not just a possibility but a statistical certainty. Traditionally, a single GPU failure halts the entire training process, leading to resource idling and manual intervention. ReCycle addresses this by providing a mechanism for pipelines to adapt in real-time to failures, ensuring that training continues with minimal performance degradation.
The Resilience Challenge in Hybrid Parallelism
Modern DNN training utilizes a combination of data, tensor, and pipeline parallelism to manage model size and data throughput. This hybrid structure is inherently brittle; the failure of a single node can break the pipeline chain, necessitating a full stop and reconfiguration.
Existing solutions to this problem are often inefficient. Keeping "warm spares" is economically prohibitive at scale. Frequent checkpointing and restarting on a reduced set of nodes wastes thousands of GPU-hours in downtime. Redundant computation approaches, while resilient, impose a heavy performance penalty even during fault-free operation.
Methods: Adaptive Pipelining and Bubble Filling
ReCycle introduces three primary optimizations to handle failures gracefully:
- Adaptive Pipelining: By exploiting data parallelism, ReCycle identifies "peer" GPUs that hold identical model weights. When a failure occurs, micro-batches are re-routed to these peers. This avoids the massive overhead of moving model parameters across the network.
- Decoupled Backpropagation: ReCycle splits the backward pass into input gradient and weight gradient calculations. Since weight gradients are not immediately required by other pipeline stages, they can be deferred to fill "cool-down" bubbles in the schedule.
- Staggered Optimizer Steps: By shifting the timing of optimizer updates across stages, ReCycle can utilize "warm-up" bubbles at the start of iterations to hide the extra computational load caused by a failure.
These strategies are orchestrated by a Planner that uses Mixed Integer Linear Programming (MILP) to pre-calculate optimal schedules for various failure scenarios, ensuring the system is always ready to adapt.
Key Insights
- Bubbles as a Resource: Rather than viewing pipeline bubbles as wasted time, ReCycle treats them as spare compute capacity reserved for fault recovery.
- Exploiting Built-in Redundancy: Data parallelism naturally provides model replicas. ReCycle is the first system to fully leverage this functional redundancy for real-time pipeline adaptation.
- Flexibility of Weight Gradients: Realizing that weight gradients have fewer immediate dependencies than input gradients allows for significant scheduling flexibility, which is key to filling idle gaps in the pipeline.
Evaluation and Results
ReCycle was evaluated using GPT-3 models ranging from 350M to 145.6B parameters on the Wikitext dataset. To simulate real-world conditions, the researchers replayed GPU failure traces from Google Cloud Platform.
Key results include:
- Throughput: ReCycle achieved up to 1.46× higher throughput than Oobleck and 1.64× higher than Bamboo under failure conditions.
- Efficiency: The system maintains zero overhead during normal operation, performing identically to standard DeepSpeed.
- Resilience: In a 1536-GPU cluster simulation with a 10% failure rate, ReCycle maintained high efficiency with only minor throughput degradation compared to an ideal, fault-free scenario.
Conclusion and Future Work
ReCycle demonstrates that large-scale DNN training can be made resilient without sacrificing performance or requiring expensive hardware redundancy. Future work may address the increased memory pressure from holding activations longer during decoupled backpropagation and extending the unit of failure to finer-grained components.
Summary updated