The previous sections introduced two fundamental approaches to nonlinear optimization: gradient descent and the Gauss-Newton method. For a more detailed discussion, see (MBT04).
The Gauss-Newton method uses a local linearization of the problem
and generally converges very quickly near the solution. However, the matrix
can be ill-conditioned or
nearly singular, leading to numerical instability and excessively
aggressive update steps.
The Levenberg-Marquardt (LM) algorithm introduces a regularization term that combines the robustness of gradient descent with the rapid convergence of Gauss-Newton. It is therefore one of the most widely used methods for solving nonlinear least-squares problems. A detailed treatment of the algorithm is available in (Lou05).
Starting from the Gauss-Newton system
| (4.61) |
LM introduces a damping factor
, giving the system
The matrix
is positive definite for and can therefore be inverted
stably even when the problem is ill-conditioned.
When is large, the diagonal term dominates
the system matrix, and the update tends to behave like
gradient descent.
Conversely, for
, Equation (4.62)
reduces to the Gauss-Newton step.
Unlike line search techniques, the LM method can
be interpreted as a trust region method: the parameter
implicitly controls how far one can move from the current point
before the local linearization loses validity.
As in the Gauss-Newton method, the algorithm uses the approximation
| (4.63) |
which is accurate when the residuals are small or when the model is locally nearly linear.
The initial value and update strategy for the parameter are left
to the solver, and several strategies have been proposed in the literature.
One widely used strategy (Nie99)
initializes the parameter as
| (4.64) |
where are the diagonal elements of the matrix
and
is a positive constant chosen by the user.
The quality of the update is evaluated using the gain ratio
| (4.65) |
where the numerator represents the observed reduction in the cost function and the denominator the reduction predicted by the local quadratic model.
A high value of indicates that the local linearization
accurately approximates the behavior of the cost function and that the
proposed step can be accepted while reducing
.
Conversely, small or negative values of indicate that the local
model does not adequately describe the problem and that the parameter
should be increased, making the method more conservative and more
like gradient descent.
One possible update strategy is
This is one of the choices commonly used in modern implementations of the algorithm.
Paolo medici