# 最优化中的牛顿法

**最优化中的牛顿法**是一种二阶迭代算法，用于最小化二次可微函数：在每次迭代中，它利用梯度和[黑塞矩阵](https://www.edgepedia.org/zh/hessian-matrix)构造目标函数的二次模型，并步进到该模型的最小点。同样的思想应用于梯度方程，使得求根牛顿法成为许多优化算法的计算核心，从线搜索和信赖域方法到约束问题的内点法。<sup>[1](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)</sup><sup> • </sup><sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0377221706001469)</sup>

| 关键事实 | 详情 |
|---|---|
| 牛顿步 | 步向量 \( s_k \) 满足线性方程组 \( \nabla^2 f(x_k)\, s_k = -\nabla f(x_k) \)，更新为 \( x_{k+1} = x_k + s_k \)<sup>[1](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)</sup><sup> • </sup><sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup> |
| 局部收敛性 | 在最小点附近，黑塞矩阵为正定，方法以单位步长 \( \alpha_k = 1 \) 二次收敛<sup>[1](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)</sup> |
| 主要缺陷 | 远离最小点时，黑塞矩阵可能不正定或接近奇异，因此牛顿步可能成为上升方向或过长<sup>[1](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)</sup> |
| 全局化 | 线搜索和信赖域策略调整步长或将迭代步限制在二次模型可信的区域内<sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup><sup> • </sup><sup>[4](https://ocw.tau.edu.ng/courses/chemical-engineering/10-34-numerical-methods-applied-to-chemical-engineering-fall-2015/class-videos/session-11-unconstrained-optimization-newton-raphson-and-trust-region-methods/)</sup> |
| 大规模变体 | 截断（不精确）牛顿法用共轭梯度法近似求解牛顿方程组，使用黑塞矩阵-向量乘积而非存储黑塞矩阵<sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup><sup> • </sup><sup>[5](https://www.cs.cornell.edu/courses/cs6241/2019sp/readings/Bottou-2018-opt.pdf)</sup> |
| 历史归属 | 牛顿的版本出现在论文《De analysi》中（1669年写成，1711年发表）；基于微积分的现代表述最早由托马斯·辛普森于1740年给出<sup>[6](https://www.sciencedirect.com/topics/mathematics/newtons-method)</sup><sup> • </sup><sup>[7](https://www.cambridge.org/core/journals/british-journal-for-the-history-of-science/article/abs/thomas-simpson-and-newtons-method-of-approximation-an-enduring-myth/265FA038F1A1873E8850CAFB4468DD8F)</sup> |

## 牛顿步

[牛顿法](https://www.edgepedia.org/zh/newtons-method)通过反复将困难的非线性问题替换为更简单的问题来最小化光滑函数 \( f : \mathbb{R}^n \to \mathbb{R} \)。[泰勒定理](https://www.edgepedia.org/zh/taylors-theorem)用二次模型近似当前迭代点 \( x_k \) 附近的 \( f \)，并通过令该模型的梯度为零来求其最小点。这给出牛顿方程

\[ \nabla^2 f(x_k)\, s_k = -\nabla f(x_k), \qquad x_{k+1} = x_k + s_k, \]

其中 \( \nabla f(x_k) \) 是梯度，\( \nabla^2 f(x_k) \) 是黑塞矩阵，即二阶导数矩阵。<sup>[1](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)</sup><sup> • </sup><sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup> 同样的更新也可由将一维牛顿求根迭代 \( x_{i+1} = x_i - f(x_i)/f'(x_i) \) 应用于梯度方程 \( \nabla f(x) = 0 \) 得到。<sup>[6](https://www.sciencedirect.com/topics/mathematics/newtons-method)</sup><sup> • </sup><sup>[8](https://cims.nyu.edu/~stadler/num1/material/num1_optimization.pdf)</sup>

当黑塞矩阵正定时，牛顿方向是下降方向，因为对于 \( s_k \neq 0 \)，

\[ \nabla f(x_k)^{\top} s_k = -\, s_k^{\top} \nabla^2 f(x_k)\, s_k < 0. \]<sup>[9](https://tducvu.github.io/assets/lecturenotes/optmz.pdf)</sup>

## 收敛性

该方法的声誉建立在其局部行为之上。

远离最小点时，二次模型可能指导性很差。黑塞矩阵可能不正定，使牛顿步成为上升方向，或者可能接近奇异，产生过长的步长；即使是一个长的下降方向，也可能需要多次线搜索迭代，因为它违反了二次近似在当前迭代点附近有效这一前提。<sup>[1](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)</sup> 因此，在其基本形式中，该方法仅具有局部收敛性，其全局行为必须通过修正或全局化策略来修复。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0377221706001469)</sup>

## 黑塞矩阵修正

**修正牛顿法**直接修复不合适的黑塞矩阵。求解的方程组为 \( B_k p_k = -\nabla f(x_k) \)，其中修正黑塞矩阵 \( B_k = \nabla^2 f(x_k) + E_k \) 被选择为使 \( B_k \) 充分正定；所得方向随后用于满足沃尔夫条件的线搜索中。<sup>[1](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)</sup> 诺塞达尔和赖特所归纳的标准技术包括特征值修正、加上单位矩阵的倍数、修正乔列斯基分解和修正对称不定分解。<sup>[10](https://users.iems.northwestern.edu/~nocedal/book/toc.html)</sup>

## 全局化：线搜索与信赖域

两种技术调整牛顿方向的长度，以保证从远处起点收敛。<sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup>

在**线搜索**框架中，先计算完整的牛顿方向，然后用步长 \( \alpha_k \) 进行阻尼，在解附近优先采用单位值，以保持快速的局部收敛速率。<sup>[9](https://tducvu.github.io/assets/lecturenotes/optmz.pdf)</sup> 在**信赖域**框架中，二次模型仅在当前迭代点周围半径为 \( \Delta_k \) 的球内最小化。如果牛顿步位于该区域内并减小目标函数，则采用该步；否则方法退回到较短的、类似最速下降的迭代步，并且当模型的预测改进未能实现时缩小半径。<sup>[4](https://ocw.tau.edu.ng/courses/chemical-engineering/10-34-numerical-methods-applied-to-chemical-engineering-fall-2015/class-videos/session-11-unconstrained-optimization-newton-raphson-and-trust-region-methods/)</sup> 牛顿法优先于最速下降法，因为随着迭代点接近解，其迭代步会落入信赖域内，从而收敛更快。<sup>[4](https://ocw.tau.edu.ng/courses/chemical-engineering/10-34-numerical-methods-applied-to-chemical-engineering-fall-2015/class-videos/session-11-unconstrained-optimization-newton-raphson-and-trust-region-methods/)</sup>

## 大规模与不精确牛顿法

在大规模问题中，构造和分解 \( n \times n \) 黑塞矩阵代价高昂。**截断牛顿法**（也称不精确牛顿法）改用迭代方法近似求解牛顿方程，通常用共轭梯度法，一旦找到足够好的方向就停止；在适当的停止规则下，外层迭代仍超线性收敛。<sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup><sup> • </sup><sup>[11](https://link.springer.com/article/10.1007/s10589-025-00650-7)</sup> 关键使能因素是共轭梯度法只需要黑塞矩阵-向量乘积 \( \nabla^2 f(x)\, s \)，对于许多目标函数，这可以在不存储黑塞矩阵的情况下计算，避免了 \( O(d^2) \) 的存储。<sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup><sup> • </sup><sup>[5](https://www.cs.cornell.edu/courses/cs6241/2019sp/readings/Bottou-2018-opt.pdf)</sup>

一个实际例子是大规模逻辑回归。其黑塞矩阵具有形式 \( \nabla^2 f(w) = I + C\, X^{\top} D X \)，其中 \( D \) 是对角矩阵，\( X \) 是稀疏数据矩阵，因此乘积 \( \nabla^2 f(w)\, s = s + C \cdot X^{\top}(D(Xs)) \) 计算代价很低，即使 \( X^{\top} D X \) 本身过于稠密而无法存储。林、翁和基尔西的信赖域牛顿法在早期使用近似牛顿步，后期使用完整牛顿方向，收敛速度远快于仅使用近似黑塞矩阵的拟牛顿法。<sup>[3](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)</sup>

在更广泛的机器学习中，不精确牛顿-CG方法可应用于多项逻辑回归和深度网络，且迭代对黑塞矩阵估计中的噪声比对梯度估计中的噪声更容忍，允许黑塞矩阵使用比随机梯度更小的样本。<sup>[5](https://www.cs.cornell.edu/courses/cs6241/2019sp/readings/Bottou-2018-opt.pdf)</sup> 然而，内层共轭梯度迭代的代价可能使此类方法无法与随机梯度或有限内存BFGS方法竞争，后者的每次迭代开销很小。<sup>[5](https://www.cs.cornell.edu/courses/cs6241/2019sp/readings/Bottou-2018-opt.pdf)</sup>

## 相关方法

对于非凸问题，牛顿-克雷洛夫和信赖域变体利用负曲率方向（满足 \( s^{\top} \nabla^2 f(x_k)\, s < 0 \)）来逃离鞍点并到达更好的局部最小点。<sup>[11](https://link.springer.com/article/10.1007/s10589-025-00650-7)</sup>

牛顿法也是约束优化的基础。凸优化中的多项式时间内点算法基于应用于障碍子问题的牛顿法，而KKT方程组上的牛顿步直接求解等式约束问题。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S0377221706001469)</sup><sup> • </sup><sup>[12](https://web.stanford.edu/class/msande211x/lecture15.pdf)</sup> 软件反映了这一范围：SciPy的`minimize`为大规模问题提供牛顿-CG（截断牛顿法）、狗腿法和trust-ncg及trust-krylov信赖域牛顿变体，以及trust-exact，后者几乎精确地求解二次子问题，推荐用于中小规模问题。<sup>[13](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html)</sup>

## 历史

最优化版本源自求根迭代。牛顿的版本最早写于1669年的论文《De analysi》中，但直到1711年才独立发表；它作为沃利斯1685年著作的一部分出现。<sup>[6](https://www.sciencedirect.com/topics/mathematics/newtons-method)</sup> 牛顿和拉夫森都发表了等价于现代公式 \( x_{i+1} = x_i - f(x_i)/f'(x_i) \) 的程序，但两人都没有使用微积分来计算导数，而是依赖基于二项式定理的繁琐代数方法。<sup>[6](https://www.sciencedirect.com/topics/mathematics/newtons-method)</sup> 牛顿又受到韦达方法的启发，拉夫森后来改进了该程序，因此得名牛顿-拉夫森法。<sup>[14](https://transp-or.epfl.ch/books/optimization/html/OptimizationPrinciplesAlgorithms2018.pdf)</sup>

历史学术研究修正了归属。[伦敦大学学院](https://www.edgepedia.org/zh/university-college-london)科学史与科学哲学系的历史学家尼克·科勒斯特罗姆于1992年证明，现代形式的方法实质上是由托马斯·辛普森发明的，他于1740年发表了自己的论述，而这一发明通过一次奇特的历史错位被回溯到了牛顿的《De analysi》。<sup>[7](https://www.cambridge.org/core/journals/british-journal-for-the-history-of-science/article/abs/thomas-simpson-and-newtons-method-of-approximation-an-enduring-myth/265FA038F1A1873E8850CAFB4468DD8F)</sup> [西华盛顿大学](https://www.edgepedia.org/zh/western-washington-university)的数学家恰林·J·伊普马在其1995年的《SIAM评论》综述中得出一致结论：严格来说，通常称为牛顿法或牛顿-拉夫森法的方法应归功于辛普森，他首次给出了适用于非多项式方程的流数微积分一般表述，并将其扩展到方程组。<sup>[6](https://www.sciencedirect.com/topics/mathematics/newtons-method)</sup><sup> • </sup><sup>[15](https://portal.mardi4nfdi.de/wiki/Historical_Development_of_the_Newton%E2%80%93Raphson_Method)</sup> 傅里叶的巨大声望可能解释了“牛顿法”这一术语的持续使用，直到1992年和1995年的论文之前都未提及辛普森。<sup>[16](https://www.sciencedirect.com/topics/mathematics/newton-raphson)</sup>

## References

1. [Carreira-Perpiñán, M. Lecture Notes on Numerical Optimization (EECS 260), UC Merced](https://faculty.ucmerced.edu/mcarreira-perpinan/teaching/EECS260/lecture-notes.pdf)
2. [Newton's method and its use in optimization, European Journal of Operational Research (ScienceDirect)](https://www.sciencedirect.com/science/article/abs/pii/S0377221706001469)
3. [Lin, C.-J., Weng, R. C., Keerthi, S. S. (2008). Trust Region Newton Method for Logistic Regression. Journal of Machine Learning Research 9: 627–650](https://jmlr.org/papers/volume9/lin08b/lin08b.pdf)
4. [Session 11: Unconstrained Optimization; Newton-Raphson and Trust Region Methods, MIT 10.34 Numerical Methods Applied to Chemical Engineering (OpenCourseWare)](https://ocw.tau.edu.ng/courses/chemical-engineering/10-34-numerical-methods-applied-to-chemical-engineering-fall-2015/class-videos/session-11-unconstrained-optimization-newton-raphson-and-trust-region-methods/)
5. [Bottou, L., Curtis, F. E., Nocedal, J. (2018). Optimization Methods for Large-Scale Machine Learning. SIAM Review 60(2)](https://www.cs.cornell.edu/courses/cs6241/2019sp/readings/Bottou-2018-opt.pdf)
6. [Newton's Method – an overview (ScienceDirect Topics), citing Studies in Computational Mathematics (2007)](https://www.sciencedirect.com/topics/mathematics/newtons-method)
7. [Kollerstrom, N. (1992). Thomas Simpson and 'Newton's method of approximation': an enduring myth. British Journal for the History of Science 25(3): 347–354](https://www.cambridge.org/core/journals/british-journal-for-the-history-of-science/article/abs/thomas-simpson-and-newtons-method-of-approximation-an-enduring-myth/265FA038F1A1873E8850CAFB4468DD8F)
8. [Stadler, G. Numerical Methods I: Numerical optimization, Courant Institute, NYU](https://cims.nyu.edu/~stadler/num1/material/num1_optimization.pdf)
9. [Vu, T. D. Math 164 – Optimization lecture notes, UCLA](https://tducvu.github.io/assets/lecturenotes/optmz.pdf)
10. [Nocedal, J., Wright, S. J. (2006). Numerical Optimization, 2nd ed., table of contents](https://users.iems.northwestern.edu/~nocedal/book/toc.html)
11. [Fasano, G., Piermarini, C., Roma, M. (2025). Exploiting effective negative curvature directions via SYMMBK algorithm, in Newton–Krylov methods. Computational Optimization and Applications 91: 617–647](https://link.springer.com/article/10.1007/s10589-025-00650-7)
12. [Ye, Y. MS&E211 Linear and Nonlinear Optimization, Lecture 15 notes, Stanford](https://web.stanford.edu/class/msande211x/lecture15.pdf)
13. [scipy.optimize.minimize documentation, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html)
14. [Bierlaire, M. Optimization: Principles and Algorithms, EPFL, Chapter 7: Newton's method](https://transp-or.epfl.ch/books/optimization/html/OptimizationPrinciplesAlgorithms2018.pdf)
15. [Ypma, T. J. (1995). Historical Development of the Newton–Raphson Method. SIAM Review 37(4): 531–551 (MaRDI portal record)](https://portal.mardi4nfdi.de/wiki/Historical_Development_of_the_Newton%E2%80%93Raphson_Method)
16. [Newton-Raphson – an overview (ScienceDirect Topics)](https://www.sciencedirect.com/topics/mathematics/newton-raphson)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Numerical methods and approximation

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/newtons-method-in-optimization

English original: https://www.edgepedia.org/newtons-method-in-optimization
