Machine Learning & AI
Basic

Gradient Descent Update

Iteratively moves parameters in the direction that most reduces the loss.

Formula

θ:=θαθJ(θ)\theta := \theta - \alpha\,\nabla_\theta J(\theta)

Variables

\thetaParameters
\alphaLearning rate
\nabla_\theta JGradient of loss

Example

grad=0.5, alpha=0.1: step reduces theta by 0.05

Did You Know?

Almost every neural network on Earth is trained by some variant of gradient descent.

Share this formula