Newton's Method and Second-Order Optimization
Newton's method minimizes the second-order Taylor model of the objective at each step, dividing the gradient by the Hessian to correct for anisotropic curvature; it converges quadratically near a nondegenerate optimum but demands curvature information and careful globalization.
1. Concept overview
Newton's method for minimizing applies the update
(or solves and sets ). It is the root-finding Newton method applied to the stationarity condition , whose Jacobian is the Hessian.
Equivalently, it builds the second-order Taylor model and jumps to its minimizer. Where gradient descent sees only a slope, Newton sees the local curvature ellipsoid and rescales each direction by : flat directions get large steps, steep directions get small ones. Near a nondegenerate optimum the error squares each iteration — quadratic convergence — but globally the raw method can diverge, stall at saddles, or be impossible to store when is large.
2. Why this concept exists
Gradient descent's convergence degrades with the condition number : on a quadratic the error contracts by per step, so needs tens of thousands of iterations. The Hessian inverse is exactly the preconditioner that makes the local geometry spherical: in transformed coordinates , the quadratic model has identity curvature and Newton converges in one step for any quadratic.
Curvature also answers questions a gradient cannot: is this stationary point a minimum, maximum, or saddle (eigenvalues of )? How sensitive is the optimum to data (via )? How wide is the confidence region (the inverse Hessian is the asymptotic covariance in MLE)? No first-order method gives these for free.
Earlier alternatives were inadequate: coordinate descent ignores cross-derivatives; fixed diagonal preconditioners cannot handle rotated ellipses; finite-difference gradient search costs evaluations. Newton and its quasi-Newton descendants (BFGS, L-BFGS) became the default for medium-dimensional smooth optimization and remain central in scientific computing and statistics.
3. Historical background
Isaac Newton described the root-finding iteration in De Methodis Serierum et Fluxionum (written 1671, published 1736); Joseph Raphson (1690) published the cleaner form that bears both names. Simpson (1740) extended it to systems; Fourier (1831) gave the elimination-method viewpoint; Cauchy (1847) applied steepest descent and considered second-order corrections.
The modern optimization era began with Davidon (1959) and Fletcher & Powell (1963), who invented variable-metric (quasi-Newton) updates without Hessians; Broyden (1965) generalized the secant equation to systems; the BFGS update (Broyden–Fletcher–Goldfarb–Shanno, 1970) became the standard dense second-order method. Gill & Murray (1972) and Moré & Sorensen (1983) developed stabilized Cholesky and trust-region variants for indefinite Hessians. Nocedal (1980) introduced limited-memory L-BFGS, reducing storage from to . Nesterov & Polyak (2006) added cubic regularization with global complexity guarantees; Martens (2010) revived Hessian-free Newton–CG for deep networks.
4. Fundamental problem
Given a twice-differentiable objective , find using gradient and curvature information, with three constraints:
- Local vs global: the quadratic model is accurate only nearby; a raw Newton step from far away can overshoot or diverge.
- Curvature quality: may be singular, indefinite (nonconvex), or wildly ill-conditioned, making the Newton direction undefined or an ascent direction.
- Scale: storing needs and solving needs — impossible for parameters of a large network.
Solving these defines the design space: damping and line search (globalization), modified/cholesky-regularized Hessians (robustness), and quasi-Newton or matrix-free approximations (scale).
5. First-principles explanation
Fact 1 — local quadratic model. Taylor's theorem gives
Replacing the intermediate Hessian by gives a tractable model .
Fact 2 — stationary point of a quadratic. If , is strictly convex and its unique minimizer satisfies , i.e. . This is the Newton step.
Fact 3 — Newton as root-finding. Applying the scalar Newton iteration to gives ; in , , so the same formula holds with a linear solve.
Fact 4 — quadratic convergence. If , , and is Lipschitz near , then
because the neglected third-order Taylor term is proportional to the squared error. Doubling correct digits each step is the method's defining virtue.
6. Prerequisite concepts
You need: (1) multivariable Taylor expansion with remainder; (2) gradient and Hessian, and symmetric positive definiteness (Sylvester's criterion, eigenvalues); (3) solving linear systems by Cholesky/LU and understanding condition numbers; (4) convexity and -smoothness; (5) line-search (Armijo/Wolfe) and trust-region ideas; (6) gradient descent for comparison; (7) basic numerical linear algebra: why forming is worse than solving . See the linked concepts.
7. Complete mathematical formulation
Newton step. , with , ; then .
Damped Newton. with chosen by Armijo backtracking: accept the smallest with
Positive-definite modification. If has eigenvalue , replace with so the step is a descent direction.
BFGS update. With , , and :
which satisfies the secant equation and preserves positive definiteness when .
L-BFGS stores only the last pairs and applies implicitly by a two-loop recursion costing .
Local rate. where , , and bounds .
8. Notation dictionary
| Symbol | Meaning | Type | |---|---|---| | | smooth objective | function | | | iterate, gradient, Hessian at step | vector/matrix | | | full Newton step | vector | | | damping / step length | scalar | | | quasi-Newton approximation to | matrix | | | gradient difference | vector | | | L-BFGS memory (number of stored pairs) | integer | | | smallest eigenvalue / strong-convexity constant | scalar | | | largest eigenvalue / smoothness constant | scalar | | | condition number | scalar | | | bound on | scalar | | | error vector | vector | | | Armijo sufficient-decrease constant | scalar | | | Gauss–Newton/GGN approximation | matrix |
9. Step-by-step derivation
Step 1 — build the local model. .
Step 2 — stationarity. . If , the unique solution is the global minimizer of the model. If is indefinite, the stationary point is a saddle and the direction may be an ascent direction.
Step 3 — solve, do not invert. Factor (Cholesky, ) then solve two triangular systems; forming costs more and is less stable.
Step 4 — local convergence. Let . Taylor-expand and . Then
More precisely .
Step 5 — globalization. Because the model can be poor far from , apply backtracking line search: try , halve until Armijo holds. For -strongly convex with -Lipschitz Hessian, damped Newton reaches the quadratic-convergence region in iterations.
Step 6 — secant derivation of BFGS. We want with the minimal change to in a weighted norm. Enforcing symmetry, positivity and this secant condition uniquely yields the BFGS formula above; applying the Sherman–Morrison–Woodbury identity gives the inverse update used in practice.
10. Proofs and proof intuition
Theorem (local quadratic convergence). Suppose , , with , and near . If is close enough, then . Proof. By Taylor with integral remainder, with . Then . Bounding and gives the bound.
Proposition (affine invariance). For with invertible, the Newton iterate in -space maps exactly to the Newton iterate in -space. Proof. and ; hence , and . (Gradient descent is not affine invariant.)
Proposition (BFGS preserves positive definiteness). If and , then . Proof. For any , . The first two terms are nonnegative by Cauchy–Schwarz in the -inner product (equality only for ), and the third is strictly positive in that case since .
Proof intuition. Newton's quadratic convergence comes from the fact that the Hessian error is first order in the position error, and after multiplying by it becomes second order. Everything else — damping, modifications, quasi-Newton — is about preserving that local magic while surviving the real world.
11. Geometric interpretation
At each iterate, Newton fits a quadratic bowl whose curvature matrix is . The step jumps to that bowl's bottom. For a quadratic objective the bowl is exact, so one step reaches the optimum regardless of conditioning; gradient descent instead follows the normal to elongated ellipses and zig-zags.
Preconditioning view: rotates and rescales the gradient so that the transformed Hessian is the identity — contours become circles. The local rate for gradient descent, , becomes zero for Newton on quadratics.
In nonconvex regions the "bowl" is a saddle: a negative eigenvalue makes point toward ascent. Trust-region methods respond by constraining ; eigenvalue modification flips negative curvature. Visualizing the Hessian's eigen-decomposition — directions of upward and downward curvature — is the right mental model for all these fixes.
12. Visual explanation
Use the interactive Newton Lab: plot contours of and overlay the trajectories of gradient descent () and Newton. GD zig-zags for ~40 steps; Newton lands at the origin in one. Next, load the Rosenbrock function and observe that raw Newton diverges from far starts while damped Newton descends. A third panel shows a saddle point with the Hessian eigenvector corresponding to a negative eigenvalue highlighted in red; flipping its sign (adding ) turns the step into a descent direction. The scree of eigenvalues illustrates why a single scalar step size cannot match curvature across directions.
13. Numerical worked example
Root finding. Solve with from : , , , . The number of correct digits roughly doubles: errors .
Ill-conditioned quadratic. from : , , so and — one step to machine precision. Gradient descent with needs about 60 steps because slows the flat direction.
Logistic regression. With , where . Damped Newton from zero typically converges in 6–10 iterations while L-BFGS takes 50–200; each iteration costs versus for a gradient step.
Failure. has : starting at , the Newton step divides by zero. Adding gives a finite descent step. At (a minimizer, ) convergence is quadratic.
Saddle. has at the origin; the Newton step from is — it moves up the negative-curvature direction toward the saddle rather than down.
14. Real-world analogy
A hiker in fog with a topographical instrument that measures not just slope but the full local curvature of the terrain. Gradient descent walks downhill at a fixed pace; Newton's method uses the curvature to choose a stride per direction — small strides across sharp ridges, long strides down gentle slopes. On an elliptical valley this reaches the bottom in one perfectly aimed leap. But if the instrument reads a saddle (ground curving up one way and down another), following its advice blindly walks uphill; and if the terrain is far from the local model, the leap may overshoot into a different valley. Hence damping and curvature checks.
15. Algorithm pseudocode
algorithm Newton(f, grad, hess, theta0, T, tol):
for t = 0 .. T-1:
g <- grad(theta); H <- hess(theta)
if ||g|| < tol: break
if lambda_min(H) <= 0: H <- H + gamma I # curvature repair
solve H s = -g # Cholesky if SPD, else LU
alpha <- BacktrackingLineSearch(f, g, s) # alpha = 1 if Armijo holds
theta <- theta + alpha * s
return theta
algorithm BacktrackingLineSearch(f, g, s, c1=1e-4, rho=0.5):
alpha <- 1
while f(theta + alpha*s) > f(theta) + c1*alpha*(g . s):
alpha <- rho * alpha
return alpha
algorithm BFGS(f, grad, theta0, T):
B <- I
for t = 0 .. T-1:
solve B s = -grad(theta) # or use inverse form
theta_new <- theta + LineSearch(s)
y <- grad(theta_new) - grad(theta)
if y . s > 1e-12: B <- BFGSUpdate(B, s, y) # secant update
theta <- theta_new
return theta
16. Implementation from scratch
import numpy as np
def newton(f, grad, hess, x0, tol=1e-12, maxiter=50, gamma=1e-6):
x = np.asarray(x0, float).copy()
hist = []
for t in range(maxiter):
g = grad(x); H = hess(x)
if np.linalg.norm(g) < tol: break
# curvature repair: ensure positive definiteness
eig_min = np.linalg.eigvalsh(H)[0]
if eig_min <= gamma:
H = H + (gamma - eig_min + 1e-8) * np.eye(len(x))
try:
s = np.linalg.solve(H, -g) # never invert H
except np.linalg.LinAlgError:
s = -g / (np.linalg.norm(g) + 1e-12)
alpha = 1.0 # Armijo backtracking
while f(x + alpha*s) > f(x) + 1e-4*alpha*(g @ s) and alpha > 1e-12:
alpha *= 0.5
x = x + alpha*s
hist.append((t, f(x), np.linalg.norm(g)))
return x, hist
def bfgs(f, grad, x0, maxiter=200, tol=1e-9):
x = np.asarray(x0, float).copy(); B = np.eye(len(x))
for _ in range(maxiter):
g = grad(x)
if np.linalg.norm(g) < tol: break
s = np.linalg.solve(B, -g)
x_new = x + s # assume unit step suffices
y = grad(x_new) - g
if y @ s > 1e-12:
Bs = B @ s
B = B - np.outer(Bs, Bs)/(s @ Bs) + np.outer(y, y)/(y @ s)
x = x_new
return x
f = lambda w: 0.5*(w[0]**2 + 10*w[1]**2)
g = lambda w: np.array([w[0], 10*w[1]])
H = lambda w: np.array([[1.0, 0.0], [0.0, 10.0]])
x, hist = newton(f, g, H, [10.0, 10.0])
print(x, len(hist)) # ~ [0,0], 1-2 iterations
print(bfgs(f, g, [10.0, 10.0])) # ~ [0,0]
17. Professional library implementation
import numpy as np
from scipy.optimize import minimize
import torch
fun = lambda w: 0.5*(w[0]**2 + 10*w[1]**2)
jac = lambda w: np.array([w[0], 10*w[1]])
hess = lambda w: np.array([[1.0, 0.0], [0.0, 10.0]])
res = minimize(fun, [10.0, 10.0], jac=jac, hess=hess, method="Newton-CG")
print(res.x, res.nit)
# Limited-memory BFGS for large d
res2 = minimize(fun, [10.0, 10.0], jac=jac, method="L-BFGS-B",
options={"maxiter": 200, "ftol": 1e-12})
print(res2.x, res2.nit)
# PyTorch LBFGS for neural-network-scale problems
w = torch.tensor([10.0, 10.0], requires_grad=True)
opt = torch.optim.LBFGS([w], max_iter=20, line_search_fn="strong_wolfe")
def closure():
opt.zero_grad(); loss = 0.5*(w[0]**2 + 10*w[1]**2); loss.backward()
return loss
opt.step(closure)
print(w.detach())
Use method="trust-constr" or Newton-CG when the Hessian may be indefinite; L-BFGS-B for large ; and PyTorch's LBFGS only for moderate-sized problems because it requires a closure and multiple function evaluations per step.
18. Code walkthrough
Scratch Newton. eigvalsh(H)[0] obtains the smallest eigenvalue of a symmetric matrix; adding makes the modified Hessian positive definite so the solve yields a descent direction. np.linalg.solve uses LU; for a guaranteed SPD matrix, scipy.linalg.cho_factor/cho_solve is roughly twice as fast and more stable. The Armijo loop multiplies by 0.5 until sufficient decrease — exactly the globalization described in the derivation.
BFGS. The inverse-form update (shown) avoids an inner linear solve. The curvature condition is checked before updating; skipping an update with negative curvature preserves positive definiteness. With a quadratic whose Hessian is constant, BFGS converges in at most steps (finite termination property).
Library. scipy.optimize.minimize with Newton-CG uses Hessian-vector products rather than a dense Hessian; L-BFGS-B stores correction pairs. PyTorch's LBFGS calls closure() repeatedly so it can evaluate the objective at trial points during its line search — forgetting to zero gradients inside the closure is the classic bug.
19. Tensor and memory analysis
A dense Hessian costs floats: needs 400 MB in fp32, needs 4 PB — impossible. BFGS also stores ; L-BFGS stores vectors of length , i.e. (with , : 80 GB, still large but tractable in sharded form). Hessian-vector products need no buffer: an HVP via reverse-over-forward automatic differentiation costs roughly the price of two gradient evaluations and extra memory. Block-diagonal/K-FAC approximations store sums of Kronecker factors, e.g. per layer instead of the full O(d^2)`; iterative solvers (CG) need only vectors.
20. Time complexity
Per Newton iteration: to form for least-squares-like losses, for Cholesky, for the solves — so . Newton–CG replaces the solve with CG iterations each costing one HVP , giving — far better when is huge and moderate. BFGS costs per iteration for the rank-two update plus a line search; L-BFGS costs per step. Iteration counts: Newton needs locally (quadratic), damped Newton globally for strongly convex , L-BFGS typically empirically. Always weigh iterations against per-iteration cost — Newton's "one step" can be far more expensive than a gradient step.
21. Space complexity
Dense Newton and BFGS: HBO(d) for $g,s$. L-BFGS: $O(md) for stored pairs, with . Matrix-free Newton–CG: d=10^7O(d^2)O(md)` is ~800 MB — this is why large-scale practice uses L-BFGS, Hessian-free methods, or structured approximations.
22. Experimental demonstration
Compare gradient descent (), Newton, and BFGS on for from : Newton always converges in one step, GD needs , BFGS needs at most steps by finite termination. Record iteration counts and wall-clock time. Then run on Rosenbrock from : raw Newton diverges, damped Newton converges in ~20 iterations, BFGS in ~30. Third, fit logistic regression on a synthetic y^\top s>0$ fails and the update must be skipped.
23. Benchmark results
On the ill-conditioned quadratic, Newton's single iteration takes d\le1000O(md). On logistic regression with $d=20$, damped Newton converges in fewer than 10 iterations versus L-BFGS's 50–200, but each Newton iteration forms an $O(nd^2) matrix — report both metrics. On deep networks, full Newton is infeasible; K-FAC and Hessian-free Newton–CG show speedups over SGD in some settings but require careful damping and are not universal defaults. Never quote iteration counts alone: always report per-iteration cost, damping rule, and whether curvature was exact or approximate.
24. Limitations
- Requires twice-differentiable objectives with available (or accurate) Hessian information.
- Dense Hessian storage O(d^3)` are prohibitive at large scale.
- Indefinite Hessians produce ascent directions; saddle points are attractors for raw Newton.
- Singular Hessians make the step undefined; regularization is mandatory near degenerate optima.
- Only locally quadratically convergent — globalization (line search/trust region) is essential.
- Noisy or stochastic gradients break the BFGS secant condition; quasi-Newton updates become unstable.
- For nonsmooth objectives (e.g. penalties) the Hessian does not exist; proximal or smoothed variants are needed.
- Exact Hessian may be wasteful for losses with structured Gauss–Newton approximations.
25. Failure scenarios
- Singular Hessian: at gives ; division by zero. Add $\gamma I`.
- Indefinite Hessian / saddle: ; the Newton direction points uphill along . Use eigenvalue modification or trust regions.
- Divergence from far starts: Rosenbrock from with $\alpha=1`; backtracking or a trust region fixes it.
- Memory exhaustion: forming a Hessian needs 40 GB; switch to L-BFGS or HVP-based Newton–CG.
- BFGS update from noisy gradients: $y^\top s\le0` makes the update non-PSD; skip the update or use damping.
- **Forming Hs=-g`; use Cholesky.
- Stochastic Newton with minibatches: a noisy Hessian estimate can be non-PSD even when the true one is PSD; use subsampled Gauss–Newton with damping.
26. Common misconceptions
- "Newton always converges faster than gradient descent." Locally yes (quadratic vs linear), but each iteration is much more expensive and can diverge globally without damping.
- "The Hessian is always positive definite." Only at local minima of convex functions; saddles and nonconvex regions have negative eigenvalues.
- "Quasi-Newton methods approximate the Hessian by finite differences." They build it from gradient differences satisfying the secant equation — no extra function evaluations.
- "Newton minimizes exactly in one step." Only for an exactly quadratic $f` (or a locally quadratic model); higher-order terms require more steps.
- "Inverting the Hessian is the natural implementation." Solving the linear system is both faster and numerically safer.
- "Second-order methods are always better for deep learning." Curvature is expensive and noisy; adaptive first-order methods dominate large-scale training.
27. Alternative approaches
- Gradient descent / SGD / AdamW: $O(d)` per step, robust to noise, default for deep learning.
- BFGS / L-BFGS: secant-based curvature, or $O(md)` storage; excellent for medium-dimensional smooth problems.
- Trust-region methods: constrain step length, handle indefinite curvature rigorously.
- Cubic regularization: adds O(1/\varepsilon^{3/2})$ complexity.
- Newton–CG / Hessian-free: matrix-free solves using Hessian-vector products.
- Gauss–Newton / Levenberg–Marquardt: exploit least-squares structure, using $J^\top J` instead of the full Hessian.
- Natural gradient / K-FAC: precondition with the Fisher information or a factored approximation, better matched to probability distributions.
- Coordinate descent / derivative-free methods: when derivatives or curvature are unavailable.
29. Research applications
- Statistical inference: the inverse Hessian gives asymptotic standard errors of maximum-likelihood estimates.
- Scientific computing: solving nonlinear equations and PDEs with Newton–Krylov methods.
- Machine learning: second-order optimization for logistic regression, Gaussian processes, and small-to-medium networks; K-FAC and Hessian-free training.
- Reinforcement learning: TRPO uses a Fisher-information (natural-gradient) trust region.
- Sharpness and generalization: Hessian eigenvalue spectra characterize flat vs sharp minima.
- Sensitivity analysis: implicit differentiation of optimizers via $H^{-1}`.
- Model-based control: sequential quadratic programming (SQP) uses local quadratic models with constraints.
30. Important research papers
- Newton I. (1687), Philosophiæ Naturalis Principia Mathematica — original root-finding iteration.
- Raphson J. (1690), Analysis Aequationum Universalis — the modern Newton–Raphson form.
- Cauchy A.-L. (1847), Méthode générale pour la résolution des systèmes d'équations simultanées — descent and second-order context.
- Davidon W. C. (1959), Variable Metric Method for Minimization, Argonne National Laboratory — first quasi-Newton method.
- Fletcher R., Powell M. J. D. (1963), A Rapidly Convergent Descent Method for Minimization, Computer Journal 6:163–168.
- Broyden C. G. (1965), A class of methods for solving nonlinear simultaneous equations, Math. Comp. 19:577–593.
- Nocedal J. (1980), Updating quasi-Newton matrices with limited storage, Math. Comp. 35:773–782 — L-BFGS.
- Nesterov Y., Polyak B. T. (2006), Cubic regularization of Newton's method and global complexity guarantees, Math. Program. 108:523–539.
- Martens J. (2010), Deep learning via Hessian-free optimization, ICML.
31. Further reading
- Nocedal & Wright, Numerical Optimization (2nd ed., 2006), chapters 3, 6, 7, 11 — the standard reference.
- Boyd & Vandenberghe, Convex Optimization (2004), chapters 9.5, 10 — Newton and self-concordance.
- Dennis & Schnabel, Numerical Methods for Unconstrained Optimization and Nonlinear Equations (1983).
- Kelley, Solving Nonlinear Equations with Newton's Method (2003).
- Conn, Gould & Toint, Trust-Region Methods (2000).
- PyTorch docs on
torch.optim.LBFGSand SciPy'soptimize.minimizenotes on Hessian specifications.
32. Practical exercises
- Implement
newtonfrom memory and verify it reaches from on in one step. - Derive and implement the Armijo backtracking line search; verify that damped Newton converges on Rosenbrock from while undamped Newton diverges.
- Reproduce the scalar example and tabulate the doubling of correct digits.
- Implement BFGS from memory; verify finite termination in at most steps on a positive-definite quadratic.
- Demonstrate the saddle failure on and show that adding produces a descent step.
- Compare Newton–CG (HVP-based) with dense Newton on a diagonal quadratic with $d=5000`; report memory and time.
33. Debugging challenges
np.linalg.solveraises a singular-matrix error. The Hessian is rank-deficient; add a Levenberg-style damping .- Newton step increases the loss. Hessian is indefinite or the step is too large; check eigenvalues and enable line search.
- BFGS update produces a non-positive-definite matrix. The curvature condition $y^\top s>0` failed (noisy gradients); skip the update.
- PyTorch LBFGS throws "closure called multiple times" or loss does not decrease. Zero gradients inside the closure and avoid
torch.no_grad()there. - Newton–CG converges slowly. Hessian is ill-conditioned; add a preconditioner or improve damping.
- Hessian built by finite differences is asymmetric. Symmetrize $H\leftarrow(H+H^\top)/2` before factorization.
34. Advanced exercises
- Prove the full Newton–Kantorovich theorem giving existence and quadratic convergence from a single starting-point condition.
- Derive the BFGS inverse update via Sherman–Morrison–Woodbury and implement both inverse and direct forms; verify they agree.
- Implement cubic regularization: at each step minimize O(1/\varepsilon^{3/2})$ rate on a convex problem.
- Prove affine invariance of Newton and demonstrate numerically that gradient descent's trajectory changes under a linear reparameterization while Newton's does not.
- Implement a matrix-free Newton–CG using forward-over-reverse automatic differentiation for HVPs; validate against an explicit Hessian on a small problem.
- Derive the Gauss–Newton approximation $H\approx\tfrac2nJ^\top J` for least squares and show when it is exact (zero residual or small curvature).
35. Interview questions
- Derive the Newton step from a second-order Taylor model and prove quadratic convergence.
- Why should you solve H^{-1}`? Quantify the cost and stability difference.
- What happens when the Hessian is indefinite? Give a concrete example and two fixes.
- State the BFGS secant equation and prove that BFGS preserves positive definiteness.
- Compare Newton, BFGS and L-BFGS in per-iteration cost, memory, and iteration count.
- Why is Newton affine invariant while gradient descent is not? Give an example.
- When would you prefer Gauss–Newton over full Newton for a least-squares problem?
36. Research questions
- Can second-order information be exploited at LLM scale without storing or approximating a full Hessian?
- How should damping adapt when gradient and curvature estimates come from different minibatches?
- What is the sharpest global complexity bound for Newton-like methods under inexact Hessian solves?
- Can Hessian spectra predict generalization as reliably as empirical sharpness measures suggest?
- How do quasi-Newton methods behave under heavy-tailed stochastic gradient noise, and can they be made robust?
37. Mastery assessment
To pass: (1) derive the Newton step and prove quadratic convergence without notes; (2) implement Newton with curvature repair and Armijo line search, reproducing the one-step quadratic result and the Rosenbrock case; (3) implement BFGS and verify finite termination; (4) explain singular/indefinite Hessians, saddle failure and memory limits with examples; (5) answer the interview questions. Complete the linked assessment; reading alone is not mastery.
38. Implementation submission
Push a repository with newton.py (Newton with damping and BFGS), experiments.ipynb (quadratic, Rosenbrock, logistic regression, saddle and singular cases, Newton–CG scaling), a README.md with derivations and recorded iteration counts, and tests asserting one-step convergence on the quadratic and descent on Rosenbrock with line search. Submit the repository URL and exact reproduction command.
39. Completion criteria
All of: every section read; quadratic-convergence and BFGS-positivity proofs reproduced on paper; scratch implementation passing tests; numerical experiments with recorded counts and plots; at least two failure cases reproduced and explained; a one-page answer to a research question citing at least one paper. Only then mark the concept mastered.