← Back to AI Math Mind Map
📐 AI MathID: newton-method

Newton's Method

牛顿法 vs 梯度下降
🎯Core Definition
Newton's method uses second-order information: take the second-order Taylor expansion at ww, f(w+Δw)≈f(w)+∇fTΔw+12ΔwTHΔwf(w + \Delta w) \approx f(w) + \nabla f^T\Delta w + \frac{1}{2}\Delta w^T H\Delta w (H = Hessian), differentiate w.r.t. Δw\Delta w and set to zero: ∇f+HΔw=0\nabla f + H\Delta w = 0, giving the Newton step Δw=−H−1∇f\Delta w = -H^{-1}\nabla f. Geometrically it fits a quadratic surface and jumps straight to its vertex: exactly one step for quadratics, and local quadratic convergence for smooth functions — the error decays quadratically, ∥wk+1−w∗∥≤C∥wk−w∗∥2\Vert w_{k+1} - w^*\Vert \le C\Vert w_k - w^*\Vert^2, doubling correct digits per iteration (10−3→10−6→10−1210^{-3} \to 10^{-6} \to 10^{-12}), versus linear convergence (1−1/κ)t(1 - 1/\kappa)^t for gradient descent.
💡Use Cases
a canonical interview comparison with GD. Ill-conditioned example: f(x,y)=x2+100y2f(x,y) = x^2 + 100y^2. Hessian H=diag(2,200)H = \mathrm{diag}(2, 200), condition number κ=200/2=100\kappa = 200/2 = 100. GD zig-zags along the steep yy direction and needs O(κ)O(\kappa) iterations; Newton computes H−1∇f=(x,y)TH^{-1}\nabla f = (x, y)^T, effectively a coordinate transform that removes the scale difference, and reaches the origin in one step.
⚡Key Problems Solved
first-order rates are dominated by the condition number, while Newton's H−1H^{-1} isotropizes the space and converges in one step on ill-conditioned problems; the cost is O(D3)O(D^3) per step to solve the linear system and O(D2)O(D^2) memory for the Hessian, infeasible for high-dimensional deep networks — hence approximations: L-BFGS (O(D)O(D) memory, inverse-Hessian built from gradient history) and Gauss-Newton (H≈JTJH \approx J^TJ for least squares, made invertible via JTJ+λIJ^TJ + \lambda I). For non-convex functions H can be indefinite and the Newton direction is not a descent direction; fixes include damped Newton and regularization H+λIH + \lambda I (Levenberg-Marquardt).
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Newton's Method.
Use Cases
In production engineering, what are the primary use cases for Newton's Method and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
Derive the Newton step Δw=−H−1∇f\Delta w = -H^{-1}\nabla f from the second-order Taylor expansion (show the full stationarity derivation).
2
Why does Newton converge in one step on quadratics and quadratically in general? Explain the rate ∥wk+1−w∗∥≤C∥wk−w∗∥2\Vert w_{k+1}-w^*\Vert \le C\Vert w_k-w^*\Vert^2.
3
Ill-conditioned example f=x2+100y2f = x^2 + 100y^2: estimate steps for GD (κ=100\kappa=100) vs Newton and explain why Newton lands in one step.
4
What is Newton's cost (O(D3)O(D^3) per step, O(D2)O(D^2) memory)? How do L-BFGS and Gauss-Newton approximate the Hessian?
5
For non-convex functions the Hessian can be indefinite — why does the Newton direction become unreliable? How do damped Newton and H+λIH + \lambda I (Levenberg-Marquardt) fix it?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Newton's Method"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardConvex Optimization & KKTNext Card →Regularization Geometry

🔗 More AI Math Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/Math/card/newton-method
中文速览与面试要点

牛顿法 vs 梯度下降 (Newton's Method)

定义: 牛顿法利用二阶信息,在当前点 w 做二阶泰勒展开 f(w + w) f(w) + f^T w + 12 w^T H w(H 为 Hessian),对 w 求导并置零: f + H w = 0,得到牛顿步 w = -H^-1 f。几何本质是“拟合一个二次曲面并一步走到其顶点”: 对二次函数恰一步到位;对一般光滑函数局部二次收敛——误差按平方衰减 w_k+1 - w^* C w_k - w^* ^2,有效数字每步翻倍(从 10^-3 到 10^-6 再到 10^-12),而梯度下降只是线性收敛 (1 - 1/ )^t。 使用场景: 面试必考与梯度下降的对比,经典病态例题: f(x,y) = x^2 + 100y^2。Hessian H = diag(2, 200),条件数 = 200/2 = 100。GD 沿陡峭的 y 方向来回震荡,约需 O( ) 次迭代才收敛;牛顿法 H^-1 f = (x, y)^T 直接做“坐标变换”消除尺度差,一步到达原点 (0,0)。 解决的问题: 一阶方法的收敛率被条件数支配( 越大越慢),牛顿法用 H^-1 对空间各向同性化,对病态问题一步收敛;代价是每步求解线性方程组 O(D^3)、存储 Hessian 需 O(D^2) 内存,高维深度网络不可行 → 实际用近似: L-BFGS(O(D) 内存、历史梯度近似逆 Hessian)、Gauss-Newton(最小二乘中 H J^TJ,用 J^TJ + I 保证可逆)。非凸函数 Hessian 可能非正定,牛顿方向不再是下降方向,需阻尼牛顿或加正则 H + I(Levenberg-Marquardt)。

核心要点

  • 从二阶泰勒展开推导牛顿步 w = -H^-1 f(写出对 w 求导置零的完整步骤)。
  • 为什么牛顿法对二次函数一步收敛、对一般函数二次收敛?给出收敛阶定义 w_k+1-w^* C w_k-w^* ^2 的含义。
  • 病态例题 f = x^2 + 100y^2:分别估计 GD( =100)与牛顿法各需多少步收敛,并解释牛顿法一步到位的机理。
  • 牛顿法的计算代价(O(D^3)/步、O(D^2) 内存)是多少?L-BFGS 与 Gauss-Newton 分别如何近似 Hessian?
  • 非凸函数 Hessian 可能非正定,牛顿方向为何不再可靠?阻尼牛顿 / H + I(Levenberg-Marquardt)如何修复?