Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Flat boards and curved bowls
Stand anywhere on a rolling hill. Right around your feet, the ground looks almost like a tilted flat board. That’s a good-enough description for one small step. For a bigger step, a curved bowl or saddle shaped to match the hill fits much better. Farther away, both descriptions break down.
These simple shapes are Taylor models.
A spacecraft’s navigation filter can’t track the exact, curved physics of every uncertainty. It replaces the physics with flat-board (first-order) approximations around its current best guess, and updates them every fraction of a second. Optimizers that plan robot motions do the same with curved-bowl (second-order) approximations.
- 1. Very close to where you stand, a smooth hill looks almost…
- 2. Which matches the hill over a bigger area?
- 3. Far from the point, both approximations get…
Level 1: Beginner
★★☆☆☆ Basic⏱ 15 minSecondary-school mathematics: arithmetic and elementary algebra.The first-order model (the tangent plane)
Example. For at : and , so . At the plane gives , while the true value is . The error is .
The second-order model
Example. at the origin has and , so the model is . At : 1.085, against the true 1.0831.
- 1. The tangent plane of x² + y² at (1, 2), evaluated at (1.1, 2.1)?
- 2. The first-order model of e^(x+y) at 0, evaluated at (0.1, 0.1)?
- 3. The second-order model adds which term?
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.How good are the models?
For smooth :
- the first-order error is , so halving quarters it;
- the second-order error is , so halving divides it by 8.
The demo shows the consequence. The region where the quadratic model is accurate is much larger.
Optimization = minimizing a Taylor model
| Method | Model it minimizes | Step |
|---|---|---|
| gradient descent | ||
| Newton | ||
| Gauss–Newton (least squares ) | same, with | |
| Levenberg–Marquardt / trust region | the model, but keep small |
Newton’s method is exact in one step on a quadratic. On Rosenbrock’s banana, a damped Newton method needs about 20 iterations where steepest descent needs about 19,000 (Exercise 2).
- 1. ½hᵀHh for H = diag(2, 4), h = (1, 1)?
- 2. Halving h divides the second-order error by about…
- 3. Gauss–Newton replaces the Hessian with…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof by reducing to one variable
Let . By the chain rule (A3.2-4), and . One-variable Taylor with the Lagrange remainder (A3.1-10) gives . So
If is Lipschitz near , replacing with costs . ∎
Consequences
- The descent lemma in dimensions. If everywhere, then (A3.1-4). This is the basis of every convergence proof.
- Quadratics are their own Taylor model, so Newton solves them exactly in one step.
- Second-order optimality (A3.2-6) is read off the quadratic term at a critical point.
Exercise 3.1: Write the second-order Taylor model of cos x cos y at the origin
and , so the model is , a dome. At it gives 0.99, against the true 0.99003.
- 1. g(t) = f(p + th): g″(0) = ?
- 2. The quadratic model is exact for polynomials of degree at most…
- 3. hᵀHh for H = [[1, 2], [2, 3]] and h = (1, 1)?
Level 4: Expert
★★★★★ Expert⏱ 45 minResearchers: original papers and open problems.Newton vs gradient descent on a banana
Taylor models in robotics and ML
- Extended Kalman filter. Uncertainty is propagated through dynamics and sensor models with first-order Taylor: . It is accurate for small noise and biased for large noise. For example, range–bearing sensors produce banana-shaped clouds (Practice Code 4; Thrun, Burgard and Fox, 2005). The unscented transform matches more moments.
- Gauss–Newton and Levenberg–Marquardt (Levenberg, 1944; Marquardt, 1963) are the solvers behind camera calibration, bundle adjustment (Triggs et al., 2000) and factor-graph SLAM (g2o, GTSAM, Ceres).
- Trust-region policy optimization. TRPO limits each policy update using a second-order Taylor expansion of the KL divergence, whose Hessian is the Fisher matrix, solved with CG (A2.4-7; Schulman et al., 2015).
- Influence functions and model analysis. A second-order expansion of the training loss predicts how removing a training point changes the model (Koh and Liang, 2017).
References
- 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).
- H. Rosenbrock (1960). “An automatic method for finding the greatest or least value of a function.” The Computer Journal, 3(3).
- B. Triggs, P. McLauchlan, R. Hartley, A. Fitzgibbon (2000). “Bundle adjustment — a modern synthesis.” Vision Algorithms: Theory and Practice, Springer.
- S. Thrun, W. Burgard, D. Fox (2005). Probabilistic Robotics. MIT Press. Chapter 3.
- J. Nocedal, S. Wright (2006). Numerical Optimization, 2nd ed. Springer. Chapters 2–4, 10.
- J. Schulman, S. Levine, P. Moritz, M. Jordan, P. Abbeel (2015). “Trust region policy optimization.” ICML.
- P. W. Koh, P. Liang (2017). “Understanding black-box predictions via influence functions.” ICML.