Coded FFT and Its Communication Overhead

Haewon Jeong, Tze Meng Low, Pulkit GroverarXiv 2018

TL;DR

This research introduces a strategy to make distributed Fast Fourier Transform (FFT) computations resilient to processor failures using coded computing. By applying systematic Maximum Distance Separable (MDS) codes to the standard "Transpose" FFT algorithm, the authors demonstrate that fault tolerance can be achieved with negligible communication overhead, provided the number of redundant (parity) nodes remains small—specifically $O(\log K)$ relative to the number of active nodes $K$.

The Challenge of Exascale Computing

As high-performance computing (HPC) moves toward "exascale"—systems with over 100,000 processing nodes—hardware failures transition from rare events to statistical certainties. Traditional resiliency methods rely on "checkpointing," where the system periodically saves its state to disk and restarts from the last save point upon failure. However, at exascale, the time required for saving and restarting may eventually exceed the time spent on actual computation.

Coded computing offers a proactive alternative: by injecting redundancy into the data using error-correcting codes (ECCs), the system can recover from node failures on the fly without restarting. The primary challenge for FFT is its inherent "all-to-all" communication step. Adding coding typically increases communication volume, which is already the main bottleneck in distributed FFT. This paper investigates whether coding can be integrated without significantly inflating this cost.

Methodology: Coded Transpose FFT

The approach builds upon the widely used "Transpose" algorithm for parallel FFT. This algorithm decomposes a large $N$-point FFT into smaller $N_1$ and $N_2$ sized FFTs that can be computed in parallel across $K$ processors.

The full sequence of the coded FFT algorithm, from initial column-wise encoding to final row-wise encoding after twiddle factor multiplication.

Key technical components include:

  • Systematic MDS Codes: These codes allow the recovery of missing data from any subset of successful nodes. By using "systematic" codes, the original data remains untouched in $K$ nodes, while only $P-K$ parity nodes store redundant information.
  • Two-Stage Encoding: FFT involves a "twiddle factor" multiplication (an element-wise Hadamard product) in the middle of the process. Because this multiplication does not commute with matrix-matrix multiplication, the authors propose a strategy that encodes column-wise parity symbols at the start and row-wise parity symbols after the first set of FFTs.
  • Communication Modeling: Using the $\alpha$-$\beta$ model (latency and bandwidth), the authors introduce and bound costs for new communication patterns: "multi-reduce" (sending data from many nodes to many reduction nodes) and "multi-broadcast."

Overcoming the Twiddle Factor Hurdle

A major insight of the paper is that twiddle factor multiplication prevents a simple "encode-at-start, decode-at-end" approach. If a node fails after the twiddle factor stage, parity data generated before that stage cannot easily recover the lost information. This necessitates a mid-computation decoding/encoding step to maintain data integrity.

A detailed view of the transpose and column-wise decoding step, illustrating how the system recovers data even when a node failure occurs.

Key Results and Communication Efficiency

The most significant finding is the scaling law regarding communication overhead. The authors prove that the intrinsic "all-to-all" communication required by the FFT itself is so massive that the extra communication needed to distribute parity symbols is mathematically "negligible" in comparison, as long as the number of parity nodes is kept small ($P - K < \frac{\log_2 K}{2}$).

  • Theorem 1 (Recovery): The coded FFT algorithm successfully recovers the full $N$-point FFT output as long as any $K$ out of $P$ processors complete their tasks.
  • Theorem 12 (Efficiency): If the number of parity nodes is $o(\log K)$, the communication overhead of coding is negligible compared to the built-in communication cost of the uncoded FFT.

Limitations and Future Work

The current analysis assumes an erasure model, where nodes either work perfectly or fail completely; it does not yet address "soft errors" or bit flips. Furthermore, the analysis assumes a fully-connected network topology, which may differ from real-world HPC layouts like 3D tori. Future research may explore non-MDS codes, such as LT codes, to further reduce the computational cost of the encoding and decoding steps themselves.

Summary updated

BibTeX
@misc{jeong2018coded,
  author = {Haewon Jeong and Tze Meng Low and Pulkit Grover},
  title = {{Coded FFT and Its Communication Overhead}},
  year = {2018},
  eprint = {1805.09891},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.09891},
}
Figure