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 mode of a model of normals minimizes a sum of squared residuals and log-volumes. Newton’s method would minimize it with the function’s whole curvature, which needs the second derivatives of every residual. Almost every method that estimates such a model does something cheaper: it replaces each residual by its first-order expansion at a point, and is left with a quadratic model whose curvature needs first derivatives alone. This note defines that replacement, says exactly what it keeps of the function and what it leaves out, reads it as a model in a trust region, and proves what the iteration built on it converges to. The note after it reads the same replacement as a Gaussian.
The setting#
The function to be linearized is the objective (2), a sum over terms of half a squared whitened residual and a log-volume , on a product of manifolds with retractions with the stacked tangent . Each term reads only its variables . Write for the chart gradient of at the point of linearization . Every derivative below is in the charts at , so that on a curved factor it is the derivative of a function of at .
The linearization#
Let be as in (2), and call the log-volume folded when the residual is for a constant invertible and is a function of alone. For a folded term set , the gradient of the log-volume with respect to the residual, and otherwise set . The linearization of at a point is the function of
where
with the residual at , and and the Jacobian and the gradient in the charts at .
The linearization agrees with to first order, and its curvature is the Gauss–Newton matrix:
The first holds by the choice of . For the second, the gradient of is , while the gradient of at is . For a folded term, , so , and the two gradients agree term by term.
Folding a log-volume into its rows. A folded log-volume’s gradient lies in the row space of its own term’s rows, so it is carried by the right-hand side, , and not by the linear term. The normal’s log-volume is folded on the Euclidean spaces, where it is zero, and on the curved ones, where it is a function of alone: of itself on a group whose chart translates the identity’s, and of on the sphere with orthonormal bases. On a positive space it is , which depends on the point and not only on , and it stays in . So a model of Euclidean and curved quantities has exactly. Folding costs nothing, since is a gradient of the size of ; why it is worth doing, and why is read off the unfolded log-volumes rather than computed as a difference of gradients, are questions of how the model is solved, which the normal equations answer.
Each term’s rows are nonzero only in the columns of its variables , and each piece of the linear term is the gradient of one log-volume, nonzero only on the variables of its own term. So the linearization is a sum of pieces, one for each term, each a function of a few blocks of , with the structure of the terms alone.
What is left out#
The Hessian of at , which at a stationary point is the chart Hessian of Proposition 3, is
The linearization keeps the first sum. The second is what every Gauss–Newton method omits: it is small where the residuals are, and it is what makes the Hessian indefinite far from a minimum. The third is the curvature of the log-volumes: zero on the Euclidean spaces, zero on the positive ones, whose log-volume is linear in their chart, and on a curved space of the relative order of the noise’s variance. The right-hand sides and the linear term keep the log-volumes’ gradients exactly.
When the rows determine every direction, the minimizer of the linearization is the Gauss–Newton step
computed from the rows and never from this formula, for reasons that the normal equations give. The step returns to the manifold by the retraction, , factor by factor. A factor whose rows do not determine it, such as a landmark seen from one place along one direction, has no step: the direction is the model’s to fix, by a prior or by a damping, and not the linear algebra’s to guess.
A model in a trust region#
The linearization is a quadratic model (1) of at : it has the gradient and the curvature , positive semidefinite by construction. Minimizing it is the step (2) of that curvature, and the Gauss–Newton step is a quasi-Newton step whose curvature leaves out the last two sums of (3).
Like every such model it is good only near , and the trust region applies to it unchanged. By Proposition 6, the step within a radius solves
for a damping , and every damped step is the trust-region step of some radius. The Gauss–Newton step is the trust-region step with the radius infinite, . It is not itself a trust-region method: alone it trusts the model everywhere, and from a poor start it overshoots. The method that chooses by the gain ratio (7) of each step, the Levenberg–Marquardt method, is the trust-region method on this model, and a later note states its choices.
What the iteration converges to#
Repeating the step is the Gauss–Newton method. It uses the gradient of all of and the curvature of the squares alone, and the next statement says that the first decides where it stops and the second only how fast it gets there.
Let be a manifold with a retraction, with and smooth, and and the Jacobian of and the gradient of in the chart at . Let the iteration be
with invertible near the iterates. Then if and only if is a stationary point of . If is a stationary point, the chart Hessian of there and at , and the spectral radius of is less than , then the iteration converges to from every start near enough to it, and in any norm for which the spectral radius is attained.
With , this is the iteration of the linearization, and three things follow.
- The answer depends on the gradient alone. Whatever matrix stands on the left, the iteration stops where . An iteration that includes the log-volumes’ gradients converges to a stationary point of itself, the mode of the model’s density; one that leaves them out converges to the minimum of the squares alone, which is the mode of another model. The sparsity of is the same either way, since each log-volume depends on the variables its own residual already reads.
- Leaving the log-volumes’ Hessian out costs little. Write for the tangent coordinate of the -th term, , and and for its precision and covariance. In the log-volumes contribute , besides terms in that vanish at , while . If for every term, then , and the log-volumes add at most to , with . Near that is for the Cayley and stereographic charts, with the largest variance of a rotation’s or a direction’s noise: per iteration at rad. The rest of is the residuals’ curvature, which on a curved space includes the second derivatives of , of the same relative order . The log-volume does not change the order of the approximation, and a positive factor adds nothing at all to , its log-volume being linear in its chart.
- Adding it is safe where a Gaussian approximation is. When , is positive definite, so it may stand on the left instead. The condition is, term by term, the one under which a normal’s mean is a mode at all, in the chart’s coordinates. Where it fails, the density is not concentrated around one mode, and no method of this kind fits it.
Where it is exact#
Let be a point of a space that is flat in disguise, and let every residual of (2) be an affine function of its chart coordinates, and every log-volume affine in them. Then at every point the linearization is exact, for every .
On a space flat in disguise the chart at and the chart at any other point differ by a translation, by (5), so a function affine in one chart’s coordinates is affine in every chart’s, and the hypothesis does not depend on . An affine residual has exactly, and an affine log-volume is equal to its first-order expansion, so , plus the constant, is .
∎The normal on a Euclidean space with a fixed scale and a mean affine in the variables is such a term, and so is the normal on a positive space, the log-normal, with a mean whose logarithm is affine in their logarithms. A model of such terms is linear-Gaussian, and on it one Gauss–Newton step from anywhere lands on the mode.
Where it fails#
The linearization rests on the normalizers being constant, and so on the scales being fixed (where the form breaks). Carrying a free scale’s normalizer’s gradient in would not mend it. The residual depends on the scale, and the residual’s own curvature in the scale’s coordinates, which the rows omit, is as large as what they keep. For an isotropic scale in its logarithmic chart , , so the rows’ curvature in is and the squares’ is , while the normalizer is linear. At the stationary point , the omitted part equals the kept part, and the rate of Proposition 6 is one: the iteration need not converge. A scale is estimated with the expected information in the Hessian’s place, by Fisher scoring.
Built on by
- Linearization and elimination A density query is linearized at a batch of points into factored least-squares problems over its free quantities, by its residuals or by its information roots, and each problem is eliminated in square-root form on the host into a step, marginals, an evidence, draws, or a retirement's replacement; the Levenberg–Marquardt method iterates the steps to the mode.
- The improper Gaussian factor A sum of squared affine rows of any number, a linear term and a constant, in the tangent coordinates of several points at fixed anchors, is Gaussian along its rows and flat or linear across them; the linearization of a sum of squares is one, a Gaussian factor on the increment from the point of linearization whose mean is the Gauss–Newton step, and such factors add and are a normal exactly when their rows have full rank.
- 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.
- The Laplace approximation A Laplace approximation replaces a density near a point by a Gaussian in the chart there; taken in a chart it approximates the density times the chart's volume, its mean, marginals, draws and evidence are computations on the linearization's rows, and its covariance omits curvature of the order of the noise's variance on a curved space.
- 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.