All is Not Lost: LLM Recovery without Checkpoints

Nikolay Blagoev, Oguzhan Ersoy, Lydia Yiyu Chen · DOI

Abstract

Training Large Language Models (LLMs) is a resource-intensive marathon, often spanning months on large-scale clusters. The use of decentralized or "wimpy" nodes, such as cloud spot instances, offers a cost-effective alternative but introduces significant volatility due to frequent node preemption. Traditional recovery strategies, such as periodic checkpointing or redundant computation, impose heavy communication overheads or double hardware requirements. We present CheckFree, a novel recovery framework that eliminates the need for checkpoints by reinitializing failed pipeline stages as a weighted average of their neighbors. Our evaluation demonstrates that CheckFree achieves over 12% faster wall-clock convergence than state-of-the-art methods in high-failure environments while maintaining model quality.

Introduction

In the current landscape of AI development, training LLMs is typically reserved for those with access to stable, high-end compute clusters. To democratize this process, researchers are exploring the use of preemptible instances. However, in a pipeline-parallel setup—where a model is partitioned into stages across different nodes—the failure of a single node can halt the entire training process.

Existing solutions are often inefficient. Checkpointing requires saving the entire model state to remote storage, which is time-consuming and creates a bottleneck. When a failure occurs, the system must roll back to the last saved state, losing all progress made in the interim. Redundant Computation involves running identical layers on multiple nodes simultaneously. While this provides immediate failover, it effectively halves the available hardware efficiency and slows down every training step.

The CheckFree Framework

CheckFree proposes a "memoryless" recovery system that avoids the overhead of saving states or duplicating work. The core insight is that deep transformer models exhibit inherent redundancy; neighboring layers often perform similar transformations.

CheckFree for Intermediate Stages

When an intermediate stage $i$ fails, a new node is provisioned. Instead of starting from scratch, the new stage is initialized using a weighted average of its immediate neighbors, stages $i-1$ and $i+1$. The weights are determined by the $L2$ norm of the last gradients of the neighboring stages. This "Gradient Average" strategy gives more influence to stages that are further from convergence, effectively allowing the new node to inherit the most relevant learned features from its surroundings.

Comparison of recovery strategies: (a) Checkpointing, (b) Redundant computation, and (c) the proposed CheckFree solution.

CheckFree+ for Boundary Stages

The standard CheckFree approach requires two neighbors, which is not possible for the first and last stages of a pipeline. To address this, CheckFree+ introduces "out-of-order" pipelining. During the normal training phase, the order of the first two and last two stages is periodically swapped for a portion of the microbatches. This forces the second stage to learn a representation that mimics the first, enabling recovery of the first stage through simple weight copying if it fails.

Experimental Evaluation

The researchers evaluated CheckFree across three model scales using the LLaMa architecture:

  • Small (124M parameters): Trained on the TinyStories dataset.
  • Medium (500M parameters): Trained on OpenWebText.
  • Large (1.5B parameters): Trained on RedPajamas v2.

Performance was measured by tracking validation loss over iterations and assessing final model quality via perplexity scores on diverse benchmarks including Common Crawl and Arxiv.

Results and Discussion

The primary advantage of CheckFree is its impact on wall-clock time. While redundant computation might converge in fewer iterations due to its continuous state, it is significantly slower per iteration. CheckFree maintains high training throughput during the non-faulty phase.

Convergence curves for small and medium models at a 10% failure rate.

Key findings include:

  • Speedup: In environments with a 5% failure rate, CheckFree/CheckFree+ reached convergence 12% faster in wall-clock time compared to redundant computation.
  • Robustness: The system remained stable even at failure rates as high as 16% per hour.
  • Performance Parity: On the 1.5B parameter model, the final perplexity was nearly identical to a baseline model trained without failures, confirming that the averaging reinitialization does not degrade the final model's intelligence.

Limitations and Future Work

Despite its success, CheckFree has limitations. It currently assumes that no two consecutive stages fail simultaneously. If both stage $i$ and $i+1$ are lost, the recovery mechanism lacks the necessary neighbor data. Additionally, the out-of-order swapping in CheckFree+ introduces a minor convergence penalty during normal operation. Future research may explore hybrid approaches, combining CheckFree with infrequent, lightweight checkpoints to provide a safety net for catastrophic multi-node failures.

Summary updated

Abstract

Training LLMs on decentralized and wimpy computation nodes, e.g., multiple on-spot instances, lowers the training cost and enables model democratization. The inevitable challenge here is the churn of nodes due to failures and the operator's scheduling policies, leading to losing a stage - a part of the model. The conventional approaches to recover from failures are to either use checkpointing, where periodically a copy of the entire model is sent to an additional storage, or redundant computation. These approaches yield significant communication and/or computation overhead even in non-failure cases and scale poorly in settings with large models. In this paper, we propose, CheckFree, an efficient recovery method where a failing stage is substituted by a weighted average of the closest neighboring stages. In contrast to the state of the art, CheckFree requires no additional computation or storage. However, because of the nature of averaging neighbouring stages, it can only recover failures of intermediate stages. We further extend our method to CheckFree+ with out-of-order pipeline execution to tolerate crashes of the first and last stages. Thanks to out-of-order pipelining, behaviour of those stages is mimicked by their neighboring ones, which allows CheckFree+ to recover them by simply copying the weights from the immediate neighbour. To be able to recover the (de)embedding layers, CheckFree+ copies those layers to the neighboring stages, which requires relatively small storage overhead. We extensively evaluate our method on LLaMa models of model sizes from 124M to 1.5B with varying failure frequencies. In the case of low and medium failure rates (5-10%), CheckFree and CheckFree+ outperform both checkpointing and redundant computation in terms of convergence in wall-clock time by over 12%. Both of our proposals can be run via our code available at: https://github.com/gensyn-ai/CheckFree.
BibTeX
@misc{blagoev2025all,
  author = {Nikolay Blagoev and Oguzhan Ersoy and Lydia Yiyu Chen},
  title = {{All is Not Lost: LLM Recovery without Checkpoints}},
  year = {2025},
  eprint = {2506.15461},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.15461},
}
Figure