Language

Continue on this page in your preferred language.

Settings

Adjust this browser’s reading experience. Changes take effect immediately.

All questions

One gradient step on a quadratic

Can a gradient step make the loss worse?

Interactive example

A quadratic loss and one gradient step-403610NowNextL(w) = (w − 3)² + 1
Loss now
10
Change in loss
-9

A step in the negative-gradient direction can still increase loss when the step is too large.

See the values
A quadratic loss and one gradient step
QuantityValue
Current w0
Gradient-6
Next w3
Next loss1

What to notice

Relate a derivative, an update rule and the observed loss change.

Conditions

One-dimensional differentiable quadratic and the explicit update w − step × gradient.

What this example cannot show

A quadratic has a simple global shape; this does not describe all optimisation landscapes.

Sources and context

These sources provide topic context. The values and interaction are authored by AXIOVUM; no institutional endorsement is implied.

IP Geolocation by DB-IP · CC BY 4.0