Gradient Descent based Optimization Algorithms for Deep Learning Models Training

Jiawei ZhangarXiv 2019

Abstract In this paper, we aim at providing an introduction to the gradient descent based optimization algorithms for learning deep neural network models. Deep learning models involving multiple nonlinear projection layers are very challenging to train. Nowadays, most of the deep learning model training still relies on the back propagation algorithm actually. In back propagation, the model variables will be updated iteratively until convergence with gradient descent based optimization algorithms. Besides the conventional vanilla gradient descent algorithm, many gradient descent variants have also been proposed in recent years to improve the learning performance, including Momentum, Adagrad, Adam, Gadam, etc., which will all be introduced in this paper respectively.

Introduction

Training deep neural networks is notoriously difficult due to high-dimensional, non-convex loss landscapes. Researchers face four primary challenges: selecting an appropriate learning rate, adjusting that rate over time, scaling updates per-parameter, and avoiding local optima or saddle points where gradients vanish. This paper, authored by Jiawei Zhang of the IFM Lab, provides a mathematical roadmap of gradient descent (GD) variants and introduces Gadam, a novel hybrid framework designed to navigate these complex landscapes.

Optimization Generations

The paper categorizes optimization evolution into four generations, moving from basic iterative updates to sophisticated adaptive and hybrid methods.

Conventional Gradient Descent

The foundation of deep learning optimization is Vanilla Gradient Descent. In this approach, model parameters are updated iteratively based on the gradient of the loss function calculated over the training set.

Algorithm 1: The Vanilla Gradient Descent procedure for model parameter initialization and iterative updates.

Variants include:

  • Vanilla GD (Batch): Computes gradients using the entire training set.
  • Stochastic GD (SGD): Updates parameters instance-by-instance.
  • Mini-batch GD: Uses small subsets of data to balance efficiency and stability.

Momentum-based Methods

To overcome oscillations in standard GD, Momentum adds "inertia" to updates. Nesterov Accelerated Gradient (NAG) improves this by "looking ahead"—calculating the gradient at an approximated future position to allow for course correction before overshooting.

Adaptive Gradients

These methods adjust the learning rate for each parameter individually:

  • Adagrad: Scales rates based on historical gradients.
  • RMSprop: Uses moving averages to prevent learning rates from vanishing.
  • Adadelta: Eliminates the manual learning rate hyperparameter by ensuring update units match parameter units (e.g., if a weight is in kg, the update is also in kg), effectively approximating the Hessian.

Gadam: A Hybrid Evolutionary Framework

The author's primary contribution, Gadam, addresses the "blind" local search nature of gradient descent. Gadam initializes a population of models and evolves them over generations. In each generation, models are trained using the Adam optimizer for local convergence. Subsequently, a Genetic Algorithm (GA) performs Selection (keeping the best models), Crossover (exchanging weights), and Mutation (random perturbations).

This population-based approach allows the optimizer to "jump" out of local minima that would trap a single-instance optimizer. The process terminates when the improvement between generations falls below a threshold ($\lambda$).

Key Insights and Discussion

  • Mathematical Foundations: The paper provides a formal proof (Lemma 1) showing that momentum-based updates are essentially an exponentially weighted moving average of all historical gradients.
  • Dimensional Consistency: A key insight in Adadelta is the "unit" problem; by matching update units to parameter units, the algorithm naturally removes the need for manual learning rate tuning.
  • Distributed Efficiency: Gadam is highly suitable for parallel computing. Each model in the population can be trained independently on separate servers, with communication only required during the crossover phase.

Limitations and Future Work

The primary limitation of Gadam is its computational intensity, as training a population of $g$ models is significantly more expensive than training one. It also introduces new hyperparameters like population size and mutation rate. As a "living" tutorial from the IFM Lab, this work will be updated as new optimization variants emerge in the research community.

Summary updated

BibTeX
@misc{zhang2019gradient,
  author = {Jiawei Zhang},
  title = {{Gradient Descent based Optimization Algorithms for Deep Learning Models Training}},
  year = {2019},
  eprint = {1903.03614},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.03614},
}
Figure