skoro v0.0.0

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.

Updated 2026-11-25 · 7 min read

A mode is the minimizer of a smooth function ff, and except for the simplest models it has no closed form. It is found by iteration: at the current point, replace ff 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, ff is a smooth function on a product of manifolds with retractions, with the stacked tangent Rd\R^\dimension, x^\hat \point is the current point, and gg and HH are the chart gradient and chart Hessian of ff there. Every result that compares charts at nearby points assumes that ⊕\oplus is smooth near them.

The quadratic model#

Along a step v\tangent in the chart at x^\hat \point,

f(x^⊕v)≈m(v)=f(x^)+g⊤v+12v⊤Mv,(1) f(\hat \point \oplus \tangent) \approx m(\tangent) = f(\hat \point) + g\transpose \tangent + \tfrac12 \tangent\transpose M \tangent , \tag{1}
(1)

for a symmetric matrix MM, the model’s curvature. When ff is a negative log-density, as it is for a mode, gg is the negative of the score, the gradient of the log-density, and the Hessian of ff at a mode is the observed information. The model agrees with ff in value and gradient at v=0\tangent = 0 whatever MM is. With MM the Hessian of the pull-back v↦f(x^⊕v)\tangent \mapsto f(\hat \point \oplus \tangent) it agrees to second order as well, and that Hessian equals the chart Hessian at a stationary point by Proposition 3. When MM is positive definite the model has one minimizer, the solution of

Mv=−g,(2) M \tangent = -g , \tag{2}
(2)

and the iteration moves to x^⊕v\hat \point \oplus \tangent. The step is a descent direction, g⊤v=−g⊤M−1g<0g\transpose \tangent = -g\transpose M^{-1} g < 0 whenever g≠0g \ne 0, so a short enough step along it decreases ff. When MM 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 ff. It decides M=HM = H, solved as (2) at every iterate.

