Lune

SOSP2023Top-tier venue

GEMINI: Fast Failure Recovery in Distributed Training with In-Memory Checkpoints

Zhuang Wang, Zhen Jia, Shuai Zheng, Zhen Zhang, Xinwei Fu, T. S. Eugene Ng, Yida Wang

Abstract

Large deep learning models have recently garnered substantial attention from both academia and industry. Nonetheless, frequent failures are observed during large model training due to large-scale resources involved and extended training time. Existing solutions have significant failure recovery costs due to the severe restriction imposed by the bandwidth of remote storage in which they store checkpoints.

This paper presents Gemini, a distributed training system that enables fast failure recovery for large model training by checkpointing to CPU memory of the host machines with much larger aggregated bandwidth. However, two challenges prevent naïvely checkpointing to CPU memory. First, the availability of checkpoints in CPU memory cannot be guaranteed when failures occur. Second, since the communication traffic for training and checkpointing share the same network, checkpoint traffic can interfere with training traffic and harm training throughput. To address these two challenges, this paper proposes: 1) a provably near-optimal checkpoint placement strategy to maximize the probability of failure recovery from checkpoints in CPU memory; and 2) a checkpoint traffic scheduling algorithm to minimize, if not eliminate, the interference of checkpoint traffic on model training. Our evaluation shows that overall Gemini achieves a faster failure recovery by more than 13× than existing solutions.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

31 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Universal Checkpointing: A Flexible and Efficient Distributed Checkpointing System for Large-Scale DNN Training with Reconfigurable Parallelism cites ZeRO: memory optimizations toward training trillion parameter models
  • Universal Checkpointing: A Flexible and Efficient Distributed Checkpointing System for Large-Scale DNN Training with Reconfigurable Parallelism cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • Universal Checkpointing: A Flexible and Efficient Distributed Checkpointing System for Large-Scale DNN Training with Reconfigurable Parallelism cites CheckFreq: Frequent, Fine-Grained DNN Checkpointing
  • Universal Checkpointing: A Flexible and Efficient Distributed Checkpointing System for Large-Scale DNN Training with Reconfigurable Parallelism cites Parcae: Proactive, Liveput-Optimized DNN Training on Preemptible Instances
  • Efficient large-scale language model training on GPU clusters using megatron-LM cites ZeRO: memory optimizations toward training trillion parameter models
  • HybridFlow: A Flexible and Efficient RLHF Framework cites ZeRO: memory optimizations toward training trillion parameter models
  • HybridFlow: A Flexible and Efficient RLHF Framework cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • HybridFlow: A Flexible and Efficient RLHF Framework cites CheckFreq: Frequent, Fine-Grained DNN Checkpointing
  • Parcae: Proactive, Liveput-Optimized DNN Training on Preemptible Instances cites ZeRO: memory optimizations toward training trillion parameter models
  • Parcae: Proactive, Liveput-Optimized DNN Training on Preemptible Instances cites CheckFreq: Frequent, Fine-Grained DNN Checkpointing
  • Parcae: Proactive, Liveput-Optimized DNN Training on Preemptible Instances cites Varuna: scalable, low-cost training of massive deep learning models
  • DataStates-LLM: Lazy Asynchronous Checkpointing for Large Language Models cites ZeRO: memory optimizations toward training trillion parameter models
  • DataStates-LLM: Lazy Asynchronous Checkpointing for Large Language Models cites CheckFreq: Frequent, Fine-Grained DNN Checkpointing
  • Varuna: scalable, low-cost training of massive deep learning models cites ZeRO: memory optimizations toward training trillion parameter models
  • Varuna: scalable, low-cost training of massive deep learning models cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • Characterization of Large Language Model Development in the Datacenter cites ZeRO: memory optimizations toward training trillion parameter models
  • Characterization of Large Language Model Development in the Datacenter cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • Characterization of Large Language Model Development in the Datacenter cites CheckFreq: Frequent, Fine-Grained DNN Checkpointing
  • Characterization of Large Language Model Development in the Datacenter cites Varuna: scalable, low-cost training of massive deep learning models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers31

  1. Characterization of Large Language Model Development in the DatacenterQinghao Hu, Zhisheng Ye, Zerui Wang, Guoteng Wang et al.NSDI 2024 · 192 citations
  2. HybridFlow: A Flexible and Efficient RLHF FrameworkGuangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu et al.EuroSys 2025 · 61 citations
  3. Parcae: Proactive, Liveput-Optimized DNN Training on Preemptible InstancesJiangfei Duan, Ziang Song, Xupeng Miao, Xiaoli Xi et al.NSDI 2024 · 54 citations
  4. DataStates-LLM: Lazy Asynchronous Checkpointing for Large Language ModelsAvinash Maurya, Robert Underwood, M. Mustafa Rafique, Franck Cappello et al.HPDC 2024 · 34 citations
  5. Universal Checkpointing: A Flexible and Efficient Distributed Checkpointing System for Large-Scale DNN Training with Reconfigurable ParallelismXinyu Lian, Sam Ade Jacobs, Lev Kurilenko, Masahiro Tanaka et al.USENIX ATC 2025 · 22 citations

Builds on11

  1. ZeRO: memory optimizations toward training trillion parameter modelsSamyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong HeSC 2020 · 852 citations
  2. Efficient large-scale language model training on GPU clusters using megatron-LMDeepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley et al.SC 2021 · 576 citations
  3. A Unified Architecture for Accelerating Distributed DNN Training in Heterogeneous GPU/CPU ClustersYimin Jiang, Yibo Zhu, Chang Lan, Bairen Yi et al.OSDI 2020 · 390 citations
  4. CheckFreq: Frequent, Fine-Grained DNN CheckpointingJayashree Mohan, Amar Phanishayee, Vijay ChidambaramFAST 2021 · 175 citations
  5. Varuna: scalable, low-cost training of massive deep learning modelsSanjith Athlur, Nitika Saran, Muthian Sivathanu, Ramachandran Ramjee et al.EuroSys 2022 · 81 citations

Related papers

  1. A Self-updating Checkpointing and Fast Failure Recovery System for Distributed LLM TrainingLeyi Ye, Zhiyi Yao, Boliang Liu, Yuedong Xu et al.INFOCOM 2026
  2. LowDiff: Efficient Frequent Checkpointing via Low-Cost Differential for High-Performance Distributed Training SystemsChenxuan Yao, Feifan Liu, Yuchong Hu, Zhengyu Liu et al.SC 2025 · 3 citations
  3. PCcheck: Persistent Concurrent Checkpointing for MLFoteini Strati, Michal Friedman, Ana KlimovicASPLOS 2025 · 11 citations
  4. Just-In-Time Checkpointing: Low Cost Error Recovery from Deep Learning Training FailuresTanmaey Gupta, Sanjeev Krishnan, Rituraj Kumar, Abhishek Vijeev et al.EuroSys 2024 · 23 citations
  5. Elastor: Elastic and Efficient Model Partitioning and Checkpointing for Fault-Tolerant Distributed TrainingXuanyu Wang, Fangcheng Fu, Haoyang Li, Hao Ge et al.PPoPP 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines