# 维数灾难

**维数灾难**是指随着维数增加，计算或统计问题的成本或难度迅速增长——通常是呈指数增长。该术语最早由数学家理查德·贝尔曼（Richard Bellman）在逼近论中使用，如今它指代数值分析、机器学习和数据挖掘中一系列相关现象。<sup>[1](https://www.sciencedirect.com/topics/mathematics/curse-of-dimensionality)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 该术语由理查德·贝尔曼在逼近论中引入；贝尔曼还在20世纪50年代初于兰德公司（RAND Corporation）创造了“动态规划”一词<sup>[1](https://www.sciencedirect.com/topics/mathematics/curse-of-dimensionality)</sup><sup> • </sup><sup>[2](https://epubs.siam.org/doi/10.1137/1.9781611977370.ch11)</sup> |
| 全网格成本 | 在d维空间上、每个方向取N个点的传统网格需要O(N^d)个自由度<sup>[3](https://www.cambridge.org/core/journals/acta-numerica/article/abs/sparse-grids/47EA2993DB84C9D231BB96ECB26F615C)</sup> |
| 稀疏网格 | 稀疏网格（曾格，1991）将其降至O(N (log N)^(d-1))个自由度，当二阶混合导数有界时，对分片线性元可达到O(N^-2 (log N)^(d-1))的精度<sup>[3](https://www.cambridge.org/core/journals/acta-numerica/article/abs/sparse-grids/47EA2993DB84C9D231BB96ECB26F615C)</sup> |
| 积分下界 | 对于C^r函数的多变量积分，当ε ≤ ε₀时，达到误差ε所需的函数值个数大于c_r (1 + γ)^d，其中c_r, γ > 0<sup>[4](https://arxiv.org/abs/1211.0871)</sup> |
| 随机化突围 | 蒙特卡洛方法给出与维数无关的n^-1/2误差界，使积分在随机化框架下变得可处理<sup>[5](https://encyclopediaofmath.org/index.php?title=Curse_of_dimension)</sup> |
| 最近邻 | 所有已知的、使用合理空间的精确最近邻解法，其时间要么随维数k呈指数增长，要么随点数n呈线性增长<sup>[6](https://web.stanford.edu/class/cs168/l/l4.pdf)</sup> |

## 维数灾难的含义

这一说法涵盖了几种不同的效应，它们都源于同一个几何事实：空间的体积随维数呈指数增长，因此固定数量的样本点会变得极其稀疏。在d维空间中，每轴取N个点的网格有N^d个单元，因此随着d增大，将完整张量积网格细化到固定精度所需的计算量呈指数增长。<sup>[3](https://www.cambridge.org/core/journals/acta-numerica/article/abs/sparse-grids/47EA2993DB84C9D231BB96ECB26F615C)</sup>同样的稀疏性也影响数据分析：需要考虑的回归函数数量随解释变量的维数p增长，且增速超过指数级。<sup>[1](https://www.sciencedirect.com/topics/mathematics/curse-of-dimensionality)</sup>

第二种效应是几何性的而非组合性的。在高维空间中，距离和邻近的概念可能失去意义：从高维分布中抽取的点趋于变得几乎等距，因此“最近”的邻居不再比其他点显著更近。<sup>[7](https://repository.lib.ncsu.edu/bitstreams/bb92d11e-c9f8-4e63-ab51-688c42ef2b2a/download)</sup>近期的理论和实证工作沿着这一思路识别出两个主要原因：距离集中和流形效应。<sup>[8](https://arxiv.org/abs/2401.00422)</sup>这就是为什么建立在局部距离之上的方法——如k近邻分类和基于距离的聚类——会随着维数累积而退化；众所周知，传统聚类算法会因此效应而失效。<sup>[9](https://wires.onlinelibrary.wiley.com/doi/10.1002/widm.1062)</sup>

## 维数灾难的侵袭之处

**数值积分。** 对某些问题，维数灾难已被证明，而不仅仅是观察到。对于C^r函数的多变量积分，当ε ≤ ε₀时，达到误差ε所需的函数值个数大于c_r (1 + γ)^d，其中d为维数，c_r、γ为正的常数；证明利用r = 1时的体积估计，并结合卷积平滑来为r > 1构造欺骗函数。<sup>[4](https://arxiv.org/abs/1211.0871)</sup>在最坏情形框架下——算法成本以最差表现来衡量——维数灾难通常会发生；人们有望通过削弱最坏情形保证、转而采用随机化框架（蒙特卡洛方法）或平均情形框架（贝叶斯数值分析）来打破它。<sup>[5](https://encyclopediaofmath.org/index.php?title=Curse_of_dimension)</sup>

**最近邻搜索。** 维数灾难似乎是最近邻问题以及许多其他几何问题的根本性特征，而非k-d树等某种数据结构的产物。在一维中，对点排序后二分查找即可；在二维中有四个方向需要检查可能的最近邻，三维中有八个，一般而言，相关方向的数量随维数k呈指数增长。所有已知的、使用合理空间的精确解法，其时间要么随k呈指数增长，要么随点数n呈线性增长；要摆脱这一困境，只能诉诸近似。<sup>[6](https://web.stanford.edu/class/cs168/l/l4.pdf)</sup>

**机器学习。** 近期许多基于局部核的算法都沦为维数灾难的受害者，其中包括Isomap和LLE等局部流形学习技术、采用高斯核或其他局部核的支持向量分类器，以及建立在带局部相似度函数的图上的半监督方法。<sup>[10](https://www.microsoft.com/en-us/research/publication/the-curse-of-dimensionality-for-local-kernel-machines/)</sup>高维还会抬高数据存储和计算的成本，并影响处理的效率与精度。<sup>[11](https://doi.org/10.1007/s40747-021-00637-x)</sup>

## 应对之道

**稀疏网格与张量方法。** 稀疏网格方法由曾格于1991年提出，它通过张量积构造从一维基构建高维多尺度基，并舍弃支撑集较小的基元素。于是离散化只涉及O(N (log N)^(d-1))个自由度而非O(N^d)，对足够光滑的解不损失逼近能力；就能量范数而言，仅需O(N)个自由度即可达到O(N^-1)的精度。这在某种程度上克服了指数依赖，因此稀疏网格适合非常高维的问题。<sup>[3](https://www.cambridge.org/core/journals/acta-numerica/article/abs/sparse-grids/47EA2993DB84C9D231BB96ECB26F615C)</sup>一种相关策略利用张量稀疏性：当高维椭圆偏微分方程的数据是张量稀疏的，这种结构可以传递到解上，基于此模型的算法在某些模型问题上打破了维数灾难；在更强的耦合和一般对称正定系数矩阵下，这种传递可能丧失，从而需要更高的张量秩。<sup>[12](https://arxiv.org/abs/1407.6208)</sup><sup> • </sup><sup>[13](https://link.springer.com/article/10.1007/s00211-023-01350-2)</sup>量化张量列（TT）逼近通过将网格重塑为虚拟的更高维数D = d log N并应用基于SVD的秩缩减，实现了对数-对数复杂度标度，对逼近误差ε > 0为O(d log N log ε^-1)。<sup>[14](https://www.sciencedirect.com/science/article/pii/S0169743911001808)</sup>

**可处理性理论。** 基于信息的复杂性理论形式化了维数灾难何时不存在。若样本点数n(ε, F_d)满足n(ε, F_d) ≤ K · d^p · ε^-q（K、p、q为正常数），则问题在d和ε上是可处理的。在权重满足自然条件时，加权张量积范数具有可处理性，这对应于高维问题中某些变量比其他变量更重要这一常见情形；有一个积分问题是可处理的，其界为n(ε, F_d) ≤ κ · d · ε^-2。<sup>[5](https://encyclopediaofmath.org/index.php?title=Curse_of_dimension)</sup>

**降维。** 特征降维将数据从高维空间映射到相对低维的空间，同时保留原始数据的基本特征，从而应对高维带来的存储、计算和精度成本。<sup>[11](https://doi.org/10.1007/s40747-021-00637-x)</sup>为此存在一族特征提取算法，包括PCA、KPCA、LDA、MDS、SVD、LLE、Isomap、拉普拉斯特征映射、ICA和t-SNE。<sup>[15](https://www.sciencedirect.com/science/article/pii/S1574013721000186)</sup>对于最近邻搜索，降维在低维空间中重新表示高维点，同时尽可能保持点间距离。<sup>[6](https://web.stanford.edu/class/cs168/l/l4.pdf)</sup>

**低内在维数。** 数据可能位于低维子空间或所在空间的子流形上，因此真实维数可能远低于名义维数。<sup>[16](https://www.cs.cornell.edu/courses/cs5780/2025sp/lectures/pdfs/lecturenote02_kNN.pdf)</sup>流形假设为这一观念提供了形式化基础：根据这一被广泛认可的机器学习原理，看似高维的数据实际上靠近周围高维空间中的低维流形。<sup>[17](https://academic.oup.com/jrsssb/article/88/2/353/8518117)</sup>为图像等极高维问题提出的非线性降维方法正是建立在同一观察之上。<sup>[1](https://www.sciencedirect.com/topics/mathematics/curse-of-dimensionality)</sup>

## References

1. [Curse of Dimensionality – an overview, ScienceDirect Topics](https://www.sciencedirect.com/topics/mathematics/curse-of-dimensionality)
2. [The Basics of Practical Optimization, Second Edition, Chapter 11: Dynamic Programming, SIAM](https://epubs.siam.org/doi/10.1137/1.9781611977370.ch11)
3. [Sparse grids, Acta Numerica, Cambridge Core](https://www.cambridge.org/core/journals/acta-numerica/article/abs/sparse-grids/47EA2993DB84C9D231BB96ECB26F615C)
4. [The Curse of Dimensionality for Numerical Integration of Smooth Functions, arXiv](https://arxiv.org/abs/1211.0871)
5. [Curse of dimension, Encyclopedia of Mathematics](https://encyclopediaofmath.org/index.php?title=Curse_of_dimension)
6. [Lecture 4: Nearest neighbors, CS168, Stanford University](https://web.stanford.edu/class/cs168/l/l4.pdf)
7. [Dimension reduction chapter, NC State University repository](https://repository.lib.ncsu.edu/bitstreams/bb92d11e-c9f8-4e63-ab51-688c42ef2b2a/download)
8. [Interpreting the Curse of Dimensionality from Distance Concentration and Manifold Effect, arXiv](https://arxiv.org/abs/2401.00422)
9. [Clustering high dimensional data, WIREs Data Mining and Knowledge Discovery](https://wires.onlinelibrary.wiley.com/doi/10.1002/widm.1062)
10. [The Curse of Dimensionality for Local Kernel Machines, Microsoft Research](https://www.microsoft.com/en-us/research/publication/the-curse-of-dimensionality-for-local-kernel-machines/)
11. [Feature dimensionality reduction: a review, Complex & Intelligent Systems](https://doi.org/10.1007/s40747-021-00637-x)
12. [Tensor-Sparsity of Solutions to High-Dimensional Elliptic Partial Differential Equations, arXiv](https://arxiv.org/abs/1407.6208)
13. [A posteriori error analysis and adaptivity for high-dimensional elliptic and parabolic boundary value problems, Numerische Mathematik](https://link.springer.com/article/10.1007/s00211-023-01350-2)
14. [Tensors-structured numerical methods in scientific computing: Survey on recent advances, ScienceDirect](https://www.sciencedirect.com/science/article/pii/S0169743911001808)
15. [Conceptual and empirical comparison of dimensionality reduction algorithms, Computer Science Review](https://www.sciencedirect.com/science/article/pii/S1574013721000186)
16. [k-nearest neighbors / Curse of Dimensionality, CS5780 lecture notes, Cornell University](https://www.cs.cornell.edu/courses/cs5780/2025sp/lectures/pdfs/lecturenote02_kNN.pdf)
17. [Statistical exploration of the manifold hypothesis, JRSS Series B](https://academic.oup.com/jrsssb/article/88/2/353/8518117)

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

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Numerical analysis and computation

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/curse-of-dimensionality

English original: https://www.edgepedia.org/curse-of-dimensionality
