# 增长函数（VC理论）

在万普尼克–切尔沃年基斯（Vapnik–Chervonenkis，VC）理论中，一个假设类的增长函数是：该类能在一组 m 个点上产生的不同标记的最大数量，且取遍输入空间中所有 m 点集。它衡量该类在给定大小样本上能实现多少种不同的二分类，并且是VC维借以控制可学习性的量。<sup>[1](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义 | \( \Pi_{\mathcal{F}}(n) = \sup_{S \in \mathcal{X}^n} |\mathcal{F}_S| \)，即该类中的函数对一个 n 点集 S 所能产生的标记的最大数量；对二分类总是至多 \( 2^n \)<sup>[2](https://mlweb.loria.fr/book/en/growthfunction.html)</sup> |
| 起源 | 由万普尼克和切尔沃年基斯在其1971年关于事件相对频率一致收敛到其概率的论文中引入<sup>[3](https://mlanthology.org/misc/1971/vapnik1971misc-uniform/)</sup> |
| 绍尔–谢拉赫界（Sauer–Shelah bound） | 若VC维为 d，则 \( \Pi(m) \le \sum_{i=0}^{d} \binom{m}{i} \le (em/d)^d = O(m^d) \)<sup>[4](https://users.cs.utah.edu/~bhaskara/courses/theoryml/scribes/lecture5.pdf)</sup> |
| 二分性 | 增长函数要么是指数式的，对所有 n 有 \( \Pi(n) = 2^n \)，要么是多项式的，对有限 d 为 \( O(n^d) \)<sup>[5](https://www.stat.cmu.edu/~cshalizi/sml/21/lectures/09/lecture-09.html)</sup> |
| 可学习性 | 一个类PAC可学习当且仅当它具有有限VC维，等价地，\( \Pi \) 呈多项式增长<sup>[4](https://users.cs.utah.edu/~bhaskara/courses/theoryml/scribes/lecture5.pdf)</sup> |
| 泛化差距 | 当VC维为 d 时，对样本量 m，最坏情形泛化差距的量级为 \( \tilde{O}(\sqrt{d/m}) \)<sup>[1](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)</sup> |
| 实值对应 | 对实值函数类，覆盖数推广了增长函数，伪维和胖打散维数扮演VC维的角色<sup>[6](https://www.cambridge.org/core/books/abs/neural-network-learning/pseudodimension-and-fatshattering-dimension/68B7608D896234212964C3267A3B5181)</sup> |

## 定义

固定一个从输入空间 \( \mathcal{X} \) 到标签集 \( \mathcal{Y} \) 的假设类 \( \mathcal{F} \)，二分类中 \( \mathcal{Y} \) 通常为 \( \{-1, +1\} \)。对有限点集 \( S = \{x_1, \dots, x_n\} \)，\( \mathcal{F} \) 在 S 上的投影是标签向量集合

\[ \mathcal{F}_S = \{ (f(x_1), \dots, f(x_n)) : f \in \mathcal{F} \} \subseteq \mathcal{Y}^n. \]

即使 \( \mathcal{F} \) 包含无穷多个函数，只要 \( \mathcal{Y} \) 有限，该投影就是有限的。增长函数是这种投影可能具有的最大大小：

\[ \Pi_{\mathcal{F}}(n) = \sup_{S \in \mathcal{X}^n} |\mathcal{F}_S|. \]

因为对二值标签有 \( |\mathcal{Y}^n| = 2^n \)，所以 \( \Pi_{\mathcal{F}}(n) \le 2^n \) 总成立；增长函数计数该类在多大程度上接近实现所有可能的标记。<sup>[2](https://mlweb.loria.fr/book/en/growthfunction.html)</sup> 同一个量在文献中称为打散系数或打散函数，在组合学中称为集合系统的打散函数。<sup>[7](https://academic.oup.com/qjmath/article/72/4/1401/6168564)</sup>

## 与打散和VC维的关系

大小为 n 的集合 S 被 \( \mathcal{F} \) 打散，如果 \( \Pi \) 在 S 上达到最大值，也就是该类产生 S 的全部 \( 2^n \) 种标记。该类的VC维是它能打散的最大集合的大小，等价地，是使 \( \Pi_{\mathcal{F}}(n) = 2^n \) 成立的最大 n。<sup>[1](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)</sup><sup> • </sup><sup>[5](https://www.stat.cmu.edu/~cshalizi/sml/21/lectures/09/lecture-09.html)</sup> 如果该类能打散大小无界的集合，其VC维为无穷。<sup>[1](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)</sup>

一个有用的单调性事实使VC维计算变得可行：如果一个类不能打散任何大小为 m 的集合，它也不能打散任何更大的集合，因为一个被打散的更大集合会包含一个被打散的 m 点子集。<sup>[1](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)</sup>

## 计算示例

**直线上的阈值。** 令 \( h_a(x) = 1 \)（若 \( x \ge a \)），否则为 \( -1 \)，并取所有此类阈值构成的类。单个点可以通过把阈值选在任一侧来标记为任一类别，但对两个点 \( x_1 < x_2 \)，没有阈值能赋予 \( h(x_1) = 1 \) 和 \( h(x_2) = -1 \)，因为所有阈值函数都是非降的。对 n 个点，增长函数为 \( 2n \)，VC维为1。<sup>[1](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)</sup>

**线性分类器。** 在平面上，直线能打散任意三个处于一般位置的点，但不能打散任何四点集，所以增长函数在 n = 3 时达到 \( 2^3 = 8 \)，VC维为3；增长函数按 \( \Theta(n^2) \) 增长。<sup>[2](https://mlweb.loria.fr/book/en/growthfunction.html)</sup><sup> • </sup><sup>[4](https://users.cs.utah.edu/~bhaskara/courses/theoryml/scribes/lecture5.pdf)</sup> 更一般地，\( d \) 维线性分类器能打散 \( d+1 \) 个点但不能打散 \( d+2 \) 个点，给出VC维 \( d+1 \)。<sup>[5](https://www.stat.cmu.edu/~cshalizi/sml/21/lectures/09/lecture-09.html)</sup>

**少参数导致无限VC维。** 两个例子表明增长函数不必是多项式的。平面上的凸多边形类能打散任意多个处于凸位置的点，因为任何子集都能被一个多边形切出，所以其VC维为无穷。<sup>[4](https://users.cs.utah.edu/~bhaskara/courses/theoryml/scribes/lecture5.pdf)</sup> 一参数族 \( s(x) = 1 \)（若 \( \sin(\omega x) \ge 0 \)）通过调整频率 \( \omega \) 打散任意大的点集，所以尽管该类只有一个参数，对所有 n 有 \( \Pi(n) = 2^n \)。<sup>[5](https://www.stat.cmu.edu/~cshalizi/sml/21/lectures/09/lecture-09.html)</sup>

## 绍尔–谢拉赫引理

将增长函数与VC维联系起来的核心定理是绍尔–谢拉赫引理，由绍尔以及佩莱斯（Perles）和谢拉赫独立证明，稍弱一点的版本早先由万普尼克和切尔沃年基斯建立。<sup>[8](https://www.combinatorics.org/ojs/index.php/eljc/article/download/v26i3p24/pdf)</sup> 对VC维为 d 的类和任意 m，

\[ \Pi(m) \le \sum_{i=0}^{d} \binom{m}{i} \le \left( \frac{em}{d} \right)^d = O(m^d). \]

该界是紧的：所有大小至多 d 的子集构成的类达到它。<sup>[8](https://www.combinatorics.org/ojs/index.php/eljc/article/download/v26i3p24/pdf)</sup> 该引理迫使出现二分性：渐近地，增长函数要么是最大可能值 \( 2^m \)，要么是某个固定 d 下的 \( m^d \)。<sup>[4](https://users.cs.utah.edu/~bhaskara/courses/theoryml/scribes/lecture5.pdf)</sup> 一旦样本量超过VC维，增长便从指数式转为多项式。<sup>[9](https://theorempath.com/topics/vc-dimension)</sup>

## 在可学习性中的作用

增长函数通过一致收敛进入学习理论。对采用零一损失的二分类，大小为 m 的样本的期望最坏情形泛化差距至多为 \( \sqrt{\frac{2}{m} \log \Pi_{\mathcal{H}}(m)} \)，将其与绍尔–谢拉赫界结合，当VC维为 d 时得到量级为 \( \tilde{O}(\sqrt{d/m}) \) 的差距。<sup>[1](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)</sup> 以高概率，当 \( n \ge d \) 时，真实风险与经验风险之间的差距为 \( O(\sqrt{(d \log(n/d))/n}) \)。<sup>[5](https://www.stat.cmu.edu/~cshalizi/sml/21/lectures/09/lecture-09.html)</sup>

这些界给出统计学习的基本定理：一个类PAC可学习且不可知PAC可学习，当且仅当其VC维有限。<sup>[4](https://users.cs.utah.edu/~bhaskara/courses/theoryml/scribes/lecture5.pdf)</sup> 有限VC维也是经验频率无分布一致收敛到概率的充要条件，这一性质由万普尼克和切尔沃年基斯于1971年证明；若VC维无限，则至少在某个分布下一致收敛不成立。<sup>[5](https://www.stat.cmu.edu/~cshalizi/sml/21/lectures/09/lecture-09.html)</sup><sup> • </sup><sup>[3](https://mlanthology.org/misc/1971/vapnik1971misc-uniform/)</sup> 1971年的论文给出了仅依赖于事件类而不依赖于分布的一致收敛充分条件，并给出了收敛速度的估计。<sup>[10](https://openeclass.panteion.gr/modules/document/file.php/PMS152/LEARNING/Vapnik%20V.N.%2C%20and%20Chervonenkis%20A.Y.%20%281971%29%20--%20On%20Uniform%20Convergence%20of%20the%20Relative%20Frequencies%20of%20Events%20to%20Their%20Probabilities%2C%20Theory%20of%20Probabilitiy%20and%20Its%20Applications%2C%20vol.%20%2C%20pp.%20264-280%20.pdf)</sup>

## 实值函数的扩展

对于实值函数类，例如输出为实值的神经网络，二值增长函数不再直接适用。覆盖数统计为了以给定精度逼近该类中每个成员需要多少个函数，它推广了增长函数，并在分析实值输出网络的分类时起同样的作用。<sup>[6](https://www.cambridge.org/core/books/abs/neural-network-learning/pseudodimension-and-fatshattering-dimension/68B7608D896234212964C3267A3B5181)</sup> 相应的组合维数是伪维，定义为二值化类 \( (x, y) \mapsto \operatorname{sgn}(f(x) - y) \) 的VC维，以及胖打散维数，后者进一步要求一个间隔 \( \gamma \)；伪维可视为胖打散维数的一个极限。<sup>[11](https://mediatum.ub.tum.de/doc/1723378/document.pdf)</sup> 巴特利特（Bartlett）和朗（Long）（1998）以及安东尼（Anthony）和巴特利特（Bartlett）（2000）建立了取值于 \( [0,1] \) 的函数类需要多少样本的上界，并用胖打散维数表达。<sup>[12](https://link.springer.com/article/10.1007/s42484-020-00027-5)</sup>

## 增长函数界的局限

从增长函数导出的界在实践中可能较松。在对两层网络奇偶机的统计力学分析中，[维尔茨堡大学](https://www.edgepedia.org/zh/university-of-wurzburg)（University of Würzburg）物理学家曼弗雷德·奥珀（Manfred Opper）表明，对于固定的相空间维数，VC维随隐藏单元数 K 任意增长；在样本数低于一个随VC维增长的临界数时不可能泛化；然而泛化误差的渐近下降与 K 无关，而VC界严重高估真实泛化误差。<sup>[13](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.72.2113)</sup> 对VC维非常大的深度网络，经典的基于VC的界相应地较松，现代工作发展了诸如PAC-贝叶斯界的替代方案。<sup>[14](https://arxiv.org/abs/2012.04115)</sup>

## References

1. [Chapter 6: Growth functions and VC dimension, Statistical Learning Theory course notes, University of British Columbia](https://www.cs.ubc.ca/~dsuth/532D/26w1/notes/html/chap_vc.html)
2. [The growth function, F. Lauer, Machine Learning book (mlweb.loria.fr)](https://mlweb.loria.fr/book/en/growthfunction.html)
3. [Vapnik, V. N., and Chervonenkis, A. Ya. (1971). On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities. Theory of Probability and Its Applications 16(2), 264–280.](https://mlanthology.org/misc/1971/vapnik1971misc-uniform/)
4. [Lecture #5: VC Dimension and Learning, A. Bhaskara, University of Utah (2017)](https://users.cs.utah.edu/~bhaskara/courses/theoryml/scribes/lecture5.pdf)
5. [From Rademacher complexity to VC dimension, C. Shalizi, Carnegie Mellon University (2021)](https://www.stat.cmu.edu/~cshalizi/sml/21/lectures/09/lecture-09.html)
6. [Anthony, M., and Bartlett, P. L. (1999). Neural Network Learning: Theoretical Foundations, Chapter 11, Cambridge University Press.](https://www.cambridge.org/core/books/abs/neural-network-learning/pseudodimension-and-fatshattering-dimension/68B7608D896234212964C3267A3B5181)
7. [Definable Regularity Lemmas for Nip Hypergraphs, The Quarterly Journal of Mathematics (2021)](https://academic.oup.com/qjmath/article/72/4/1401/6168564)
8. [The Electronic Journal of Combinatorics 26(3) (2019), #P3.24](https://www.combinatorics.org/ojs/index.php/eljc/article/download/v26i3p24/pdf/)
9. [VC Dimension: Shattering, Growth Function, TheoremPath](https://theorempath.com/topics/vc-dimension)
10. [Vapnik and Chervonenkis (1971), full translated text](https://openeclass.panteion.gr/modules/document/file.php/PMS152/LEARNING/Vapnik%20V.N.%2C%20and%20Chervonenkis%20A.Y.%20%281971%29%20--%20On%20Uniform%20Convergence%20of%20the%20Relative%20Frequencies%20of%20Events%20to%20Their%20Probabilities%2C%20Theory%20of%20Probabilitiy%20and%20Its%20Applications%2C%20vol.%20%2C%20pp.%20264-280%20.pdf)
11. [Mathematical Foundations of Learning Theory, Technical University of Munich](https://mediatum.ub.tum.de/doc/1723378/document.pdf)
12. [Pseudo-dimension of quantum circuits, Quantum Machine Intelligence (2021)](https://link.springer.com/article/10.1007/s42484-020-00027-5)
13. [Opper, M. (1994). Learning and generalization in a two-layer neural network: The role of the Vapnik-Chervonenkis dimension. Physical Review Letters 72, 2113.](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.72.2113)
14. [Valle-Pérez, G., and Louis, A. A. (2020). Generalization bounds for deep learning. arXiv:2012.04115.](https://arxiv.org/abs/2012.04115)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Learning theory and generalization › VC dimension and model capacity

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/growth-function-vc-theory

English original: https://www.edgepedia.org/growth-function-vc-theory
