Iowa State University
Simulation and analysis of gradient coding protocols- Leveraging partial stragglers within gradient coding
Abstract
dc:description.abstractDistributed machine learning has become essential for training modern deep learning models on large-scale datasets. However, heterogeneous worker performance in cloud computing environments that are characterized by variable computation speeds, network congestion, and hardware variability create significant bottlenecks in synchronous training. Workers that are slower than expected, known as \emph{stragglers}, force the parameter server to wait indefinitely for gradient computations, severely degrading training efficiency. Gradient coding, a coding-theoretic approach to distributed learning, addresses this problem by introducing redundancy in the assignment of data chunks to workers. By carefully encoding gradients using linear combinations, the parameter server can reconstruct the full gradient even when some workers fail to respond. However, existing gradient coding protocols treat workers as either fully operational or completely failed, ignoring the valuable partial work completed by slow-but-not-failed workers. Furthermore, communication-efficient variants that reduce transmitted gradient dimensionality suffer from severe numerical instability due to their reliance on polynomial interpolation over ill-conditioned Vandermonde matrices. This thesis presents a practical implementation and empirical evaluation of a novel partial straggler gradient coding protocol that addresses these limitations. Our protocol introduces minimal interactive communication between workers and the parameter server, enabling dynamic coordination that exploits intermediate gradient computations from slow workers. Workers periodically report their progress, and when sufficient redundancy is achieved across the cluster, the parameter server broadcasts an encode-and-transmit signal. Each worker then independently computes encoding coefficients by solving a minimum \ell2-norm least-squares problem, ensuring numerical stability through the use of random Gaussian matrices rather than polynomial bases. We implement the complete protocol using the Message Passing Interface (MPI) framework and deploy it on distributed clusters with 10 to 40 workers. Extensive experiments on the MNIST and CIFAR-10 datasets with neural networks containing 100,000 to 600,000 parameters demonstrate substantial performance improvements. Under heterogeneous conditions with simulated stragglers, our protocol achieves $1.85$--$5.2\times$ speedup over the original gradient coding approach across different cluster sizes and model architectures. The speedup factors increase superlinearly with cluster size, indicating that benefits compound at scale. Critically, our approach maintains excellent numerical stability, with gradient reconstruction errors bounded by machine precision (\approx 10-15), and introduces only $5$--$8\%$ encoding overhead under ideal conditions. We further demonstrate that our protocol integrates seamlessly with modern distributed training paradigms, including ZeRO memory optimization, pipeline parallelism, and hybrid 3D parallelism. The protocol operates at the data-parallel dimension, providing straggler tolerance while maintaining the memory efficiency of ZeRO and the computational benefits of model parallelism. Theoretical analysis confirms that exact gradient recovery preserves convergence guarantees for modern optimizers such as Adam and LAMB. Our results validate that leveraging partial work from slow workers through numerically stable encoding provides significant practical benefits for distributed machine learning. The protocol is particularly well-suited for cloud deployments where straggler rates are high and cost efficiency is paramount, achieving training time reductions of $40$--$75\%$ and corresponding cost savings. This work establishes the viability of partial straggler exploitation for production distributed training systems and provides a foundation for future research in adaptive redundancy, heterogeneity-aware scheduling, and communication-efficient approximate gradient coding.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Level thesis:degree_level
- thesis
- Discipline thesis:degree_discipline
- Computer engineering
- Department dc:contributor.department
- Department of Electrical and Computer Engineering
- Grantor
- Iowa State University
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Girimaji, Vrinda Sudhindra
- Advisors dc:contributor.advisor
-
- Ramamoorthy, Aditya
- Gulmezoglu, Berk
- Vaswani, Namrata
Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Identifier URI
- https://dr.lib.iastate.edu/handle/20.500.12876/JvNVNMNv