Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Use the curve, not just the slope
Gradient descent feels the slope and takes a cautious step. Newton’s method also feels how the ground curves. It pretends the ground near you is a simple bowl, works out exactly where that bowl’s bottom is, and jumps there. When you’re already close to the real bottom, the bowl is an excellent guess, and you arrive in a few jumps.
Far from the bottom, the bowl guess can be badly wrong, and a jump can land you somewhere worse. So careful implementations check each jump and shorten it if needed.
Newton-type methods power bundle adjustment in visual SLAM, orbit determination, nonlinear least-squares calibration, interior-point solvers for MPC, and the IRLS fits behind logistic regression. They are the method of choice when you need high accuracy in a few, more expensive steps.
- 1. Newton's method uses the slope and…
- 2. Near the minimum, Newton's method is…
- 3. Far from the minimum, a raw Newton jump can…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.In one variable
Model near by its second-order Taylor polynomial:
Setting gives the Newton step
This is the same as applying Newton’s root-finding method to . For a root of it gives the Babylonian square root : 1, 1.5, 1.41667, 1.4142157, … converging to .
In several variables
In practice, solve the linear system (Cholesky). Never form the inverse. A quadratic is minimized in one step, whatever its condition number.
- 1. The 1-D Newton step for minimization is…
- 2. On a quadratic, Newton converges in…
- 3. Newton for x² − 2 = 0 from x = 1 gives next…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.Strengths
- Quadratic local convergence: .
- Affine invariance: changing variables doesn’t change the iterates. Scaling and conditioning stop mattering, unlike GD.
Weaknesses and fixes
- Divergence from far away: minimizing gives , which explodes for . Fix: a line search on the Newton direction (“damped Newton”, A6.1-5).
- Indefinite Hessian (non-convex ): the step may point uphill or toward a saddle. Fix: modify the Hessian (add , or clip eigenvalues), or use trust regions.
- Cost: forming takes memory and solving takes . That’s impossible for network weights. Fix: quasi-Newton (BFGS, L-BFGS; A6.3-5), Hessian-free CG, or Gauss–Newton approximations.
Gauss–Newton and Levenberg–Marquardt
For least squares with Jacobian , the Hessian is . Gauss–Newton drops the second term, because it’s small near a good fit:
Levenberg–Marquardt solves , sliding between Gauss–Newton () and short gradient steps (). It’s the standard for bundle adjustment and calibration.
- 1. Newton's method is affine invariant, meaning…
- 2. Gauss–Newton approximates the Hessian by…
- 3. Levenberg–Marquardt with very large λ behaves like…
Level 3: Advanced
★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.Proof of quadratic convergence
Let and , with a Lipschitz Hessian (constant ), and with near . Then
and . The bracket is bounded by . So . ∎ Once the error is below , the number of correct digits roughly doubles every step.
Affine invariance
Let . Then and . The Newton step in is , which is exactly times the step in . ∎
The Newton decrement
. For self-concordant functions, estimates and gives an affine-invariant stopping rule. Damped Newton has two phases (Nesterov and Nemirovski, 1994): a damped phase with fixed decrease, then pure quadratic convergence. This is the theory behind interior-point methods.
Exercise 3.1: Why does Newton on √(1 + x²) give x ← −x³?
and , so . Then . It converges only for , and cycles for .
- 1. Newton's local error recursion is…
- 2. Under x = Sy, the Newton step in y equals…
- 3. The Newton decrement λ² equals…
Level 4: Expert
★★★★★ Expert⏱ 35 minResearchers: original papers and open problems.Localizing a robot from UWB ranges
Four ultra-wideband anchors sit at the corners of a long, narrow corridor (40 m × 3 m). A robot measures noisy ranges to each one. Fitting its position is a nonlinear least-squares problem. The corridor geometry makes ill-conditioned (κ ≈ 130), so gradient descent takes about a thousand iterations. Gauss–Newton reaches the same fix in under ten, because it automatically rescales by the curvature. The same Gauss–Newton/LM machinery is the core of GPS solvers, bundle adjustment (Ceres, g2o) and orbit determination.
Newton-type methods in AI, robotics and aerospace
- Bundle adjustment and SLAM back ends: sparse Levenberg–Marquardt / Gauss–Newton on factor graphs (Triggs et al., 2000; Kümmerle et al., 2011, g2o; Agarwal et al., Ceres Solver).
- Orbit determination: batch least-squares (Gauss–Newton) differential correction has been standard since the early space age (Tapley, Schutz and Born, 2004).
- Interior-point solvers for MPC and trajectory optimization take damped Newton steps on barrier problems (IPOPT; Wächter and Biegler, 2006).
- Second-order methods in deep learning: Hessian-free optimization (Martens, 2010), K-FAC and Shampoo approximate curvature cheaply (A6.3-6).
References
- J. Nocedal, S. Wright (2006). Numerical Optimization, 2nd ed. Springer. Ch. 3, 6, 10.
- S. Boyd, L. Vandenberghe (2004). Convex Optimization. Cambridge University Press. §9.5.
- Y. Nesterov, A. Nemirovski (1994). Interior-Point Polynomial Algorithms in Convex Programming. SIAM.
- K. Levenberg (1944). “A method for the solution of certain non-linear problems in least squares.” Quarterly of Applied Mathematics, 2.
- D. Marquardt (1963). “An algorithm for least-squares estimation of nonlinear parameters.” SIAM Journal on Applied Mathematics, 11(2).
- B. Triggs, P. McLauchlan, R. Hartley, A. Fitzgibbon (2000). “Bundle adjustment — a modern synthesis.” Vision Algorithms: Theory and Practice, Springer.
- R. Kümmerle et al. (2011). “g2o: a general framework for graph optimization.” ICRA.
- B. Tapley, B. Schutz, G. Born (2004). Statistical Orbit Determination. Elsevier.
- J. Martens (2010). “Deep learning via Hessian-free optimization.” ICML.
- A. Wächter, L. Biegler (2006). “On the implementation of an interior-point filter line-search algorithm for large-scale nonlinear programming.” Mathematical Programming, 106.