Proposition 3(Newton's method converges quadratically).

Let X\manifold be a manifold with a retraction ⊕\oplus that is smooth near the points below, f:X→Rf : \manifold \to \R smooth, and g(q)g(q) and H(q)H(q) its chart gradient and chart Hessian at qq. Let the iteration be

qk+1=qk⊕δk,H(qk) δk=−g(qk). q_{k+1} = q_k \oplus \delta_k, \qquad H(q_k)\, \delta_k = -g(q_k) .

If q∗q^\ast is a stationary point of ff at which H(q∗)H(q^\ast) is invertible, the iteration converges to q∗q^\ast from every start near enough to it, and there is a constant CC such that ∣qk+1⊖q∗∣≤C∣qk⊖q∗∣2\lvert q_{k+1} \ominus q^\ast \rvert \le C \lvert q_k \ominus q^\ast \rvert^2.

Proof.

Read the iteration in the chart at q∗q^\ast, as the map Φ(q)=q⊕δ(q)\Phi(q) = q \oplus \delta(q) with δ(q)=−H(q)−1g(q)\delta(q) = -H(q)^{-1} g(q). It is smooth near q∗q^\ast, since HH is continuous and invertible at q∗q^\ast, and Φ(q∗)=q∗\Phi(q^\ast) = q^\ast since g(q∗)=0g(q^\ast) = 0. The derivative of q⊕δq \oplus \delta in qq at δ=0\delta = 0 is the identity, and its derivative in δ\delta at δ=0\delta = 0 is the identity too, by the defining property of a retraction. The derivative of δ\delta at q∗q^\ast is −H(q∗)−1-H(q^\ast)^{-1} times the derivative of gg there, the term from the derivative of H−1H^{-1} multiplying g(q∗)=0g(q^\ast) = 0, and the derivative of gg along v\tangent is H(q∗) vH(q^\ast)\, \tangent by the definition (2). So

DΦ(q∗)=I−H(q∗)−1H(q∗)=0. \D \Phi(q^\ast) = I - H(q^\ast)^{-1} H(q^\ast) = 0 .

Φ\Phi is twice continuously differentiable near q∗q^\ast, so by Taylor’s theorem in the chart’s coordinates ∣Φ(q)⊖q∗∣≤C∣q⊖q∗∣2\lvert \Phi(q) \ominus q^\ast \rvert \le C \lvert q \ominus q^\ast \rvert^2 for qq in a ball about q∗q^\ast, with CC the bound of half the second derivative of Φ\Phi there. On the smaller ball where C∣q⊖q∗∣<1C \lvert q \ominus q^\ast \rvert < 1 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 HH may be indefinite, its step may increase ff.

Any curvature#

A curvature other than the Hessian gives up the quadratic rate and keeps everything else.

Proposition 4(The curvature sets the rate, the gradient the limit).

Let X\manifold, ⊕\oplus, ff and gg be as in Proposition 3, and let M(q)M(q) be a matrix that depends continuously on qq and is invertible near the iterates of

qk+1=qk⊕δk,M(qk) δk=−g(qk). q_{k+1} = q_k \oplus \delta_k, \qquad M(q_k)\, \delta_k = -g(q_k) .

Then δk=0\delta_k = 0 if and only if qkq_k is a stationary point of ff. If q∗q^\ast is a stationary point, H∗H^\ast the chart Hessian there and M∗=M(q∗)M^\ast = M(q^\ast), and the spectral radius ρ\rho of I−(M∗)−1H∗I - (M^\ast)^{-1} H^\ast is less than 11, the iteration converges to q∗q^\ast from every start near enough to it, and lim sup⁡k∣qk+1⊖q∗∣/∣qk⊖q∗∣≤ρ\limsup_k \lvert q_{k+1} \ominus q^\ast \rvert / \lvert q_k \ominus q^\ast \rvert \le \rho in any norm for which the spectral radius is attained.

Proof.

M(qk)M(q_k) is invertible, so δk=0\delta_k = 0 exactly when g(qk)=0g(q_k) = 0. Read the iteration in the chart at q∗q^\ast as the map Φ(q)=q⊕(−M(q)−1g(q))\Phi(q) = q \oplus \bigl(-M(q)^{-1} g(q)\bigr). As in the proof of Proposition 3, DΦ(q∗)=I−(M∗)−1H∗\D \Phi(q^\ast) = I - (M^\ast)^{-1} H^\ast. A fixed point of a map whose derivative there has spectral radius ρ<1\rho < 1 attracts every start near enough to it, at the linear rate ρ\rho, 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 ff where they were; Newton’s curvature makes ρ=0\rho = 0; one that is wrong by a little costs a slow linear rate, and one that is wrong by much, ρ≥1\rho \ge 1, 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 MM: 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 x^\hat \point. From a poor start the minimizer of the model lies far from it, where ff is nothing like mm, and the step overshoots. A trust region limits the step to where the model is believed,

min⁡vm(v)subject to∣v∣D≤Δ,(5) \min_{\tangent} m(\tangent) \quad \text{subject to} \quad \lvert \tangent \rvert_D \le \Delta , \tag{5}
(5)

for a radius Δ>0\Delta > 0 and a norm ∣v∣D=(v⊤Dv)1/2\lvert \tangent \rvert_D = (\tangent\transpose D \tangent)^{1/2} with DD a positive diagonal matrix, which puts the coordinates on a common scale. Its solution, the trust-region step, is characterized by a single scalar.

Proposition 6(The trust-region step).

Let MM be a symmetric positive semidefinite d×d\dimension \times \dimension matrix, g∈Rdg \in \R^\dimension, DD a positive diagonal matrix, ∣v∣D2=v⊤Dv\lvert \tangent \rvert_D^2 = \tangent\transpose D \tangent and Δ>0\Delta > 0, and let

m(v)=g⊤v+12v⊤Mv. m(\tangent) = g\transpose \tangent + \tfrac12 \tangent\transpose M \tangent .
  1. If λ≥0\lambda \ge 0 and v∗\tangent^\ast satisfy
    (M+λD) v∗=−g,∣v∗∣D≤Δ,λ(Δ−∣v∗∣D)=0, (M + \lambda D)\, \tangent^\ast = -g , \qquad \lvert \tangent^\ast \rvert_D \le \Delta , \qquad \lambda \bigl( \Delta - \lvert \tangent^\ast \rvert_D \bigr) = 0 ,
    then v∗\tangent^\ast minimizes mm over the region ∣v∣D≤Δ\lvert \tangent \rvert_D \le \Delta.
  2. If MM is positive definite, such a λ\lambda and v∗\tangent^\ast exist for every Δ>0\Delta > 0, and are unique.
  3. For every λ>0\lambda > 0, the solution v(λ)\tangent(\lambda) of (M+λD) v=−g(M + \lambda D)\, \tangent = -g minimizes mm over the region of radius ∣v(λ)∣D\lvert \tangent(\lambda) \rvert_D, and that radius does not increase with λ\lambda.
Proof.

For part 1, mλ(v)=m(v)+12λ∣v∣D2m_\lambda(\tangent) = m(\tangent) + \tfrac12 \lambda \lvert \tangent \rvert_D^2 is convex, since M+λDM + \lambda D is positive semidefinite, and its gradient (M+λD) v+g(M + \lambda D)\, \tangent + g vanishes at v∗\tangent^\ast, so v∗\tangent^\ast minimizes it over all of Rd\R^\dimension. The condition λ(Δ−∣v∗∣D)=0\lambda (\Delta - \lvert \tangent^\ast \rvert_D) = 0 gives λ∣v∗∣D2=λΔ2\lambda \lvert \tangent^\ast \rvert_D^2 = \lambda \Delta^2. For ∣v∣D≤Δ\lvert \tangent \rvert_D \le \Delta, then,

m(v)=mλ(v)−12λ∣v∣D2≥mλ(v∗)−12λΔ2=m(v∗). \begin{aligned} m(\tangent) = m_\lambda(\tangent) - \tfrac12 \lambda \lvert \tangent \rvert_D^2 &\ge m_\lambda(\tangent^\ast) - \tfrac12 \lambda \Delta^2 \\ &= m(\tangent^\ast) . \end{aligned}

For parts 2 and 3, write u=D1/2vu = D^{1/2} \tangent, M~=D−1/2MD−1/2=Vdiag⁡(μi)V⊤\tilde M = D^{-1/2} M D^{-1/2} = V \operatorname{diag}(\mu_i) V\transpose and g~=D−1/2g\tilde g = D^{-1/2} g. For λ\lambda with M~+λI\tilde M + \lambda I invertible, the solution of (M+λD) v=−g(M + \lambda D)\, \tangent = -g has

∣v(λ)∣D2=∑i(vi⊤g~)2(μi+λ)2, \lvert \tangent(\lambda) \rvert_D^2 = \sum_i \frac{(v_i\transpose \tilde g)^2}{(\mu_i + \lambda)^2} ,

which does not increase with λ>0\lambda > 0, since every μi≥0\mu_i \ge 0. That is the second half of part 3, and the first is part 1 with Δ=∣v(λ)∣D\Delta = \lvert \tangent(\lambda) \rvert_D. For part 2, the μi\mu_i are positive. If ∣M−1g∣D≤Δ\lvert M^{-1} g \rvert_D \le \Delta, λ=0\lambda = 0 and v∗=−M−1g\tangent^\ast = -M^{-1} g satisfy part 1. Otherwise g≠0g \ne 0, the sum is continuous and strictly decreasing in λ≥0\lambda \ge 0, exceeds Δ2\Delta^2 at λ=0\lambda = 0 and tends to zero, so exactly one λ>0\lambda > 0 gives ∣v(λ)∣D=Δ\lvert \tangent(\lambda) \rvert_D = \Delta. The minimizer is unique because mm is strictly convex, and so is λ\lambda, which (M+λD) v∗=−g(M + \lambda D)\, \tangent^\ast = -g determines when v∗≠0\tangent^\ast \ne 0; when v∗=0\tangent^\ast = 0, λ=0\lambda = 0 by the third condition.

∎

The scalar λ\lambda is a damping. At λ=0\lambda = 0 the step is the model’s own minimizer, and as λ\lambda grows it shortens and turns toward −D−1g/λ-D^{-1} g / \lambda, a short step down the gradient in the scale of DD. Part 3 says that a method may choose λ\lambda instead of Δ\Delta: every damped step is the trust-region step of some radius, and a larger damping a smaller radius. Doing so saves solving for the λ\lambda 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 M+λDM + \lambda D required to be positive semidefinite, and computing it needs more care where gg 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 v\tangent promises the decrease m(0)−m(v)m(0) - m(\tangent), which is positive for every solution of (5) when g≠0g \ne 0, and obtains f(x^)−f(x^⊕v)f(\hat \point) - f(\hat \point \oplus \tangent). Their ratio,

ϱ=f(x^)−f(x^⊕v)m(0)−m(v),(7) \varrho = \frac{f(\hat \point) - f(\hat \point \oplus \tangent)}{m(0) - m(\tangent)} , \tag{7}
(7)

is the gain ratio. It is one when ff 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 ϱ\varrho above a small threshold, often zero, is accepted, and the iteration moves to x^⊕v\hat \point \oplus \tangent; one below it is rejected, and the iteration stays;
  • a step with ϱ\varrho near one, which the model predicted well, lets the radius grow, or the damping shrink; a step with small ϱ\varrho makes the radius shrink, or the damping grow.

The methods differ in the thresholds and the factors, and in whether they adapt Δ\Delta or λ\lambda. 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

  1. [Absi08] P.-A. Absil, R. Mahony and R. Sepulchre. Optimization Algorithms on Matrix Manifolds. Princeton University Press, 2008.
  2. [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.
  3. [Noce06] Jorge Nocedal and Stephen J. Wright. Numerical Optimization. Second edition. Springer, 2006.
  4. [Orte70] James M. Ortega and Werner C. Rheinboldt. Iterative Solution of Nonlinear Equations in Several Variables. Academic Press, 1970.

Built on by