NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hierarchical Coding for Distributed Computing

Hyegyeong Park, Kangwook Lee, Jy-yong Sohn, Changho Suh, Jaekyun Moon · DOI

Abstract

Large-scale distributed computing is frequently bottlenecked by "straggler" nodes—workers that take significantly longer to complete tasks than their peers. While coded computation mitigates this by requiring only a subset of results to reconstruct a final output, standard models often assume a flat network topology that does not reflect the hierarchical "rack-and-switch" architecture of modern data centers. This paper introduces a hierarchical coding framework that nests Maximum Distance Separable (MDS) codes within and across worker groups. This approach enables parallel decoding at the submaster level, drastically reducing computational overhead and latency. Theoretical analysis using continuous-time Markov chains demonstrates that this hierarchical scheme provides superior robustness and efficiency compared to traditional flat or product coding models.

Introduction

In distributed computing environments, the "straggler problem" remains a primary obstacle to achieving predictable performance. Traditional approaches to fault tolerance, such as simple replication, often incur high communication and storage overhead. Coded computation has emerged as a more efficient alternative, allowing a master node to recover the final result from a subset of $k$ out of $n$ workers. However, most existing research treats the network as a flat structure, ignoring the reality that workers are typically organized into racks connected by Top-of-Rack (ToR) switches.

Communication within a rack is generally fast and reliable, whereas cross-rack communication is often bandwidth-constrained and prone to instability. This paper addresses this discrepancy by proposing a hierarchical coding scheme that mirrors the physical topology of data centers, optimizing for both local and global communication constraints.

Methods

Hierarchical Coding Framework

The authors propose a two-layer coding framework designed to exploit data locality and reduce the burden on the central master node:

  1. Inner Coding: An $(n_1, k_1)$ MDS code is applied within each group (rack). A "submaster" (the ToR switch) collects results from its local workers and can decode the group's subtask as soon as any $k_1$ workers finish.
  2. Outer Coding: An $(n_2, k_2)$ MDS code is applied across the groups. The central master node can complete the global task as soon as it receives results from any $k_2$ submasters.
The hierarchical coding framework combines physical group structures with nested MDS codes to optimize task distribution and recovery.

This structure allows for parallel decoding. Unlike traditional product codes that often require a single, complex global decoding operation, this scheme distributes the decoding task. Submasters perform the first stage of decoding simultaneously, which minimizes the volume of data transmitted over the slower cross-rack network and reduces the master's computational load.

Theoretical Latency Bounds

To evaluate the performance of this scheme, the authors derive rigorous upper and lower bounds for expected computation time. They model worker completion times using exponential distributions and construct a continuous-time Markov chain (CTMC) to track the state of completed workers and groups.

A continuous-time Markov chain tracks the state of worker and group completions to derive theoretical latency bounds.

Key Results and Insights

Decoding Complexity and the $\alpha$ Factor

A critical innovation of this work is the analysis of decoding costs. The authors introduce a parameter $\alpha$ to represent the relative weight of decoding cost versus raw computation time. While different codes (like replication or polynomial codes) might perform better at extreme values of $\alpha$, the hierarchical code proves to be the most robust "all-rounder" for practical scenarios.

For a system with $k$ total tasks, the hierarchical code reduces complexity from $O(k^\beta)$ to roughly $O(k_1^\beta + k_1 k_2^\beta)$. In a scenario where $k_1 = k_2^2$ and $\beta=2$, the hierarchical code's cost scales at $O(k^2)$ while traditional product codes scale at $O(k^{2.5})$.

Performance Gains

Numerical simulations confirm that the derived lower bound is remarkably tight. The proposed scheme strictly outperforms traditional product codes across all tested values of the decoding weight $\alpha$. By performing the first stage of decoding at the submaster level, the system effectively neutralizes the impact of slow stragglers within individual racks before they can delay the global computation.

Conclusion and Future Work

This hierarchical coding scheme offers a practical and theoretically sound method for managing stragglers in modern data centers. By aligning the coding strategy with the physical rack-and-switch architecture, the authors achieve significant gains in both latency and decoding efficiency.

Future research could expand this model to address heterogeneous clusters where racks have varying numbers of workers or different hardware capabilities. Additionally, extending these hierarchical principles to non-linear distributed tasks, such as those found in deep learning gradients, remains an important area for exploration.

Summary updated

BibTeX
@inproceedings{park2018hierarchical,
  author = {Hyegyeong Park and Kangwook Lee and Jy-yong Sohn and Changho Suh and Jaekyun Moon},
  title = {{Hierarchical Coding for Distributed Computing}},
  booktitle = {ISIT},
  year = {2018},
  doi = {10.1109/isit.2018.8437669},
}
Figure