3
$\begingroup$

Why is optimal learning rate obtained from analyzing gradient descent algorithm rarely (never) used in practice?

Gradient descent procedure is to iteratively do $a(k+1) = a(k) - \eta(k)\nabla J(a(k))$. Expanding $J(a(k+1))$ using $2^{nd}$ order Taylor expansion and taking the derivative with respect to $\eta$, one obtain the optimal learning rate of $$\eta^{opt} = \frac{||\nabla J||^2}{\nabla J^T H \nabla J}$$ where $H$ is the second order derivative of the cost function.

However, I have not seen this being used in any learning algorithm that employs gradient descent like SVM or perceptron. Is there any reason for that? Or is it implicitly employed in a way that I am not aware of. If so, can anyone illustrate the math involved?

$\endgroup$

2 Answers 2

7
$\begingroup$

It's not used because it's counter productive.

Just about the only justification for using gradient descent (and it's really not a good justification at all, as you will see if you read through some of the posts on the topic on this site) is that one avoids needing to calculate the Hessian, as this can be very expensive for high dimensional problems. So once you've calculated the Hessian, you've taken away gradient descent's strength: not needing to calculate the Hessian.

If you have calculated the Hessian, you're better of using something like Newton's Method.

$\endgroup$
0
$\begingroup$

There isn't much point in using it in SVM solvers or perceptrons because the cost function being minimized has properties that make other algorithms more attractive (e.g. interior points, SMO, normal equations).

I'm not an expert on non-linear optimisation, but the equation looks rather like the Newton steps used in the line search in conjugate gradient descent (but in the direction of the gradient, rather than a conjugate direction). If that is the case, it is used quite often for statistical models (such as neural networks) where the cost function does not have convenient properties that admit more efficient optimisation schemes.

Caveat lector: My own neural network library used conjugate gradients, but I wrote it so long ago I can no longer remember the details.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.