# 卡奇马兹方法

卡奇马兹方法（Kaczmarz method）是一种求解线性方程组 \( A \cdot x = b \) 的迭代算法，每一步将当前迭代点投影到由单个方程定义的超平面上，每次处理一行。该方法适用于相容方程组，此时它收敛到一个解；它至今仍被广泛使用，因为每次迭代只涉及矩阵的一行，单次迭代计算量极小，便于在线和实时应用。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup> 在计算机断层扫描中，该方法的循环形式被称为代数重建技术（Algebraic Reconstruction Technique，ART），而每次一行的结构使该方法成为断层扫描和数字信号处理中大稀疏系统的常用工具。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup>

| 关键事实 | 详情 |
|---|---|
| 问题类别 | 相容方程组 \( A \cdot x = b \)，每次迭代一个方程；单次迭代计算量极小<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup> |
| 更新规则 | 投影到超平面 H_i = {x: ⟨A^(i), x⟩ = b_i}，松弛参数 \( \alpha_i \in (0,2) \)，通常取 \( \alpha_i = 1 \)<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup> |
| 单次迭代代价 | \( O(n) \) 次浮点运算，与方程个数 m 无关<sup>[2](https://link.springer.com/content/pdf/10.1007/978-3-030-50417-5_17.pdf)</sup> |
| 随机收敛速率 | 达到精度 \( \varepsilon \) 的期望迭代次数约为 \( 2\kappa(A)^{2} \log(1/\varepsilon) \)，其中 \( \kappa(A) \) 为缩放条件数<sup>[3](https://www.math.ucdavis.edu/~strohmer/papers/2007/kaczmarz.pdf)</sup> |
| 不相容方程组 | 随机卡奇马兹方法收敛到一个固定的收敛地平线内，该地平线与最小二乘残差成正比<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup> |
| 断层扫描中的名称 | 循环形式即 ART，由戈登、本德和赫尔曼于 1970 年提出<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup><sup> • </sup><sup>[4](https://doi.org/10.1016/0022-5193%2870%2990109-8)</sup> |
| 基准测试地位 | 在不相容方程组上，2024 年的一项调查中 CGLS 优于所有测试的卡奇马兹变体<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup> |

## 工作原理

每个方程 ⟨A^(i), x⟩ = b_i 在 \( \mathbb{R}^{n} \) 中定义一个超平面 \( H_i \)，相容方程组的解集就是所有这些超平面的交集。迭代每次将当前点移到一个超平面上：

\[ x^{(k+1)} = x^{(k)} + \alpha_i \, \frac{b_i - \langle A^{(i)}, x^{(k)} \rangle}{\| A^{(i)} \|^2} \, {A^{(i)}}^{T}, \quad i = k \ \mathrm{mod}\ m + 1, \]

其中松弛参数 \( \alpha_i \in (0,2) \)。当 \( \alpha_i = 1 \) 时，该步恰好是 \( x^{(k)} \) 到 \( H_i \) 的正交投影，即满足第 i 个方程的距 \( x^{(k)} \) 最近的点。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup> 卡奇马兹的原始论文正是描述这一几何过程：当前点先正交投影到第一个超平面，结果再投影到第二个，如此循环往复。<sup>[5](https://faculty.sites.iastate.edu/esweber/files/inline-files/kaczmarz_english_translation_1937.pdf)</sup> 原始收敛性证明表明，每次投影后某个平方误差量单调下降趋于零。<sup>[5](https://faculty.sites.iastate.edu/esweber/files/inline-files/kaczmarz_english_translation_1937.pdf)</sup>

原始论文中的归一化将每一行缩放使其系数平方和为 1，但卡奇马兹指出这并非必须严格成立：当行平方和等于某个 \( c_i < 2 \) 时收敛性仍然成立。<sup>[5](https://faculty.sites.iastate.edu/esweber/files/inline-files/kaczmarz_english_translation_1937.pdf)</sup> 在优化界，同一方案被称为凸集投影法（projection onto convex sets，POCS），它可视为冯·诺依曼交替投影的一个特殊应用，这一思想可追溯至 1870 年代的施瓦茨。<sup>[2](https://link.springer.com/content/pdf/10.1007/978-3-030-50417-5_17.pdf)</sup><sup> • </sup><sup>[6](https://ar5iv.labs.arxiv.org/html/2006.16978)</sup>

## 实施方法

使用者从任意的 \( x^{(0)} \) 出发，反复选取一个行指标 i，用一次内积计算残差 \( b_i - \langle A^{(i)}, x^{(k)} \rangle \)，并应用上述更新公式。每次迭代仅需 \( O(n) \) 次浮点运算，代价与方程个数无关，适合 m 远大于 n 的问题；在随机形式中，每步的代价为单行的 \( O(\mathrm{nnz}) \)，无需矩阵分解。<sup>[2](https://link.springer.com/content/pdf/10.1007/978-3-030-50417-5_17.pdf)</sup>

行序的选择是实践中的决策：循环排序（\( i = k \ \mathrm{mod}\ m + 1 \)）是经典形式，而随机选取在得到理论分析之前已在实践中使用了数十年。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup><sup> • </sup><sup>[7](https://www.cs.ubc.ca/~nickhar/W15/Lecture21Notes.pdf)</sup> 对于按行范数平方成比例的概率选取行的随机版本，托马斯·施特罗默和罗曼·韦尔希宁证明了相容方程组在期望意义下的指数（线性）收敛，其速率仅取决于缩放条件数：<sup>[3](https://www.math.ucdavis.edu/~strohmer/papers/2007/kaczmarz.pdf)</sup><sup> • </sup><sup>[8](https://doi.org/10.1007/s00041-008-9030-4)</sup>

\[ \mathbb{E}\|x_{k} - x\|_{2}^{2} \leq \left(1 - \frac{1}{\|A\|_{F}^{2}\|A^{-1}\|_{2}^{2}}\right)^{k} \|x_{0} - x\|_{2}^{2}. \]

达到精度 \( \varepsilon \) 约需 \( 2\kappa(A)^2 \log(1/\varepsilon) \) 次迭代；由于每次投影代价为 \( O(n) \)，且当 \( A \) 良态使得 \( \kappa(A)^2 = O(n) \) 时，总运算量为 \( O(n^{2}) \)，而高斯消元法为 \( O(m \cdot n^{2}) \)，方程个数 m 基本无关紧要。<sup>[3](https://www.math.ucdavis.edu/~strohmer/papers/2007/kaczmarz.pdf)</sup><sup> • </sup><sup>[23](https://www.math.uci.edu/~rvershyn/papers/linear-system-solver-journal.pdf)</sup>

## 起源

P·C·帕克斯的英译本直到 1993 年才出现在《国际控制杂志》（International Journal of Control，第 57 卷第 6 期，第 1269–1271 页）。<sup>[9](https://repozytorium.biblos.pk.edu.pl/redo/resources/29820/file/suwFiles/SznajderR_KaczmarzAlgorithm.pdf)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/1409.8310)</sup> 1937 年的论文针对方程组 \( a_{i1}x_1 + \dots + a_{in}x_n + b_i = 0 \)，i = 1, …, n，提出该投影方案，并将各行归一化使系数平方和为 1。<sup>[5](https://faculty.sites.iastate.edu/esweber/files/inline-files/kaczmarz_english_translation_1937.pdf)</sup> 此后该算法十余年间无人知晓，1948 年后的论文中重新被考虑，分别在 博德维希（1948）、汤普金斯（1949）和福赛斯（1953）的独立出版物中再度出现。<sup>[9](https://repozytorium.biblos.pk.edu.pl/redo/resources/29820/file/suwFiles/SznajderR_KaczmarzAlgorithm.pdf)</sup><sup> • </sup><sup>[11](https://ar5iv.labs.arxiv.org/html/1701.08002)</sup>

其演进中的关键时刻是 1970 年 理查德·戈登、罗伯特·本德和加博尔·T·赫尔曼 在《理论生物学杂志》（Journal of Theoretical Biology）上发表了用于三维电子显微成像和 X 射线摄影的代数重建技术（ART），这是对卡奇马兹方法的重新发现。<sup>[4](https://doi.org/10.1016/0022-5193%2870%2990109-8)</sup><sup> • </sup><sup>[11](https://ar5iv.labs.arxiv.org/html/1701.08002)</sup> 历史文献将 ART 论文描述为重新发现，未记载优先权或命名争议；该算法被实现在一台医学扫描仪中。<sup>[9](https://repozytorium.biblos.pk.edu.pl/redo/resources/29820/file/suwFiles/SznajderR_KaczmarzAlgorithm.pdf)</sup>

## 变体

**随机卡奇马兹方法（Randomized Kaczmarz，RK）** 按行范数平方成比例的概率选取行，具有上述指数收敛保证。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup><sup> • </sup><sup>[8](https://doi.org/10.1007/s00041-008-9030-4)</sup> 对于含噪方程组，迪安娜·尼德尔于 2010 年（《BIT 数值数学》）扩展了分析，证明其收敛到一个固定的收敛地平线内，该地平线与最小二乘残差 \( r_{\mathrm{LS}} = b - A x_{\mathrm{LS}} \) 成正比。<sup>[12](https://doi.org/10.1007/s10543-010-0265-5)</sup><sup> • </sup><sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup>

**贪心与采样变体。** 贪心随机卡奇马兹方法在理论上比 RK 收敛快得多，在数值实验中也更高效。<sup>[13](https://dl.acm.org/doi/10.1137/17M1137747)</sup> 对于相容方程组，选取残差绝对值最大的行（最优选取策略）可获得指数收敛。<sup>[2](https://link.springer.com/content/pdf/10.1007/978-3-030-50417-5_17.pdf)</sup> 采样卡奇马兹–莫茨金算法（Sampling Kaczmarz–Motzkin，SKM）由 赫苏斯·A·德洛埃拉、杰米·哈多克和迪安娜·尼德尔提出（《SIAM 科学计算杂志》，2017），推广并扩展了用于线性不等式的 Agmon–Motzkin 松弛法和随机卡奇马兹方法，并有多项已证明的收敛结果。<sup>[14](https://doi.org/10.1137/16m1073807)</sup>

**块与扩展变体。** 块卡奇马兹方法将估计投影到每步所选行张成的正交补子空间上，按循环方式进行，当块大小为一时退化为简单卡奇马兹方法。<sup>[15](https://pmc.ncbi.nlm.nih.gov/articles/PMC4809392/)</sup> 随机扩展卡奇马兹方法（Randomized Extended Kaczmarz，REK）由 阿纳斯塔西奥斯·祖齐亚斯和尼古拉奥斯·M·弗雷里斯提出（《SIAM 矩阵分析与应用杂志》，2013），用于求解不相容方程组的最小二乘问题。<sup>[16](https://doi.org/10.1137/120889897)</sup> 该方法还可推广到有限维之外：斯坦尼斯瓦夫·克瓦平和扬·梅切尔斯基于 2001 年（《数学研究》）提出了到无穷维希尔伯特空间的有效推广。<sup>[17](https://doi.org/10.4064/sm148-1-7)</sup>

## 应用

**计算机断层扫描。** 以 ART 之名，该方法用于计算机断层扫描中的图像重建，并于 1972 年被实现在第一台医学扫描仪中。<sup>[9](https://repozytorium.biblos.pk.edu.pl/redo/resources/29820/file/suwFiles/SznajderR_KaczmarzAlgorithm.pdf)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/1409.8310)</sup> 其良好的半收敛特性是实用吸引力所在：在含噪数据下，它在早期迭代中非常迅速地收敛到精确解的良好近似，产生正则化解，因此迭代次数本身起到隐式正则化的作用。这一特性被普遍接受和使用，但其理论依据仍然薄弱；已发表的界追踪数据误差如何传播到迭代向量中，并与断层成像结果进行比较。<sup>[18](https://iopscience.iop.org/article/10.1088/0266-5611/30/5/055007/meta)</sup>

**信号处理与机器学习。** 每次一行的结构使该方法成为计算机断层扫描和数字信号处理中大稀疏系统的常用工具，该方法也已进入晶体学、神经网络和并行计算领域。<sup>[19](https://www.mdpi.com/2673-9909/2/2/12)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/1409.8310)</sup>

## 局限与替代方法

**不相容与含噪方程组。** 在不相容最小二乘问题上，经典卡奇马兹投影给出的近似与精确最小二乘解保持固定距离，该距离由右端项位于矩阵值域正交补中的分量控制；扩展卡奇马兹算法克服了这一点，在电磁地质层析实验中比两种 ART 型算法给出了好得多的结果。<sup>[20](https://www10.cs.fau.de/publications/reports/TechRep_2003-06.pdf)</sup> 通过强欠松弛也可获得到最小二乘解的收敛，而 REK 通过随机扩展解决同一问题。<sup>[3](https://www.math.ucdavis.edu/~strohmer/papers/2007/kaczmarz.pdf)</sup><sup> • </sup><sup>[16](https://doi.org/10.1137/120889897)</sup>

**与其他求解器的比较。** Cimmino 方法对前一迭代点在所有超平面上的同时反射取平均，而卡奇马兹方法使用顺序正交投影；Cimmino 方法易于并行化，且在不相容情形下保证收敛到加权最小二乘解，但实践中较慢，而卡奇马兹方法收敛更快。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup><sup> • </sup><sup>[21](https://pmc.ncbi.nlm.nih.gov/articles/PMC2879082/)</sup> 随机高斯–赛德尔方法（随机坐标下降）每次迭代使用一列，对超定不相容方程组收敛到最小二乘解；一个统一理论在欠定、超定、相容和不相容各种情形下比较了随机卡奇马兹方法和随机高斯–赛德尔方法。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup><sup> • </sup><sup>[22](https://opt-ml.org/oldopt/papers/OPT2015_paper_7.pdf)</sup> 在 2024 年调查的基准测试中，无放回采样和拟随机数是对相容方程组最快的行采样方案，而用于最小二乘问题的共轭梯度法（CGLS）在不相容方程组上胜过了卡奇马兹方法的所有变体。<sup>[1](https://link.springer.com/article/10.1007/s11075-024-01945-2)</sup> 对于固定精度，当 A 良态使得 κ(A)² = O(n) 时，期望总运算量为 \( O(n^{2}) \)，而高斯消元法为 \( O(m \cdot n^{2}) \)，且无需存储矩阵分解。<sup>[3](https://www.math.ucdavis.edu/~strohmer/papers/2007/kaczmarz.pdf)</sup><sup> • </sup><sup>[23](https://www.math.uci.edu/~rvershyn/papers/linear-system-solver-journal.pdf)</sup>

## References

1. [Survey of a class of iterative row-action methods: The Kaczmarz method (Numerical Algorithms, 2024)](https://link.springer.com/article/10.1007/s11075-024-01945-2)
2. [Remarks on Kaczmarz Algorithm for Solving Consistent and Inconsistent System of Linear Equations (Springer chapter)](https://link.springer.com/content/pdf/10.1007/978-3-030-50417-5_17.pdf)
3. [A randomized Kaczmarz algorithm with exponential convergence (Strohmer & Vershynin)](https://www.math.ucdavis.edu/~strohmer/papers/2007/kaczmarz.pdf)
4. [Algebraic Reconstruction Techniques (ART) for three-dimensional electron microscopy and X-ray photography (Journal of Theoretical Biology, 1970)](https://doi.org/10.1016/0022-5193%2870%2990109-8)
5. [Angenäherte Auflösung von Systemen linearer Gleichungen (English translation of Kaczmarz 1937)](https://faculty.sites.iastate.edu/esweber/files/inline-files/kaczmarz_english_translation_1937.pdf)
6. [Randomized Kaczmarz converges along small singular vectors](https://ar5iv.labs.arxiv.org/html/2006.16978)
7. [Lecture notes on the Kaczmarz algorithm (UBC)](https://www.cs.ubc.ca/~nickhar/W15/Lecture21Notes.pdf)
8. [Thomas Strohmer, Roman Vershynin (2008). A Randomized Kaczmarz Algorithm with Exponential Convergence. Journal of Fourier Analysis and Applications.](https://doi.org/10.1007/s00041-008-9030-4)
9. [Kaczmarz algorithm revisited (historical review)](https://repozytorium.biblos.pk.edu.pl/redo/resources/29820/file/suwFiles/SznajderR_KaczmarzAlgorithm.pdf)
10. [Kaczmarz Algorithm and Frames](https://arxiv.org/abs/1409.8310)
11. [On the convergence rate of Kaczmarz-type algorithms](https://ar5iv.labs.arxiv.org/html/1701.08002)
12. [Deanna Needell (2010). Randomized Kaczmarz solver for noisy linear systems. BIT Numerical Mathematics.](https://doi.org/10.1007/s10543-010-0265-5)
13. [On Greedy Randomized Kaczmarz Method for Solving Large Sparse Linear Systems (SIAM J. Sci. Comput.)](https://dl.acm.org/doi/10.1137/17M1137747)
14. [Jesús A. De Loera, Jamie Haddock, Deanna Needell (2017). A Sampling Kaczmarz--Motzkin Algorithm for Linear Feasibility. SIAM Journal on Scientific Computing.](https://doi.org/10.1137/16m1073807)
15. [Kaczmarz Iterative Projection and Nonuniform Sampling with Complexity Estimates (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4809392/)
16. [Anastasios Zouzias, Nikolaos M. Freris (2013). Randomized Extended Kaczmarz for Solving Least Squares. SIAM Journal on Matrix Analysis and Applications.](https://doi.org/10.1137/120889897)
17. [Stanisław Kwapień, Jan Mycielski (2001). On the Kaczmarz algorithm of approximation in infinite-dimensional spaces. Studia Mathematica.](https://doi.org/10.4064/sm148-1-7)
18. [Semi-convergence properties of Kaczmarz's method (Inverse Problems, 2014)](https://iopscience.iop.org/article/10.1088/0266-5611/30/5/055007/meta)
19. [Kaczmarz Anomaly in Tomography Problems (MDPI, 2022)](https://www.mdpi.com/2673-9909/2/2/12)
20. [Kaczmarz Extended Algorithm for Tomographical Image Reconstruction from Limited-Data (University of Erlangen, 2003)](https://www10.cs.fau.de/publications/reports/TechRep_2003-06.pdf)
21. [GPU computing with Kaczmarz's and other iterative algorithms for linear systems (PMC)](https://pmc.ncbi.nlm.nih.gov/articles/PMC2879082/)
22. [Convergence properties of the randomized extended Gauss-Seidel and Kaczmarz methods (OPT2015 workshop)](https://opt-ml.org/oldopt/papers/OPT2015_paper_7.pdf)
23. [kaczrand-1.dvi](https://www.math.uci.edu/~rvershyn/papers/linear-system-solver-journal.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Numerical linear algebra › Iterative methods for linear systems

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/kaczmarz-method

English original: https://www.edgepedia.org/kaczmarz-method
