[Paper Review] Check-N-Run: A Checkpointing System for Training Deep Learning Recommendation Models
Check-N-Run is a scalable checkpointing system for training large-scale deep learning recommendation models at Facebook, combining incremental checkpointing and adaptive quantization to reduce write bandwidth by 6–17× and storage capacity by 2.5–8× without sacrificing training accuracy. It enables frequent, cost-effective checkpoints essential for failure recovery and online model updates in industrial-scale training workloads.
Checkpoints play an important role in training long running machine learning (ML) models. Checkpoints take a snapshot of an ML model and store it in a non-volatile memory so that they can be used to recover from failures to ensure rapid training progress. In addition, they are used for online training to improve inference prediction accuracy with continuous learning. Given the large and ever increasing model sizes, checkpoint frequency is often bottlenecked by the storage write bandwidth and capacity. When checkpoints are maintained on remote storage, as is the case with many industrial settings, they are also bottlenecked by network bandwidth. We present Check-N-Run, a scalable checkpointing system for training large ML models at Facebook. While Check-N-Run is applicable to long running ML jobs, we focus on checkpointing recommendation models which are currently the largest ML models with Terabytes of model size. Check-N-Run uses two primary techniques to address the size and bandwidth challenges. First, it applies incremental checkpointing, which tracks and checkpoints the modified part of the model. Incremental checkpointing is particularly valuable in the context of recommendation models where only a fraction of the model (stored as embedding tables) is updated on each iteration. Second, Check-N-Run leverages quantization techniques to significantly reduce the checkpoint size, without degrading training accuracy. These techniques allow Check-N-Run to reduce the required write bandwidth by 6-17x and the required capacity by 2.5-8x on real-world models at Facebook, and thereby significantly improve checkpoint capabilities while reducing the total cost of ownership.
Motivation & Objective
- To address the high storage and network bandwidth costs of checkpointing terabyte-scale recommendation models in industrial training environments.
- To enable frequent checkpointing for faster failure recovery and real-time online inference updates without degrading model accuracy.
- To reduce total cost of ownership by minimizing write bandwidth and persistent storage requirements for large-scale ML training.
- To support scalable, reliable training of massive recommendation models that span multiple GPU clusters and run for days or weeks.
- To provide a production-ready checkpointing system that maintains accuracy while significantly reducing resource consumption.
Proposed method
- Applies incremental checkpointing by tracking and storing only the modified portions of embedding tables, which are the primary source of model size in recommendation models.
- Employs adaptive quantization, dynamically selecting bit-widths (e.g., 8-bit, 4-bit) based on expected recovery frequency to minimize checkpoint size.
- Uses an intermittent incremental policy that retains only the most recent full checkpoint and incremental deltas, balancing recovery efficiency and storage growth.
- Decouples checkpointing from training via a pipelined architecture, allowing background checkpoint processing without stalling training.
- Integrates metadata structures to track incremental changes and quantization parameters, enabling accurate model reconstruction during recovery.
- Leverages the synchronous, batch-based nature of distributed training to initiate consistent checkpoints at the end of each training batch.
Experimental results
Research questions
- RQ1How can checkpointing overhead be reduced for terabyte-scale deep learning recommendation models in production environments?
- RQ2What techniques can minimize write bandwidth and storage capacity while preserving training accuracy in large-scale ML training?
- RQ3Can adaptive quantization combined with incremental checkpointing achieve significant bandwidth and capacity savings without accuracy degradation?
- RQ4How does the choice of checkpoint frequency and quantization bit-width affect the trade-off between recovery cost and resource consumption?
- RQ5What is the impact of different checkpointing policies (e.g., full, incremental, consecutive) on write bandwidth and storage growth over time?
Key findings
- Check-N-Run reduces average write bandwidth by up to 17× and maximum storage capacity by up to 8× when training jobs are expected to resume from a checkpoint no more than once.
- Even in high-failure scenarios with over 20 resumption events, the system achieves a 6× reduction in average write bandwidth and a 2.5× reduction in peak storage capacity.
- The intermittent incremental checkpointing policy stabilizes checkpoint size over time and reduces write bandwidth by 33% compared to full checkpointing over 12 intervals.
- Adaptive quantization with bit-width selection based on failure frequency enables significant storage and bandwidth savings while maintaining training accuracy.
- The combination of incremental checkpointing and quantization reduces the total cost of ownership for large-scale model training by minimizing network and storage resource demands.
- Metadata overhead from incremental indices and quantization parameters is non-linearly proportional to savings, indicating room for future optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.