TL;DR
This paper introduces CPR, a novel system for improving the efficiency and reliability of deep learning recommendation model training by intelligently using "partial recovery" when training nodes fail. CPR significantly reduces training time and checkpointing overheads while maintaining model accuracy, addressing a critical bottleneck in large-scale recommendation systems.
What Problem Does This Paper Address?
Training state-of-the-art recommendation models, which power many internet services, is computationally intensive and requires massive distributed systems. These systems are prone to node failures, which traditionally necessitate "full recovery" – reverting all nodes to the last saved checkpoint. This process is costly, introducing significant overheads from saving/loading checkpoints and recomputing lost work. The paper highlights that for recommendation models, full recovery can consume up to 12% of total training time, translating to substantial computational waste. Existing methods for handling failures are either too expensive or don't adequately address the unique characteristics of recommendation models, particularly their large embedding tables.
Methods
The core of the paper is the Checkpointing with Partial Recovery for Recommendation systems (CPR). Unlike full recovery, CPR allows non-failed nodes to continue training while only restoring the state of the failed node. This avoids recomputing lost work. To manage the potential accuracy degradation introduced by partial recovery, CPR introduces:
- Portion of Lost Samples (PLS): A novel metric that quantifies the impact of a failure on the training data. PLS is shown to strongly correlate with final model accuracy, allowing users to specify a tolerable accuracy degradation.
- PLS-based checkpointing interval selection: CPR uses the target PLS and failure rate to dynamically determine the optimal checkpoint saving interval, balancing overhead and accuracy.
- Frequency-based optimizations (CPR-MFU and CPR-SSU): These techniques prioritize saving updates to frequently accessed embedding vectors, which are more critical for model accuracy. CPR-MFU (Most-Frequently Used) and CPR-SSU (Sub-Sampled Used) are memory-efficient alternatives to prior methods like SCAR.
CPR also includes a strategy to fall back to full recovery if partial recovery offers no significant performance benefit.
Datasets
The paper evaluates CPR using two datasets commonly used in recommendation system benchmarks:
- Criteo Kaggle: A widely used dataset for click-through rate prediction.
- Criteo Terabyte: A larger dataset for recommendation systems.
The authors also mention using an emulation framework based on the open-source MLPerf recommendation benchmark.
Key Insights and Ideas
- Partial recovery is viable for recommendation models: Contrary to potential concerns about accuracy degradation, the paper demonstrates that with careful management, partial recovery can significantly reduce overheads without substantially impacting model quality.
- PLS is a powerful proxy for accuracy: The strong linear correlation between PLS and final model accuracy is a key insight, enabling a principled way to control the trade-off between performance and accuracy.
- Embedding table access frequency is a good proxy for update importance: The observation that frequently accessed embedding vectors experience larger updates is crucial. This insight allows for efficient prioritization of checkpointing without the prohibitive memory costs of tracking all update magnitudes.
- Full recovery's overhead is substantial and multifaceted: The analysis reveals that checkpoint saving, loading, lost computation, and rescheduling all contribute to significant overheads, making a single optimization strategy for full recovery challenging.
Key Results
- Significant Overhead Reduction: CPR reduced checkpoint-related overheads by 93.7% (Kaggle) and 91.7% (Terabyte) compared to full recovery in an emulation setup. This speedup is attributed to both eliminating lost computation and optimizing checkpoint saving intervals.
- High Accuracy Maintenance: With optimizations (CPR-MFU/SSU), CPR achieved test AUC on par with full recovery, with degradation of at most 0.017% on the Terabyte dataset.
- Production-Scale Validation: On a real production cluster, CPR reduced overhead from 12.5% to 1% without any accuracy degradation, and in some cases, even showed slight improvement.
- Scalability: CPR demonstrates better scalability than full recovery as the number of nodes increases, as it avoids loading full checkpoints even when only a small portion of the model is lost.
Limitations and Future Work
- Target PLS Selection: While CPR provides a mechanism to select a checkpoint saving interval based on PLS, selecting the "correct" target PLS still requires some empirical knowledge or conservative estimation.
- Failure Models: The paper primarily focuses on failures affecting embedding parameter servers (Emb PS). While this is a significant bottleneck, other failure modes might require different strategies.
- Future Work: The authors suggest exploring more robust distributed training methods that can handle adversarial or Byzantine failures, which could be beneficial when using partial recovery. They also leave the exploration of more advanced optimization strategies for future work.
Summary updated