TL;DR
This paper introduces a novel "fault-oblivious" approach to solving large linear systems on distributed systems prone to hardware and software failures. By augmenting the system with redundancy (similar to erasure coding in storage), the solver can continue operating even when some components fail, and the original solution can be recovered with minimal overhead.
What Problem Does This Paper Address?
Modern parallel and distributed systems are scaling to millions of cores, making them increasingly susceptible to hardware and software faults. Traditional fault tolerance methods like checkpoint-restart and active replication incur significant overheads (storage, computation, or communication), which become prohibitive at extreme scales. Solving large linear systems (Ax=b) is a fundamental computational task, and ensuring its robustness in the face of these faults is crucial for reliable scientific computing and engineering simulations. The challenge is to achieve fault tolerance without drastically increasing the computational cost or complexity of the solver.
Methods
The core idea is to augment the original linear system Ax=b into a larger, redundant system $\tilde{A}\tilde{x} = \tilde{b}$. This augmentation is inspired by erasure coding, where extra information is added to allow recovery from data loss. Specifically, the authors construct an augmented matrix $\tilde{A}$ and a corresponding right-hand side vector $\tilde{b}$ such that the augmented system has a specific degeneracy.
The key components of their approach are:
- Fault Model: They primarily consider "fail-stop" failures, where a process simply halts. They also discuss how their method can be extended to handle soft errors through existing fault detection mechanisms.
- Encoding Scheme: The original matrix $A$ and vector $b$ are augmented with carefully chosen redundant rows and columns to form $\tilde{A}$ and $\tilde{b}$. The encoding matrix $E$ is crucial here, and its Kruskal rank is shown to be essential for recovery.
- Solution Process and Recovery: They adapt the Conjugate Gradient (CG) method to solve the augmented system. The modified CG algorithm is designed to be "fault-oblivious," meaning it can proceed even if some of its distributed components fail. This involves modifying aggregation operations (inner products) and matrix-vector multiplications to skip faulty components. Crucially, the algorithm is designed to terminate and produce an approximate solution to the augmented system. A rapid reconstruction method is then used to recover the solution to the original system from the augmented solution.
Datasets
Not discussed in the paper. The authors use synthetic test matrices for their experiments.
Key Insights and Ideas
- Fault Obliviousness: The most significant insight is the concept of a "fault-oblivious" solver. Instead of explicitly detecting and handling faults in real-time, the algorithm is designed to tolerate them inherently through redundancy, allowing it to continue computation.
- Erasure Coding Analogy: Drawing a direct parallel to erasure coding in storage systems provides a powerful framework for understanding and designing fault tolerance for computations.
- Kruskal Rank for Recovery: The paper highlights the importance of the Kruskal rank of the encoding matrix $E$ for guaranteeing the existence and uniqueness of solutions, which is critical for recovering the original solution.
- Co-design of Encoding, Solver, and Recovery: The authors emphasize that these three components are tightly coupled and must be designed together for the approach to be effective.
Key Results
The authors demonstrate their approach on three SPD test matrices.
- Low Overhead for Single Faults: For a single fault ($k=1$), the erasure-coded CG solver recovers a solution with almost the same quality as the fault-free case, with only a modest increase in the number of iterations (e.g., 540 iterations for Ltridiag500 with $k=1$ vs. 500 for $k=0$).
- Tolerating Higher Fault Rates: Even with a 20% fault rate, the approach can recover an approximate solution with good quality, although the number of iterations increases substantially (e.g., 2,640 iterations for Ltridiag500 with $k=20\%n$ vs. 500 for $k=0$).
- Efficiency Comparison: They claim that for a 20% fault rate, their method takes about 5 times the number of iterations of a standard solver, but each iteration incurs no additional overhead for fault tolerance, which they argue is a significant saving compared to checkpoint-restart systems.
Limitations and Future Work
- Fault Model Simplification: The current simulation assumes faults occur simultaneously at the end of a CG iteration. More realistic scenarios where faults can happen at any point and be temporally interspersed need to be investigated.
- Dense Encoding Matrix: The current design uses a dense random Gaussian matrix for encoding, which can be inefficient for matrix-vector multiplications. Future work will explore structured and sparse random projection designs for the encoding matrix to improve efficiency.
- Convergence Strategy: The current truncation strategy for handling faults can lead to slow and wavy convergence. Adapting flexible CG techniques is proposed to improve convergence speed, especially under high fault rates.
- Fault-Oblivious API: The paper assumes a system behavior where faulty processes simply drop out without crashing the entire program. Developing a fault-oblivious API for distributed systems is a separate, important challenge.
Summary updated