# 后向误差分析

后向误差分析是一种数值分析技术，它通过将计算结果解释为某个输入数据受到轻微扰动的邻近问题的精确解，来评估该计算结果的精度。它不问计算答案与真实答案相距多远（即前向误差），而是问数据需要扰动多少，才能使计算答案恰好正确。<sup>[1](http://servidor.demec.ufpr.br/CFD/bibliografia/Higham_2002_Accuracy%20and%20Stability%20of%20Numerical%20Algorithms.pdf)</sup> 这种重新表述将不精确性的两个成因分离开来，概括为 \( \text{前向误差} \approx \text{后向误差} \times \text{条件数} \)：于是，大的前向误差要么可追溯到糟糕的实现（大的后向误差），要么可追溯到本身敏感的问题（大的条件数）。<sup>[2](https://archive.ymsc.tsinghua.edu.cn/pacm_download/68/598-Fu15.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | 后向误差是在选定的范数或分量式度量下，满足 f(x + Δx) = ȳ 的最小扰动 Δx。<sup>[3](https://nhigham.com/2020/03/25/what-is-backward-error/)</sup> |
| 经验法则 | 前向误差 ≲ 条件数 × 后向误差，且近似等号有可能成立。<sup>[1](http://servidor.demec.ufpr.br/CFD/bibliografia/Higham_2002_Accuracy%20and%20Stability%20of%20Numerical%20Algorithms.pdf)</sup> |
| 后向稳定性 | 若一个算法的后向误差被单位舍入误差 \( u \) 的某个小倍数所界住，则该算法是后向稳定的。<sup>[4](https://tbetcke.github.io/math0058_lecture_notes/error_analysis.html)</sup> |
| 高斯消元法的界 | 采用部分主元法时，‖ΔA‖∞/‖A‖∞ ≤ 3n³uρn，其中 ρn 是增长因子。<sup>[5](https://gauss.uc3m.es/fdopico/papers/arbor-2011-turing.pdf)</sup> |
| 基于残差的估计 | 对于 Ax = b，范数式相对后向误差为 β(x) = ‖r‖/(‖b‖ + ‖A‖·‖x‖)，其中 r = b − Ax。<sup>[6](https://www.karlin.mff.cuni.cz/~strakos/download/2004_ZAMM.pdf)</sup> |
| 低精度 | 对于 IEEE fp16，单位舍入误差为 \( u \approx 5 \times 10^{-4} \)；对于 bfloat16，为 \( u \approx 4 \times 10^{-3} \)。<sup>[7](https://eprints.maths.manchester.ac.uk/2776/1/paper.pdf)</sup> |

## 工作原理

对于一个将数据 x 映射为结果 y 的函数 f，以及一个计算得到的近似值 ȳ，后向误差在形式上是最小的 ε，使得 f(x + Δx) = ȳ 且 ‖Δx‖ ≤ ε‖x‖；等价地说，它是在所有能重现计算输出的扰动上，‖Δx‖/‖x‖ 的下确界。<sup>[3](https://nhigham.com/2020/03/25/what-is-backward-error/)</sup><sup> • </sup><sup>[8](https://maxjensen.github.io/Computational_Methods_lecture_notes/0.2_error_analysis.html)</sup> 所选的范数或度量定义了“邻近”的含义：范数式度量允许给定总大小的任意扰动，而分量式度量则相对于容差矩阵 \( E \) 和向量 \( f \) 来界住每个元素，最常见的是 \( E = |A| \) 和 \( f = |b| \)，由此得到分量式相对后向误差。<sup>[9](https://eprints.maths.manchester.ac.uk/651/1/SURVEY.pdf)</sup>

若一个算法对每个输入都产生一个计算结果，该结果等于数据受到某个小扰动后的精确结果，且“小”意味着机器精度的适度倍数，则该算法是后向稳定的。<sup>[1](http://servidor.demec.ufpr.br/CFD/bibliografia/Higham_2002_Accuracy%20and%20Stability%20of%20Numerical%20Algorithms.pdf)</sup><sup> • </sup><sup>[4](https://tbetcke.github.io/math0058_lecture_notes/error_analysis.html)</sup> 标准的点积算法和矩阵–向量乘法算法都具有这一性质。<sup>[10](https://www.cs.cornell.edu/~bindel/class/cs6210-f12/notes/lec05.pdf)</sup> 当纯后向误差不存在时，则使用形如 ȳ + Δy = f(x + Δx) 的混合前向–后向误差，其中 |Δy| ≤ ε|y| 且 |Δx| ≤ η|x|；在这种混合意义下稳定的算法称为数值稳定的。<sup>[1](http://servidor.demec.ufpr.br/CFD/bibliografia/Higham_2002_Accuracy%20and%20Stability%20of%20Numerical%20Algorithms.pdf)</sup> 条件数是问题本身的属性，而非算法的属性；对于后向稳定的方法，条件数每增大一个数量级，前向精度大约损失一位有效数字。<sup>[10](https://www.cs.cornell.edu/~bindel/class/cs6210-f12/notes/lec05.pdf)</sup><sup> • </sup><sup>[4](https://tbetcke.github.io/math0058_lecture_notes/error_analysis.html)</sup>

## 具体做法

分析始于一个浮点算术模型，其中每个基本运算至多产生 \( u \)（单位舍入误差）的相对舍入误差。在此模型下，加法和减法本身是后向稳定的：计算得到的 \( x \pm y \) 对于受扰数据 \( x(1 + \delta) \) 和 \( y(1 + \delta) \)（其中 \( |\delta| \leq u \)）是精确的。<sup>[1](http://servidor.demec.ufpr.br/CFD/bibliografia/Higham_2002_Accuracy%20and%20Stability%20of%20Numerical%20Algorithms.pdf)</sup> 然后，沿着算法的各个步骤应用乘积与和的舍入误差引理，以累积出等价数据扰动的界。

对于采用部分主元法的高斯消元法，这一方案给出 \( (A + \Delta A)\hat{x} = b \)，其中 \( \|\Delta A\|_\infty / \|A\|_\infty \le 3n^3 \cdot u \cdot \rho_n \)，增长因子 \( \rho_n = \max_{i,j,k} |a_{ij}^{(k)}| / \max_{i,j} |a_{ij}| \) 衡量中间元素超出 \( A \) 的原始元素的程度；文献中该界既以这种显式三次形式出现，也以 \( \|E\|_\infty \le \rho_n \cdot p(n) \cdot u \cdot \|A\|_\infty \) 的形式出现，其中 \( p \) 是一个三次多项式。<sup>[5](https://gauss.uc3m.es/fdopico/papers/arbor-2011-turing.pdf)</sup><sup> • </sup><sup>[11](https://nhigham.com/wp-content/uploads/2023/08/high90g.pdf)</sup>

对于 Ax = b 的计算近似解 x，后向误差可直接由残差 r = b − Ax 得到：范数式相对后向误差为 β(x) = ‖r‖/(‖b‖ + ‖A‖·‖x‖)，即使 x 成为精确解所需的对 A 和 b 的最小相对扰动。<sup>[6](https://www.karlin.mff.cuni.cz/~strakos/download/2004_ZAMM.pdf)</sup> 这一量可以用可忽略的额外舍入误差来求值，并且被推荐作为迭代法的收敛指标，优于相对残差 ‖r‖/‖r₀‖；基于后向误差的停止准则已在通用软件中针对线性系统和最小二乘问题实现。<sup>[6](https://www.karlin.mff.cuni.cz/~strakos/download/2004_ZAMM.pdf)</sup> 自动化工具还可以将任意数值代码的前向误差分解为后向误差和条件数。<sup>[2](https://archive.ymsc.tsinghua.edu.cn/pacm_download/68/598-Fu15.pdf)</sup>

## 起源

将计算结果解释为受扰问题的精确解这一思想，出现在早期的矩阵计算分析中。<sup>[12](https://doi.org/10.1090/s0002-9904-1947-08909-6)</sup><sup> • </sup><sup>[13](https://doi.org/10.1093/qjmam/1.1.287)</sup> 威尔金森（Wilkinson）回忆说，图灵（Turing）的论文连同冯·诺伊曼（von Neumann）–戈德斯坦（Goldstine）的论文，为驱散关于舍入误差的阴霾做了大量工作。<sup>[14](http://rkka21.ru/docs/turing-award/jw1970e.pdf)</sup>

J. H. 威尔金森的《矩阵求逆直接方法的误差分析》（《ACM 杂志》，1961 年）随后对高斯消元法进行了更完整的后向误差分析。<sup>[15](https://doi.org/10.1145/321075.321076)</sup><sup> • </sup><sup>[16](https://www.ams.org/journals/notices/202506/noti3191/noti3191.html?type=.html)</sup> 后向误差分析被用于计算多项式的零点。真正的起源问题在文献中存在争议。一篇历史综述认为，冯·诺伊曼、戈德斯坦和图灵只是附带地提到了后向误差，并未意识到这一概念的重要性。<sup>[5](https://gauss.uc3m.es/fdopico/papers/arbor-2011-turing.pdf)</sup> 一部现代记述则将这一思想在代数求解器中的数学形式化与推广归功于威尔金森，同时指出该思想已存在于图灵以及戈德斯坦与冯·诺伊曼的工作中。<sup>[6](https://www.karlin.mff.cuni.cz/~strakos/download/2004_ZAMM.pdf)</sup>

## 变体

**分量式分析。** 范数只报告扰动的总大小，而不报告它在各元素之间如何分布，这对于缩放不良或稀疏的数据很重要。<sup>[9](https://eprints.maths.manchester.ac.uk/651/1/SURVEY.pdf)</sup> 分量式后向误差为 \( \omega_{E,f}(y) = \min\{\varepsilon: (A + \Delta A)y = b + \Delta b,\ |\Delta A| \leq \varepsilon \cdot E,\ |\Delta b| \leq \varepsilon \cdot f\} \)，其中不等式逐元素成立；有一个公式可以显式给出线性系统的该量，而这一方法在 LAPACK 的开发中得到了充分利用。<sup>[9](https://eprints.maths.manchester.ac.uk/651/1/SURVEY.pdf)</sup>

**结构化、稀疏与概率性变体。** 结构化后向误差分析限制扰动，以保持系数矩阵中的线性结构（如埃尔米特（Hermitian）、托普利茨（Toeplitz）、哈密顿（Hamiltonian）或带状结构），这是结构化特征值问题的恰当度量。<sup>[17](https://epubs.siam.org/doi/10.1137/S0895479896313188)</sup> 对于稀疏线性系统，稀疏后向误差约束扰动遵循稀疏模式。<sup>[18](https://www3.math.tu-berlin.de/Vorlesungen/SS14/MatricesGraphsPDEs/paper_for_students/SIMAX-ardedu-0610013.pdf)</sup> 概率性后向误差分析将舍入误差视为随机变量：2019 年针对基本线性代数内核的一项分析给出了比确定性界更小的常数，但仍可能偏悲观，而一项更新的分析则假设数据和舍入误差都是随机的。<sup>[19](https://epubs.siam.org/doi/10.1137/20M1314355)</sup> 对于微分方程，同样的哲学表现为修正方程观点：数值解被解释为某个邻近微分方程的精确解。<sup>[20](https://webspace.science.uu.nl/~frank011/Classes/numwisk/ch17.pdf)</sup>

## 应用

后向误差分析是稠密线性代数稳定性理论的基础：它确立了部分主元高斯消元法的后向稳定性，并适用于标准的点积算法和矩阵–向量乘法算法。<sup>[11](https://nhigham.com/wp-content/uploads/2023/08/high90g.pdf)</sup><sup> • </sup><sup>[10](https://www.cs.cornell.edu/~bindel/class/cs6210-f12/notes/lec05.pdf)</sup> 基于残差的后向误差可作为线性系统和最小二乘问题迭代求解器的停止准则。<sup>[6](https://www.karlin.mff.cuni.cz/~strakos/download/2004_ZAMM.pdf)</sup> 结构化后向误差用于广义特征值问题。<sup>[17](https://epubs.siam.org/doi/10.1137/S0895479896313188)</sup> 科利斯（Corless）和菲利昂（Fillion）合著的一部施普林格（Springer）研究生教科书，从后向误差的视角系统地处理数值计算，从浮点算术一直到求积和微分方程。<sup>[21](https://link.springer.com/book/10.1007/978-1-4614-8453-0)</sup>

## 局限与替代方案

小的后向误差并不保证答案准确。经验法则“前向误差 ≲ 条件数 × 后向误差”允许近似等号成立，因此对于病态问题，计算解可能具有小的后向误差，却连相对于精确解的一位精度都达不到。<sup>[1](http://servidor.demec.ufpr.br/CFD/bibliografia/Higham_2002_Accuracy%20and%20Stability%20of%20Numerical%20Algorithms.pdf)</sup><sup> • </sup><sup>[6](https://www.karlin.mff.cuni.cz/~strakos/download/2004_ZAMM.pdf)</sup> 条件数是一个最坏情况界，因此实际前向误差可能优于预测。<sup>[4](https://tbetcke.github.io/math0058_lecture_notes/error_analysis.html)</sup> 后向误差可能根本不存在：对于浮点算术中两个 n 维向量的外积，仅对输入进行扰动无法重现计算结果，此时改用混合后向–前向误差。<sup>[3](https://nhigham.com/2020/03/25/what-is-backward-error/)</sup> 当输出空间的维数高于输入空间时，函数几乎不可能后向稳定。<sup>[22](https://cu-numcomp.github.io/spring23/slides/2023-02-10-stability.html)</sup>

**低精度。** 低精度格式改变了基线：对于 IEEE fp16，\( u \approx 5 \times 10^{-4} \)；对于 bfloat16，\( u \approx 4 \times 10^{-3} \)，因此后向误差界也相应增大。<sup>[7](https://eprints.maths.manchester.ac.uk/2776/1/paper.pdf)</sup>

## References

1. [Higham, Accuracy and Stability of Numerical Algorithms (2nd ed., 2002), Chapter 1](http://servidor.demec.ufpr.br/CFD/bibliografia/Higham_2002_Accuracy%20and%20Stability%20of%20Numerical%20Algorithms.pdf)
2. [Automated Backward Error Analysis for Numerical Code (Fu et al.)](https://archive.ymsc.tsinghua.edu.cn/pacm_download/68/598-Fu15.pdf)
3. [What Is Backward Error? – Nick Higham](https://nhigham.com/2020/03/25/what-is-backward-error/)
4. [Principles of backward error analysis, MATH0058 Lecture Notes (Timo Betcke, UCL)](https://tbetcke.github.io/math0058_lecture_notes/error_analysis.html)
5. [Historical paper on Turing, von Neumann–Goldstine, and Wilkinson's backward error analysis of Gaussian elimination](https://gauss.uc3m.es/fdopico/papers/arbor-2011-turing.pdf)
6. [On Numerical Stability in Large Scale Linear Algebraic Computations (Greenbaum, Strakoš; ZAMM)](https://www.karlin.mff.cuni.cz/~strakos/download/2004_ZAMM.pdf)
7. [Higham and Mary paper on low precision computations](https://eprints.maths.manchester.ac.uk/2776/1/paper.pdf)
8. [Backward error analysis, Computational Methods MATH0058 lecture notes](https://maxjensen.github.io/Computational_Methods_lecture_notes/0.2_error_analysis.html)
9. [A Survey of Componentwise Perturbation Theory in Numerical Linear Algebra](https://eprints.maths.manchester.ac.uk/651/1/SURVEY.pdf)
10. [Lecture notes on backward error and conditioning (Bindel, Cornell CS 6210)](https://www.cs.cornell.edu/~bindel/class/cs6210-f12/notes/lec05.pdf)
11. [How Accurate is Gaussian Elimination? (Nicholas J. Higham)](https://nhigham.com/wp-content/uploads/2023/08/high90g.pdf)
12. [John von Neumann, H. H. Goldstine (1947). Numerical inverting of matrices of high order. Bulletin of the American Mathematical Society.](https://doi.org/10.1090/s0002-9904-1947-08909-6)
13. [A. M. TURING (1948). ROUNDING-OFF ERRORS IN MATRIX PROCESSES. The Quarterly Journal of Mechanics and Applied Mathematics.](https://doi.org/10.1093/qjmam/1.1.287)
14. [J.H. Wilkinson, 'Some Comments from a Numerical Analyst', 1970 (Turing Lecture)](http://rkka21.ru/docs/turing-award/jw1970e.pdf)
15. [J. H. Wilkinson (1961). Error Analysis of Direct Methods of Matrix Inversion. Journal of the ACM.](https://doi.org/10.1145/321075.321076)
16. [AMS Notices article on von Neumann–Goldstine and Wilkinson and the stability of Gaussian elimination](https://www.ams.org/journals/notices/202506/noti3191/noti3191.html?type=.html)
17. [Structured Backward Error and Condition of Generalized Eigenvalue Problems](https://epubs.siam.org/doi/10.1137/S0895479896313188)
18. [Solving Sparse Linear Systems with Sparse Backward Error](https://www3.math.tu-berlin.de/Vorlesungen/SS14/MatricesGraphsPDEs/paper_for_students/SIMAX-ardedu-0610013.pdf)
19. [Sharper Probabilistic Backward Error Analysis for Basic Linear Algebra Kernels with Random Data](https://epubs.siam.org/doi/10.1137/20M1314355)
20. [Chapter 17: Backward Error Analysis (Utrecht University numerical methods notes)](https://webspace.science.uu.nl/~frank011/Classes/numwisk/ch17.pdf)
21. [A Graduate Introduction to Numerical Methods: From the Viewpoint of Backward Error Analysis (Corless & Fillion, Springer)](https://link.springer.com/book/10.1007/978-1-4614-8453-0)
22. [Stability, Numerical Computation (CU Boulder, 2023-02-10)](https://cu-numcomp.github.io/spring23/slides/2023-02-10-stability.html)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

Topic: 物质世界与数学 › 数学与统计学

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/backward-error-analysis

English original: https://www.edgepedia.org/backward-error-analysis
