Skip to main content
QUICK REVIEW

[Paper Review] Rethinking gradient sparsification as total error minimization

Atal Narayan Sahu, Aritra Dutta|arXiv (Cornell University)|Aug 2, 2021
Stochastic Gradient Optimization TechniquesComputer Science58 references19 citations
TL;DR

This paper proposes the hard-threshold sparsifier—communicating gradient coordinates above a fixed magnitude threshold—as a communication-optimal alternative to Top-k sparsification in distributed DNN training. By minimizing total compression error across all training iterations rather than per-iteration error, the method achieves faster convergence and superior communication efficiency than Top-k, with theoretical guarantees for convex and non-convex settings and empirical validation on ResNet and logistic regression models.

ABSTRACT

Gradient compression is a widely-established remedy to tackle the communication bottleneck in distributed training of large deep neural networks (DNNs). Under the error-feedback framework, Top-$k$ sparsification, sometimes with $k$ as little as $0.1\%$ of the gradient size, enables training to the same model quality as the uncompressed case for a similar iteration count. From the optimization perspective, we find that Top-$k$ is the communication-optimal sparsifier given a per-iteration $k$ element budget. We argue that to further the benefits of gradient sparsification, especially for DNNs, a different perspective is necessary -- one that moves from per-iteration optimality to consider optimality for the entire training. We identify that the total error -- the sum of the compression errors for all iterations -- encapsulates sparsification throughout training. Then, we propose a communication complexity model that minimizes the total error under a communication budget for the entire training. We find that the hard-threshold sparsifier, a variant of the Top-$k$ sparsifier with $k$ determined by a constant hard-threshold, is the optimal sparsifier for this model. Motivated by this, we provide convex and non-convex convergence analyses for the hard-threshold sparsifier with error-feedback. Unlike with Top-$k$ sparsifier, we show that hard-threshold has the same asymptotic convergence and linear speedup property as SGD in the convex case and has no impact on the data-heterogeneity in the non-convex case. Our diverse experiments on various DNNs and a logistic regression model demonstrated that the hard-threshold sparsifier is more communication-efficient than Top-$k$.

Motivation & Objective

  • To address the communication bottleneck in distributed training of large DNNs by rethinking gradient sparsification beyond per-iteration optimization.
  • To identify total compression error—sum of squared errors across all iterations—as a more meaningful metric for evaluating sparsification performance over the entire training process.
  • To propose a communication complexity model that minimizes total error under a fixed overall communication budget, leading to a new optimal sparsifier.
  • To theoretically and empirically validate that the hard-threshold sparsifier, with a fixed threshold and variable k per iteration, outperforms Top-k in convergence speed and communication efficiency.

Proposed method

  • Proposes a communication complexity model that optimizes for total error (sum of ||e_t||² over all iterations) rather than per-iteration error, under a fixed total communication budget.
  • Introduces the hard-threshold sparsifier, which transmits all gradient coordinates with magnitude ≥ λ in each iteration, where λ is a fixed threshold, resulting in variable k per iteration.
  • Employs error feedback (EF) to accumulate and correct compression errors, ensuring convergence despite lossy compression.
  • Provides convex and non-convex convergence analyses for the hard-threshold sparsifier with EF, showing asymptotic convergence and linear speedup properties equivalent to SGD.
  • Derives a heuristic for setting λ based on k from Top-k: λ ≈ 1/(2√k), validated empirically to outperform Top-k at similar communication costs.
  • Conducts experiments on ResNet-18, ResNet-50, and logistic regression models across multiple datasets and worker counts to compare hard-threshold and Top-k under identical communication budgets.

Experimental results

Research questions

  • RQ1Is there a provably better communication scheme than fixed per-iteration gradient sparsification (e.g., Top-k) when considering the entire training process?
  • RQ2Can minimizing the total compression error across all iterations lead to a more communication-efficient and faster-converging training scheme than minimizing per-iteration error?
  • RQ3Does the hard-threshold sparsifier, which uses a fixed magnitude threshold and variable k per iteration, achieve better convergence and communication efficiency than Top-k with a fixed k?
  • RQ4What is the theoretical convergence behavior of the hard-threshold sparsifier with error feedback in both convex and non-convex optimization settings?
  • RQ5How can the hard-threshold parameter λ be tuned to outperform Top-k with a given k, especially in non-convex DNN training?

Key findings

  • The hard-threshold sparsifier achieves the same convergence rate as full-precision SGD and significantly faster convergence than Top-k under the same communication budget, as shown on a 6,000-parameter logistic regression model with 20 workers.
  • In experiments on CIFAR-10 with ResNet-18, hard-threshold achieved 92.96% test accuracy with 600× less communication than Top-k, outperforming Top-k’s 90.78% accuracy under update compression.
  • The hard-threshold sparsifier ensures the same asymptotic convergence and linear speedup as SGD in convex settings, and maintains convergence properties in non-convex settings without exacerbating data heterogeneity.
  • Theoretical analysis shows that hard-threshold has a smaller total error than Top-k under the same communication budget, explaining its superior performance.
  • A heuristic tuning rule λ ≈ 1/(2√k) was derived and empirically validated, showing that hard-threshold with this λ outperforms Top-k with k = k_min in terms of final accuracy and convergence speed.
  • The method demonstrates consistent communication efficiency gains across diverse DNN architectures and datasets, including ImageNet with ResNet-50, while preserving model accuracy.

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.