Math 2.0

Numerical analysis Least squares and ill-posed problems Proposition

Levenberg–Marquardt algorithm

Builds on Jacobian matrixLeast squaresPositive definite matrixGauss–Newton algorithm

Statement

Let D⊆ℝnD \subseteq \R^n be open, let r ⁣:D→ℝmr \colon D \to \R^m be continuously differentiable with Jacobian matrix J(x)J(x), and let S(x)=12∥r(x)∥22S(x) = \tfrac12 \norm{r(x)}_2^2. For x∈Dx \in D and a damping parameter λ>0\lambda > 0, the Levenberg–Marquardt step δ=δ(λ)\delta = \delta(\lambda) is the solution of (J(x)TJ(x)+λI)δ=−J(x)Tr(x).\bigl( J(x)^T J(x) + \lambda I \bigr) \delta = -J(x)^T r(x). Write J=J(x)J = J(x), r=r(x)r = r(x) and g=∇S(x)=JTrg = \nabla S(x) = J^T r. Then:

  1. JTJ+λIJ^T J + \lambda I is positive definite, so δ(λ)\delta(\lambda) exists and is unique;
  2. if g≠0g \ne 0, then gTδ(λ)<0g^T \delta(\lambda) < 0, so δ(λ)\delta(\lambda) is a descent direction for SS;
  3. δ(λ)\delta(\lambda) minimizes ∥r+Jp∥2\norm{r + J p}_2 over all pp with ∥p∥2≤∥δ(λ)∥2\norm{p}_2 \le \norm{\delta(\lambda)}_2;
  4. if JJ has full column rank, then δ(λ)\delta(\lambda) tends to the Gauss–Newton step as λ→0\lambda \to 0;
  5. λ δ(λ)→−g\lambda \, \delta(\lambda) \to -g as λ→∞\lambda \to \infty.

Remarks

Part 1 holds because pT(JTJ+λI)p=∥Jp∥2+λ∥p∥2>0p^T (J^T J + \lambda I) p = \norm{J p}^2 + \lambda \norm{p}^2 > 0 for p≠0p \ne 0. Part 2 follows: gTδ=−gT(JTJ+λI)−1g<0g^T \delta = -g^T (J^T J + \lambda I)^{-1} g < 0. For part 3, δ\delta satisfies the optimality conditions of the ball-constrained problem with multiplier λ≥0\lambda \ge 0, and the problem is convex. So the method is a trust region method for the Gauss–Newton model, with λ\lambda controlling the radius. Parts 4 and 5 show that it interpolates between Gauss–Newton steps (small λ\lambda) and short steepest descent steps (large λ\lambda).

The algorithm updates λ\lambda at each step. If the step reduces SS enough, it is accepted and λ\lambda is decreased; otherwise it is rejected and λ\lambda is increased. Marquardt proposed replacing λI\lambda I by λ diag(JTJ)\lambda \, \mathrm{diag}(J^T J), which makes the step invariant under rescaling of the variables. Example: with m=n=1m = n = 1, r(x)=x−1r(x) = x - 1 and x=3x = 3, one has J=1J = 1, g=2g = 2 and δ(λ)=−2/(1+λ)\delta(\lambda) = -2/(1 + \lambda), which is the full Gauss–Newton step −2-2 at λ=0\lambda = 0 and shrinks as λ\lambda grows.

Going deeper

For a student

The method is due to Kenneth Levenberg (1944) and Donald Marquardt (1963). It is the standard algorithm for small and medium nonlinear least squares problems, such as curve fitting and camera calibration. Its damped normal equations are the same equations as in Tikhonov regularization of the linearized problem.

Reading path

To understand this page from the ground up, read these 35 pages in order. The foundations come first.

