MeCeFO: Enhancing LLM Training Robustness via Fault-Tolerant Optimization

Rizhen Hu, Yutong He, Ran Yan, Mou Sun, Binhang Yuan, Kun Yuan

Abstract

Large Language Model (LLM) training at scale is frequently interrupted by hardware failures, leading to significant compute waste. We present MeCeFO, a novel fault-tolerant optimization algorithm that enables seamless training continuity despite node failures. By employing a Neighbor-Do-Both (NDB) strategy combined with strategic skip-connections and low-rank approximations, MeCeFO maintains high throughput and convergence stability. Empirical evaluations on LLaMA models show that MeCeFO achieves over 5x greater resilience than existing methods with a negligible performance impact.

Introduction

Training modern LLMs, such as Meta’s Llama 3 405B, requires massive GPU clusters running for months. At this scale, hardware failures are inevitable, occurring as often as every four hours in large-scale deployments. Traditional recovery methods—checkpointing, redundant computing, and rescheduling—either incur high time overhead or require significant idle hardware resources. MeCeFO addresses this by treating failures not as catastrophic events requiring a full rollback, but as a source of manageable gradient noise, allowing training to proceed on the remaining healthy nodes.

Methodology: Neighbor-Do-Both (NDB)

The core of MeCeFO is the Neighbor-Do-Both (NDB) strategy. When a node fails, its workload is immediately assumed by a "neighbor" node within the same data-parallel group. To prevent the doubled workload from exceeding the neighbor's memory and compute limits, MeCeFO applies three algorithmic optimizations:

  1. MHA Skip-connections: During the backward pass of the failed node's task, the neighbor node skips the Multi-Head Attention (MHA) module, reducing activation storage and gradient computation.
  2. Selective Activation Recomputation: Feed-Forward Network (FFN) layers use on-the-fly recomputation during the backward pass to save GPU memory.
  3. Low-Rank Gradient Approximation: MeCeFO utilizes Singular Value Decomposition (SVD) to approximate FFN gradients, significantly accelerating computation while maintaining sufficient precision for convergence.
The Neighbor-Do-Both strategy handles node failures by redistributing tasks to adjacent healthy nodes.

Theoretical analysis confirms that MeCeFO converges at the same rate as standard distributed Stochastic Gradient Descent (SGD), despite these approximations.

MeCeFO utilizes MHA skipping and low-rank FFN approximations to maintain convergence stability during failures.

Experimental Setup

MeCeFO was evaluated by pre-training LLaMA models (350M to 7B parameters) on the C4 dataset. Performance was measured using zero-shot benchmarks (BoolQ, ARC-Easy, PIQA, TruthfulQA-MC2) and fine-tuning tasks from the GLUE suite. Testing focused on high-failure scenarios, simulating node drops every 30 minutes.

Key Results and Discussion

MeCeFO demonstrates exceptional resilience and efficiency:

  • Throughput Maintenance: For LLaMA-7B, MeCeFO saw only a 4.18% drop in throughput under high-failure conditions, significantly outperforming existing methods like Oobleck, which experienced drops up to 28%.
  • Resilience: The approach is 5.0× to 6.7× more resilient than state-of-the-art baselines (Bamboo and Oobleck).
  • Model Quality: Final perplexity and benchmark scores remained nearly identical to fault-free training. For instance, LLaMA-1B's zero-shot average score decreased by only 0.001 (from 0.537 to 0.536) despite frequent simulated failures.

Conclusion and Future Work

MeCeFO provides a robust, algorithm-aware solution for LLM training on unreliable hardware. By moving away from bit-perfect replication and embracing strategic approximations, it ensures high hardware utilization. Future research will explore scaling MeCeFO to clusters exceeding 100,000 GPUs and extending the framework to support Tensor Parallelism (TP) more comprehensively.

Summary updated

BibTeX
@inproceedings{hu2025mecefo,
  author = {Rizhen Hu and Yutong He and Ran Yan and Mou Sun and Binhang Yuan and Kun Yuan},
  title = {{MeCeFO: Enhancing LLM Training Robustness via Fault-Tolerant Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=gIGtOg4DNa},
}
Figure