Coded Iterative Computing using Substitute Decoding

Yaoqing Yang, Malhar Chaudhari, Pulkit Grover, Soummya Kar

Abstract

Distributed iterative algorithms, such as PageRank and Gradient Descent, are often bottlenecked by "straggler" nodes. While traditional coded computing offers resilience, it typically relies on dense codes that destroy the sparsity of large-scale datasets. This paper presents Substitute Decoding, a novel approach using extremely sparse Low-Density Generator Matrix (LDGM) codes. By substituting missing computation results with data from previous iterations, the method achieves convergence rates comparable to noiseless systems with minimal overhead, preserving data sparsity and reducing computational complexity.

Introduction

In large-scale distributed systems, the "straggler problem"—where a few slow workers delay the entire computation—is a significant hurdle. Coded computing mitigates this by introducing redundancy, allowing a master node to reconstruct results from a subset of workers. However, standard Maximum Distance Separable (MDS) codes are dense. When applied to sparse matrices common in web graphs or social networks, they lead to "density explosion," significantly increasing storage and communication costs. The central challenge is developing a robust distributed computing framework that maintains the efficiency of sparse data representations.

Proposed Method: Substitute Decoding

The authors propose a framework combining sparse encoding with a "substitute" mechanism for iterative tasks of the form $x_{t+1} = f(x_t)$.

Sparse Encoding

Unlike classical methods that use dense generator matrices, the proposed approach employs Low-Density Generator Matrix (LDGM) codes. These matrices have very few non-zero entries per row (typically 2 or 3), ensuring that the encoded data blocks $\tilde{B}_i$ remain as sparse as the original data $B$.

Comparison of classical dense encoding versus the proposed sparse encoding with substitute decoding.

The Substitution Mechanism

The core innovation lies in how erasures are handled. In iterative algorithms, $x_{t+1}$ is often close to $x_t$ as the system nears convergence. When workers fail, the master node cannot perfectly reconstruct the full update. Instead of waiting for stragglers, it performs Substitute Decoding:

  1. Projection: It extracts the available information by projecting the partial results onto the subspace spanned by the successful workers ($V_t$).
  2. Substitution: For the missing components in the orthogonal subspace ($\tilde{V}_t$), it substitutes the corresponding values from the previous iteration $x_t$.

The update rule becomes: $x_{t+1} = V_t V_t^T (Bx_t + y) + \tilde{V}_t \tilde{V}_t^T x_t$

To prevent the algorithm from being trapped in a "bad" subspace, the authors use time-varying codes where the random coefficients change at each iteration while the sparsity pattern remains fixed.

Key Insights and Geometric Intuition

The success of substitute decoding rests on the "self-healing" nature of iterative algorithms. Small errors introduced by substitution are suppressed over time, provided the partial generator matrix maintains sufficient rank.

Geometric interpretation of substitute decoding via projection.

As illustrated in the geometric projection, the master node utilizes the available "slice" of the new computation ($Proj_1$) and fills the gap with the previous state's projection ($Proj_2'$). The paper demonstrates that LDGM codes, despite being suboptimal for standard communication, are highly effective here. The error reduction is governed by a factor $\delta$ that decreases as the rank of the partial generator matrix increases.

Experimental Evaluation

The method was tested across several domains:

  • PageRank on Twitter Graph: Using a degree-3 LDGM code, the system achieved convergence rates nearly identical to a noiseless environment, even with a 50% worker failure rate.
  • Spectral Clustering (SBM): Evaluated on synthetic graphs with planted clusters, showing robust performance.
  • Singular Value Decomposition (SVD): The method successfully identified "Eigenspokes" in sparse matrices with dense anomalies, where uncoded methods failed under erasures.
  • Gradient Descent: Interestingly, the substitution mechanism acted as a form of "coded momentum," sometimes leading to faster convergence than the noiseless case by maintaining a full gradient estimate.

Conclusion

Substitute Decoding provides a scalable solution for straggler-resilient distributed computing without sacrificing the benefits of data sparsity. By leveraging the temporal correlation in iterative updates, it turns a communication problem into an algorithmic advantage. Future work includes exploring "entangled" coding for 2D matrix partitioning and a deeper theoretical analysis of the momentum effects observed in optimization tasks.

Summary updated

BibTeX
@misc{yang2018coded,
  author = {Yaoqing Yang and Malhar Chaudhari and Pulkit Grover and Soummya Kar},
  title = {{Coded Iterative Computing using Substitute Decoding}},
  year = {2018},
  eprint = {1805.06046},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.06046},
}
Figure