# 概率近似正确学习

概率近似正确（PAC）学习是一种从样例中学习的数学模型，由[莱斯利·瓦利安特](https://www.edgepedia.org/zh/leslie-valiant)（Leslie Valiant）在1984年的论文《可学习性理论》（*A Theory of the Learnable*）中提出。在该模型中，学习算法必须以高概率输出一个在未见数据上误差较小的假设，而所用的样本数和计算步数在精度参数和置信参数上呈多项式增长。<sup>[1](https://www.cs.tufts.edu/~ablumer/ParamPAC/PAC.1.html)</sup><sup> • </sup><sup>[2](https://mlanthology.org/misc/1984/valiant1984misc-theory/)</sup> 该模型为学习理论提供了一个精确的复杂度理论定义，说明了什么叫作一个概念类是可学习的。<sup>[3](https://ir.cwi.nl/pub/26422/1607.00932.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由莱斯利·瓦利安特在《可学习性理论》中提出，《美国计算机学会通讯》，1984年<sup>[1](https://www.cs.tufts.edu/~ablumer/ParamPAC/PAC.1.html)</sup> |
| 保证 | 对数据上的任意分布（无分布假设），学习器以至少 \( 1-\delta \) 的概率输出一个真实误差至多为 \( \epsilon \) 的假设<sup>[4](https://mett29.github.io/posts/pac-learning-vc-dimension/)</sup> |
| 样本复杂度（可实现情形） | 当类中包含零误差分类器时，约为 \( \Theta(\mathrm{VCdim}(H)/\epsilon) \)<sup>[5](https://jlab.soe.ucsc.edu/nlp-wiki/doku.php?id=ml%3Atheory%3Abinary_classification)</sup> |
| 样本复杂度（不可知情形） | 不作零误差假设时，约为 \( \Theta(\mathrm{VCdim}(H)/\epsilon^{2}) \)<sup>[5](https://jlab.soe.ucsc.edu/nlp-wiki/doku.php?id=ml%3Atheory%3Abinary_classification)</sup> |
| 基本定理 | 一个概念类是PAC可学习的，当且仅当其VC维有限（Blumer、Ehrenfeucht、Haussler和Warmuth，《美国计算机学会杂志》，1989年）<sup>[6](https://explore.openaire.eu/search/result?pid=10.1145%2F76359.76371)</sup> |
| 下界 | 无分布学习至少需要 \( \Omega((1/\epsilon)\ln(1/\delta) + \mathrm{VCdim}(C)/\epsilon) \) 个随机样例<sup>[7](https://www.sciencedirect.com/science/article/pii/0890540189900023)</sup> |
| 计算代价 | 在固定输出格式（如DNF表达式）中寻找一致假设可能是NP完全的<sup>[8](https://www.cs.columbia.edu/~aho/cs3261/Lectures/L22-Introduction_to_PAC_Learning.html)</sup> |

## 学习模型

在PAC框架中，学习器从实例空间上的一个未知分布中抽取由未知目标概念标注的随机样例。该框架是无分布假设的：对抽取样例所依据的分布 \( \mathcal{D} \) 不作任何假设，[样本复杂度](https://www.edgepedia.org/zh/sample-complexity)不得依赖于实际生效的是哪个分布。<sup>[9](https://dlib.hust.edu.vn/bitstream/HUST/24963/1/OER000003225.pdf)</sup><sup> • </sup><sup>[10](https://mlcrypto.mit.edu/course/scribe-notes/lec3_scribe.pdf)</sup>

**定义。** 一个概念类 \( C \) 是PAC可学习的，若存在一个算法 \( L \)，使得对每个目标概念 \( c \in C \)、任意分布 \( \mathcal{P} \)，以及 \( [0, 1/2) \) 中的任意精度参数 \( \epsilon \) 和置信参数 \( \delta \)，该算法以至少 \( 1-\delta \) 的概率输出一个真实误差 \( L_{\mathrm{true}}(h) \le \epsilon \) 的假设 \( h \)，且所用样本数在 \( 1/\epsilon \) 和 \( 1/\delta \) 上呈多项式。<sup>[4](https://mett29.github.io/posts/pac-learning-vc-dimension/)</sup> 一种常见的形式化陈述还额外要求样本量被 \( 1/\epsilon \)、\( 1/\delta \)、实例维数 \( n \) 和目标概念规模的多项式所界。<sup>[9](https://dlib.hust.edu.vn/bitstream/HUST/24963/1/OER000003225.pdf)</sup>

这个名称记录了两项保证：成功是*概率性的*（失败概率至多为 \( \delta \)），而学到的假设是*近似*正确的（误差至多为 \( \epsilon \)）。<sup>[8](https://www.cs.columbia.edu/~aho/cs3261/Lectures/L22-Introduction_to_PAC_Learning.html)</sup>

## 可实现学习与不可知学习

分析根据假设类中是否包含零误差分类器而分为两种情形。在可实现设定中，类 \( H \) 包含一个能无误差地标注数据的分类器，学习 \( H \) 的样本复杂度约为 \( \Theta(\mathrm{VCdim}(H)/\epsilon) \)。<sup>[5](https://jlab.soe.ucsc.edu/nlp-wiki/doku.php?id=ml%3Atheory%3Abinary_classification)</sup> 在不可知设定中，不作此类假设，底层分布的标注函数也不必是确定性的；学习器与 \( H \) 中的最佳假设竞争，要求以至少 \( 1-\delta \) 的概率达到至多 \( \inf_{h \in H} L_{\mathcal{D}}(h) + \epsilon \) 的误差，样本复杂度上升至约 \( \Theta(\mathrm{VCdim}(H)/\epsilon^{2}) \)。<sup>[5](https://jlab.soe.ucsc.edu/nlp-wiki/doku.php?id=ml%3Atheory%3Abinary_classification)</sup><sup> • </sup><sup>[10](https://mlcrypto.mit.edu/course/scribe-notes/lec3_scribe.pdf)</sup>

不可知学习器对目标概念是否可由 \( H \) 表示不作预先承诺；仅选择训练误差最小假设的学习器正因如此被称为不可知学习器。<sup>[4](https://mett29.github.io/posts/pac-learning-vc-dimension/)</sup> 达到上述样本复杂度的简单算法是经验风险最小化（ERM），它选择在观测样本上误差最小的假设。<sup>[10](https://mlcrypto.mit.edu/course/scribe-notes/lec3_scribe.pdf)</sup>

## VC维与基本定理

控制PAC样本复杂度的组合参数是Vapnik-Chervonenkis（VC）维，以Vapnik和Chervonenkis命名。<sup>[3](https://ir.cwi.nl/pub/26422/1607.00932.pdf)</sup> 若对于所有 \( 2^{m} \) 种可能的标注，\( C \) 中都有某个概念与这些标注一致，则称一组点 \( x_1, \dots, x_m \) 被概念类 \( C \) *打散*；\( C \) 的VC维是被 \( C \) 打散的最大点集的规模，若任意大的有限集都能被打散，则VC维为无穷大。<sup>[8](https://www.cs.columbia.edu/~aho/cs3261/Lectures/L22-Introduction_to_PAC_Learning.html)</sup>

该理论的核心结果常被称为统计学习基本定理，它指出PAC可学习性——无论是可实现还是不可知——等价于VC维有限。<sup>[11](https://differentialprivacy.org/private-pac/)</sup> Blumer、Ehrenfeucht、Haussler和Manfred K. Warmuth在1989年《美国计算机学会杂志》的论文《可学习性与Vapnik-Chervonenkis维》中证明，无分布可学习性的本质条件是VC维有限。<sup>[6](https://explore.openaire.eu/search/result?pid=10.1145%2F76359.76371)</sup> 当维数有限时，数量级为 \( (\mathrm{Dim}(C)/\epsilon) \cdot \log(1/\epsilon\delta) \) 的样本数即足够，学习器只需输出任何与观测一致的假设。<sup>[8](https://www.cs.columbia.edu/~aho/cs3261/Lectures/L22-Introduction_to_PAC_Learning.html)</sup>

**下界。** Ehrenfeucht、Haussler、Kearns和瓦利安特于1989年证明，无分布学习一个概念类 \( C \) 需要 \( \Omega((1/\epsilon)\ln(1/\delta) + \mathrm{VCdim}(C)/\epsilon) \) 个随机样例，改进了此前的最佳下界 \( \Omega((1/\epsilon)\ln(1/\delta) + \mathrm{VCdim}(C)) \)，并接近一致性算法的已知一般上界 \( O((1/\epsilon)\ln(1/\delta) + (\mathrm{VCdim}(C)/\epsilon)\ln(1/\epsilon)) \)；对于许多概念类，包括 \( k \)-CNF和 \( k \)-DNF，该下界在常数因子内是紧的。<sup>[7](https://www.sciencedirect.com/science/article/pii/0890540189900023)</sup> 有了这些在VC维意义上匹配的上下界，PAC框架的样本复杂度刻画基本上是完整的。<sup>[12](https://www.theorempath.com/topics/pac-learning-framework)</sup>

## 学习的计算复杂度

样本复杂度只是其中一项代价。寻找与 \( m \) 个观测一致的假设这一学习问题属于NP，因为候选假设容易检验；但当学习器必须以固定格式（如DNF表达式）输出假设时，该问题可能是NP完全的；而在无限制格式（如任意多项式时间预测算法）下寻找一致假设是否NP完全，仍是一个未解问题。<sup>[8](https://www.cs.columbia.edu/~aho/cs3261/Lectures/L22-Introduction_to_PAC_Learning.html)</sup> 瓦利安特最初的表述同样围绕以下问题来界定可学习性：哪些概念类可以通过学习协议，在合理的多项式步数内学会。<sup>[2](https://mlanthology.org/misc/1984/valiant1984misc-theory/)</sup>

## 模型的假设与局限

**可测性。** PAC可学习性、一致Glivenko-Cantelli类与有限VC维之间的等价性仅在概念类满足特殊的可测性假设下成立，在这些假设下PAC可学习性甚至具有一致性。若没有这些假设，则存在一个经典例子——由Dudley和Durst在连续统假设下构造、后经Blumer、Ehrenfeucht、Haussler和Warmuth改编——它是一个VC维为一的概念类，却既不是一致Glivenko-Cantelli类，也不是一致PAC可学习的。研究学习理论集合论方面的数学家Vladimir Pestov于2011年证明，在马丁公理（一个比连续统假设温和得多的集合论假设）下，对每个概念类而言，PAC可学习性等价于有限VC维。<sup>[13](https://arxiv.org/abs/1104.2097)</sup>

**无分布假设。** 这一开创性等价性强烈依赖于PAC学习的无分布假设，即对手可以选择数据上的任意边缘分布。已知该模型在实践中过于对抗性，无法预测现代机器学习算法的成功；而若没有基本定理作为基线，对分布约束下学习的理论理解仍然有限。<sup>[14](https://arxiv.org/abs/2302.06285)</sup> 该模型在其基本形式中也是无噪声的，这是该框架教学材料中指出的标准批评之一。<sup>[15](https://www.mathematik.uni-muenchen.de/~deckert/teaching/SS17/ATML/media/PAC_learning_notes.pdf)</sup>

**扩展。** PAC框架已在若干方向上得到扩展。PAC-贝叶斯界由David McAllester在Shawe-Taylor和Williamson早期论述的基础上于1998年和1999年提出，分析随机化学习器的泛化，并已应用于深度神经网络。<sup>[16](https://bguedj.github.io/icml2019/)</sup> 预测性PAC可学习性被提出作为从可交换（非独立同分布）输入数据中学习的范式，其中简单的例子表明在一般可交换输入下没有非平凡的概念类是PAC可学习的。<sup>[17](https://arxiv.org/abs/1006.1129)</sup> 在差分隐私方面，Alon、Beimel、Moran和Stemmer展示了如何将可实现近似隐私PAC学习器转换为不可知学习器，尽管这种转换会使隐私性和样本复杂度有所变差。<sup>[11](https://differentialprivacy.org/private-pac/)</sup>

## References

1. [PAC learning, Tufts University lecture notes (Blumer)](https://www.cs.tufts.edu/~ablumer/ParamPAC/PAC.1.html)
2. [A Theory of the Learnable, ML Anthology (Valiant, CACM 1984)](https://mlanthology.org/misc/1984/valiant1984misc-theory/)
3. [Introduction, CWI (1607.00932)](https://ir.cwi.nl/pub/26422/1607.00932.pdf)
4. [PAC learning and VC dimension, Matt Log](https://mett29.github.io/posts/pac-learning-vc-dimension/)
5. [ml:theory:binary_classification, NLP Wiki, UC Santa Cruz](https://jlab.soe.ucsc.edu/nlp-wiki/doku.php?id=ml%3Atheory%3Abinary_classification)
6. [Learnability and the Vapnik-Chervonenkis dimension, Journal of the ACM 36(4), 1989](https://explore.openaire.eu/search/result?pid=10.1145%2F76359.76371)
7. [A general lower bound on the number of examples needed for learning, Information and Computation 82(3), 1989](https://www.sciencedirect.com/science/article/pii/0890540189900023)
8. [Lecture 22: Introduction to PAC Learning, Columbia University](https://www.cs.columbia.edu/~aho/cs3261/Lectures/L22-Introduction_to_PAC_Learning.html)
9. [Foundations of Machine Learning, HUST digital library](https://dlib.hust.edu.vn/bitstream/HUST/24963/1/OER000003225.pdf)
10. [MIT 6.S976/18.S996 Lecture 3 scribe notes](https://mlcrypto.mit.edu/course/scribe-notes/lec3_scribe.pdf)
11. [Differentially Private PAC Learning, differentialprivacy.org](https://differentialprivacy.org/private-pac/)
12. [PAC Learning Framework, TheoremPath](https://www.theorempath.com/topics/pac-learning-framework)
13. [Pestov, V. (2011). PAC learnability versus VC dimension: a footnote to a basic result of statistical learning. arXiv.](https://arxiv.org/abs/1104.2097)
14. [Do PAC-Learners Learn the Marginal Distribution? arXiv.](https://arxiv.org/abs/2302.06285)
15. [PAC Learning lecture notes, LMU Munich](https://www.mathematik.uni-muenchen.de/~deckert/teaching/SS17/ATML/media/PAC_learning_notes.pdf)
16. [A Primer on PAC-Bayesian Learning, ICML 2019 tutorial (Guedj and Shawe-Taylor)](https://bguedj.github.io/icml2019/)
17. [Predictive PAC learnability: a paradigm for learning from exchangeable input data. arXiv.](https://arxiv.org/abs/1006.1129)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Machine learning methods › Learning theory and generalization › Probably approximately correct (PAC) learning

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/probably-approximately-correct-learning

English original: https://www.edgepedia.org/probably-approximately-correct-learning
