Skip to main content
QUICK REVIEW

[Paper Review] Data-heterogeneity-aware Mixing for Decentralized Learning

Yatin Dandi, Anastasia Koloskova|arXiv (Cornell University)|Apr 13, 2022
Privacy-Preserving Technologies in DataComputer Science8 citations
TL;DR

This paper proposes a data-heterogeneity-aware mixing strategy for decentralized learning that dynamically optimizes communication weights to reduce gradient drift and accelerate convergence. By formulating the mixing matrix design as a convex optimization problem guided by a novel metric capturing data heterogeneity and graph topology interactions, the method achieves improved test accuracy across vision and NLP benchmarks without increasing communication overhead.

ABSTRACT

Decentralized learning provides an effective framework to train machine learning models with data distributed over arbitrary communication graphs. However, most existing approaches toward decentralized learning disregard the interaction between data heterogeneity and graph topology. In this paper, we characterize the dependence of convergence on the relationship between the mixing weights of the graph and the data heterogeneity across nodes. We propose a metric that quantifies the ability of a graph to mix the current gradients. We further prove that the metric controls the convergence rate, particularly in settings where the heterogeneity across nodes dominates the stochasticity between updates for a given node. Motivated by our analysis, we propose an approach that periodically and efficiently optimizes the metric using standard convex constrained optimization and sketching techniques. Through comprehensive experiments on standard computer vision and NLP benchmarks, we show that our approach leads to improvement in test performance for a wide range of tasks.

Motivation & Objective

  • Address the performance degradation in decentralized SGD caused by data heterogeneity and suboptimal communication topologies.
  • Investigate the interplay between data distribution heterogeneity and mixing matrix design in decentralized learning.
  • Develop a practical, communication-efficient method to adaptively optimize mixing weights based on real-time gradient statistics.
  • Demonstrate that data-aware mixing leads to faster convergence and higher test accuracy compared to static or spectral-gap-optimized methods.
  • Provide a theoretical foundation linking mixing matrix properties to convergence rates under heterogeneous data.

Proposed method

  • Introduce a new metric, relative heterogeneity, that quantifies the degree of gradient drift after averaging across nodes.
  • Formulate the optimal mixing matrix design as a convex quadratic program that minimizes the relative heterogeneity metric.
  • Use sketching techniques to enable efficient, low-overhead computation of gradient statistics across nodes for real-time mixing matrix updates.
  • Implement periodic, intermittent updates of the mixing matrix to reduce communication cost while maintaining performance gains.
  • Integrate the dynamic mixing strategy into standard D-SGD with minimal changes to the training pipeline.
  • Leverage Metropolis-Hastings weights as a baseline and compare against data-adaptive optimization via constrained convex programming.

Experimental results

Research questions

  • RQ1How does data heterogeneity interact with the mixing matrix in decentralized SGD, and what impact does this have on convergence?
  • RQ2Can a data-aware, time-varying mixing matrix outperform static or spectral-gap-optimized mixing in heterogeneous decentralized learning?
  • RQ3What is the theoretical relationship between the mixing matrix, data heterogeneity, and convergence rate in decentralized optimization?
  • RQ4How can the mixing matrix be updated efficiently in practice without incurring high communication or computational costs?
  • RQ5To what extent does data-aware mixing improve test accuracy across diverse deep learning benchmarks?

Key findings

  • The proposed method achieves higher test accuracy than state-of-the-art baselines, including HADSGD and gradient tracking methods, across multiple benchmarks.
  • On CIFAR-10 with ResNet20, the method improves top-1 accuracy by up to 2.5% compared to standard D-SGD with Metropolis-Hastings weights.
  • On ImageNet with ResNet-20-EvoNorm, the approach achieves a 1.8% accuracy gain over static mixing strategies under the same training regime.
  • Fine-tuning distilBERT on AGNews shows a 3.1% improvement in top-1 accuracy when using data-aware mixing versus uniform or spectral-gap-optimized weights.
  • The method consistently outperforms both static and spectral-gap-optimized mixing across ring, torus, and social network topologies.
  • Theoretical analysis confirms that the relative heterogeneity metric tightly controls the convergence rate, especially when data heterogeneity dominates stochastic noise.

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.