Versatile Single-Loop Method for Gradient Estimator: First and Second Order Optimality, and its Application to Federated Learning

Kazusato Oko, Shunta Akiyama, Tomoya Murata, Taiji SuzukiarXiv 2022 · DOI

Abstract

Optimization in large-scale machine learning frequently relies on variance reduction to improve stochastic gradient descent (SGD) efficiency. However, existing state-of-the-art methods typically utilize "double-loop" structures, necessitating periodic and computationally expensive full gradient evaluations. This paper introduces SLEDGE (Single-Loop mEthoD for Gradient Estimator), a novel single-loop algorithm that achieves near-optimal gradient complexity while guaranteeing both first-order and second-order optimality (escaping saddle points). We further extend this framework to FLEDGE, a federated learning variant designed to minimize communication overhead in heterogeneous data environments. Empirical results on the EMNIST dataset demonstrate that our methods outperform existing baselines in both stability and communication efficiency.

Introduction

Training deep neural networks involves navigating complex nonconvex loss landscapes characterized by numerous saddle points. While variance reduction techniques like SARAH and SPIDER are effective at identifying first-order stationary points, their reliance on a double-loop structure presents significant challenges, particularly in Federated Learning (FL). In FL, the requirement for periodic full gradient computations forces synchronization across all participating clients, creating a substantial communication bottleneck.

Existing single-loop alternatives, such as SAGA, often suffer from sub-optimal convergence rates or fail to provide second-order guarantees. This work addresses these gaps by proposing a versatile, single-loop estimator that maintains high accuracy without the need for periodic resets.

Methodology: SLEDGE and FLEDGE

The core contribution is the SLEDGE estimator, which integrates the memory-efficient recursive updates of SAGA with the high-precision estimation characteristic of SARAH.

SLEDGE Estimator and Second-Order Optimality

Unlike SAGA, which stores all historical gradients, SLEDGE utilizes a sophisticated decomposition of gradient discrepancies to track changes across iterations. This allows the algorithm to maintain a high-quality gradient estimate continuously. To achieve second-order stationary point (SOSP) guarantees, SLEDGE incorporates a controlled amount of random noise. The low variance of the SLEDGE estimator ensures that even minimal perturbations are sufficient to escape saddle points without destabilizing convergence.

FLEDGE for Federated Learning

The authors adapt SLEDGE for the federated setting as FLEDGE. This variant incorporates local updates, allowing clients to perform multiple optimization steps before communicating with the central server. A key theoretical insight is the analysis under Hessian-heterogeneity ($\zeta$), which quantifies the variation in loss function curvature across different clients.

Theoretical Complexity

SLEDGE achieves the theoretical lower bounds for gradient complexity ($O(\sqrt{n}/\epsilon^2)$) in nonconvex settings without the overhead of a double-loop structure. Furthermore, it is the first single-loop method to offer robust guarantees for SOSPs and exponential convergence under the Polyak-Łojasiewicz (PL) condition.

Table 1: Comparison of stochastic gradient complexity across various algorithms. SLEDGE matches optimal rates for nonconvex and SOSP settings without requiring periodic full gradients.

Empirical Results

The performance of SLEDGE and FLEDGE was evaluated using the EMNIST dataset, focusing on capital letter classification.

Federated Learning Performance

In federated tasks involving 104 simulated clients with varying data distributions, FLEDGE demonstrated superior performance compared to FedAvg, SCAFFOLD, and MimeMVR. As shown in Figure 1, FLEDGE achieves higher test accuracy and more rapid reduction in training gradient norms relative to communication rounds.

Figure 1: Performance comparison of FLEDGE against FedAvg, SCAFFOLD, MimeMVR, and BVR-L-SGD on the EMNIST dataset. FLEDGE achieves higher test accuracy and lower gradient norms with fewer communication rounds.

Key Insights

  • Stability: SLEDGE exhibits more stable and monotonic convergence compared to other single-loop methods like ZeroSARAH, particularly when noise is added to escape saddle points.
  • Communication Efficiency: The complexity of FLEDGE is tied to Hessian-heterogeneity. When client curvatures are similar ($\zeta \to 0$), FLEDGE can reach a solution in a constant number of communication rounds.
  • Practicality: FLEDGE supports client sampling while maintaining second-order guarantees, making it highly suitable for real-world cross-device FL applications.

Conclusion

SLEDGE and its federated counterpart, FLEDGE, provide a robust and efficient framework for nonconvex optimization. By eliminating the need for periodic full gradient computations, these methods significantly reduce the computational and communication burdens of variance reduction. While the $O(nd)$ memory requirement remains a consideration for massive datasets, the stability and theoretical optimality of SLEDGE establish a new standard for single-loop gradient estimation.

Summary updated

BibTeX
@misc{oko2022versatile,
  author = {Kazusato Oko and Shunta Akiyama and Tomoya Murata and Taiji Suzuki},
  title = {{Versatile Single-Loop Method for Gradient Estimator: First and Second Order Optimality, and its Application to Federated Learning}},
  year = {2022},
  eprint = {2209.00361},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.00361},
}
Figure