Learn Before
Formula

Optimal Step Size for Gradient Descent via Taylor Expansion

Denote an objective function as f(x)f(x), with gg as the gradient and HH as the Hessian matrix evaluated at an initial point x(0)x^{(0)}. In gradient descent, we calculate the updated point as x=x(0)ϵgx = x^{(0)} - \epsilon g, where ϵ\epsilon is the step size. Using a second-order Taylor expansion, we obtain the approximation f(x(0)ϵg)f(x(0))ϵgTg+12ϵ2gTHgf(x^{(0)} - \epsilon g) \approx f(x^{(0)}) - \epsilon g^Tg + \frac{1}{2} \epsilon^2 g^THg. According to this equation, when gTHgg^THg is positive, the optimal step size ϵ\epsilon^* that minimizes this approximation is ϵ=gTggTHg\epsilon^* = \frac{g^Tg}{g^THg}.

0

1

Updated 2026-06-29

Tags

Data Science

D2L

Dive into Deep Learning @ D2L

Related