Skip to main content
QUICK REVIEW

[Paper Review] Distributed Training with Heterogeneous Data: Bridging Median- and Mean-Based Algorithms

Xiangyi Chen, Tiancong Chen|arXiv (Cornell University)|Jun 4, 2019
Stochastic Gradient Optimization TechniquesComputer Science20 references32 citations
TL;DR

This paper proposes a novel gradient correction mechanism using noise perturbation to bridge the gap between median- and mean-based distributed optimization algorithms under heterogeneous data, enabling global convergence of signSGD and medianSGD despite data non-iidness. The method preserves low communication complexity and ensures convergence to stationary points under realistic federated learning conditions with heterogeneous data distributions.

ABSTRACT

Recently, there is a growing interest in the study of median-based algorithms for distributed non-convex optimization. Two prominent such algorithms include signSGD with majority vote, an effective approach for communication reduction via 1-bit compression on the local gradients, and medianSGD, an algorithm recently proposed to ensure robustness against Byzantine workers. The convergence analyses for these algorithms critically rely on the assumption that all the distributed data are drawn iid from the same distribution. However, in applications such as Federated Learning, the data across different nodes or machines can be inherently heterogeneous, which violates such an iid assumption. This work analyzes signSGD and medianSGD in distributed settings with heterogeneous data. We show that these algorithms are non-convergent whenever there is some disparity between the expected median and mean over the local gradients. To overcome this gap, we provide a novel gradient correction mechanism that perturbs the local gradients with noise, together with a series results that provable close the gap between mean and median of the gradients. The proposed methods largely preserve nice properties of these methods, such as the low per-iteration communication complexity of signSGD, and further enjoy global convergence to stationary solutions. Our perturbation technique can be of independent interest when one wishes to estimate mean through a median estimator.

Motivation & Objective

  • Address the lack of convergence guarantees for median-based and sign-based distributed optimization algorithms when data across workers are non-iid.
  • Bridge the theoretical gap between median-based (e.g., medianSGD) and mean-based (e.g., SGD) optimization under data heterogeneity.
  • Preserve desirable properties like low communication complexity (signSGD) and Byzantine robustness (medianSGD) while ensuring convergence under non-iid data.
  • Provide a unified theoretical framework that explains the hidden connection between signSGD and medianSGD via signed median direction.
  • Develop a provably effective perturbation technique to align median and mean of local gradients in heterogeneous settings.

Proposed method

  • Introduce a noise-perturbation mechanism that adds controlled noise to local gradients to align their median and mean distributions.
  • Theoretical analysis shows that perturbed gradients enable convergence by reducing the discrepancy between expected median and mean of local gradients.
  • Derive convergence bounds for signSGD and medianSGD under heterogeneous data, proving global convergence to stationary points.
  • Use a stochastic approximation framework with bounded variance and Lipschitz gradient assumptions to analyze convergence rates.
  • Establish that the perturbation technique allows estimation of the mean via median estimators, which is of independent interest.
  • Leverage coordinate-wise median and sign operations to maintain communication efficiency while ensuring robustness and convergence.

Experimental results

Research questions

  • RQ1Can signSGD and medianSGD converge globally when data across workers are non-iid, violating the standard i.i.d. assumption?
  • RQ2What causes the non-convergence of median- and mean-based algorithms under data heterogeneity, and how can it be theoretically addressed?
  • RQ3Can a gradient correction mechanism preserve the communication efficiency of signSGD while ensuring convergence under heterogeneous data?
  • RQ4Is there a theoretical connection between signSGD and medianSGD that explains their shared convergence behavior under perturbation?
  • RQ5Can noise perturbation effectively bridge the gap between median and mean of gradients in distributed non-convex optimization?

Key findings

  • The proposed noise-perturbation mechanism ensures global convergence of signSGD and medianSGD under heterogeneous data, even when the expected median and mean of local gradients differ.
  • Convergence is achieved at a rate of $ O(d^{3/4}/T^{1/4}) $, which matches the optimal statistical rate for non-convex distributed optimization.
  • The method preserves the low communication complexity of signSGD by maintaining 1-bit gradient compression via sign operations.
  • Theoretical analysis proves that the median of perturbed gradients converges to the mean of gradients, closing the gap between median- and mean-based algorithms.
  • The perturbation technique enables robust estimation of the mean using median-based estimators, which is of independent interest in distributed estimation.
  • Empirical validation using MNIST confirms the effectiveness of the method in practical federated learning settings with heterogeneous data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.