Show the path as a graph
Euclidean space, object, no evidence levelEuclidean spaceobjectFunction, concept, no evidence levelFunctionconceptLimit point of a set, definition, no evidence levelLimit point of a setdefinitionLipschitz continuity, definition, no evidence levelLipschitz continuitydefinitionMatrix, definition, no evidence levelMatrixdefinitionPositive definite matrix, concept, no evidence levelPositive definite mat…conceptRate of convergence, concept, no evidence levelRate of convergenceconceptVector space, definition, no evidence levelVector spacedefinitionTotal derivative, concept, no evidence levelTotal derivativeconceptFunction of several variables, concept, no evidence levelFunction of several v…conceptLimit of a function, definition, no evidence levelLimit of a functiondefinitionTranspose, definition, no evidence levelTransposedefinitionInner product, definition, no evidence levelInner productdefinitionLinear map, definition, no evidence levelLinear mapdefinitionLinear subspace, definition, no evidence levelLinear subspacedefinitionNorm, definition, no evidence levelNormdefinitionPartial derivative, concept, no evidence levelPartial derivativeconceptDerivative, definition, no evidence levelDerivativedefinitionInner product space, definition, no evidence levelInner product spacedefinitionOrthogonal vectors, definition, no evidence levelOrthogonal vectorsdefinitionEndomorphism, definition, no evidence levelEndomorphismdefinitionSum of subspaces, definition, no evidence levelSum of subspacesdefinitionJacobian matrix, concept, no evidence levelJacobian matrixconceptTangent line, concept, no evidence levelTangent lineconceptNorm induced by an inner product, definition, no evidence levelNorm induced by an in…definitionOrthogonal complement, definition, no evidence levelOrthogonal complementdefinitionDirect sum of subspaces, definition, no evidence levelDirect sum of subspac…definitionNewton's method, concept, no evidence levelNewton's methodconceptA space is the direct sum of a subspace and its orthogonal complement, statement, no evidence levelA space is the direct…statementProjection, definition, no evidence levelProjectiondefinitionOrthogonal projection, definition, no evidence levelOrthogonal projectiondefinitionOrthogonal projection is the closest point, statement, no evidence levelOrthogonal projection…statementLeast squares, concept, no evidence levelLeast squaresconceptGauss–Newton algorithm, statement, no evidence levelGauss–Newton algorithmstatementLevenberg–Marquardt algorithm, statement, no evidence levelLevenberg–Marquardt a…statement
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Euclidean space object
  2. Function concept
  3. Limit point of a set definition
  4. Lipschitz continuity definition
  5. Matrix definition
  6. Positive definite matrix concept
  7. Rate of convergence concept
  8. Vector space definition
  9. Total derivative concept
  10. Function of several variables concept
  11. Limit of a function definition
  12. Transpose definition
  13. Inner product definition
  14. Linear map definition
  15. Linear subspace definition
  16. Norm definition
  17. Partial derivative concept
  18. Derivative definition
  19. Inner product space definition
  20. Orthogonal vectors definition
  21. Endomorphism definition
  22. Sum of subspaces definition
  23. Jacobian matrix concept
  24. Tangent line concept
  25. Norm induced by an inner product definition
  26. Orthogonal complement definition
  27. Direct sum of subspaces definition
  28. Newton's method concept
  29. A space is the direct sum of a subspace and its orthogonal complement statement
  30. Projection definition
  31. Orthogonal projection definition
  32. Orthogonal projection is the closest point statement
  33. Least squares concept
  34. Gauss–Newton algorithm statement
  35. Levenberg–Marquardt algorithm statement

Further reading

  1. Web https://en.wikipedia.org/wiki/Levenberg%E2%80%93Marquardt_algorithm
About this page
TagTH54SPVN1N
URIm2://TH54SPVN1N
Kindstatement, proposition
WritingW0 stub
MSC65K10, 90C30, 62J02
StatusThis copy of the site has no build data. Run m2 status TH54SPVN1N.
AboutNonlinear regression
UsesJacobian matrix, Least squares, Positive definite matrix, Gauss–Newton algorithm
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.