Second-Order Guarantees in Federated Learning

Stefan Vlaski, Elsa Rizk, Ali H. SayedACSSC 2020

Introduction

While most Federated Learning (FL) research focuses on finding points where the gradient is zero (first-order stationarity), this work explores whether FL algorithms like FedAvg can actually escape saddle points to find local minima. In deep learning, optimization landscapes are riddled with saddle points—regions where the gradient is zero, but a minimum has not been reached. While standard Stochastic Gradient Descent (SGD) can escape these traps due to its inherent noise, Federated Learning introduces a new layer of complexity: bias.

In FL, multiple agents perform several local updates before averaging their models at a central server. This "multiple local updates" approach is communication-efficient but introduces a mathematical challenge. Unlike standard SGD, the update direction in FL isn't just a noisy version of the true gradient; it's skewed because agents drift away from the global model during their local steps. This paper addresses a fundamental question: Can FL algorithms still escape saddle points despite this bias and high levels of agent heterogeneity?

Methods

The authors reformulate the Federated Averaging (FedAvg) recursion into a perturbed version of centralized gradient descent. They decompose the update into three distinct components:

  1. The True Gradient: The intended direction of optimization.
  2. Zero-Mean Noise ($s_i$): Arising from stochastic sampling and partial agent participation.
  3. The Bias Term ($d_i$): The "drift" caused by agents taking multiple local steps.

The core technical contribution involves proving that while the bias $d_i$ exists, its impact is bounded (specifically, its fourth-order moment is proportional to $\mu^4$, where $\mu$ is the step size). Crucially, the "good" noise $s_i$ remains large enough to provide the necessary "kick" to push the iterates away from unstable saddle points. The analysis relies on assumptions of a well-behaved gradient noise process and smoothness (Lipschitz constants for gradients and Hessians).

Key Insights

  • Quantifying Bias vs. Noise: The bias introduced by local updates does not destroy the second-order properties of the algorithm; it simply necessitates more careful step-size selection.
  • Robustness to Heterogeneity: The proof accounts for "straggling agents" and "gradient disagreement" (where agents have different local cost functions), showing that second-order guarantees are robust to common FL challenges.
  • Polynomial Time Escape: The paper provides an upper bound on the number of iterations required to reach a second-order stationary point, demonstrating that escape occurs in polynomial time relative to problem parameters.
  • Noise as a Feature: The results reinforce the idea that noise—from data sampling, partial participation, or intentional perturbations—is beneficial for non-convex optimization.

Key Results

The authors prove that with high probability, the algorithm returns a point where the gradient norm is small ($O(\sqrt{\mu})$) and the Hessian is nearly positive semi-definite. To validate these theoretical findings, they use a synthetic benchmark: a neural network with a single linear hidden layer trained using cross-entropy, which features a strict saddle point at the origin.

Convergence of the expected gradient norm for different participation levels $L$.

Numerical simulations clearly demonstrate the aggregate model escaping the saddle point at the origin and converging to a local minimum. This behavior is consistent regardless of whether the participation rate ($L/K$) is low or high.

Iterate trajectories on a non-convex loss surface, showing escape from a central saddle point.

The "saddle-point escape time" is shown to be logarithmic with respect to the required precision, matching the best-known results for centralized non-convex SGD.

Limitations and Future Work

While providing strong guarantees, the analysis relies on a sufficiently small step size $\mu$, the selection of which remains a practical challenge. Furthermore, the analysis assumes the Hessian is Lipschitz continuous, which may not hold for all complex deep learning models. Future work could extend these biased-perturbation bounds to fully peer-to-peer decentralized networks, moving beyond the server-client architecture.

Summary updated

BibTeX
@inproceedings{vlaski2020second,
  author = {Stefan Vlaski and Elsa Rizk and Ali H. Sayed},
  title = {{Second-Order Guarantees in Federated Learning}},
  booktitle = {ACSSC},
  year = {2020},
  doi = {10.1109/ieeeconf51394.2020.9443421},
}
Figure