Newton's method and trust regions
A smooth function on a manifold is minimized by steps that each minimize a quadratic model of it in the chart at the current point; Newton's model has the function's own curvature and converges quadratically, any other curvature with the exact gradient converges to the same points at a linear rate, and a trust region keeps the step where the model can be believed, judging it by the ratio of the decrease obtained to the decrease promised.
A mode is the minimizer of a smooth function , and except for the simplest models it has no closed form. It is found by iteration: at the current point, replace by a model simple enough to minimize, minimize the model, and move. This note is about the model every method of this part uses, a quadratic in the chart at the point, and about the two questions any method built on it must answer: which curvature to give the model, and how far to believe it. The answers to the first decide how fast an iteration converges, never where. The answer to the second, the trust region, is what makes an iteration converge from a poor start at all.
Throughout, is a smooth function on a product of manifolds with retractions, with the stacked tangent , is the current point, and and are the chart gradient and chart Hessian of there. Every result that compares charts at nearby points assumes that is smooth near them.
The quadratic model#
Along a step in the chart at ,
for a symmetric matrix , the model’s curvature. When is a negative log-density, as it is for a mode, is the negative of the score, the gradient of the log-density, and the Hessian of at a mode is the observed information. The model agrees with in value and gradient at whatever is. With the Hessian of the pull-back it agrees to second order as well, and that Hessian equals the chart Hessian at a stationary point by Proposition 3. When is positive definite the model has one minimizer, the solution of
and the iteration moves to . The step is a descent direction, whenever , so a short enough step along it decreases . When is indefinite, the model has no minimizer, and (2) solves for a stationary point of the model that may be a saddle or a maximum.
Newton’s method#
Newton’s method takes the model’s curvature from . It decides , solved as (2) at every iterate.
Let be a manifold with a retraction that is smooth near the points below, smooth, and and its chart gradient and chart Hessian at . Let the iteration be
If is a stationary point of at which is invertible, the iteration converges to from every start near enough to it, and there is a constant such that .
Read the iteration in the chart at , as the map with . It is smooth near , since is continuous and invertible at , and since . The derivative of in at is the identity, and its derivative in at is the identity too, by the defining property of a retraction. The derivative of at is times the derivative of there, the term from the derivative of multiplying , and the derivative of along is by the definition (2). So
is twice continuously differentiable near , so by Taylor’s theorem in the chart’s coordinates for in a ball about , with the bound of half the second derivative of there. On the smaller ball where the map contracts, so an iterate that starts there stays there and the bound holds at every step.
∎Quadratic convergence doubles the number of correct digits at every step, and is the best that any method of this kind achieves. It comes at two costs. The first is the Hessian itself: second derivatives of every term, which for a function of many variables is more work, and more code, than the gradient. The second is that nothing in the proof asked for a minimum. Newton’s method converges as fast to a maximum or a saddle as to a minimum, and away from a minimum, where may be indefinite, its step may increase .
Any curvature#
A curvature other than the Hessian gives up the quadratic rate and keeps everything else.
Let , , and be as in Proposition 3, and let be a matrix that depends continuously on and is invertible near the iterates of
Then if and only if is a stationary point of . If is a stationary point, the chart Hessian there and , and the spectral radius of is less than , the iteration converges to from every start near enough to it, and in any norm for which the spectral radius is attained.
is invertible, so exactly when . Read the iteration in the chart at as the map . As in the proof of Proposition 3, . A fixed point of a map whose derivative there has spectral radius attracts every start near enough to it, at the linear rate , by Ostrowski’s theorem [Orte70].
∎So the gradient decides where an iteration stops, and the curvature only how fast it gets there. Any curvature that is invertible leaves the stationary points of where they were; Newton’s curvature makes ; one that is wrong by a little costs a slow linear rate, and one that is wrong by much, , costs convergence, without the iteration ever stopping at a point that is not stationary. A curvature that is positive definite everywhere, as Newton’s is not, makes every step a descent direction. The methods of this part are each a choice of : the Gauss–Newton matrix of a sum of squares, which needs first derivatives alone and is positive semidefinite by construction, and the expected information of a distribution, which is the same matrix where it applies and differs from it where a scale is estimated.
The trust region#
Every model of this kind is good only near . From a poor start the minimizer of the model lies far from it, where is nothing like , and the step overshoots. A trust region limits the step to where the model is believed,
for a radius and a norm with a positive diagonal matrix, which puts the coordinates on a common scale. Its solution, the trust-region step, is characterized by a single scalar.
Let be a symmetric positive semidefinite matrix, , a positive diagonal matrix, and , and let
- If and satisfy then minimizes over the region .
- If is positive definite, such a and exist for every , and are unique.
- For every , the solution of minimizes over the region of radius , and that radius does not increase with .
For part 1, is convex, since is positive semidefinite, and its gradient vanishes at , so minimizes it over all of . The condition gives . For , then,
For parts 2 and 3, write , and . For with invertible, the solution of has
which does not increase with , since every . That is the second half of part 3, and the first is part 1 with . For part 2, the are positive. If , and satisfy part 1. Otherwise , the sum is continuous and strictly decreasing in , exceeds at and tends to zero, so exactly one gives . The minimizer is unique because is strictly convex, and so is , which determines when ; when , by the third condition.
∎The scalar is a damping. At the step is the model’s own minimizer, and as grows it shortens and turns toward , a short step down the gradient in the scale of . Part 3 says that a method may choose instead of : every damped step is the trust-region step of some radius, and a larger damping a smaller radius. Doing so saves solving for the of a given radius, and changes nothing else. With a curvature that is only positive semidefinite, or indefinite, as Newton’s may be, the subproblem still has a solution, characterized as in part 1 with required to be positive semidefinite, and computing it needs more care where is orthogonal to the eigenvectors of the least eigenvalue [Moré83].
The gain ratio#
A trust-region method adapts its radius to what the steps teach it about the model. A step promises the decrease , which is positive for every solution of (5) when , and obtains . Their ratio,
is the gain ratio. It is one when is the model over the step, near one where the model is good, and small or negative where it is not. Read as the logarithm of a Gaussian, as the model is by the notes that fit one, the ratio measures how well that Gaussian follows the density over the step. Every trust-region method uses it the same way:
- a step with above a small threshold, often zero, is accepted, and the iteration moves to ; one below it is rejected, and the iteration stays;
- a step with near one, which the model predicted well, lets the radius grow, or the damping shrink; a step with small makes the radius shrink, or the damping grow.
The methods differ in the thresholds and the factors, and in whether they adapt or . With a curvature that is bounded, a function that is bounded below and an acceptance threshold above zero, the gradients of such a method’s iterates tend to zero from any start, and near a minimum at which the model’s curvature is the Hessian it takes the full step and inherits Newton’s rate, on a Euclidean space [Noce06, Chapter 4] and on a manifold with a retraction [Absi08, Chapter 7]. The trust region is what turns a step that converges from near the answer into a method that converges from far from it.
References
- [Absi08] P.-A. Absil, R. Mahony and R. Sepulchre. Optimization Algorithms on Matrix Manifolds. Princeton University Press, 2008.
- [Moré83] Jorge J. Moré and D. C. Sorensen. Computing a Trust Region Step. SIAM Journal on Scientific and Statistical Computing 4(3), 553–572. 1983.
- [Noce06] Jorge Nocedal and Stephen J. Wright. Numerical Optimization. Second edition. Springer, 2006.
- [Orte70] James M. Ortega and Werner C. Rheinboldt. Iterative Solution of Nonlinear Equations in Several Variables. Academic Press, 1970.
Built on by
- Linearization and the Gauss–Newton step Linearizing the residuals of a sum of squares and log-volumes at a point gives a quadratic model that agrees with the function in value and gradient and whose curvature is the Gauss–Newton matrix; its minimizer is the Gauss–Newton step, its minimizer in a trust region the damped step, its iteration converges where the gradient vanishes at a rate set by the curvature it omits, and it is exact when the model is linear-Gaussian.
- The Levenberg–Marquardt method A Gauss–Newton step is trusted only as far as the linearization is; damping shortens it, the ratio of the decrease obtained to the decrease promised says whether to trust it more or less, and a stopping rule on the promise alone tells convergence from rounding.
- Fisher scoring Where a scale is itself estimated, the Gauss–Newton rows omit as much curvature as they keep; Fisher scoring puts the expected information in the Hessian's place, assembled from roots as a second set of rows whose gradient is exact, and it is the Gauss–Newton linearization again when every scale is fixed.
- Optimization and estimation, term by term The notes on least squares and Gaussian approximations name most things twice, once as an optimizer would and once as a state estimator would; this table sets the two names side by side, row by row, with the note that defines each.