Compressed Decentralized Proximal Stochastic Gradient Method for Nonconvex Composite Problems with Heterogeneous Data

Yonggui Yan, Jie Chen, Pin-Yu Chen, Xiaodong Cui, Songtao Lu, Yangyang Xu

Training large-scale machine learning models increasingly requires distributing workloads across multiple "workers" or nodes. However, when these nodes operate in a decentralized network—lacking a central coordinating server—and the data is "heterogeneous" (meaning each worker sees a drastically different slice of the total dataset), standard optimization methods often break down.

A recent paper, "Compressed Decentralized Proximal Stochastic Gradient Method for Nonconvex Composite Problems with Heterogeneous Data," introduces a pair of algorithms designed to tackle these exact challenges. The proposed methods, DProxSGT and its compressed counterpart CDProxSGT, achieve optimal theoretical performance while significantly improving a model's ability to generalize to new data.

The Challenges of Decentralized Edge Learning

In decentralized optimization, workers communicate only with their immediate neighbors in a network graph. This setup faces four major hurdles:

  1. Data Heterogeneity: In real-world edge networks, data is rarely distributed identically (i.i.d.). One node might collect data from one demographic, while another collects from a completely different one. This "distribution shift" causes local gradients to point in wildly different directions.
  2. Nonsmoothness: Modern models frequently use regularizers (like $\ell_1$ for sparsity) that are not differentiable, rendering standard gradient descent inapplicable.
  3. Communication Bottlenecks: Moving high-dimensional model parameters across a network is slow, bandwidth-intensive, and expensive.
  4. The Generalization Gap: Many existing distributed methods rely on "large-batch" training to stabilize convergence. However, large batches often lead to poor generalization in deep learning—the model "memorizes" the training data but fails on unseen test sets.

Introducing DProxSGT and CDProxSGT

To overcome these hurdles, the authors introduce two primary algorithms that combine proximal updates, gradient tracking, and communication compression.

  • DProxSGT (Decentralized Proximal Stochastic Gradient Tracking): This method uses proximal updates to handle nonsmooth regularizers and gradient tracking to correct the bias introduced by local data heterogeneity. Gradient tracking maintains an auxiliary variable at each node that estimates the global gradient of the entire network. Crucially, DProxSGT requires only a single sample (or a small constant number, $\mathcal{O}(1)$) per update.
  • CDProxSGT (Compressed DProxSGT): To save bandwidth, the authors extend DProxSGT to support communication compression (such as quantization or sparsification). They employ an "error feedback" mechanism where only compressed residues are communicated, ensuring that compression errors do not cause the algorithm to diverge.
Comparison of decentralized optimization methods

Theoretical Breakthroughs

A key theoretical insight in this work is the use of the Moreau envelope in the convergence analysis. This mathematical tool allows the authors to treat a nonsmooth objective as a smooth one. Consequently, they prove that their methods reach an $\epsilon$-stationary point with an optimal sample complexity of $\mathcal{O}(1/\epsilon^4)$.

Furthermore, as shown in the table above, DProxSGT and CDProxSGT are unique in achieving this with $\mathcal{O}(1)$ batch sizes without requiring complex variance reduction (VR) or momentum (MMT) techniques, even when dealing with nonsmooth regularizers ($r \neq 0$) and compression (CMP).

Key Results and Empirical Success

The researchers evaluated their methods on standard image classification benchmarks (FashionMNIST with LeNet5, and Cifar10 with FixupResNet20), specifically configured to be highly heterogeneous. In these tests, each worker only held 2 out of 10 possible classes.

Training curves showing objective, test accuracy, and consensus error
  • Superior Generalization: The "noise" inherent in small-batch SGD helps models find flatter, more generalizable minima. On FixupResNet20 (Cifar10), DProxSGT actually outperformed centralized training (AllReduce) in testing accuracy. It also significantly beat DEEPSTORM (a momentum-based method), which suffered from high oscillations.
  • Communication Savings: CDProxSGT achieved nearly identical objective values and testing accuracy as its non-compressed version while saving 60% to 70% of communication costs.
  • Robustness to Heterogeneity: While competing methods struggled to reach high testing accuracy due to data imbalance, the gradient tracking in DProxSGT and CDProxSGT forced local updates to align with the global objective, keeping the training stable and accurate.

Limitations and Future Work

While highly effective, the methods come with a few caveats. The current theoretical analysis shows a dependence on the graph's spectral gap that might be loose compared to deterministic methods, suggesting room for tighter stochastic analysis. Additionally, CDProxSGT introduces several hyperparameters for compression that may require careful tuning for different network topologies. Finally, the analysis assumes the expected loss function is smooth—a standard assumption, but one that may not perfectly cover all neural network edge cases, such as ReLU activations without specific smoothing.

Summary updated

BibTeX
@inproceedings{yan2023compressed,
  author = {Yonggui Yan and Jie Chen and Pin-Yu Chen and Xiaodong Cui and Songtao Lu and Yangyang Xu},
  title = {{Compressed Decentralized Proximal Stochastic Gradient Method for Nonconvex Composite Problems with Heterogeneous Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=BwKvrALptG},
}
Figure