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:
- 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.
- 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