Learning rate adaptive stochastic gradient descent optimization methods: numerical simulations for deep learning methods for partial differential equations and convergence analyses

Steffen Dereich, Arnulf Jentzen, Adrian Riekert

Introduction

In the realm of deep learning, the efficiency of Stochastic Gradient Descent (SGD) and its variants, such as the Adam optimizer, is heavily dependent on the choice of learning rate. Despite their popularity, these optimizers often struggle with convergence when learning rates remain constant—a common default in frameworks like TensorFlow and PyTorch. Theoretically, if the learning rate does not converge to zero, these methods may fail to reach the global minimum in stochastic settings. Traditionally, practitioners rely on human-tuned deterministic schedules or trial-and-error to find a decaying rate that ensures convergence. This paper introduces a learning-rate-adaptive (LRA) framework designed to automate this process by adjusting the step size based on empirical estimates of the objective function.

The Learning-Rate-Adaptive (LRA) Framework

The proposed LRA approach aims to eliminate the need for manual learning rate scheduling by creating an optimizer that "senses" the loss landscape. The core of the method lies in two integrated components:

  1. Optimal Learning Rate (OLR) Selection: When training progress stalls, the algorithm initiates a sub-routine. It evaluates a geometric grid of potential learning rates centered around the current value. By performing a limited number of "trial steps" for each candidate rate and measuring the resulting loss on a validation set, the optimizer identifies the most effective step size for the current local geometry.
  2. Dynamic Adjustment Mechanism: The training loop monitors the objective function's value. If the loss fails to improve beyond a predefined "patience" or tolerance threshold, the OLR selection is triggered. This allows the optimizer to start with large steps for rapid initial progress and automatically transition to smaller, refined steps as it approaches a minimum.

Theoretical Convergence

A significant contribution of this work is the rigorous mathematical analysis of the LRA-SGD variant. The authors prove that for a class of quadratic minimization problems, the adaptive strategy is guaranteed to converge to the global minimizer. This proof utilizes an analysis of the laws of invariant measures and treats the learning rates as "predictable" random variables. This theoretical foundation addresses a long-standing gap in stochastic optimization where constant learning rates fail to provide such guarantees, bridging the gap between empirical success and mathematical stability.

Numerical Simulations in Scientific Computing

The LRA method was evaluated across several complex benchmarks, focusing on deep learning methods for partial differential equations (PDEs). Unlike standard image classification tasks, solving high-dimensional PDEs requires high precision and stability. The test cases included:

  • Deep Kolmogorov Methods (DKM): Applied to 25-dimensional Heat PDEs, 10-dimensional Black-Scholes equations (finance), and stochastic Lorenz equations.
  • Physics-Informed Neural Networks (PINNs): Used to solve the sine-Gordon and Allen-Cahn equations.
  • Deep Ritz Methods (DRM): Employed for 10-dimensional Poisson equations.
  • Supervised Learning: A 6-dimensional polynomial approximation task.

Results and Discussion

Numerical experiments demonstrate that the LRA-Adam variant consistently outperforms the standard Adam optimizer with default settings. In the 25D Heat PDE and 10D Black-Scholes tasks, the LRA method achieved a relative $L^2$-error nearly an order of magnitude lower than the baseline within the same number of iterations. Furthermore, the adaptive method showed significantly faster reduction in the objective function across all tested PDE frameworks.

While the LRA approach introduces some computational overhead due to the periodic mini-grid searches, this cost is often offset by the reduction in total training time and the elimination of the manual tuning phase. The method proves to be a robust, framework-agnostic wrapper that enhances the reliability of deep learning for scientific computing. Future work may extend the theoretical convergence proofs to more general non-convex objective functions characteristic of deep neural networks.

Summary updated

Abstract

It is known that the standard stochastic gradient descent (SGD) optimization method, as well as accelerated and adaptive SGD optimization methods such as the Adam optimizer fail to converge if the learning rates do not converge to zero (as, for example, in the situation of constant learning rates). Numerical simulations often use human-tuned deterministic learning rate schedules or small constant learning rates. The default learning rate schedules for SGD optimization methods in machine learning implementation frameworks such as TensorFlow and Pytorch are constant learning rates. In this work we propose and study a learning-rate-adaptive approach for SGD optimization methods in which the learning rate is adjusted based on empirical estimates for the values of the objective function of the considered optimization problem (the function that one intends to minimize). In particular, we propose a learning-rate-adaptive variant of the Adam optimizer and implement it in case of several neural network learning problems, particularly, in the context of deep learning approximation methods for partial differential equations such as deep Kolmogorov methods, physics-informed neural networks, and deep Ritz methods. In each of the presented learning problems the proposed learning-rate-adaptive variant of the Adam optimizer faster reduces the value of the objective function than the Adam optimizer with the default learning rate. For a simple class of quadratic minimization problems we also rigorously prove that a learning-rate-adaptive variant of the SGD optimization method converges to the minimizer of the considered minimization problem. Our convergence proof is based on an analysis of the laws of invariant measures of the SGD method as well as on a more general convergence analysis for SGD with random but predictable learning rates which we develop in this work.
BibTeX
@misc{dereich2024learning,
  author = {Steffen Dereich and Arnulf Jentzen and Adrian Riekert},
  title = {{Learning rate adaptive stochastic gradient descent optimization methods: numerical simulations for deep learning methods for partial differential equations and convergence analyses}},
  year = {2024},
  eprint = {2406.14340},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.14340},
}
Figure