Lune

NeurIPS2022顶会

A Communication-Efficient Distributed Gradient Clipping Algorithm for Training Deep Neural Networks

Mingrui Liu, Zhenxun Zhuang, Yunwen Lei, Chunyang Liao

摘要

In distributed training of deep neural networks, people usually run Stochastic Gradient Descent (SGD) or its variants on each machine and communicate with other machines periodically. However, SGD might converge slowly in training some deep neural networks (e.g., RNN, LSTM) because of the exploding gradient issue. Gradient clipping is usually employed to address this issue in the single machine setting, but exploring this technique in the distributed setting is still in its infancy: it remains mysterious whether the gradient clipping scheme can take advantage of multiple machines to enjoy parallel speedup. The main technical difficulty lies in dealing with nonconvex loss function, non-Lipschitz continuous gradient, and skipping communication rounds simultaneously. In this paper, we explore a relaxed-smoothness assumption of the loss landscape which LSTM was shown to satisfy in previous works, and design a communication-efficient gradient clipping algorithm. This algorithm can be run on multiple machines, where each machine employs a gradient clipping scheme and communicate with other machines after multiple steps of gradient-based updates. Our algorithm is proved to have O(1Nϵ4)O\left(\frac{1}{N\epsilon^4}\right) iteration complexity and O(1ϵ3)O(\frac{1}{\epsilon^3}) communication complexity for finding an ϵ\epsilon-stationary point in the homogeneous data setting, where NN is the number of machines. This indicates that our algorithm enjoys linear speedup and reduced communication rounds. Our proof relies on novel analysis techniques of estimating truncated random variables, which we believe are of independent interest. Our experiments on several benchmark datasets and various scenarios demonstrate that our algorithm indeed exhibits fast convergence speed in practice and thus validates our theory.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Revisiting Gradient Clipping: Stochastic bias and tight convergence guarantees 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • Bilevel Optimization under Unbounded Smoothness: A New Algorithm and Convergence Analysis 引用了 Federated Learning with Client Subsampling, Data Heterogeneity, and Unbounded Smoothness: A New Algorithm and Lower Bounds
  • Bilevel Optimization under Unbounded Smoothness: A New Algorithm and Convergence Analysis 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • An Accelerated Algorithm for Stochastic Bilevel Optimization under Unbounded Smoothness 引用了 Bilevel Optimization under Unbounded Smoothness: A New Algorithm and Convergence Analysis
  • An Accelerated Algorithm for Stochastic Bilevel Optimization under Unbounded Smoothness 引用了 A Nearly Optimal Single Loop Algorithm for Stochastic Bilevel Optimization under Unbounded Smoothness
  • An Accelerated Algorithm for Stochastic Bilevel Optimization under Unbounded Smoothness 引用了 Federated Learning with Client Subsampling, Data Heterogeneity, and Unbounded Smoothness: A New Algorithm and Lower Bounds
  • An Accelerated Algorithm for Stochastic Bilevel Optimization under Unbounded Smoothness 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
  • A Nearly Optimal Single Loop Algorithm for Stochastic Bilevel Optimization under Unbounded Smoothness 引用了 Bilevel Optimization under Unbounded Smoothness: A New Algorithm and Convergence Analysis
  • A Unified Theory of Decentralized SGD with Changing Topology and Local Updates 引用了 Don't Use Large Mini-batches, Use Local SGD
  • Federated Learning with Client Subsampling, Data Heterogeneity, and Unbounded Smoothness: A New Algorithm and Lower Bounds 引用了 A Unified Theory of Decentralized SGD with Changing Topology and Local Updates
  • Federated Learning with Client Subsampling, Data Heterogeneity, and Unbounded Smoothness: A New Algorithm and Lower Bounds 引用了 SCAFFOLD: Stochastic Controlled Averaging for Federated Learning
  • Federated Learning with Client Subsampling, Data Heterogeneity, and Unbounded Smoothness: A New Algorithm and Lower Bounds 引用了 Don't Use Large Mini-batches, Use Local SGD
  • Federated Learning with Client Subsampling, Data Heterogeneity, and Unbounded Smoothness: A New Algorithm and Lower Bounds 引用了 Why Gradient Clipping Accelerates Training: A Theoretical Justification for Adaptivity
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper15

  1. Revisiting Gradient Clipping: Stochastic bias and tight convergence guaranteesAnastasia Koloskova, Hadrien Hendrikx, Sebastian U. StichICML 2023 · 106 次引用
  2. Federated Learning with Client Subsampling, Data Heterogeneity, and Unbounded Smoothness: A New Algorithm and Lower BoundsMichael Crawshaw, Yajie Bao, Mingrui LiuNeurIPS 2023 · 23 次引用
  3. Bilevel Optimization under Unbounded Smoothness: A New Algorithm and Convergence AnalysisJie Hao, Xiaochuan Gong, Mingrui LiuICLR 2024 · 14 次引用
  4. An Accelerated Algorithm for Stochastic Bilevel Optimization under Unbounded SmoothnessXiaochuan Gong, Jie Hao, Mingrui LiuNeurIPS 2024 · 10 次引用
  5. A Nearly Optimal Single Loop Algorithm for Stochastic Bilevel Optimization under Unbounded SmoothnessXiaochuan Gong, Jie Hao, Mingrui LiuICML 2024 · 10 次引用

它引用的 Paper14

  1. SCAFFOLD: Stochastic Controlled Averaging for Federated LearningSai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi 等ICML 2020 · 3,875 次引用
  2. Large Batch Optimization for Deep Learning: Training BERT in 76 minutesYang You, Jing Li, Sashank J. Reddi, Jonathan Hseu 等ICLR 2020 · 1,170 次引用
  3. A Unified Theory of Decentralized SGD with Changing Topology and Local UpdatesAnastasia Koloskova, Nicolas Loizou, Sadra Boreiri, Martin Jaggi 等ICML 2020 · 623 次引用
  4. Why Gradient Clipping Accelerates Training: A Theoretical Justification for AdaptivityJingzhao Zhang, Tianxing He, Suvrit Sra, Ali JadbabaieICLR 2020 · 598 次引用
  5. Don't Use Large Mini-batches, Use Local SGDTao Lin, Sebastian U. Stich, Kumar Kshitij Patel, Martin JaggiICLR 2020 · 462 次引用

相关 Paper

  1. EPISODE: Episodic Gradient Clipping with Periodic Resampled Corrections for Federated Learning with Heterogeneous DataMichael Crawshaw, Yajie Bao, Mingrui LiuICLR 2023 · 2 次引用
  2. Improved Analysis of Clipping Algorithms for Non-convex OptimizationBohang Zhang, Jikai Jin, Cong Fang, Liwei WangNeurIPS 2020 · 139 次引用
  3. Robustness to Unbounded Smoothness of Generalized SignSGDMichael Crawshaw, Mingrui Liu, Francesco Orabona, Wei Zhang 等NeurIPS 2022 · 111 次引用
  4. On the Convergence of Communication-Efficient Local SGD for Federated LearningHongchang Gao, An Xu, Heng HuangAAAI 2021 · 66 次引用
  5. On the Acceleration of Deep Learning Model Parallelism With StalenessAn Xu, Zhouyuan Huo, Heng HuangCVPR 2020
黄昏的海面,两侧是细线勾勒的悬崖