paper-with-me

홈 › Papers

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

2022-05-10 · Mingrui Liu, Zhenxun Zhuang, Yunwei 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\left(\frac{1}{N\epsilon^4}\right)$ iteration complexity and $O(\frac{1}{\epsilon^3})$ communication complexity for finding an $\epsilon$-stationary point in the homogeneous data setting, where $N$ 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.

📄 PDF Abstract BibTeX arXiv:2205.05040

Code (1)

mingruiliu-ml-lab/communication-efficient-local-gradient-clipping 공식 구현 pytorch

Tasks

Federated Learning

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Tanh Activation 설명 없음
Sigmoid Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…
SGD Stochastic Gradient Descent is an iterative optimization technique that uses minibatches of data to form an expectation of the gradient, rather than the full gradient using…
Gradient Clipping One difficulty that arises with optimization of deep neural networks is that large parameter gradients can lead an SGD optimizer to update…

Similar Papers 제목 키워드 기반

Clip21: Error Feedback for Gradient Clipping

2023-05-30 · Sarit Khirirat, Eduard Gorbunov, Samuel Horváth, Rustem Islamov 외

Motivated by the increasing popularity and importance of large-scale training under differential privacy (DP) constraints, we study distributed gradient methods with gradient clipping, i.e., clipping applied to the gradi…

Deep Gradient Compression Reduce the Communication Bandwidth For distributed Traning

2017-12-05 · The International Conference on Learning Representations 2017 12 · Yujun Lin, Song Han, Huizi Mao, Yu Wang 외

Large-scale distributed training requires significant communication bandwidth for gradient exchange that limits the scalability of multi-node training, and requires expensive high-bandwidth network infrastructure. The si…

Federated Learningimage-classificationImage ClassificationLanguage Modeling+3

Deep Gradient Compression: Reducing the Communication Bandwidth for Distributed Training

2017-12-05 · ICLR 2018 1 · Yujun Lin, Song Han, Huizi Mao, Yu Wang 외

Large-scale distributed training requires significant communication bandwidth for gradient exchange that limits the scalability of multi-node training, and requires expensive high-bandwidth network infrastructure. The si…

Federated Learningimage-classificationImage ClassificationLanguage Modeling+3

Communication-Efficient Distributed Learning with Differential Privacy

2026-04-02 · Xiaoxing Ren, Yuwen Ma, Nicola Bastianello, Karl H. Johansson 외 arxiv

We address nonconvex learning problems over undirected networks. In particular, we focus on the challenge of designing an algorithm that is both communication-efficient and that guarantees the privacy of the agents' data…

Convergence and Privacy of Decentralized Nonconvex Optimization with Gradient Clipping and Communication Compression

2023-05-17 · Boyue Li, Yuejie Chi

Achieving communication efficiency in decentralized machine learning has been attracting significant attention, with communication compression recognized as an effective technique in algorithm design. This paper takes a …