# 扩散映射

扩散映射是一种非线性降维方法，它通过在由数据构建的相似图上运行随机游走，将高维数据嵌入低维[欧几里得空间](https://www.edgepedia.org/zh/euclidean-space)，使得嵌入空间中的[欧几里得距离](https://www.edgepedia.org/zh/euclidean-distance)等于基于扩散的点间连通性度量。该方法由罗纳德·R·科伊夫曼（Ronald R. Coifman）和斯特凡·拉丰（Stéphane Lafon）于2006年在《应用与计算调和分析》期刊上发表的论文中提出。<sup>[1](https://doi.org/10.1016/j.acha.2006.04.006)</sup> 扩散映射保留局部邻域结构和数据图的连通性，并产生一族由扩散时间参数索引的不同尺度的表示。<sup>[2](https://dl.acm.org/doi/10.1109/TPAMI.2006.184)</sup><sup> • </sup><sup>[3](https://www.math.wustl.edu/~victor/classes/pmf/delaPorte-Herbst-Hereman-vanderWalt-PRASA-2008.pdf)</sup> 典型应用包括可视化、聚类、[流形学习](https://www.edgepedia.org/zh/manifold-learning)以及单细胞基因表达数据的轨迹分析。

| 关键事实 | 详情 |
|---|---|
| 输出 | 坐标 \( \Psi_{t} \)，其中欧几里得距离在预设相对精度 \( \delta \) 范围内等于扩散距离<sup>[4](https://www.math.ucdavis.edu/~strohmer/courses/270/diffusion_maps.pdf)</sup> |
| 提出论文 | 科伊夫曼和拉丰，《应用与计算调和分析》，2006年（2004年10月29日收稿）<sup>[1](https://doi.org/10.1016/j.acha.2006.04.006)</sup> |
| 主要参数 | 核带宽 \( \epsilon \)（邻域尺度）和扩散时间 \( t \)<sup>[5](https://proceedings.neurips.cc/paper_files/paper/2005/file/2a0f97f81755e2878b264adf39cba68e-Paper.pdf)</sup><sup> • </sup><sup>[6](https://www.math.umd.edu/~mariakc/REU2023/Tutorials/DimensionalityReduction.pdf)</sup> |
| 核心算法 | 四个步骤：核矩阵、行归一化、特征分解、在时间 \( t \) 处映射<sup>[3](https://www.math.wustl.edu/~victor/classes/pmf/delaPorte-Herbst-Hereman-vanderWalt-PRASA-2008.pdf)</sup> |
| 计算成本 | 一篇比较综述报告为 \( O(n^{3}) \) 训练和 \( O(n^{2}) \) 变换；单细胞应用论文报告为 \( n^{2} \) 时间，在约 \( 10^{4} \) 个点以上时不可接受<sup>[7](http://faculty.ist.psu.edu/vhonavar/Courses/dsmethods/dim1.pdf)</sup><sup> • </sup><sup>[8](https://mediatum.ub.tum.de/doc/1319938/document.pdf)</sup> |
| 旗舰应用 | 分化单细胞的伪时间排序（哈格韦尔迪、比特纳和泰斯，Bioinformatics，2015年）<sup>[9](https://doi.org/10.1093/bioinformatics/btv325)</sup> |

## 工作原理

构建从成对亲和度开始，通常采用高斯核 \( K(x_{i}, x_{j}) = \exp(-\|x_{i} - x_{j}\|^{2} / (2\epsilon)) \)。<sup>[10](https://arxiv.org/html/2503.03963v2)</sup> 对该核进行行归一化产生一个马尔可夫转移矩阵，因此矩阵元素描述了数据图上的随机游走，该游走偏向于在稠密区域内的移动。<sup>[11](https://stat.cmu.edu/~cshalizi/350/lectures/15/lecture-15.pdf)</sup> 该矩阵的 \( m \) 次幂的元素 \( a^{(m)}(x, y) \) 是从 \( x \) 到 \( y \) 经过 \( m \) 步转移的概率。

两点之间由扩散距离连接，即游走 \( t \) 步后其后验分布之间的加权距离。由于它对图中所有长度为 \( t \) 的路径求和，因此比依赖于单一最短路径的测地距离对扰动和噪声更加稳健。<sup>[7](http://faculty.ist.psu.edu/vhonavar/Courses/dsmethods/dim1.pdf)</sup> 纳德勒、拉丰、科伊夫曼和凯夫雷基迪斯证明了该距离恰好等于特征函数坐标中的欧几里得距离：

\[ D_{t}^{2}(x_{0}, x_{1}) = \sum_{j \geq 1} \lambda_{j}^{2t} \left( \psi_{j}(x_{0}) - \psi_{j}(x_{1}) \right)^{2} \]

其中 \( \lambda_{j} \) 和 \( \psi_{j} \) 是马尔可夫矩阵的特征值和特征向量。<sup>[5](https://proceedings.neurips.cc/paper_files/paper/2005/file/2a0f97f81755e2878b264adf39cba68e-Paper.pdf)</sup> 扩散映射 \( \Psi_{t} \) 保留前几个坐标 \( (\lambda_{1}^{t}\psi_{1}, \ldots, \lambda_{s}^{t}\psi_{s}) \)，因此嵌入中的欧几里得距离再现了扩散距离。<sup>[4](https://www.math.ucdavis.edu/~strohmer/courses/270/diffusion_maps.pdf)</sup> 在样本数趋于无穷、带宽趋于零的极限下，该核逼近底层流形上[拉普拉斯–贝尔特拉米算子](https://www.edgepedia.org/zh/laplace-beltrami-operator)的热核 \( e^{-t\Delta} \)，需要进行归一化以校正采样密度的影响。<sup>[10](https://arxiv.org/html/2503.03963v2)</sup>

## 实现方法

基本算法包含四个步骤<sup>[3](https://www.math.wustl.edu/~victor/classes/pmf/delaPorte-Herbst-Hereman-vanderWalt-PRASA-2008.pdf)</sup>：

1. 计算 \( N \times N \) 成对距离矩阵 \( d_{ij} = \|x_{i} - x_{j}\| \)，并构造核矩阵 \( K \)，其中 \( k_{ij} = \exp(-\Delta(i,j)/\epsilon) \)。核必须是对称且非负的，才能进行谱分析。<sup>[12](https://doi.org/10.48550/arxiv.1706.09396)</sup><sup> • </sup><sup>[3](https://www.math.wustl.edu/~victor/classes/pmf/delaPorte-Herbst-Hereman-vanderWalt-PRASA-2008.pdf)</sup>
2. 对 \( K \) 的行进行归一化，得到随机矩阵 \( P \)，其 \( t \) 次幂给出 \( t \) 步转移概率。<sup>[6](https://www.math.umd.edu/~mariakc/REU2023/Tutorials/DimensionalityReduction.pdf)</sup>
3. 计算 \( P \) 的特征向量和特征值。<sup>[3](https://www.math.wustl.edu/~victor/classes/pmf/delaPorte-Herbst-Hereman-vanderWalt-PRASA-2008.pdf)</sup>
4. 在选定的时间 \( t \) 处映射每个点。<sup>[3](https://www.math.wustl.edu/~victor/classes/pmf/delaPorte-Herbst-Hereman-vanderWalt-PRASA-2008.pdf)</sup>

选择 \( \epsilon \) 和 \( t \) 是主要的实际困难。带宽 \( \epsilon \) 具有双重解释：既是用于推断局部几何的邻域半径的平方，又是游走的离散时间步长。<sup>[5](https://proceedings.neurips.cc/paper_files/paper/2005/file/2a0f97f81755e2878b264adf39cba68e-Paper.pdf)</sup> 一个常见的初始猜测是 \( \epsilon \) 等于平方距离矩阵行最小值均值的两倍；一种更系统的诊断方法——Ksum 检验——在双对数坐标轴上绘制双重求和 \( S(\epsilon) \approx \int\int k_{\epsilon}\, dx\, dx' \)，并选择斜率约为 \( d/2 \) 处的 \( \epsilon \)，从而揭示内在维度 \( d \)。<sup>[6](https://www.math.umd.edu/~mariakc/REU2023/Tutorials/DimensionalityReduction.pdf)</sup> 带宽 \( \varepsilon \) 控制直接的核亲和度，而时间 \( t \) 指定随机游走的步数：对于不同的数据点，当 \( \varepsilon \) 趋于零时，一步马尔可夫矩阵趋近于单位矩阵；而对于连通的非周期游走，过大的 \( t \) 使转移分布趋近于同一平稳分布，从而减小点之间的区分度。<sup>[22](https://pmc.ncbi.nlm.nih.gov/articles/PMC7330274/)</sup><sup> • </sup><sup>[23](https://pmc.ncbi.nlm.nih.gov/articles/PMC4118417/)</sup> 一个实用的规则是选择使半群误差最小化的 \( t \)，该方法计算简便且在实践中表现良好。<sup>[13](https://ar5iv.labs.arxiv.org/html/2203.02867)</sup>

保留的坐标数量由精度参数 \( \delta \in (0,1) \) 通过 \( s(\delta,t) = \max\{m: |\lambda_{m}|^{t} > \delta|\lambda_{1}|\} \) 确定；由于特征值的模衰减到1以下，对于任何预设精度，有限项即可满足。<sup>[4](https://www.math.ucdavis.edu/~strohmer/courses/270/diffusion_maps.pdf)</sup>

## 起源

该方法得名于罗纳德·R·科伊夫曼和斯特凡·拉丰的论文《扩散映射》，发表于2006年的《应用与计算调和分析》。<sup>[1](https://doi.org/10.1016/j.acha.2006.04.006)</sup><sup> • </sup><sup>[4](https://www.math.ucdavis.edu/~strohmer/courses/270/diffusion_maps.pdf)</sup> 马尔可夫矩阵特征函数的框架及其多尺度伴随方法在2005年PNAS的两部分论文《几何扩散作为数据调和分析与结构定义的工具》中提出。<sup>[14](https://www.cs.yale.edu/homes/vision/zucker/papers/CLLMNWZ05_PNAS_2.pdf)</sup>

该方法建立在早期谱嵌入工作的基础上，尤其是米哈伊尔·贝尔金和帕尔塔·尼约吉（2002）的拉普拉斯特征映射<sup>[15](https://doi.org/10.7551/mitpress/1120.003.0080)</sup>；两种构造非常相似，都从数据点上的图出发。<sup>[6](https://www.math.umd.edu/~mariakc/REU2023/Tutorials/DimensionalityReduction.pdf)</sup> 2006年的论文表明，核特征映射方法——包括局部线性嵌入、拉普拉斯特征映射、Hessian特征映射和局部切空间对齐——都适合一个通用的扩散过程框架。<sup>[4](https://www.math.ucdavis.edu/~strohmer/courses/270/diffusion_maps.pdf)</sup>

## 变体

**样本外扩展。** 科伊夫曼和拉丰（2006）提出的几何调和函数通过[Nyström方法](https://www.edgepedia.org/zh/nystrom-method)将经验函数扩展到数据集之外，扩展距离由特征值控制。<sup>[16](https://doi.org/10.1016/j.acha.2005.07.005)</sup><sup> • </sup><sup>[14](https://www.cs.yale.edu/homes/vision/zucker/papers/CLLMNWZ05_PNAS_2.pdf)</sup> 安德鲁·W·朗和安德鲁·L·弗格森（2017）提出的地标扩散映射（L-dMaps）通过在地标点上计算嵌入并将其扩展到样本外来加速流形学习。<sup>[12](https://doi.org/10.48550/arxiv.1706.09396)</sup>

**多尺度和聚类变体。** 伴随的PNAS第二部分论文引入了扩散小波，这是一种由扩散算子的幂在对数间隔时间上构建的[多分辨率分析](https://www.edgepedia.org/zh/multiresolution-analysis)。<sup>[14](https://www.cs.yale.edu/homes/vision/zucker/papers/CLLMNWZ05_PNAS_2.pdf)</sup> 拉丰和李证明了在扩散嵌入空间中的聚类等价于压缩扩散算子，量化失真界定了压缩误差，这为扩散空间中的k均值聚类提供了依据。<sup>[2](https://dl.acm.org/doi/10.1109/TPAMI.2006.184)</sup>

**密度校正和生成扩展。** 当采样密度非均匀时，最初由科伊夫曼和拉丰开发的核的右重归一化可调节密度的影响。<sup>[6](https://www.math.umd.edu/~mariakc/REU2023/Tutorials/DimensionalityReduction.pdf)</sup> 一个2025年的框架将双重扩散映射与基于得分的生成模型和伊藤随机微分方程相结合，以在未知低维流形上采样密度：第一轮扩散映射找到潜在坐标，第二轮构建潜在调和函数，通过Nyström扩展将样本提升回环境空间。<sup>[10](https://arxiv.org/html/2503.03963v2)</sup>

## 应用

**单细胞基因组学。** 哈格韦尔迪、比特纳和泰斯通过适当选择核宽度并纳入测量不确定性或缺失值，将扩散映射适配于单细胞数据，实现了高维基因表达空间中分化细胞的伪时间排序。<sup>[9](https://doi.org/10.1093/bioinformatics/btv325)</sup> 在两个qPCR数据集（小鼠造血干细胞和小鼠胚胎干细胞）和一个人类植入前胚胎的RNA-Seq数据集上，适配后的方法表现显著优于PCA，并且优于t-SNE等其他非线性技术。<sup>[8](https://mediatum.ub.tum.de/doc/1319938/document.pdf)</sup>

**生成建模。** 扩散映射粒子系统（DMPS）将扩散映射与拉普拉斯调整的瓦瑟斯坦梯度下降（LAWGD）相结合用于生成建模；它不需要离线训练，唯一需要调节的参数是核带宽。<sup>[17](https://www.aimsciences.org/article/doi/10.3934/fods.2024054)</sup>

## 局限与替代方法

**成本。** 一篇比较综述列出 \( O(n^{3}) \) 训练和 \( O(n^{2}) \) 变换成本<sup>[7](http://faculty.ist.psu.edu/vhonavar/Courses/dsmethods/dim1.pdf)</sup>，而单细胞应用论文报告 \( n^{2} \) 计算时间在细胞数超过 \( 10^{4} \) 时不可接受，并提出k近邻变体作为补救措施<sup>[8](https://mediatum.ub.tum.de/doc/1319938/document.pdf)</sup>；已发表的文献并未解释这些数字之间的差异。

**参数与密度。** 核的选择对真实数据集至关重要，尽管高斯核并非唯一选择，也不会定性地改变渐近分析。<sup>[5](https://proceedings.neurips.cc/paper_files/paper/2005/file/2a0f97f81755e2878b264adf39cba68e-Paper.pdf)</sup> 非均匀采样密度会使算子产生偏差，除非应用右重归一化。<sup>[6](https://www.math.umd.edu/~mariakc/REU2023/Tutorials/DimensionalityReduction.pdf)</sup>

**失效模式。** 为使谱聚类成功，每个簇的平均退出时间必须显著超过簇内最慢的弛豫时间；对于复杂的多尺度数据，该条件可能不满足。<sup>[18](https://www.weizmann.ac.il/math/Nadler/sites/math.Nadler/files/publications/diffusion_maps_-_a_probabilistic_interpretation_for_spectral_embedding_and_clustering_algorithms.pdf)</sup> 一项基准研究发现扩散映射能稳健地保留局部流形结构，在分类度量下甚至在低密度采样时优于其他谱技术，但当数据的缩放因子超出 \( s \in [0.5, 2] \) 的范围时难以恢复全局结构，且当内在维度 \( d > 4 \) 时相对于PCA没有显著优势。<sup>[19](https://www2.compute.dtu.dk/~sohau/papers/icann2011/Mysling_ICANN_2011_Manifold_Learning.pdf)</sup>

**比较。** 与Isomap相比，扩散距离对多条路径求和而非依赖测地最短路径，使其对噪声更加稳健。<sup>[7](http://faculty.ist.psu.edu/vhonavar/Courses/dsmethods/dim1.pdf)</sup> UMAP由利兰·麦金尼斯、约翰·希利、纳撒尼尔·索尔和卢卡斯·格罗斯贝格尔（2018）提出，是一种流行的启发式方法，它最小化数据拓扑表示之间的不匹配。<sup>[20](https://doi.org/10.21105/joss.00861)</sup><sup> • </sup><sup>[21](https://arxiv.org/pdf/2311.03757v1)</sup> 除单细胞比较中扩散映射优于PCA和t-SNE外，已发表文献中没有针对t-SNE或UMAP的定量直接基准比较。<sup>[8](https://mediatum.ub.tum.de/doc/1319938/document.pdf)</sup>

## References

1. [Ronald R. Coifman, Stéphane Lafon (2006). Diffusion maps. Applied and Computational Harmonic Analysis.](https://doi.org/10.1016/j.acha.2006.04.006)
2. [Diffusion Maps and Coarse-Graining: A Unified Framework for Dimensionality Reduction, Graph Partitioning, and Data Set Parameterization (Lafon & Lee, IEEE TPAMI vol. 28 no. 9)](https://dl.acm.org/doi/10.1109/TPAMI.2006.184)
3. [An Introduction to Diffusion Maps (del Porte, Herbst, Hereman, van der Walt, PRASA 2008)](https://www.math.wustl.edu/~victor/classes/pmf/delaPorte-Herbst-Hereman-vanderWalt-PRASA-2008.pdf)
4. [Diffusion maps (Coifman & Lafon, Applied and Computational Harmonic Analysis, 2006)](https://www.math.ucdavis.edu/~strohmer/courses/270/diffusion_maps.pdf)
5. [Diffusion Maps, Spectral Clustering and Eigenfunctions of Fokker-Planck Operators (Nadler, Lafon, Coifman, Kevrekidis, NeurIPS 2005)](https://proceedings.neurips.cc/paper_files/paper/2005/file/2a0f97f81755e2878b264adf39cba68e-Paper.pdf)
6. [Dimensionality Reduction tutorial (UMD REU 2023)](https://www.math.umd.edu/~mariakc/REU2023/Tutorials/DimensionalityReduction.pdf)
7. [Dimensionality Reduction: A Comparative Review](http://faculty.ist.psu.edu/vhonavar/Courses/dsmethods/dim1.pdf)
8. [Diffusion maps for high-dimensional single-cell analysis of differentiation data (Bioinformatics, 2015)](https://mediatum.ub.tum.de/doc/1319938/document.pdf)
9. [Laleh Haghverdi, Florian Buettner, Fabian J. Theis (2015). Diffusion maps for high-dimensional single-cell analysis of differentiation data. Bioinformatics.](https://doi.org/10.1093/bioinformatics/btv325)
10. [Generative Learning of Densities on Manifolds (arXiv, 2025)](https://arxiv.org/html/2503.03963v2)
11. [Nonlinear Dimensionality Reduction II: Diffusion Maps (CMU lecture notes, Cosma Shalizi)](https://stat.cmu.edu/~cshalizi/350/lectures/15/lecture-15.pdf)
12. [Long, Andrew W., Ferguson, Andrew L. (2017). Landmark Diffusion Maps (L-dMaps): Accelerated manifold learning out-of-sample extension. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.1706.09396)
13. [Diffusion Maps: Using the Semigroup Property for Parameter Tuning (arXiv 2203.02867)](https://ar5iv.labs.arxiv.org/html/2203.02867)
14. [Geometric diffusions as a tool for harmonic analysis and structure definition of data: Multiscale methods (PNAS 2005, Part II)](https://www.cs.yale.edu/homes/vision/zucker/papers/CLLMNWZ05_PNAS_2.pdf)
15. [Mikhail Belkin, Partha Niyogi (2002). Laplacian Eigenmaps and Spectral Techniques for Embedding and Clustering. The MIT Press eBooks.](https://doi.org/10.7551/mitpress/1120.003.0080)
16. [Ronald R. Coifman, Stéphane Lafon (2006). Geometric harmonics: A novel tool for multiscale out-of-sample extension of empirical functions. Applied and Computational Harmonic Analysis.](https://doi.org/10.1016/j.acha.2005.07.005)
17. [Diffusion map particle systems for generative modeling (Foundations of Data Science, 2024)](https://www.aimsciences.org/article/doi/10.3934/fods.2024054)
18. [Diffusion Maps – a Probabilistic Interpretation for Spectral Embedding and Clustering Algorithms (Nadler et al.)](https://www.weizmann.ac.il/math/Nadler/sites/math.Nadler/files/publications/diffusion_maps_-_a_probabilistic_interpretation_for_spectral_embedding_and_clustering_algorithms.pdf)
19. [An Empirical Study on the Performance of Spectral Manifold Learning Techniques (ICANN 2011)](https://www2.compute.dtu.dk/~sohau/papers/icann2011/Mysling_ICANN_2011_Manifold_Learning.pdf)
20. [Leland McInnes and colleagues (2018). UMAP: Uniform Manifold Approximation and Projection. The Journal of Open Source Software.](https://doi.org/10.21105/joss.00861)
21. [Manifold learning: what, how, and why (arXiv, November 2023)](https://arxiv.org/pdf/2311.03757v1)
22. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC7330274/)
23. [pmc.ncbi.nlm.nih.gov](https://pmc.ncbi.nlm.nih.gov/articles/PMC4118417/)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Supervised, unsupervised, and semi-supervised learning › Dimensionality reduction and manifold learning

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/diffusion-map

English original: https://www.edgepedia.org/diffusion-map
