On the Role of Data Homogeneity in Multi-Agent Non-convex Stochastic Optimization

Qiang Li, Hoi-To Wai

Abstract

This paper studies the role of data homogeneity on multi-agent optimization. Concentrating on the decentralized stochastic gradient (DSGD) algorithm, we characterize the transient time, defined as the minimum number of iterations required such that DSGD can achieve comparable performance as its centralized counterpart. When the Hessians for the objective functions are identical at different agents, we show that the transient time of DSGD is $O( n^{4/3} / ρ^{8/3})$ for smooth (possibly non-convex) objective functions, where $n$ is the number of agents and $ρ$ is the spectral gap of connectivity graph. This is improved over the bound of $O( n^2 / ρ^4 )$ without the Hessian homogeneity assumption. Our analysis leverages a property that the objective function is twice continuously differentiable. Numerical experiments are presented to illustrate the essence of data homogeneity to fast convergence of DSGD.

Introduction

In decentralized machine learning, a group of $n$ agents (such as mobile devices or edge sensors) collaborates to solve a global optimization problem without transferring raw data to a central server. The standard algorithm for this task is Decentralized Stochastic Gradient Descent (DSGD), where agents perform local updates and exchange information with neighbors to maintain consensus.

A key performance metric is "linear speedup," the point at which $n$ agents working together perform as efficiently as a centralized server with $n$ times the resources. However, DSGD typically requires a transient time—a period of iterations before this speedup is realized. Previous theoretical bounds suggested this time could be as high as $O(n^2 / \rho^4)$, which is prohibitively large for sparse or large-scale networks. This research investigates how data homogeneity, specifically the similarity of second-order derivatives (Hessians), can significantly shorten this transient period.

Methodology

The authors propose a refined convergence analysis for DSGD by focusing on Hessian Homogeneity. While previous studies often focused on gradient similarity, this work posits that the similarity in the "curvature" of loss functions across agents is a more critical factor for fast convergence.

Key technical innovations include:

  1. Hessian Similarity Assumption: The objective functions are assumed to be twice continuously differentiable with Lipschitz Hessians, allowing for a more granular analysis of how local updates diverge.
  2. Higher-Order Moment Bounds: Instead of standard second-order consensus error bounds, the authors derive fourth-order moment bounds.
  3. Linear Map Approximation: By using a Taylor expansion (linear map) to approximate the gradient, the researchers can more accurately track the deviation of local gradients from the global average.

Experimental Setup

The theoretical findings were validated using a synthetic binary classification task with a non-convex sigmoid loss function. The experiments utilized 12 agents arranged in a ring graph—a topology known for its slow consensus due to low connectivity.

Two primary data distributions were compared:

  • Homo-DSGD (Homogeneous): All agents draw samples from a single, pooled dataset.
  • Hete-DSGD (Heterogeneous): Each agent's data is generated from a unique underlying parameter vector, creating significant data diversity.

Key Results

The analysis successfully reduced the theoretical transient time bound to $O(n^{4/3} / \rho^{8/3})$. For a ring graph (where $\rho \approx 1/n^2$), this represents a massive improvement from $O(n^{10})$ to $O(n^{6.66})$ iterations.

Numerical results, illustrated in Figure 1, confirm that data homogeneity is a primary driver of convergence speed. Homo-DSGD tracks the performance of the centralized SGD (CSGD) benchmark almost immediately, whereas Hete-DSGD requires significantly more iterations to reach the same level of accuracy.

Comparison of convergence rates for CSGD, Homo-DSGD, and Hete-DSGD. The plot shows that homogeneous data allows decentralized learning to match centralized performance much faster than heterogeneous data.

Discussion and Conclusion

The study highlights that curvature similarity (Hessians) matters more than directional similarity (gradients) for the efficiency of decentralized learning. This insight helps explain why DSGD often performs better in practice than older theories suggested, as real-world datasets often share underlying structural similarities.

Limitations and Future Work: * Smoothness: The current proof requires twice-differentiable functions, which may not directly apply to models using non-smooth activations like ReLU. * Quantifying Heterogeneity: Future research could explore the "phase transition" points where increasing heterogeneity begins to degrade performance significantly. * Compression: The authors suggest that these findings are complementary to communication compression techniques, providing a dual path for optimizing decentralized systems.

Summary updated

BibTeX
@inproceedings{li2022role,
  author = {Qiang Li and Hoi-To Wai},
  title = {{On the Role of Data Homogeneity in Multi-Agent Non-convex Stochastic Optimization}},
  booktitle = {CDC},
  year = {2022},
  doi = {10.1109/cdc51059.2022.9992403},
}
Figure