NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Outsized Importance of Learning Rates in Local Update Methods

Zachary Charles, Jakub KonecnýarXiv 2020

TL;DR

This paper reveals that the client learning rate in local update methods (like Federated Averaging and MAML) is crucial for balancing convergence speed and accuracy. By analyzing these methods through the lens of optimizing a "surrogate loss," the authors show that carefully tuning the learning rate can significantly improve performance, especially in communication-constrained settings, and propose an automatic learning rate decay mechanism to simplify this tuning.

What Problem Does This Paper Address?

Federated learning (FL) and meta-learning (ML) algorithms often involve clients performing local updates on their data before aggregating results. While these "local update methods" show promise, their theoretical understanding, especially in heterogeneous settings (where client data distributions differ), has lagged behind their practical success. It's been challenging to explain why they work, how they compare to simpler methods like mini-batch SGD, and what factors truly influence their performance. This paper aims to bridge this gap by providing a unified theoretical framework to understand the behavior of these methods, focusing on the critical role of the client learning rate.

Methods

The authors introduce a generalized framework called LOCALUPDATE that encompasses many FL and ML algorithms. They analyze this framework by considering a surrogate loss function that local update methods effectively optimize. For quadratic objectives, they show that local updates are equivalent to performing Stochastic Gradient Descent (SGD) on this surrogate loss. A key contribution is characterizing this surrogate loss and demonstrating how the client learning rate ($\gamma$) and the structure of local updates ($\Theta$) influence its properties, particularly its condition number and its alignment with the true loss function. They derive novel convergence rates for Federated Averaging (FedAvg) and related methods, highlighting a trade-off between optimizing the surrogate loss efficiently and ensuring it accurately reflects the true objective. They also propose a practical method for automatic learning rate decay to mitigate the need for manual tuning.

Datasets

The paper uses the following datasets for empirical evaluation:

  • FEMNIST: A federated version of MNIST for character recognition.
  • CIFAR-100: A federated version of CIFAR-100, adapted for heterogeneity.
  • Shakespeare: A dataset derived from Shakespeare's works for next-character prediction.
  • Stack Overflow: A dataset of questions and answers, used for tag prediction and next-word prediction tasks.

Key Insights and Ideas

  • Local updates are SGD on a surrogate loss: The paper elegantly reframes local update methods as performing SGD on a different loss function (the surrogate loss) than the true objective. This provides a powerful lens for analysis.
  • Client learning rate is king: The client learning rate ($\gamma$) is shown to be a primary determinant of the surrogate loss's condition number and its divergence from the true loss. A smaller $\gamma$ can lead to better alignment with the true loss but might slow down convergence on the surrogate.
  • Implicit regularization: Methods like FedAvg and MAML implicitly regularize the condition number of the surrogate loss, which can speed up optimization of that surrogate. However, this comes at the cost of potentially increasing the gap between the surrogate and true loss minimizers.
  • Learning rate decay is necessary (and sufficient): For convergence to the true risk minimizer, especially in heterogeneous settings, learning rate decay is not just beneficial but often necessary. The paper demonstrates that appropriate decay can lead to near-optimal performance.
  • Tuning is hard, but decay helps: While optimal performance often requires careful tuning of both client and server learning rates, the proposed automatic learning rate decay method significantly reduces this burden, achieving competitive results with less manual effort.

Key Results

  • Theoretical characterization: The paper provides a precise mathematical characterization of the surrogate loss function optimized by local update methods.
  • Convergence rates: Novel convergence rates for FedAvg are derived, explicitly showing the trade-off between surrogate loss condition number and its alignment with the true loss, controlled by $\gamma$.
  • Suboptimality: For non-zero client learning rates, local update methods may converge to a point different from the true risk minimizer. This suboptimality is quantified and shown to be dependent on $\gamma$.
  • Empirical validation: Experiments on various datasets and tasks demonstrate that proper learning rate tuning is crucial. The proposed automatic learning rate decay method shows competitive performance, often matching or exceeding manually tuned settings, especially in limited communication scenarios. For instance, on CIFAR-100, smaller $\gamma$ values eventually achieved lower training losses than higher ones, and the decay mechanism helped recover from initially suboptimal $\gamma$ choices.

Limitations and Future Work

  • Quadratic objectives: The theoretical analysis is primarily focused on quadratic loss functions. While empirical results suggest the findings generalize, extending the theory to non-quadratic and non-convex objectives remains an open question.
  • Generalization: The current work focuses on training dynamics and convergence. The implications of parameter choices in LOCALUPDATE for model generalization ability are not explored and are suggested as a future research direction.
  • Hyperparameter tuning: While the automatic learning rate decay simplifies tuning, determining optimal values for parameters like decay factors and cooldown periods still requires some heuristics.
  • Broader algorithms: The authors suggest that their analysis framework can be extended to other local update methods like FedProx, and that understanding their specific surrogate losses and optimization dynamics is a promising avenue.

Summary updated

BibTeX
@misc{charles2020outsized,
  author = {Zachary Charles and Jakub Konecný},
  title = {{On the Outsized Importance of Learning Rates in Local Update Methods}},
  year = {2020},
  eprint = {2007.00878},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.00878},
}
Figure