# 薄板样条

薄板样条（thin plate spline, TPS）是一种拟合于散乱数据点的光滑曲面，通过最小化数据失拟与弯曲能量的组合来求得，是迫使一块薄柔性板穿过或靠近数据点的变分类比。当平滑参数设为零时，它是一个精确穿过每个数据点的插值函数；当平滑参数为正时，它成为加性模型 \( Y = f(X) + e \) 下的平滑器或回归曲面。<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup> 这一名称来自物理类比：拟合曲面如同被强迫以最小弯曲穿过数据点的薄钢板。<sup>[2](https://gistbok-ltb.ucgis.org/current/concept/AM-04-071)</sup> 该方法用于空间统计、图像变形与配准、形状分析和几何建模。<sup>[3](http://vision.ucsd.edu/sites/default/files/publications/pdfs/Approximate%20Thin%20Plate%20Spline%20Mappings.pdf)</sup><sup> • </sup><sup>[4](https://www.cvl.iis.u-tokyo.ac.jp/class2013/2013w/paper/correspondingAndRegistration/05_RPM-TPS.pdf)</sup>

| 关键事实 | 取值 |
|---|---|
| 粗糙度惩罚 | Hessian 的 Frobenius 范数平方的积分，\( J(f) = \int_{\mathbb{R}^d} \sum_{i,j} (\partial^2 f / \partial x_i \partial x_j)^2 \, dx \)<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> |
| 径向基（d = 2，m = 2） | \( \eta(r) = r^2 \log r \)，即迭代拉普拉斯算子的基本解<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> |
| 平滑参数极端情形 | \( \lambda = 0 \)：插值；\( \lambda = \infty \)：多项式零空间上的普通最小二乘<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup> |
| 默认平滑参数选择 | 广义交叉验证（GCV）<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup> |
| 稠密求解代价 | \( O(n^3) \)；低秩近似可将其降至 \( O(nk^2) \)<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> |
| 与克里金的关系 | 当 Matérn 范围参数趋于无穷大时高斯过程估计的极限情形<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup> |
| 数值条件 | 拟合问题的条件数可超过 \( 10^9 \)<sup>[6](https://doi.org/10.1111/1467-9868.00374)</sup> |

## 工作原理

该方法最小化一个惩罚最小二乘目标：残差平方和 \( \sum_{i=1}^{n} (Y_i - f(X_i))^2 \) 加上 \( \lambda \) 乘以基于导数的粗糙度惩罚 \( J_m^d(f) \)。<sup>[7](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/tps_rkhs.pdf)</sup> 在最简单的情形下，惩罚是弹性板的弯曲能量，\( E[f] = \int_{\mathbb{R}^n} |D^2 f|^2 \, dX \)，其中 \( D^2 \) 是二阶导数矩阵各元素的平方和<sup>[8](https://www.geometrictools.com/Documentation/ThinPlateSplines.pdf)</sup>；等价地，即 Hessian 的 Frobenius 范数平方的积分。<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup>

径向基是一个格林函数。对于多调和方程，当 \( 2m > d \) 且 \( d \) 为偶数时，核为 \( E(r) = c_d \cdot r^{2m-d} \log r \)，否则为 \( c_d \cdot r^{2m-d} \)。<sup>[7](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/tps_rkhs.pdf)</sup> 对于 \( d = 2 \)，\( m = 2 \)，这变为 \( \eta(r) = r^2 \log r \)，即迭代拉普拉斯算子的基本解，其 \( \Delta^2 \eta \) 为原点处的点质量（在原点之外，\( \Delta^2 \eta = 0 \)），模拟一块悬挂在数据点上的薄弹性片。<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup><sup> • </sup><sup>[9](https://num.math.uni-goettingen.de/~schaback/research/papers/KTfMLtMM.pdf)</sup>

当 \( m > d/2 \) 且点分布满足温和条件时，存在唯一最小化者<sup>[10](https://ar5iv.labs.arxiv.org/html/1705.05178)</sup>，而表示定理将问题重新表述为具有非平凡零空间的广义岭回归，该零空间由次数至多为 \( m-1 \) 的多项式构成。<sup>[7](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/tps_rkhs.pdf)</sup> 最小化者具有如下闭式形式

\[ \hat{f}(x) = \sum_{i=1}^{n} \alpha_i \, \eta(\|x - X_i\|) + \sum_{j} \beta_j p_j(x), \]

即径向基函数的有限和加上一个张成惩罚零空间的低次多项式。<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> 对于 \( d = 2 \)，\( m = 2 \)，零空间由 \( \{1, x_1, x_2\} \) 张成，即总次数不超过 \( m-1 \) 的多项式，维数 \( M = \binom{d+m-1}{d} = 3 \)。<sup>[11](https://pages.stat.wisc.edu/~wahba/stat860public/lect/lect8/lect8.pdf)</sup>

## 实现方式

拟合过程首先组装 \( n \times n \) 径向基矩阵，其元素为 \( G_{ij} = \eta(\|x_i - x_j\|) \)，然后求解一个大小为 \( n + \dim(\text{零空间}) \) 的鞍点线性系统，例如在无加权平方和约定下（\( \lambda = 0 \) 即插值情形），求解 \( (G + \lambda I)\alpha + P\beta = y \) 并满足 \( P^T \alpha = 0 \)，将系数 \( \alpha \) 与拉格朗日乘子耦合，以强制满足对每个零空间多项式 \( p_j \) 的旁置条件 \( \sum_i \alpha_i p_j(X_i) = 0 \)。<sup>[10](https://ar5iv.labs.arxiv.org/html/1705.05178)</sup><sup> • </sup><sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> 这些旁置条件确保径向基部分没有可吸收的多项式分量。<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> 在等价的闭式形式中，先计算 \( b = (N^T \cdot M^{-1} \cdot N)^{-1} \cdot N^T \cdot M^{-1} \cdot y \)，再计算 \( a = M^{-1}(y - N \cdot b) \)；最小弯曲能量为 \( a^T \cdot M \cdot a \)，当且仅当拟合曲面为超平面时为零。<sup>[8](https://www.geometrictools.com/Documentation/ThinPlateSplines.pdf)</sup>

平滑参数 \( \lambda \) 控制拟合优度与光滑度之间的平衡：较大的值对 \( m \) 阶导数施以重罚，迫使 \( f^{(m)} \) 接近 0；较小的值则给出倾向于插值数据的估计。<sup>[12](https://www.sfu.ca/sasdoc/sashtml/stat/chap64/sect14.htm)</sup> 在软件中，\( \lambda \) 默认通过广义交叉验证选取<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup>，也可使用 REML 和其他准则。<sup>[13](https://swampstomper.nl/professional/_static/files/R_PDF/exTPS.pdf)</sup> 模拟研究表明，对于独立同分布的高斯噪声，要获得可靠的 GCV 估计需要 \( n \) 大于约 25 或 30，且 GCV 对方差异质性和非高斯误差相当稳健。<sup>[12](https://www.sfu.ca/sasdoc/sashtml/stat/chap64/sect14.htm)</sup> R 的 fields 包通过先进行 QR 分解、再对由样条径向基函数导出的约化矩阵进行特征分解来稳定地计算拟合。<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup>

## 起源

薄板样条由 Jean Duchon 在 1976 年的论文 *Interpolation des fonctions de deux variables suivant le principe de la flexion des plaques minces* 中提出，发表于 Revue française d'automatique, d'informatique et de recherche opérationnelle, Analyse numérique（M2AN，第 10 卷，第 3 期）；该方法最小化一个二次泛函，其一阶近似即薄板的弯曲能量，并在 Sobolev 空间 \( H^2 \) 中收敛。<sup>[14](https://doi.org/10.1051/m2an/197610r300051)</sup> 后续工作建立了 \( D_m \)-样条的插值误差估计，将二变量理论推广到一般维数。<sup>[15](https://www.numdam.org/item/M2AN_1978__12_4_325_0.pdf)</sup> 后来 Meinguet（1979）和 Wahba 与 Wendelberger（1980）的工作，以及 Gu（2013）的著作，给出了 Duchon 证明的简化且更具构造性的分析<sup>[7](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/tps_rkhs.pdf)</sup>，而 Bookstein 将该方法在图像配准中推广普及。<sup>[16](https://eprints.qut.edu.au/108193/1/108193.pdf)</sup>

## 变体

薄板回归样条由 Simon N. Wood 于 2003 年在 Journal of the Royal Statistical Society Series B 上提出，是通过对薄板样条基进行变换和截断而构造的低秩平滑器，在给定基维数下，在对完整 TPS 问题的扰动最小这一意义上最优；Lanczos 迭代使基变换和截断在计算上高效，且该方法避免了回归样条的节点放置问题。<sup>[6](https://doi.org/10.1111/1467-9868.00374)</sup> R 的 fields 包提供了一个 fastTps 变体，使用紧支撑的 Wendland 协方差和稀疏线性代数以处理更大的数据集。<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup> 一种在有限元网格上使用局部支撑多项式基函数的离散薄板样条产生稀疏系统，通过预处理共轭梯度法求解。<sup>[17](https://maths-people.anu.edu.au/~stals/tps.html)</sup> 在计算机视觉中，TPS-RPM 使用 TPS 参数化点模式配准中的非刚性变换<sup>[4](https://www.cvl.iis.u-tokyo.ac.jp/class2013/2013w/paper/correspondingAndRegistration/05_RPM-TPS.pdf)</sup>，双射配准组合两个薄板插值函数，每个坐标位移一个<sup>[16](https://eprints.qut.edu.au/108193/1/108193.pdf)</sup>，而近似 TPS 映射使用 Nyström 近似进行形状匹配与变形。<sup>[3](http://vision.ucsd.edu/sites/default/files/publications/pdfs/Approximate%20Thin%20Plate%20Spline%20Mappings.pdf)</sup> 一篇 2026 年的 IPOL 文章将薄板样条推广到球面，用于插值、球面平均和反问题，其各向同性核由 Legendre 级数和闭式多重对数表达式给出。<sup>[18](https://www.ipol.im/pub/art/2026/451/article.pdf)</sup>

## 应用

在空间统计和地质统计中，TPS 曲面在模型 \( Y = f(X) + e \) 下拟合于不规则间隔的数据，平滑参数由 GCV 选取<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup>，且样条在形式上等价于通用克里金，其协方差函数由光滑半范数决定。<sup>[2](https://gistbok-ltb.ucgis.org/current/concept/AM-04-071)</sup> 在计算机视觉中，正则化 TPS 模型将仿射模型作为特例包含在内，服务于形状匹配、变形和非刚性图像配准。<sup>[3](http://vision.ucsd.edu/sites/default/files/publications/pdfs/Approximate%20Thin%20Plate%20Spline%20Mappings.pdf)</sup><sup> • </sup><sup>[4](https://www.cvl.iis.u-tokyo.ac.jp/class2013/2013w/paper/correspondingAndRegistration/05_RPM-TPS.pdf)</sup>

## 局限与替代方法

稠密线性求解的代价为 \( O(n^3) \)，且完全填充的系统矩阵使大规模问题代价高昂；低秩近似将代价降至 \( O(nk^2) \)。<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> 病态条件是大型数据集的主要障碍，促使了预处理技术的发展<sup>[19](https://epubs.siam.org/doi/10.1137/0912070)</sup>，条件数可超过 \( 10^9 \)，若将 TPS 嵌入非线性模型可能引发问题。<sup>[6](https://doi.org/10.1111/1467-9868.00374)</sup> 当 \( 2m \le d \) 时方法失效（惩罚的光滑度不足；对于 \( d = 4 \) 需要 \( m \ge 3 \)）；当输入位于低维流形附近时，径向基矩阵接近奇异；降秩薄板或显式正则化可解决后一问题。重复数据点使未正则化的插值系统奇异，但正的平滑参数或合并重复观测可使此类拟合问题良定义。<sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup> 当误差高度相关时，基于 GCV 的平滑可能不令人满意。<sup>[12](https://www.sfu.ca/sasdoc/sashtml/stat/chap64/sect14.htm)</sup>

与克里金相比，TPS 是当 Matérn 范围参数趋于无穷大时高斯过程估计的极限情形<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup>，但样条的一个明确缺点是无法解释空间结构的模型，也没有等同于克里金预测方差的内部预测误差度量，因此预测只能通过独立数据集或交叉验证来评估。<sup>[13](https://swampstomper.nl/professional/_static/files/R_PDF/exTPS.pdf)</sup> 在一维且 \( m = 2 \) 时，TPS 重现三次平滑样条，且它是该样条具有可处理有限维解的唯一的旋转不变推广。<sup>[1](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)</sup><sup> • </sup><sup>[5](https://theorempath.com/topics/thin-plate-splines)</sup>

## References

1. [R fields package: Tps documentation](https://search.r-project.org/CRAN/refmans/fields/html/Tps.html)
2. [UCGIS GIS&T BoK | [AM-04-071] Splines and Radial Basis Functions Interpolation](https://gistbok-ltb.ucgis.org/current/concept/AM-04-071)
3. [Approximate Thin Plate Spline Mappings](http://vision.ucsd.edu/sites/default/files/publications/pdfs/Approximate%20Thin%20Plate%20Spline%20Mappings.pdf)
4. [TPS-RPM paper (doi:10.1016/S1077-3142(03)00009-2)](https://www.cvl.iis.u-tokyo.ac.jp/class2013/2013w/paper/correspondingAndRegistration/05_RPM-TPS.pdf)
5. [Thin-Plate Splines: Multivariate Smoothing with Radial Basis Functions](https://theorempath.com/topics/thin-plate-splines)
6. [Simon N. Wood (2003). Thin Plate Regression Splines. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/1467-9868.00374)
7. [Supplementary Notes: Representation of Thin-Plate Splines](https://www.stat.berkeley.edu/~ryantibs/statlearn-s23/lectures/tps_rkhs.pdf)
8. [Thin-Plate Splines (Geometric Tools documentation)](https://www.geometrictools.com/Documentation/ThinPlateSplines.pdf)
9. [Kernel Techniques: From Machine Learning to Meshless Methods](https://num.math.uni-goettingen.de/~schaback/research/papers/KTfMLtMM.pdf)
10. [On thin plate spline interpolation](https://ar5iv.labs.arxiv.org/html/1705.05178)
11. [Statistics 860 Lecture 8 (Grace Wahba)](https://pages.stat.wisc.edu/~wahba/stat860public/lect/lect8/lect8.pdf)
12. [SAS documentation: Computational Formulas (smoothing parameter selection, GCV)](https://www.sfu.ca/sasdoc/sashtml/stat/chap64/sect14.htm)
13. [Technical note: Thin-plate spline interpolation](https://swampstomper.nl/professional/_static/files/R_PDF/exTPS.pdf)
14. [Jean Duchon (1976). Interpolation des fonctions de deux variables suivant le principe de la flexion des plaques minces. Revue française d automatique informatique recherche opérationnelle Analyse numérique.](https://doi.org/10.1051/m2an/197610r300051)
15. [Sur l'erreur d'interpolation des fonctions de plusieurs variables par les Dm-splines](https://www.numdam.org/item/M2AN_1978__12_4_325_0.pdf)
16. [Bijective image registration using thin plate splines (ICPR 2006)](https://eprints.qut.edu.au/108193/1/108193.pdf)
17. [Discrete Thin Plate Splines (ANU)](https://maths-people.anu.edu.au/~stals/tps.html)
18. [Thin-plate Splines on the Sphere for Interpolation, Computing Spherical Averages, and Solving Inverse Problems](https://www.ipol.im/pub/art/2026/451/article.pdf)
19. [Computation of Thin-Plate Splines (SIAM Journal on Numerical Analysis)](https://epubs.siam.org/doi/10.1137/0912070)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Regression analysis › Spline and basis-expansion regression

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/thin-plate-spline

English original: https://www.edgepedia.org/thin-plate-spline
