Skip to main content
QUICK REVIEW

[Paper Review] Demystifying Why Local Aggregation Helps: Convergence Analysis of Hierarchical SGD

Jiayi Wang, Shiqiang Wang|arXiv (Cornell University)|Oct 24, 2020
Energy Efficient Wireless Sensor NetworksComputer Science5 citations
TL;DR

This paper introduces a novel convergence analysis of Hierarchical SGD (H-SGD) using 'upward' and 'downward' divergences to explain why local aggregation improves training in non-IID, non-convex, stochastic settings. It proves that H-SGD's convergence upper bound lies between two single-level local SGD settings—demonstrating a 'sandwich behavior'—offering theoretical insight into how hierarchical aggregation mitigates data heterogeneity and enhances global convergence.

ABSTRACT

Hierarchical SGD (H-SGD) has emerged as a new distributed SGD algorithm for multi-level communication networks. In H-SGD, before each global aggregation, workers send their updated local models to local servers for aggregations. Despite recent research efforts, the effect of local aggregation on global convergence still lacks theoretical understanding. In this work, we first introduce a new notion of "upward" and "downward" divergences. We then use it to conduct a novel analysis to obtain a worst-case convergence upper bound for two-level H-SGD with non-IID data, non-convex objective function, and stochastic gradient. By extending this result to the case with random grouping, we observe that this convergence upper bound of H-SGD is between the upper bounds of two single-level local SGD settings, with the number of local iterations equal to the local and global update periods in H-SGD, respectively. We refer to this as the "sandwich behavior". Furthermore, we extend our analytical approach based on "upward" and "downward" divergences to study the convergence for the general case of H-SGD with more than two levels, where the "sandwich behavior" still holds. Our theoretical results provide key insights of why local aggregation can be beneficial in improving the convergence of H-SGD.

Motivation & Objective

  • To theoretically understand why local aggregation in H-SGD improves convergence under non-IID data, non-convex objectives, and stochastic gradients.
  • To address the lack of theoretical analysis for H-SGD in realistic distributed settings with data heterogeneity and communication efficiency constraints.
  • To characterize data heterogeneity through 'upward' and 'downward' divergences, enabling a refined analysis of model divergence across hierarchical levels.
  • To establish a convergence upper bound for H-SGD that reveals the fundamental benefit of multi-level aggregation.
  • To extend the analysis to multi-level H-SGD and demonstrate the persistence of the 'sandwich behavior' across multiple hierarchy levels.

Proposed method

  • Introduce a new theoretical framework using 'upward' and 'downward' divergences to decompose global model divergence in H-SGD.
  • Formulate a worst-case convergence upper bound for two-level H-SGD under non-IID data, non-convex objectives, and stochastic gradients.
  • Extend the analysis to random grouping scenarios to show robustness and generalization of the convergence bound.
  • Demonstrate that the H-SGD convergence bound lies between the bounds of two single-level local SGD settings with local and global update periods I and G, respectively—defining the 'sandwich behavior'.
  • Generalize the divergence-based analysis to multi-level H-SGD (M ≥ 3 levels), proving the 'sandwich behavior' holds in higher-order hierarchies.
  • Use this framework to analyze performance under partial worker participation and varying group sizes, validating theoretical insights experimentally.

Experimental results

Research questions

  • RQ1Why does local aggregation in H-SGD improve convergence despite non-IID data and stochastic gradients?
  • RQ2How does the convergence of H-SGD compare to single-level local SGD under different aggregation periods?
  • RQ3Can the 'sandwich behavior'—where H-SGD convergence lies between two local SGD regimes—be theoretically proven and generalized to multi-level systems?
  • RQ4What role do 'upward' and 'downward' divergences play in characterizing model divergence across hierarchical communication layers?
  • RQ5Does the theoretical benefit of local aggregation hold under random grouping and partial worker participation?

Key findings

  • The proposed convergence upper bound for H-SGD with non-IID data, non-convex objectives, and stochastic gradients is tighter and more general than prior works, which either assume IID data or use full-batch gradients.
  • The convergence upper bound of H-SGD lies strictly between the bounds of two single-level local SGD settings with aggregation periods I and G, respectively—this is termed the 'sandwich behavior'.
  • The 'sandwich behavior' persists in multi-level H-SGD (M ≥ 3), demonstrating that hierarchical aggregation provides a systematic improvement over single-level approaches.
  • Even with random grouping, the convergence bound of H-SGD remains bounded and lies between the two local SGD regimes, indicating robustness to grouping strategies.
  • Experiments on FEMNIST, CelebA, and CIFAR-10 confirm that H-SGD with multi-level aggregation achieves better test accuracy and lower training loss compared to single-level local SGD, especially under high communication latency.
  • The 3-level H-SGD setup with larger global periods (e.g., P₁=200, P₂=40, P₃=20) achieves better performance than single-level H-SGD with smaller global periods, showing that hierarchical aggregation enables reduced communication cost without sacrificing convergence.

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.