Coded Distributed Computing for Inverse Problems

Yaoqing Yang, Pulkit Grover, Soummya KarNeurIPS 2017

In the world of large-scale distributed computing, a system is often only as fast as its slowest worker. These "stragglers"—nodes that lag behind due to network congestion, hardware hiccups, or background processes—frequently become the bottleneck for massive parallel tasks. Traditionally, engineers have dealt with stragglers by either waiting for them (which is slow) or ignoring them entirely (which is wasteful).

A paper from researchers at Carnegie Mellon University, "Coded Distributed Computing for Inverse Problems," offers a compelling third option. By applying principles from information theory, the authors demonstrate how to treat slow workers not as "erasures" to be discarded, but as sources of "soft" information that can significantly boost the accuracy of iterative solvers.

The Problem with Treating Stragglers as Erasures

When distributing a large task—such as calculating the PageRank for millions of users—across a cluster of 100 computers, the work is typically split into 100 pieces. If 5 of those computers are slow, the entire job stalls.

Recent "coded computing" techniques attempted to fix this by adding redundancy. If you have 100 tasks, you might distribute 120 tasks such that any 100 successful results allow you to reconstruct the full solution. In this model, stragglers are treated as erasures: if they don't finish by the deadline, their work is simply thrown away.

The authors argue this is incredibly wasteful for iterative algorithms. In problems like inverse linear systems, workers don't just "finish" or "fail"; they converge toward a solution over time. A straggler might only be 50% done, but that 50% still contains valuable information. The challenge lies in mathematically combining these "half-finished" results into a precise final answer.

A Novel Coded Computation Framework

To solve this, the paper introduces a novel "coded computation" framework for solving linear inverse problems across distributed systems. The authors propose a three-stage process that fundamentally changes how straggler data is handled:

Comparison of general coded computation versus the proposed method.
  1. Encoding: Before sending tasks to $n$ workers, the central controller takes $k$ original problems and creates $n$ "encoded" versions (where $n > k$). These are linear combinations of the original inputs. For example, instead of Worker A solving Problem 1 and Worker B solving Problem 2, Worker C might solve a mix: (Problem 1 + Problem 2).
  2. Parallel Iteration: Each worker runs an iterative solver (like the Jacobian method or Gradient Descent) on its assigned encoded task.
  3. Weighted Decoding: At a fixed deadline ($T_{dl}$), the controller collects whatever progress each worker has made. Crucially, it uses a Weighted Least Squares approach for decoding. It assigns higher weights to workers that completed more iterations (closer to convergence) and lower weights to stragglers, but it incorporates data from everyone.

This approach treats straggler error as "soft noise" rather than a total loss of data. The authors utilize Discrete Fourier Transform (DFT) matrices for the encoding, which helps keep the decoding process numerically stable.

Key Insights and Advantages

  • Graceful Degradation: Unlike previous methods that "fail" if too many workers are slow, this system’s accuracy degrades smoothly. Even if every single worker is a straggler, the system still produces a better estimate than if it had ignored them.
  • Diversity Gain: In communication theory, "diversity" helps signals survive fading. Here, coding provides "computational diversity." By mixing tasks, the final result isn't dependent on any one specific node being fast.
  • Bypassing Ill-Conditioning: Previous attempts to use codes for these problems often failed because they tried to invert matrices based only on the "fast" workers. This often led to "ill-conditioned" math where small errors exploded. By including all workers (even slow ones), the authors keep the math stable.
  • Computation vs. Communication: The authors show that for complex iterative problems, the time spent on "encoding" and "decoding" is negligible compared to the time saved during the actual computation.

Experimental Results

The researchers evaluated their approach using real-world social network data from the SNAP (Stanford Large Network Dataset Collection), specifically a Twitter Graph (81k nodes, 1.7M edges) and a Google Plus Graph (107k nodes, 13.6M edges). They used these graphs to solve Personalized PageRank problems, a classic linear inverse problem used in recommendation engines.

  • Massive Accuracy Gains: In experiments on a real computation cluster, the coded approach achieved a Mean Squared Error (MSE) that was 10,000 times ($10^4$) smaller than traditional replication-based methods for the same deadline.
  • Theoretical Superiority: The authors proved that as the deadline increases, the ratio of error between traditional methods and their coded method actually diverges to infinity.
  • Speed: On the Google Plus graph, encoding/decoding took only ~1 second, while the actual computation took ~30 seconds, proving the overhead is minimal.

Limitations and Future Work

While highly effective, the method does have boundaries. The current theory assumes all $k$ problems share the same transform matrix (e.g., the same graph structure). While common in PageRank or certain sensing applications, it's not universal. Furthermore, the method is specifically designed for linear inverse problems; extending this to non-linear optimization (like deep learning training) remains a significant open challenge. Finally, the paper focuses on solving multiple instances of a problem, leaving room for future work to explore how to apply these codes to a single, massive inverse problem that is too large for any one machine's memory.

Summary updated

BibTeX
@inproceedings{yang2017coded,
  author = {Yaoqing Yang and Pulkit Grover and Soummya Kar},
  title = {{Coded Distributed Computing for Inverse Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=SJVPbKZOZr},
}
Figure