Skip to main content
QUICK REVIEW

[Paper Review] Pufferfish: Communication-efficient Models At No Extra Cost

Wang, Hongyi, Saurabh Agarwal|arXiv (Cornell University)|Mar 5, 2021
Advanced Neural Network ApplicationsComputer Science89 references5 citations
TL;DR

Pufferfish is a communication- and computation-efficient distributed training framework that achieves communication efficiency by training low-rank, pre-factorized deep networks derived from full-rank models. By initializing with a full-rank network for a fraction of training and then applying SVD to convert to low-rank, Pufferfish eliminates compression overhead and achieves up to 1.64× end-to-end speedup over PyTorch's DDP with no accuracy loss, outperforming both Lottery Ticket Hypothesis and structured pruning methods.

ABSTRACT

To mitigate communication overheads in distributed model training, several studies propose the use of compressed stochastic gradients, usually achieved by sparsification or quantization. Such techniques achieve high compression ratios, but in many cases incur either significant computational overheads or some accuracy loss. In this work, we present Pufferfish, a communication and computation efficient distributed training framework that incorporates the gradient compression into the model training process via training low-rank, pre-factorized deep networks. Pufferfish not only reduces communication, but also completely bypasses any computation overheads related to compression, and achieves the same accuracy as state-of-the-art, off-the-shelf deep models. Pufferfish can be directly integrated into current deep learning frameworks with minimum implementation modification. Our extensive experiments over real distributed setups, across a variety of large-scale machine learning tasks, indicate that Pufferfish achieves up to 1.64x end-to-end speedup over the latest distributed training API in PyTorch without accuracy loss. Compared to the Lottery Ticket Hypothesis models, Pufferfish leads to equally accurate, small-parameter models while avoiding the burden of "winning the lottery". Pufferfish also leads to more accurate and smaller models than SOTA structured model pruning methods.

Motivation & Objective

  • To address communication bottlenecks in distributed deep learning training caused by frequent gradient transfers.
  • To eliminate the computational overhead typically associated with gradient compression techniques like sparsification and quantization.
  • To achieve communication efficiency without sacrificing model accuracy or requiring complex implementation changes.
  • To provide a plug-and-play solution compatible with existing deep learning frameworks like PyTorch.
  • To outperform existing methods such as the Lottery Ticket Hypothesis and structured pruning in both accuracy and model size.

Proposed method

  • Train a full-rank deep neural network for a small fraction (e.g., 10%) of the total training time to stabilize weights.
  • Apply singular value decomposition (SVD) to each layer to factorize it into low-rank components, creating a pre-factorized low-rank model.
  • Fine-tune the resulting low-rank model for the remainder of the training schedule.
  • Integrate the low-rank model directly into the training pipeline, bypassing explicit gradient compression steps.
  • Use a hybrid architecture that combines full-rank and low-rank components during early training to mitigate accuracy loss.
  • Leverage existing distributed training APIs (e.g., PyTorch DDP) with minimal modifications to achieve end-to-end efficiency.

Experimental results

Research questions

  • RQ1Can gradient compression be integrated into the model architecture itself to eliminate computational overhead while maintaining accuracy?
  • RQ2Does pre-factorizing a model via SVD after partial full-rank training yield communication efficiency without accuracy degradation?
  • RQ3Can this approach achieve better speedups than state-of-the-art distributed training APIs without requiring custom communication primitives?
  • RQ4How does the proposed method compare to the Lottery Ticket Hypothesis in terms of accuracy, model size, and training efficiency?
  • RQ5Can low-rank factorization be applied to various architectures and tasks without significant hyperparameter tuning?

Key findings

  • Pufferfish achieves up to 1.64× end-to-end speedup over PyTorch’s DistributedDataParallel (DDP) in real distributed setups without any accuracy loss.
  • On ResNet-18 with CIFAR-10, Pufferfish achieves 1.16× per-epoch speedup in the speed-optimized setting, with 22% fewer MACs.
  • The hybrid training strategy with early full-rank warm-up improves accuracy by 0.36% on VGG-19-BN (CIFAR-10) and 4.8% on ResNet-50 (ImageNet) compared to vanilla low-rank training.
  • Pufferfish models match or exceed the accuracy of Lottery Ticket Hypothesis models while avoiding the costly lottery winnowing process.
  • Pufferfish produces smaller, more accurate models than state-of-the-art structured pruning methods, demonstrating superior parameter efficiency.

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.