Sharper Rates and Flexible Framework for Nonconvex SGD with Client and Data Sampling

Alexander Tyurin, Lukang Sun, Konstantin Burlachenko, Peter Richtárik

Introduction

In large-scale machine learning, optimization often involves minimizing a finite-sum objective across $n$ data points. While algorithms like PAGE (Probabilistic Gradient Estimator) have achieved theoretical optimality in terms of gradient complexity, a gap remains between theory and practice. Standard analyses often rely on global smoothness constants that can be overly pessimistic and assume rigid sampling mechanisms that do not reflect complex real-world environments like Federated Learning (FL).

This paper addresses these gaps by introducing a generalized theoretical framework for nonconvex SGD. By leveraging a novel "Weighted AB Inequality" and a sharper smoothness parameter called "Weighted Hessian Variance" ($L_{\pm}$), the authors provide tighter convergence rates and support flexible sampling strategies, including importance and stratified sampling.

Theoretical Framework and Methods

The core of the proposed approach is an extension of the PAGE algorithm, a loopless variance-reduced method. The authors introduce two key mathematical innovations to refine its analysis:

  1. Weighted AB Inequality: This novel assumption characterizes a wide range of unbiased sampling mechanisms. It uses constants $A$ and $B$ along with weights $w_i$ to provide a flexible bound on the variance of the gradient estimator.
  2. Weighted Hessian Variance ($L_{\pm}$): Instead of a single global Lipschitz constant, $L_{\pm}$ measures the variance between individual functions' gradients and the average gradient. This parameter allows for much sharper complexity bounds, especially when functions are similar.

The framework also supports the composition of samplings, enabling a "plug-and-play" analysis for hierarchical environments like FL, where both clients and local data are sampled.

Complexity comparison of various sampling schemes under the proposed framework.

Experimental Validation

The researchers evaluated their framework using synthetic quadratic tasks and real-world datasets from LIBSVM (w8a and australian). The synthetic tasks allowed for precise control over the Hessian variance ($L_{\pm}$) to directly test theoretical predictions. The australian dataset was particularly useful for demonstrating performance gains when local Lipschitz constants vary significantly.

Key Results and Insights

The analysis reveals several critical insights into stochastic optimization:

  • Superiority of Importance Sampling: Theoretical bounds suggest that sampling data points proportional to their local smoothness ($L_i$) can yield a speedup of up to $\sqrt{n}$ over uniform sampling.
  • Refined Uniform Bounds: Even for standard uniform sampling, the new analysis provides tighter complexity bounds by incorporating the $L_{\pm}$ constant.
  • Impact of Sampling Without Replacement: The framework shows that for "Nice" sampling (without replacement), the constant $B$ in the variance bound is positive, leading to inherently sharper convergence rates than previously recognized.

Empirical results confirm these findings. As shown in the figures below, Importance Sampling consistently outperforms Uniform Sampling and Vanilla PAGE, particularly as the Hessian variance $L_{\pm}$ increases.

Empirical performance comparison of Importance, Uniform, and Vanilla PAGE across different Hessian variance levels ($L_{\pm}$).

Furthermore, the paper demonstrates that Stratified Sampling—grouping similar functions—can provide a $\sqrt{n/g}$ improvement, where $g$ is the number of groups, offering a practical path for optimizing heterogeneous FL systems.

Conclusion and Future Directions

This work provides a more nuanced and flexible theoretical foundation for nonconvex SGD. By moving beyond global constants and rigid sampling, it offers actionable insights for improving algorithm performance in practice.

Future research could address the practical challenge of estimating local Lipschitz constants $L_i$ in real-time for Importance Sampling. Additionally, extending this framework to non-smooth nonconvex problems and integrating it with communication-efficient techniques in Federated Learning remain promising avenues for exploration.

Summary updated

BibTeX
@article{tyurin2023sharper,
  author = {Alexander Tyurin and Lukang Sun and Konstantin Burlachenko and Peter Richtárik},
  title = {{Sharper Rates and Flexible Framework for Nonconvex SGD with Client and Data Sampling}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=zKgJ6TWAFE},
}
Figure