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

Heterogeneity-aware Gradient Coding for Straggler Tolerance

Haozhao Wang, Song Guo, Bin Tang, Ruixuan Li, Chengjie Li

Introduction

Distributed machine learning has become the standard for training large-scale models like Deep Neural Networks (DNNs). However, these systems often suffer from the "straggler problem," where slow worker nodes delay the entire training process. This is particularly prevalent in modern cloud environments characterized by hardware heterogeneity and transient performance fluctuations. This paper introduces a novel heterogeneity-aware gradient coding scheme designed to mitigate these delays by adaptively balancing workloads based on actual worker capacity.

The Straggler Bottleneck in Distributed Learning

In a typical distributed training setup using the Bulk Synchronous Parallel (BSP) model, a central Master node divides data among several Worker nodes. The Master must wait for every worker to return its computed gradient before updating the global model.

Stragglers arise from two primary sources:

  1. Transient Fluctuations: Random spikes in network latency or background OS tasks.
  2. Consistent Heterogeneity: The use of mixed hardware (e.g., varying CPU generations or vCPU counts) in a single cluster.

Traditional solutions like "Gradient Coding" use data redundancy to allow the Master to reconstruct the full gradient even if some workers are slow. However, these methods typically assume all workers are identical (homogeneous). In a heterogeneous cluster, traditional coding often forces fast workers to wait for slow ones, leading to significant resource underutilization.

Distributed gradient computation architecture where a server aggregates gradients from multiple workers processing data partitions.

Proposed Methodology

The authors propose two strategies to bridge the gap between load balancing and error-correcting codes:

Heter-aware Gradient Coding

Unlike standard schemes that assign equal workloads, this method allocates data partitions proportional to each worker's measured throughput ($n_i \propto c_i$). By using a randomized auxiliary matrix construction, the scheme ensures that the Master can still reconstruct the full gradient using linear combinations, even when $s$ workers fail or are delayed, despite the unequal workload distribution.

Group-based Coding

To account for "jitter" or small measurement errors in worker speed, the authors introduced a group-based variant. This approach clusters workers with similar performance levels and prunes the coding strategy to be more robust against minor estimation errors, ensuring stable performance in real-world environments.

Experimental Evaluation

The researchers evaluated their schemes using industry-standard benchmarks: CIFAR-10 (training AlexNet) and ImageNet (training ResNet34). Testing was conducted on QingCloud clusters with 8 to 48 workers, using varying vCPU configurations to simulate a heterogeneous environment.

Key Results and Performance Analysis

The proposed schemes demonstrated significant improvements over both "Naive" (no coding) and "Cyclic" (traditional homogeneous coding) methods.

Average iteration time for AlexNet on CIFAR-10 with 1 and 2 stragglers across varying delays.

As shown in the performance data, the Heter-aware and Group-based schemes maintain a nearly constant iteration time regardless of the artificial delays introduced. In contrast, the Naive and Cyclic approaches see their iteration times spike significantly as delays increase. Key findings include:

  • 3x Speedup: In clusters with simulated hardware differences, the proposed schemes achieved up to a 3x speedup in total computation time compared to state-of-the-art Cyclic coding.
  • Resource Utilization: The Group-based scheme increased CPU utilization to nearly 50%, compared to under 20% for the Naive approach, where fast CPUs were frequently idling.
  • Convergence and Accuracy: Unlike Stale Synchronous Parallel (SSP) methods—which allow workers to run at different speeds but sacrifice accuracy—gradient coding maintains full synchronicity, ensuring high model accuracy and smooth convergence.

Conclusion

By acknowledging and optimizing for hardware heterogeneity, this research provides a robust solution to the straggler problem in distributed ML. The proposed heterogeneity-aware gradient coding schemes allow for high-speed, synchronous training in the diverse hardware environments typical of modern cloud computing. Future work may explore combining these techniques with layer-by-layer gradient coding to further mitigate communication latencies.

Summary updated

BibTeX
@inproceedings{wang2019heterogeneity,
  author = {Haozhao Wang and Song Guo and Bin Tang and Ruixuan Li and Chengjie Li},
  title = {{Heterogeneity-aware Gradient Coding for Straggler Tolerance}},
  booktitle = {ICDCS},
  year = {2019},
  url = {https://openreview.net/forum?id=PHDrvkFk8v},
}
Figure