**Prerequisite: ** Optimization techniques in Gradient Descent

Gradient Descent is applicable in the scenarios where the function is easily differentiable with respect to the parameters used in the network. It is easy to minimize continuous function than minimizing discrete functions. The weight update is performed after one epoch, where one epoch represents running through an entire dataset. This technique produces satisfactory results but it deteriorates if the training dataset size becomes large and does not converge well. It also may not lead to global minimum in case of the existence of multiple local minima.

Stochastic gradient descent overcomes this drawback by randomly selecting data samples and updating the parameters based on the cost function. Additionally, it converges faster than regular gradient descent and saves memory by not accumulating the intermediate weights.

Adaptive Moment Estimation (ADAM) facilitates computation of learning rates for each parameter using first and second moment of gradient.

Being computationally efficient, ADAM requires less memory and outperforms on large datasets. It require * p_{2}*,

*,*

**q**_{2}*to be initialized to*

**t****0**, where

*corresponds to*

**p**_{0}*moment vector i.e. mean,*

**1**^{st}*corresponds to*

**q**_{0}*moment vector i.e. uncentered variance and*

**2**^{nd}**represents timestep.**

*t*While considering

*to be the stochastic objective function with parameters*

**ƒ(w)***, proposed values of parameters in ADAM, are as follows:*

**w**,α = 0.001,m_{1}=0.9,m_{2}=0.999.ϵ = 10^{-8}

Another major advantage discussed in the study of ADAM is that the updation of parameter is completely invariant to gradient rescaling, the algorithm will converge even if objective function changes with time. The drawback of this particular technique is that it requires computation of second-order derivative which results in increased cost.

The algorithm of ADAM has been briefly mentioned below –