Learning rate adaptation for differentially private stochastic gradient descent

Antti Koskela, Antti HonkelaarXiv 2018

Abstract

Hyperparameter optimization, particularly for the learning rate, presents a significant challenge in Differentially Private (DP) and Federated Learning (FL) environments. Traditional tuning methods consume a prohibitive amount of the privacy budget and struggle with non-IID data distributions. This paper introduces ADADP, an algorithm that utilizes numerical extrapolation—comparing a single full step to two half-steps—to adapt the learning rate dynamically. ADADP eliminates the need for a separate validation set, providing a robust solution for privacy-constrained machine learning.

Introduction

In modern machine learning, the learning rate is arguably the most critical hyperparameter. Standard practice involves "tuning": running the model multiple times with different rates and selecting the best performer based on a validation set. However, in Differentially Private (DP) and Federated Learning (FL), this approach is often untenable. In DP, every data access (including validation) consumes a portion of the privacy budget. In FL, data is siloed on local devices, often lacking a global validation set and exhibiting non-IID (independent and identically distributed) characteristics that make a single fixed learning rate ineffective across all participants.

Methodology: The ADADP Algorithm

The core innovation of ADADP is the application of extrapolation, a technique borrowed from numerical analysis for solving differential equations. By viewing SGD as a discrete approximation of a "gradient flow" (an ODE), the authors estimate the local error of a step by comparing two paths:

  1. Step A: A single full step of size $\eta$.
  2. Step B: Two successive smaller steps of size $\eta/2$.

The difference between the resulting model weights provides a local error estimate ($err$). If the error is too high, the algorithm discards the step and shrinks the learning rate; if the error is low, the learning rate is increased for the next iteration.

Privacy Integration

ADADP is integrated into the standard DP-SGD framework, which involves clipping gradients and adding Gaussian noise. Because the error estimate itself relies on noisy gradients, the authors provide a rigorous privacy proof using the Moments Accountant technique. While this method requires two minibatches per "logical" step—doubling the privacy cost per iteration—it avoids the massive privacy expenditure typically associated with extensive hyperparameter grid searches.

Experimental Results

The researchers evaluated ADADP on MNIST and CIFAR-10 benchmarks, focusing on both centralized DP-SGD and decentralized Federated Learning scenarios.

Competitive Performance

In DP settings, ADADP performed as well as, and occasionally better than, "Oracle" tuned versions of the Adam optimizer. It effectively reached high accuracy without requiring the researcher to pre-determine an optimal starting learning rate.

Stability in Federated Learning

In "pathological" federated cases where each client possesses entirely different data classes (non-IID), standard SGD performance often plummets. ADADP demonstrated significant stability in these scenarios, adjusting the learning rate to suit the specific local geometry of the data silos.

Discussion and Limitations

While ADADP successfully automates learning rate selection, it introduces a new hyperparameter: the tolerance (tol). The authors provide a mathematical heuristic to set tol, effectively shifting the optimization problem from "finding the right learning rate" to "setting a target error level."

The primary trade-off is the 2x privacy cost per step. However, the authors argue this is a favorable bargain compared to the "hidden" privacy costs of running dozens of potential learning rates to find an optimal one. Future research may explore cheaper error estimation methods and the adaptation of other hyperparameters, such as the gradient clipping threshold ($C$) and minibatch size.

Conclusion

ADADP represents a significant step toward "set-and-forget" optimization for privacy-preserving machine learning. By leveraging the internal dynamics of the optimizer to sense appropriate step sizes, it bypasses the need for external validation and preserves the privacy budget for actual model training.

Summary updated

BibTeX
@misc{koskela2018learning,
  author = {Antti Koskela and Antti Honkela},
  title = {{Learning rate adaptation for differentially private stochastic gradient descent}},
  year = {2018},
  eprint = {1809.03832},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.03832},
}
Figure