BlueFog: Make Decentralized Algorithms Practical for Optimization and Deep Learning

Bicheng Ying, Kun Yuan, Hanbin Hu, Yiming Chen, Wotao Yin
11/8/2021
34 citations
cs.DCcs.LG

Official code: Bluefog-Lib/bluefog (257 stars, Python, Apache-2.0, PyTorch, last commit 2024-07-25). 1 more implementation below.

Abstract

Decentralized algorithm is a form of computation that achieves a global goal through local dynamics that relies on low-cost communication between directly-connected agents. On large-scale optimization tasks involving distributed datasets, decentralized algorithms have shown strong, sometimes superior, performance over distributed algorithms with a central node.

Show full abstract

Recently, developing decentralized algorithms for deep learning has attracted great attention. They are considered as low-communication-overhead alternatives to those using a parameter server or the Ring-Allreduce protocol. However, the lack of an easy-to-use and efficient software package has kept most decentralized algorithms merely on paper. To fill the gap, we introduce BlueFog, a python library for straightforward, high-performance implementations of diverse decentralized algorithms. Based on a unified abstraction of various communication operations, BlueFog offers intuitive interfaces to implement a spectrum of decentralized algorithms, from those using a static, undirected graph for synchronous operations to those using dynamic and directed graphs for asynchronous operations. BlueFog also adopts several system-level acceleration techniques to further optimize the performance on the deep learning tasks. On mainstream DNN training tasks, BlueFog reaches a much higher throughput and achieves an overall $1.2\times \sim 1.8\times$ speedup over Horovod, a state-of-the-art distributed deep learning package based on Ring-Allreduce. BlueFog is open source at https://github.com/Bluefog-Lib/bluefog.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Bluefog-Lib/bluefogOfficial257PythonApache-2.02024-07-25
Bluefog-Lib/bluefog-tutorialCommunity6Jupyter NotebookApache-2.02021-05-10
PyTorchApache-2.0

Distributed and decentralized training framework for PyTorch over graph

25750Python, C++Dec 3, 20192 years agoApache-2.0
asynchronousdecentralizeddeeplearningdistributed-computingmachine-learning+4 more
Apache-2.0
62Jupyter Notebook, ShellJan 17, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{ying2021bluefog,
  title  = {BlueFog: Make Decentralized Algorithms Practical for Optimization and Deep Learning},
  author = {Bicheng Ying and Kun Yuan and Hanbin Hu and Yiming Chen and Wotao Yin},
  year   = {2021},
  eprint = {2111.04287},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.04287}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2111.04287.svg)](https://codeofpaper.com/paper/2111.04287)

Discussion