Coded Computing for Fault-Tolerant Parallel QR Decomposition

Quang Minh Nguyen, Iain Weissburg, Haewon JeongarXiv 2023 · DOI

Introduction

In the era of exascale High-Performance Computing (HPC), system failures are a statistical certainty rather than an anomaly. Current estimates suggest that over 20% of total computing capacity is often consumed by handling node failures and recovery processes. While periodic checkpointing—saving the system state to persistent storage—is the standard defense, it is increasingly inefficient due to high I/O overhead and resource consumption.

A novel framework proposed by Nguyen, Weissburg, and Jeong in "Coded Computing for Fault-Tolerant Parallel QR Decomposition" introduces a more resilient approach. By integrating error-correcting codes directly into the numerical operations of QR decomposition, the authors achieve algorithm-based fault tolerance (ABFT) with minimal overhead.

The Challenge of Orthogonality in QR Decomposition

QR decomposition factors a matrix $A$ into an orthogonal matrix $Q$ and an upper triangular matrix $R$. This process is fundamental for solving linear systems and least-squares problems. In distributed environments, $A$ is partitioned into blocks across multiple processing nodes. A single node failure typically necessitates a full restart or costly recovery from a checkpoint.

Overview of the parallel QR decomposition goal and its iterative progression.

The primary obstacle in making QR decomposition fault-tolerant via coding is the $Q$ factor. While the $R$ factor can be protected using standard linear checksums, the $Q$ factor must maintain orthogonality ($Q^T Q = I$). Linear error-correcting codes generally destroy this quadratic relationship, leading previous researchers to rely on replication or checkpointing for $Q$, which negates the efficiency of coded computing.

Methodology: Parallel Block Modified Gram-Schmidt (PBMGS)

The authors extend the Parallel Block Modified Gram-Schmidt (PBMGS) algorithm with three core innovations to enable fault tolerance:

  1. Coded Redundancy: The input matrix $A$ is encoded with redundant checksum rows and columns before the decomposition begins.
  2. Post-Orthogonalization: The authors derived a mathematical condition (Theorem 5.1) proving that even if the $Q$ factor's orthogonality is compromised by the encoding process, it can be restored. A sparse linear transformation ($G_0$) is applied at the end of the computation to "fix" $Q$, returning it to an orthogonal state.
  3. Semi-Random MDS Codes: They utilize a "semi-random" checksum-generator matrix proven to be Maximum Distance Separable (MDS) with high probability. This ensures the theoretical maximum protection (surviving $f$ failures with $f$ checksums) with minimum redundancy.
Step-by-step breakdown of the first iteration in the PBMGS algorithm.

Key Insights

  • Restorable Orthogonality: The critical insight is that the intermediate $Q$ factor does not need to remain orthogonal throughout the calculation. As long as the checksum-generator matrix maintains a specific structure, orthogonality can be restored via a low-cost matrix multiplication at the final stage.
  • Scaling Efficiency: Theoretical and experimental results indicate that the overhead of this protection decreases as the system size grows. For massive matrices, the cost of fault tolerance becomes negligible.
  • In-Node Storage Optimization: The framework allows checksums to be stored within existing nodes rather than requiring dedicated "checksum nodes," optimizing cluster utilization.

Results and Performance

The study evaluated the framework using synthetic matrices ($n = 24,000$) on processor grids ranging from $6 \times 6$ to $12 \times 12$ on the CSC Pod cluster.

  • Minimal Overhead: The coding overhead ($T_{coding}$) scales as $O(f/p \cdot T_{QR})$, where $f$ is the number of failures and $p$ is the number of processors.
  • Linear Recovery: Recovery time scales linearly with the number of failures, validating the efficiency of the MDS code construction.
  • Numerical Precision: The post-orthogonalization step is numerically stable, maintaining high precision (errors $\approx 10^{-9}$) while successfully restoring the $Q$ factor.

Conclusion and Future Work

This research demonstrates that "broken" orthogonality can be efficiently repaired, removing a significant barrier to resilient exascale linear algebra. While currently optimized for full-rank square matrices using Gram-Schmidt methods, future work aims to extend these techniques to rectangular matrices and other QR algorithms, such as Householder Transformations or Givens Rotations, which involve non-linear operations.

Summary updated

BibTeX
@misc{nguyen2023coded,
  author = {Quang Minh Nguyen and Iain Weissburg and Haewon Jeong},
  title = {{Coded Computing for Fault-Tolerant Parallel QR Decomposition}},
  year = {2023},
  eprint = {2311.11943},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.11943},
}
Figure