Federated Multi-Sequence Stochastic Approximation with Local Hypergradient Estimation

Davoud Ataee Tarzanagh, Mingchen Li, Pranay Sharma, Samet OymakarXiv 2023 · DOI

Introduction

Standard Federated Learning (FL) frameworks are predominantly designed for empirical risk minimization, where clients collaboratively minimize a single global loss function. However, many emerging machine learning paradigms involve "nested" optimization structures. For instance, Bilevel Optimization (BLO) requires solving an inner problem (e.g., model training) to inform an outer problem (e.g., hyperparameter tuning). In a federated context, calculating the necessary hypergradients—which involve second-order Hessian information—presents a significant bottleneck. Traditionally, this requires frequent global coordination to avoid "drift," leading to prohibitive communication costs.

To address this, researchers have introduced FedMSA (Federated Multi-Sequence Stochastic Approximation). FedMSA is the first federated algorithm capable of handling complex multi-sequence problems by allowing clients to estimate hypergradients locally. This approach yields up to a 10x reduction in communication rounds while maintaining near-optimal convergence rates.

The Challenge of Federated Nested Optimization

In BLO, updating outer variables requires a hypergradient that depends on the global Hessian. In a decentralized environment, a client only has access to local data, making an accurate local hypergradient update difficult. Previous methods often kept global information fixed during local steps, which caused the local model to drift significantly from the true global optimum as the number of local updates increased. The core challenge lies in enabling multiple local updates on these coupled sequences without sacrificing accuracy or incurring excessive communication overhead.

The FedMSA Framework

FedMSA addresses these challenges through several key technical innovations:

  • Local Hypergradient Estimation: Unlike previous approaches, FedMSA permits clients to update the "indirect" component of the hypergradient during local steps. This innovation is critical for preventing local model drift.
  • Momentum-based Variance Reduction: Drawing inspiration from SARAH and SPIDER, the algorithm uses momentum to mitigate the noise of stochastic updates, ensuring faster and more stable convergence.
  • Two-Round Communication Protocol: Each iteration utilizes two back-and-forth rounds between the server and clients. This ensures that local update directions are periodically corrected with global information.
  • Simultaneous Sequence Updates: FedMSA updates all coupled variables (inner, outer, and Hessian-related) concurrently, rather than solving the inner problem to completion before addressing the outer problem.

Experimental Results

The performance of FedMSA was evaluated on two primary tasks: an imbalanced MNIST dataset for BLO (tuning a loss function for class balance) and a synthetic risk-averse optimization problem for Multi-level Compositional Optimization (MCO).

Empirical performance of FedMSA compared to FedNest. (a) Test accuracy vs. communication rounds shows significantly faster convergence. (b) Test accuracy vs. local updates (K) demonstrates stability as local work increases.

As shown in the figure above, FedMSA reaches 90% test accuracy on the MNIST task in approximately 250 rounds, whereas the previous state-of-the-art, FedNest, requires over 2,000 rounds. Furthermore, the results illustrate that FedMSA's accuracy remains stable or improves as the number of local updates ($K$) increases, while competing methods often suffer from performance degradation due to uncorrected gradient drift.

Theoretical Analysis

FedMSA is not only empirically effective but also theoretically robust. It achieves a sample complexity of $O(\epsilon^{-1.5})$ and a communication complexity of $O(\tau \epsilon^{-1})$, where $\tau$ represents a factor quantifying data heterogeneity.

Comparison of sample and communication complexity for FedMSA against existing algorithms in MSA, BLO, and MCO frameworks.

As detailed in the complexity table, FedMSA matches or exceeds the best known rates for non-federated versions of these problems, effectively breaking the $N=1$ nesting barrier that limited previous federated research.

Limitations and Future Work

Despite its advantages, FedMSA's performance is still influenced by data heterogeneity ($\tau$); in extremely non-IID settings, communication efficiency may decrease. Additionally, while empirical results with multiple client selections per round are promising, the current formal theory assumes a single client selection per round. Future work will focus on generalizing these proofs and relaxing the "strongly monotone increments" assumptions required for certain multi-sequence analyses.

Summary updated

BibTeX
@misc{tarzanagh2023federated,
  author = {Davoud Ataee Tarzanagh and Mingchen Li and Pranay Sharma and Samet Oymak},
  title = {{Federated Multi-Sequence Stochastic Approximation with Local Hypergradient Estimation}},
  year = {2023},
  eprint = {2306.01648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.01648},
}
Figure