Gradient Descent

Gradient descent minimizes a differentiable objective by repeatedly moving opposite the gradient. It is the simplest first-order optimizer and the conceptual base for stochastic and adaptive deep-learning optimizers.

Defining math

For objective , the update is

where is the learning rate. On a quadratic , the gradient is , so the update contracts the distance to when :

In convex optimization, suitable step sizes can provide convergence guarantees. In nonconvex learning, the same update is useful but no longer guarantees a global optimum.

Worked example

Minimize from with . The update turns, after subtracting the minimizer, into a geometric contraction with factor :

After twelve steps, , so and : the iterates nearly reach the minimizer, and the error shrinks by a factor of each step.

The path on the loss curve shows the same contraction geometrically: each step moves left toward the minimum and the vertical loss value shrinks rapidly.

Gradient descent iterates move down a quadratic objective toward the minimizer.

Caveats

Learning rate dominates behavior. Too small wastes iterations; too large oscillates or diverges. Ill-conditioned curvature makes progress fast in steep directions and slow in flat ones, which is why scaling, momentum, and second-order information matter.

References