# 谱嵌入

**谱嵌入**是一族非线性降维与图表示方法，它利用图拉普拉斯矩阵或由两两相似度构建的相关矩阵的特征向量，将数据点或图节点置于低维空间中。其中最著名的成员包括拉普拉斯特征映射、[谱聚类](https://www.edgepedia.org/zh/spectral-clustering)的嵌入步骤以及扩散映射。<sup>[1](https://arxiv.org/abs/2106.02154)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心计算 | 将样本投影到由邻接矩阵或亲和矩阵计算出的归一化图拉普拉斯矩阵的前几个特征向量上。<sup>[2](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.spectral_embedding.html)</sup> |
| 奠基论文 | Belkin 与 Niyogi，"Laplacian Eigenmaps for Dimensionality Reduction and Data Representation，" *Neural Computation* 15(6):1373–1396 (2003)。<sup>[3](https://bishtref.com/articles/10.1162/089976603321780317)</sup> |
| 几何基础 | 图拉普拉斯矩阵、流形上的 Laplace–Beltrami 算子与热方程之间的对应关系。<sup>[3](https://bishtref.com/articles/10.1162/089976603321780317)</sup> |
| 概率解读 | 当数据从 \( p(\x) = e^{-U(\x)} \) 中采样时，由邻接数据得到的马尔可夫矩阵的特征向量在均方误差准则下是最优的，并近似于势 \( 2U(\x) \) 中 Fokker–Planck 算子的特征函数。<sup>[4](https://arxiv.org/abs/math/0506090)</sup> |
| 聚类关联 | 与最小特征值相关联的特征向量编码了将图分割为大小相当的分量所需的最小割数；当簇结构良好定义时，簇在嵌入中分离良好，对行向量运行 k-means 可返回接近最优的聚类结果。<sup>[2](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.spectral_embedding.html)</sup><sup> • </sup><sup>[5](https://proceedings.neurips.cc/paper_files/paper/2023/file/6c5b82193c5d8e6aa5806239676ddc97-Paper-Conference.pdf)</sup> |
| 实际要求 | 亲和矩阵必须是对称的，特征分解才能按预期表现；当图具有单一连通分量时，该方法最为有用。<sup>[2](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.spectral_embedding.html)</sup> |
| 已知敏感性 | 谱流形学习技术高度依赖数据密度，对尺度变换敏感，并受内在维数影响很大。<sup>[6](https://www.researchgate.net/publication/221079274_An_Empirical_Study_on_the_Performance_of_Spectral_Manifold_Learning_Techniques)</sup> |

## 基本构造

输入是一组点或节点以及它们之间的两两相似度，排列为邻接矩阵。该方法不要求矩阵是严格的图邻接矩阵；亲和矩阵或相似度矩阵同样适用，例如[欧几里得距离](https://www.edgepedia.org/zh/euclidean-distance)矩阵的热核或 k 近邻矩阵，只要它是对称的即可。<sup>[2](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.spectral_embedding.html)</sup> 由此矩阵构造图拉普拉斯矩阵，通常采用归一化形式，并计算其特征向量。每个点的嵌入坐标就是它在最初几个特征向量——即与最小特征值相关联的那些——中的分量。<sup>[2](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.spectral_embedding.html)</sup>

非归一化拉普拉斯矩阵的最小特征值为 0，对应的特征向量为常向量。<sup>[7](https://www.tml.cs.uni-tuebingen.de/team/luxburg/publications/Luxburg07_tutorial.pdf)</sup> 因此，各实现在处理这第一个向量时提供了选择。在 scikit-learn 的 `spectral_embedding` 中，丢弃第一个特征向量（`drop_first=True`）适用于嵌入连通图，因为该向量是常数向量；对于谱聚类则应保留它（`drop_first=False`），以保留其所携带的信息。<sup>[2](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.spectral_embedding.html)</sup>

## 拉普拉斯特征映射

Mikhail Belkin 与 Partha Niyogi 的拉普拉斯特征映射算法于 2003 年发表在 *Neural Computation* 上，其构造动机来自几何直观：假设数据位于嵌入高维空间中的低维流形上，图拉普拉斯矩阵收敛于该流形上的 Laplace–Beltrami 算子，从而将该算法与热方程联系起来。所得的表示计算高效、保持局部性，并与聚类有自然的联系。<sup>[3](https://bishtref.com/articles/10.1162/089976603321780317)</sup> 后来的综述将拉普拉斯特征映射与局部保持投影、图嵌入和扩散映射归为同一个基于拉普拉斯的非线性降维方法族，其中局部保持投影及其核变体作为拉普拉斯特征映射的线性特例。<sup>[1](https://arxiv.org/abs/2106.02154)</sup>

## 扩散映射与概率视角

**扩散映射**通过随机游走重新诠释了同样的特征向量计算。给定两两邻接矩阵，定义元素为转移概率的马尔可夫矩阵，以及数据点之间的扩散距离。Nadler、Lafon、Coifman 与 Kevrekidis 于 2005 年证明，由该马尔可夫矩阵前几个特征向量给出的低维表示在均方误差准则下是最优的。<sup>[4](https://arxiv.org/abs/math/0506090)</sup> 当数据点是来自密度 \( p(\x) = e^{-U(\x)} \) 的随机样本时，这些特征向量是势 \( 2U(\x) \) 中带反射边界条件的 Fokker–Planck 算子特征函数的离散近似；该连续算子的已知谱性质于是解释了为何基于前几个特征向量的谱聚类和降维能够成功。<sup>[4](https://arxiv.org/abs/math/0506090)</sup>

在扩散框架中，扩散距离由[欧几里得空间](https://www.edgepedia.org/zh/euclidean-space)中的非线性嵌入诱导产生，其坐标是图拉普拉斯矩阵的加权特征向量。<sup>[8](https://www.math.ucdavis.edu/~saito/data/diffgeomharm/lafon-lee.pdf)</sup> 这一时期的若干算法，包括局部线性嵌入、拉普拉斯特征映射、Hessian 特征映射、LTSA 和扩散映射，都最小化形如 \( Q(f) = \sum_i Q_i(f) \) 的畸变，其中每个 \( Q_i(f) \) 是对称半正定二次型，度量 \( f \) 在 \( \x_i \) 附近的局部变化。<sup>[8](https://www.math.ucdavis.edu/~saito/data/diffgeomharm/lafon-lee.pdf)</sup>

## 与谱聚类的关系

谱聚类将嵌入作为中间步骤：顶点被映射为特征向量矩阵的行，然后对这些行运行 k-means 等标准算法。<sup>[7](https://www.tml.cs.uni-tuebingen.de/team/luxburg/publications/Luxburg07_tutorial.pdf)</sup> 蒂宾根大学与[马克斯·普朗克智能系统研究所](https://www.edgepedia.org/zh/max-planck-institute-for-intelligent-systems)的机器学习研究者 Ulrike von Luxburg 撰写了该方法的标准教程，描述了所涉及的图拉普拉斯矩阵、常见算法变体以及从多个出发点进行的推导；她指出谱聚类实现简单，使用标准线性代数软件即可高效运行，并且往往优于直接使用的 k-means 等传统算法。<sup>[9](https://arxiv.org/abs/0711.0189)</sup>

理论图景支持了实践：如果图具有良好定义的簇结构，则簇在谱嵌入中分离良好，对嵌入坐标运行 k-means 可返回接近最优的聚类结果。<sup>[5](https://proceedings.neurips.cc/paper_files/paper/2023/file/6c5b82193c5d8e6aa5806239676ddc97-Paper-Conference.pdf)</sup> 主要计算成本在于特征向量计算本身，近期工作通过快速谱聚类算法来解决这一瓶颈，这些算法避免计算特征向量同时保持理论保证。<sup>[5](https://proceedings.neurips.cc/paper_files/paper/2023/file/6c5b82193c5d8e6aa5806239676ddc97-Paper-Conference.pdf)</sup>

## 扩展与实证行为

谱思想超越了单纯的相似度图。广义图拉普拉斯矩阵可以在单一表示中结合局部节点相似性与连通性以及全局结构；其中一种方法按边中心性对边重新加权——边中心性以经过该边的最短路径占比来度量——并报告在社交网络和材料数据分析任务中取得改进。<sup>[10](https://arxiv.org/abs/2009.14441)</sup> 基于归一化拉普拉斯矩阵的谱嵌入也作为社区发现研究中的标准基线，其可检测极限与信息论极限相匹配。<sup>[11](https://www.nature.com/articles/s41467-024-52355-w)</sup>

对谱流形学习技术的实证比较——涵盖 Isomap、局部线性嵌入、拉普拉斯特征映射和扩散映射，在不同复杂度的合成数据上进行——发现这些技术高度依赖数据密度，对尺度变换敏感，并受内在维数影响很大。<sup>[6](https://www.researchgate.net/publication/221079274_An_Empirical_Study_on_the_Performance_of_Spectral_Manifold_Learning_Techniques)</sup> 另一项比较评估了七种无监督降维方法在微阵列基因表达数据可视化中的表现，包括拉普拉斯特征映射和扩散映射，以及 PCA、核 PCA、Isomap、最大方差展开和局部线性嵌入。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC2998530/)</sup> 这些方法共有的一个问题在文献中仍未解决：在特征映射式嵌入中应使用多少个特征向量。<sup>[8](https://www.math.ucdavis.edu/~saito/data/diffgeomharm/lafon-lee.pdf)</sup>

## References

1. [Benyamin Ghojogh, Ali Ghodsi, Fakhri Karray, Mark Crowley (2021). Laplacian-Based Dimensionality Reduction Including Spectral Clustering, Laplacian Eigenmap, Locality Preserving Projection, Graph Embedding, and Diffusion Map: Tutorial and Survey. arXiv.](https://arxiv.org/abs/2106.02154)
2. [sklearn.manifold.spectral_embedding, scikit-learn documentation](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.spectral_embedding.html)
3. [Mikhail Belkin, Partha Niyogi (2003). Laplacian Eigenmaps for Dimensionality Reduction and Data Representation. Neural Computation 15(6):1373–1396.](https://bishtref.com/articles/10.1162/089976603321780317)
4. [Boaz Nadler, Stephane Lafon, Ronald R. Coifman, Ioannis G. Kevrekidis (2005). Diffusion Maps, Spectral Clustering and Eigenfunctions of Fokker-Planck operators. arXiv.](https://arxiv.org/abs/math/0506090)
5. [Fast and Simple Spectral Clustering in Theory and Practice. NeurIPS 2023.](https://proceedings.neurips.cc/paper_files/paper/2023/file/6c5b82193c5d8e6aa5806239676ddc97-Paper-Conference.pdf)
6. [An Empirical Study on the Performance of Spectral Manifold Learning Techniques.](https://www.researchgate.net/publication/221079274_An_Empirical_Study_on_the_Performance_of_Spectral_Manifold_Learning_Techniques)
7. [Ulrike von Luxburg (2007). A Tutorial on Spectral Clustering (PDF version).](https://www.tml.cs.uni-tuebingen.de/team/luxburg/publications/Luxburg07_tutorial.pdf)
8. [Stephane Lafon, Ann B. Lee. Diffusion maps and geometric harmonics (PDF).](https://www.math.ucdavis.edu/~saito/data/diffgeomharm/lafon-lee.pdf)
9. [Ulrike von Luxburg (2007). A Tutorial on Spectral Clustering. arXiv.](https://arxiv.org/abs/0711.0189)
10. [Shay Deutsch, Stefano Soatto (2020). Spectral Embedding of Graph Networks. arXiv.](https://arxiv.org/abs/2009.14441)
11. [Network community detection via neural embeddings. Nature Communications (2024).](https://www.nature.com/articles/s41467-024-52355-w)
12. [Comparative study of unsupervised dimension reduction techniques for the visualization of microarray gene expression data. PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC2998530/)

---
*Initially written Oct 15, 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/spectral-embedding

English original: https://www.edgepedia.org/spectral-embedding
