Skip to main content
QUICK REVIEW

[論文レビュー] Sharper Convergence Guarantees for Asynchronous SGD for Distributed and Federated Learning

Anastasia Koloskova, Sebastian U. Stich|arXiv (Cornell University)|Jun 16, 2022
Stochastic Gradient Optimization TechniquesComputer Science被引用数 18
ひとこと要約

本稿では、最大勾配遅延 $τ_{\text{max}}$ に依存するのではなく、平均および最大勾配遅延 $τ_{\text{avg}}$ と $τ_{\text{max}}$ の幾何平均に依存するより鋭い収束保証を導入することで、分散型およびフェデレーテッドラーニングにおける非同期SGDの収束保証を強化する。さらに、追加の通信やハイパーパramータチューニングなしに平均遅延に依存する収束スケーリングを達成する遅延適応型学習率を提案し、非同期SGDが常にミニバッチSGDより速いことを証明する。

ABSTRACT

We study the asynchronous stochastic gradient descent algorithm for distributed training over $n$ workers which have varying computation and communication frequency over time. In this algorithm, workers compute stochastic gradients in parallel at their own pace and return those to the server without any synchronization. Existing convergence rates of this algorithm for non-convex smooth objectives depend on the maximum gradient delay $τ_{\max}$ and show that an $ε$-stationary point is reached after $\mathcal{O}\!\left(σ^2ε^{-2}+ τ_{\max}ε^{-1} ight)$ iterations, where $σ$ denotes the variance of stochastic gradients. In this work (i) we obtain a tighter convergence rate of $\mathcal{O}\!\left(σ^2ε^{-2}+ \sqrt{τ_{\max}τ_{avg}}ε^{-1} ight)$ without any change in the algorithm where $τ_{avg}$ is the average delay, which can be significantly smaller than $τ_{\max}$. We also provide (ii) a simple delay-adaptive learning rate scheme, under which asynchronous SGD achieves a convergence rate of $\mathcal{O}\!\left(σ^2ε^{-2}+ τ_{avg}ε^{-1} ight)$, and does not require any extra hyperparameter tuning nor extra communications. Our result allows to show for the first time that asynchronous SGD is always faster than mini-batch SGD. In addition, (iii) we consider the case of heterogeneous functions motivated by federated learning applications and improve the convergence rate by proving a weaker dependence on the maximum delay compared to prior works. In particular, we show that the heterogeneity term in convergence rate is only affected by the average delay within each worker.

研究の動機と目的

  • 最大勾配遅延 $τ_{\text{max}}$ に過剰に依存するのを減らすことで、分散型およびフェデレーテッドラーニングにおける非同期SGDの収束保証を改善すること。
  • 追加の通信やハイパーパramータチューニングなしに、勾配遅延に適応する学習率スキームを開発すること。
  • フェデレーテッドラーニングで一般的な不均一な目的関数へと収束解析を拡張し、遅延依存性を改善すること。
  • 理論的および実験的に、非同期SGDが常にミニバッチSGDより速いことを示すこと。

提案手法

  • 定常ステップサイズを用いた標準的な非同期SGDに対して、$Ω\big{(}\sigma^2\varepsilon^{-2} + \sqrt{\tau_{\text{avg}}\tau_{\text{max}}}\varepsilon^{-1}\big{)}$ のより鋭い収束バウンドを導出する。
  • 追加の通信やチューニングなしに、収束レート $Ω\big{(}\sigma^2\varepsilon^{-2} + \tau_{\text{avg}}\varepsilon^{-1}\big{)}$ を達成する遅延適応型学習率を提案する。
  • 不均一な関数の下での非同期SGDの収束を分析し、不均一性項がワーカー1人あたりの平均遅延にのみ依存することを示す。
  • 期待される勾配ノルムの減衰と遅延に適応した分散バウンドに基づく、新しい分析フレームワークを用いてより鋭いバウンドを導出する。
  • 二次関数およびロジスティック回帰関数を用いた実験により、理論的知見を検証し、実際の実装で $√{\tau_{\text{max}}}$ 依存性が確認された。

実験結果

リサーチクエスチョン

  • RQ1最大遅延ではなく平均遅延に依存するより鋭い非同期SGDの収束レートを導出可能か?
  • RQ2追加の通信やハイパーパramータチューニングなしに、遅延に適応する学習率スキームを設計可能か?
  • RQ3フェデレーテッドラーニングにおける不均一な目的関数下での非同期SGDの収束は、どのようにスケーリングされるか?
  • RQ4非同期SGDは収束レートの観点から、常にミニバッチSGDより速いか?

主な発見

  • 本稿では、標準的な非同期SGDに対して、$Ω\big{(}\sigma^2\varepsilon^{-2} + \sqrt{\tau_{\text{avg}}\tau_{\text{max}}}\varepsilon^{-1}\big{)}$ のより鋭い収束レートを確立し、従来の $Ω\big{(}\sigma^2\varepsilon^{-2} + \tau_{\text{max}}\varepsilon^{-1}\big{)}$ のバウンドを改善した。
  • 追加の通信やハイパーパramータチューニングなしに、収束レート $Ω\big{(}\sigma^2\varepsilon^{-2} + \tau_{\text{avg}}\varepsilon^{-1}\big{)}$ を達成する遅延適応型学習率を提案した。
  • 理論的解析により、非同期SGDが常にミニバッチSGDより速いことが証明された。その収束レートは $τ_{\text{max}}$ ではなく $√{\tau_{\text{avg}}\tau_{\text{max}}}$ に依存するためである。
  • 不均一なフェデレーテッドラーニングでは、収束レートがワーカー1人あたりの平均遅延にのみ依存し、最大遅延に依存しないため、遅延の長いワーカー(スレーブ)への耐性が向上した。
  • 二次関数およびロジスティック回帰関数を用いた実験により、実際の実装で $√{\tau_{\text{max}}}$ 依存性が確認され、理論的バウンドが妥当であることが実証された。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。