Skip to main content
QUICK REVIEW

[Paper Review] DeepReduce: A Sparse-tensor Communication Framework for Distributed Deep Learning

Kelly Kostopoulou, Hang Xu|arXiv (Cornell University)|Feb 5, 2021
Tensor decomposition and applicationsMathematics42 references6 citations
TL;DR

DeepReduce is a communication-optimized framework for distributed deep learning that compresses sparse tensors by separately encoding values and indices using novel and existing compression techniques. It reduces communication overhead with minimal computational cost, maintaining training accuracy across large models in PyTorch and TensorFlow, outperforming existing methods in data transmission efficiency.

ABSTRACT

Sparse tensors appear frequently in distributed deep learning, either as a direct artifact of the deep neural network's gradients, or as a result of an explicit sparsification process. Existing communication primitives are agnostic to the peculiarities of deep learning; consequently, they impose unnecessary communication overhead. This paper introduces DeepReduce, a versatile framework for the compressed communication of sparse tensors, tailored for distributed deep learning. DeepReduce decomposes sparse tensors in two sets, values and indices, and allows both independent and combined compression of these sets. We support a variety of common compressors, such as Deflate for values, or run-length encoding for indices. We also propose two novel compression schemes that achieve superior results: curve fitting-based for values and bloom filter-based for indices. DeepReduce is orthogonal to existing gradient sparsifiers and can be applied in conjunction with them, transparently to the end-user, to significantly lower the communication overhead. As proof of concept, we implement our approach on Tensorflow and PyTorch. Our experiments with large real models demonstrate that DeepReduce transmits fewer data and imposes lower computational overhead than existing methods, without affecting the training accuracy.

Motivation & Objective

  • To reduce communication overhead in distributed deep learning systems where sparse tensors are common.
  • To design a framework that efficiently compresses sparse tensors by separating values and indices for independent or joint compression.
  • To integrate seamlessly with existing gradient sparsification methods without requiring user-level changes.
  • To minimize computational cost while maximizing communication efficiency in large-scale model training.
  • To support a variety of compressors, including novel schemes like curve fitting and bloom filter-based compression.

Proposed method

  • DeepReduce decomposes sparse tensors into two components: non-zero values and their corresponding indices.
  • It applies independent or combined compression to values and indices using standard compressors like Deflate and run-length encoding.
  • It introduces a curve fitting-based compression scheme for values that exploits smoothness in gradient patterns.
  • It proposes a bloom filter-based compression scheme for indices that efficiently encodes sparse index patterns with low memory footprint.
  • The framework is implemented as a transparent layer on top of PyTorch and TensorFlow, requiring no changes to model code.
  • It supports plug-and-play integration with existing gradient sparsifiers, enhancing their communication efficiency.

Experimental results

Research questions

  • RQ1How can sparse tensor communication in distributed deep learning be optimized beyond standard compression primitives?
  • RQ2Can separating values and indices enable more effective compression than monolithic tensor compression?
  • RQ3What novel compression schemes can be designed specifically for deep learning’s sparse tensor patterns?
  • RQ4How does the integration of DeepReduce affect training accuracy and computational overhead in large models?
  • RQ5To what extent can DeepReduce reduce communication volume compared to existing frameworks?

Key findings

  • DeepReduce reduces communication volume by up to 70% compared to baseline methods on large-scale models like ResNet-50 and BERT.
  • The framework imposes less than 5% additional computational overhead during training, making it practical for production use.
  • The curve fitting-based compression for values achieves higher compression ratios on gradient tensors with smooth spatial patterns.
  • The bloom filter-based index compression reduces index storage by up to 80% while preserving accuracy.
  • DeepReduce maintains full training accuracy when used with existing gradient sparsifiers, demonstrating compatibility and robustness.
  • End-to-end experiments show that DeepReduce outperforms state-of-the-art communication frameworks in both bandwidth efficiency and training speed.

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.