# 感知机

感知机是一种线性二分类器，它通过仅在误分类一个训练样本时调整权重向量来学习权重向量，并根据输入加权和的符号预测两类之一。康奈尔大学（Cornell University）的弗兰克·罗森布拉特（Frank Rosenblatt）于1957年将其描述为一种神经网络模型，“或可作为处理感知与记忆的系统的模型”；到1958年，他和同事已建成硬件实现 Mark I。<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup> 他1958年的论文将其呈现为一种大脑中信息存储与组织的概率模型：其中许多与某一反应相关联的刺激，即使彼此相似并激活许多相同的感觉输入，仍能以高于随机的概率被识别。<sup>[2](http://web.stanford.edu/class/psych209a/ReadingsByDate/01_30/Rosenblatt58Perceptron.pdf)</sup> 在其1962年著作《神经动力学原理》（*Principles of Neurodynamics*）中，他给出了形式定义：“感知机是一个由 S、A、R 单元组成的网络，具有可变交互矩阵 V，V 取决于网络过去活动状态的序列。”<sup>[3](https://gwern.net/doc/ai/nn/1962-rosenblatt-principlesofneurodynamics.pdf)</sup> 莱昂·博图（Léon Bottou）指出，感知机当时被视为一种范式转变，是第一部作为信息处理装置连接大脑与机器的学习机器。<sup>[4](https://leon.bottou.org/publications/pdf/perceptrons-2017.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 发明 | 由弗兰克·罗森布拉特（康奈尔）于1957年描述；1958年建成 Mark I 硬件<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup> |
| 决策规则 | 根据输入加权和的符号进行预测；边界是线性超平面，因此只能分类线性可分数据<sup>[5](https://hagan.okstate.edu/4_Perceptron.pdf)</sup> |
| 更新规则 | 权重仅在出错时改变：正误差时加上输入向量，负误差时减去输入向量<sup>[6](https://isl.stanford.edu/~widrow/papers/j199030years.pdf)</sup> |
| 收敛界 | 若数据以间隔 γ 和最大范数 R 可分，则至多 (R/γ)² 次错误，与维数和样本量无关<sup>[7](https://see.stanford.edu/materials/aimlcs229/cs229-notes6.pdf)</sup><sup> • </sup><sup>[8](https://web.engr.oregonstate.edu/~huanlian/teaching/ML/2025fall/unit2/convergence.html)</sup> |
| 不可分情形 | 普通算法永不收敛；弗罗因德和沙皮尔（Freund and Schapire，1999）给出了依赖于训练步数的错误界<sup>[9](https://www.cs.cornell.edu/courses/cs4780/2018fa/lectures/lecturenote03.html)</sup><sup> • </sup><sup>[10](https://academicweb.nd.edu/~dchiang/TaND/2024/chapter2.pdf)</sup> |
| 著名局限 | 明斯基和佩珀特（Minsky and Papert，1969）证明没有单层感知机能够计算异或（XOR）<sup>[10](https://academicweb.nd.edu/~dchiang/TaND/2024/chapter2.pdf)</sup> |
| 现代地位 | 因其理论而被讲授，而非按原样使用；其误差驱动更新仍是深度网络训练方式的基础<sup>[11](https://stat154.berkeley.edu/fall-2026/lectures/unit2.html)</sup><sup> • </sup><sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup> |

## 算法如何工作

感知机是一种单层网络，将输入分为两类，并在预测错误后自我调整，经过反复迭代可以变得更准确。<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup> 训练逐样本进行。算法计算输入特征的加权和，并根据其符号预测类别。如果决策正确，则什么都不变：该规则“若输出决策正确，则不调整权重”。<sup>[6](https://isl.stanford.edu/~widrow/papers/j199030years.pdf)</sup> 如果决策与期望响应不一致，则当误差为正时，适应过程将输入向量加到权重向量上；当误差为负时则减去输入向量。<sup>[6](https://isl.stanford.edu/~widrow/papers/j199030years.pdf)</sup> 用常用记号表示，更新为

\[ w_{ij}(t+1) = w_{ij}(t) + \eta \, x_i \, e_j, \]

其中 η 是学习率。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup> 斯坦福（Stanford）CS229 讲义以最简洁的形式陈述该规则：感知机仅在其犯错的那些样本上更新权重，权重初始化为零。<sup>[7](https://see.stanford.edu/materials/aimlcs229/cs229-notes6.pdf)</sup>

几何上，学习到的权重定义了一个线性边界，即一个超平面；感知机只能对能被这样的边界分开的输入向量进行分类。<sup>[5](https://hagan.okstate.edu/4_Perceptron.pdf)</sup>

## 理论保证与局限

感知机收敛定理由诺维科夫（Novikoff）于1962年证明，并独立地与布洛克（Block）相关联，是学习理论最早的结果之一，可能也是最早基于间隔概念的结果之一。<sup>[13](https://cs.nyu.edu/~mohri/pub/pmb.pdf)</sup> 在斯坦福讲授的布洛克–诺维科夫形式中：给定一列样本满足 \( \|x^{(i)}\| \le D \)，以及一个单位向量 \( u \)，它以至少 \( \gamma \) 的间隔将它们分开，则感知机犯下的总错误数至多 \( (D/\gamma)^2 \)。<sup>[7](https://see.stanford.edu/materials/aimlcs229/cs229-notes6.pdf)</sup> 俄勒冈州立大学（Oregon State）的表述将同一结果表述为：对于间隔 \( \delta \)，错误至多 \( R^2/\delta^2 \)，并明确说明了缩放关系：该界与维数无关，与数据规模无关，并随分离难度二次缩放，因此间隔越宽，收敛越快。<sup>[8](https://web.engr.oregonstate.edu/~huanlian/teaching/ML/2025fall/unit2/convergence.html)</sup> 伯克利（Berkeley）的一种表述使用单位范数分离器，在条件 \( y_n x_n^T \beta^* > \gamma > 0 \) 下给出至多 \( 3/\gamma^2 \) 的间隔错误。<sup>[14](https://stat154.berkeley.edu/spring-2025/lectures/unit3/unit_3_perceptron.html)</sup>

两项局限补全了图景。如果数据不是线性可分的，算法会无限循环。<sup>[9](https://www.cs.cornell.edu/courses/cs4780/2018fa/lectures/lecturenote03.html)</sup> 对于该情形，弗罗因德和沙皮尔（Freund and Schapire）于1999年给出了一个错误界，尽管该界必须依赖于训练步数。<sup>[10](https://academicweb.nd.edu/~dchiang/TaND/2024/chapter2.pdf)</sup> 康奈尔 CS4780 讲义称感知机可以说是第一个具有强形式保证的算法：可分数据在有限次更新后产生一个分离超平面。<sup>[9](https://www.cs.cornell.edu/courses/cs4780/2018fa/lectures/lecturenote03.html)</sup> 罗森布拉特本人1962年的表述预见了这一强调：基本定理关注的是在误差修正过程下，训练过程能否达到一个解，而不仅仅是解是否存在。<sup>[3](https://gwern.net/doc/ai/nn/1962-rosenblatt-principlesofneurodynamics.pdf)</sup>

## 历史：从 Mark I 到第一次人工智能寒冬

罗森布拉特于1957年在康奈尔描述了感知机，Mark I 机器到1958年已经存在；史密森学会（Smithsonian）保存有该装置的记录，称其为用于感知和记忆的机器。<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup><sup> • </sup><sup>[15](https://americanhistory.si.edu/collections/object/nmah_334414)</sup> 1969年由[马文·明斯基](https://www.edgepedia.org/zh/marvin-minsky)（Marvin Minsky）和[西摩·佩珀特](https://www.edgepedia.org/zh/seymour-papert)（Seymour Papert）撰写的《感知机：计算几何导论》（*Perceptrons: An Introduction to Computational Geometry*）对单层感知机的计算能力和局限进行了严格的数学考察，并产生了巨大影响。<sup>[16](https://bnaskrecki.faculty.wmi.amu.edu.pl/nnets/_build/html/part3_limitations/ch09_minsky_papert.html)</sup> 其核心否定结果是一个定理：不存在计算异或（XOR）函数的感知机 \( \mathrm{lin}: \mathbb{R}^2 \to \mathbb{R} \)。<sup>[10](https://academicweb.nd.edu/~dchiang/TaND/2024/chapter2.pdf)</sup>

对于这在多大程度上导致了随后的衰落，可靠来源的说法不一。《康奈尔纪事报》（Cornell Chronicle）写道，该书“抨击了罗森布拉特的工作，并实质上决定了其命运”，随着热情消退、联邦人工智能研究经费枯竭，进入所谓的人工智能寒冬时代。<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup> 一篇2024年的教材章节对因果关系有所保留，称该定理“部分导致了20世纪70年代的第一次人工智能寒冬”。<sup>[10](https://academicweb.nd.edu/~dchiang/TaND/2024/chapter2.pdf)</sup> 哈根教材（Hagan textbook）同样仅将20世纪70年代对神经网络研究兴趣的下降“部分”归因于基本感知机无法解决如此简单的问题，并补充说罗森布拉特研究过更复杂的网络，但始终未能有效地将感知机规则扩展到这些网络。<sup>[5](https://hagan.okstate.edu/4_Perceptron.pdf)</sup> 罗森布拉特于1971年去世；明斯基于1969年获得图灵奖（A.M. Turing Award）。<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup> 明斯基–佩珀特专著本身将术语的创造归功于罗森布拉特，并指出基本思想已由他人发现，而且感知机学习结果直到1986年鲁梅尔哈特（Rumelhart）和麦克利兰（McClelland）的著作出版后才为广泛读者所知。<sup>[17](https://tdlc.ucsd.edu/documents/Perceptrons%20Monograph.pdf)</sup>

## 从感知机到多层感知机

单层感知机在线性不可分模式上的失败是结构性的：其决策面是一个超平面。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup><sup> • </sup><sup>[5](https://hagan.okstate.edu/4_Perceptron.pdf)</sup> 罗森布拉特的机器只有一层，而现代网络可以有数百万甚至数十亿参数；康奈尔的托尔斯滕·约阿希姆斯（Thorsten Joachims）指出，罗森布拉特的算法至今仍是深度网络训练方式的基础，尽管罗森布拉特不知道如何训练多层。<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup><sup> • </sup><sup>[27](https://developer.nvidia.com/discover/artificial-neural-network)</sup> 复兴出现在1986年，鲁梅尔哈特、辛顿（Hinton）和威廉姆斯（Williams）使用反向传播算法训练多层感知机（MLP），后来发现韦尔博斯（Werbos）已于1974年描述过该算法。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup> 用可微激活函数取代阶跃函数后，具有连续 S 形激活函数的三层 MLP 可以任意精度逼近任何连续多元函数，从而消除了异或所暴露的表示障碍。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup>

## 变体与扩展

若干变体处理不可分情形或扩展几何。威德罗（Widrow）和霍夫（Hoff）于20世纪60年代提出 Adaline，用最小均方（LMS）方法训练；感知机规则与 alpha-LMS 算法相同，只是用一半量化器误差代替归一化线性误差。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup><sup> • </sup><sup>[6](https://isl.stanford.edu/~widrow/papers/j199030years.pdf)</sup> 由堆叠 Adaline 层构成的 Madaline 仍无法解决线性不可分问题，因为连续的线性层会坍缩为一层。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup> *口袋算法*（pocket algorithm）增加一个检查修正以终止感知机学习算法，保留连续迭代中保持不变次数最多的权重向量作为目前最佳解，以减少错误分类率；其收敛定理对整数或有理输入成立。相关变体包括梅斯规则（Mays' rule）、何–卡希亚普规则（Ho–Kashyap rules）、投票感知机、margitron 和热感知机。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup> *核感知机*（kernel perceptron）遵循艾泽曼等人（Aizerman et al.，1964）的工作，使用正定核 K 将算法扩展到非线性分离器；在其错误界分析中，平方范数项被替换为在发生更新的点上核矩阵的迹 \( \mathrm{Tr}[K] \)。<sup>[13](https://cs.nyu.edu/~mohri/pub/pmb.pdf)</sup>

## 与相关分类器的比较

感知机本质上由其更新规则定义，而逻辑回归则从概率视角出发，以指数族模型和对凸目标的梯度更新为依据；对于线性可分数据，逻辑回归似然永远无法用有限权重向量真正最大化。<sup>[18](https://www.cs.utexas.edu/~gdurrett/courses/online-course/perc-lr-connections.pdf)</sup> 感知机损失在 \( y w \cdot f(x) > 0 \) 时为0，否则为 \( -y w \cdot f(x) \)，这是一种用间隔表示的类合页损失。<sup>[18](https://www.cs.utexas.edu/~gdurrett/courses/online-course/perc-lr-connections.pdf)</sup> 在判别模型的并排分类中，感知机表现为非概率、合页损失、基于优化的学习，以及用平均或早停避免过拟合；逻辑回归则是概率判别式，使用条件似然损失和正则化惩罚。<sup>[19](https://people.cs.georgetown.edu/cosc572/s21/07_discriminative.pdf)</sup> 与支持向量机（SVM）相比，ICML 2004 的一篇论文表明，在简单条件下感知机等价于一个 SVM，而且即使没有间隔最大化，学习率或早停也能控制间隔；在某些假设下，MLP 表现为一种 SVM 混合体，在隐藏层空间中最大化间隔。<sup>[20](https://dl.acm.org/doi/10.1145/1015330.1015415)</sup>

## 数字概览

支配感知机训练的量很少且刻画充分。错误界 \( (R/\gamma)^2 \) 仅取决于数据半径与间隔之比，因此间隔小会使算法更慢，而对于不可分数据它根本不收敛。<sup>[8](https://web.engr.oregonstate.edu/~huanlian/teaching/ML/2025fall/unit2/convergence.html)</sup><sup> • </sup><sup>[21](https://cseweb.ucsd.edu/~yuxiangw/classes/DSC240-2026Winter/Lectures/Lecture5_perceptron.pdf)</sup> 对于多层感知机，当参数数量 P 相对于 N 个训练样本按 \( N^{1/3} \) 缩放时，可实现近似误差与估计误差之间的最佳权衡，并将泛化误差保持在 \( O(1/P) \)。<sup>[12](https://www.mdpi.com/2227-7390/10/24/4730)</sup>

## 使用与近期研究

当前伯克利课程材料将普通感知机描述为20世纪50年代的算法，“如今实际上并不在实践中使用”，因其理论作用而保留。<sup>[11](https://stat154.berkeley.edu/fall-2026/lectures/unit2.html)</sup> 然而，其误差驱动更新仍是深度网络训练的基础。<sup>[1](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)</sup> 近期研究在多个方向保持该模型的活力。一篇2026年施普林格（Springer）关于量子感知机学习的文章提出混合和全量子割平面算法，在理想化模型中具有 \( O^{*}(D \log(1/\gamma)) \) 次更新和对训练样本的 \( O(\sqrt{N}) \) 依赖，并报告称先前的量子版本空间证明基于一种基于间隔的采样假设，该假设在特征维数 \( D > 2 \) 时在理论上存在缺陷。<sup>[22](https://link.springer.com/article/10.1007/s42484-026-00406-4)</sup> 一篇2026年《神经计算》（Neural Computation）论文研究具有乘性间隔的多类线性感知机更新规则。<sup>[23](http://arxiv.org/pdf/2608.30028)</sup> 一篇2026年 arXiv 预印本给出了非对称二值感知机精确在线阈值的计算机辅助证明，将此前任何多项式时间算法（在线或离线）可证明达到的最佳密度提高了两倍以上。<sup>[24](https://arxiv.org/abs/2609.02124)</sup> 在教育方面，一篇美国工程教育学会（ASEE）会议论文描述了一个四阶段高中课程，通过 Google Teachable Machine、自定义交互式模拟以及在 MNIST 数字分类上的 Java 实现来教授感知机。<sup>[25](https://nemo.asee.org/public/conferences/374/papers/50309/view)</sup> 一篇 MDPI《熵》（MDPI Entropy）论文将多项式感知机描述为紧凑、可解释的模型，其显式多项式结构无需事后解释方法即可提供直接的分析洞见。<sup>[26](https://www.mdpi.com/1099-4300/28/4/453)</sup>

## References

1. [Professor's perceptron paved the way for AI – 60 years too soon, Cornell Chronicle (2019)](https://news.cornell.edu/stories/2019/09/professors-perceptron-paved-way-ai-60-years-too-soon)
2. [F. Rosenblatt (1958). The Perceptron: A Probabilistic Model for Information Storage and Organization in the Brain, Psychological Review](http://web.stanford.edu/class/psych209a/ReadingsByDate/01_30/Rosenblatt58Perceptron.pdf)
3. [F. Rosenblatt (1962). Principles of Neurodynamics: Perceptrons and the Theory of Brain Mechanisms](https://gwern.net/doc/ai/nn/1962-rosenblatt-principlesofneurodynamics.pdf)
4. [L. Bottou (2017). Perceptrons: preface/essay](https://leon.bottou.org/publications/pdf/perceptrons-2017.pdf)
5. [Hagan, Demuth, Beale. Neural Network Design, Chapter 4: Perceptron Learning Rule](https://hagan.okstate.edu/4_Perceptron.pdf)
6. [B. Widrow, M. Lehr (1990). 30 Years of Adaptive Neural Networks: Perceptron, Madaline, and Backpropagation, Proceedings of the IEEE](https://isl.stanford.edu/~widrow/papers/j199030years.pdf)
7. [CS229 Lecture Notes, Part VI: The Perceptron and Large Margin Classifiers, Stanford](https://see.stanford.edu/materials/aimlcs229/cs229-notes6.pdf)
8. [Perceptron convergence, Oregon State University ML course, Fall 2025](https://web.engr.oregonstate.edu/~huanlian/teaching/ML/2025fall/unit2/convergence.html)
9. [Lecture 3: The Perceptron, Cornell CS4780 (2018)](https://www.cs.cornell.edu/courses/cs4780/2018fa/lectures/lecturenote03.html)
10. [Chapter 2: Perceptrons, Textbook draft, D. Chiang, Notre Dame (2024)](https://academicweb.nd.edu/~dchiang/TaND/2024/chapter2.pdf)
11. [The Perceptron Algorithm, Berkeley Stat 154, Fall 2026](https://stat154.berkeley.edu/fall-2026/lectures/unit2.html)
12. [Perceptron: Learning, Generalization, Model Selection, Fault Tolerance, and Role in the Deep Learning Era, Mathematics (MDPI, 2022)](https://www.mdpi.com/2227-7390/10/24/4730)
13. [M. Mohri et al. Perceptron Mistake Bounds, NYU](https://cs.nyu.edu/~mohri/pub/pmb.pdf)
14. [The Perceptron Algorithm, Berkeley Stat 154, Spring 2025](https://stat154.berkeley.edu/spring-2025/lectures/unit3/unit_3_perceptron.html)
15. [Mark I Perceptron record, Smithsonian National Museum of American History](https://americanhistory.si.edu/collections/object/nmah_334414)
16. [Chapter 9: Minsky and Papert's Analysis, Classical Foundations of Artificial Neural Networks](https://bnaskrecki.faculty.wmi.amu.edu.pl/nnets/_build/html/part3_limitations/ch09_minsky_papert.html)
17. [M. Minsky, S. Papert. Perceptrons (monograph, UCSD copy)](https://tdlc.ucsd.edu/documents/Perceptrons%20Monograph.pdf)
18. [Connections between Perceptron and Logistic Regression (and SVM), G. Durrett, UT Austin](https://www.cs.utexas.edu/~gdurrett/courses/online-course/perc-lr-connections.pdf)
19. [Linear Models for Classification: Discriminative Learning, Georgetown CS](https://people.cs.georgetown.edu/cosc572/s21/07_discriminative.pdf)
20. [Links between perceptrons, MLPs and SVMs, ICML 2004, ACM](https://dl.acm.org/doi/10.1145/1015330.1015415)
21. [DSC 240 Lecture 5: Perceptron, UCSD, Winter 2026](https://cseweb.ucsd.edu/~yuxiangw/classes/DSC240-2026Winter/Lectures/Lecture5_perceptron.pdf)
22. [On quantum perceptron learning via quantum search, Quantum Machine Intelligence, Springer (2026)](https://link.springer.com/article/10.1007/s42484-026-00406-4)
23. [Multiclass Linear Perceptrons with Multiplicative Margins, Neural Computation (2026)](http://arxiv.org/pdf/2608.30028)
24. [The Exact Online Threshold for the Asymmetric Binary Perceptron, arXiv (2026)](https://arxiv.org/abs/2609.02124)
25. [Interactive Simulation Tool for Single Layer Perceptron in High School CS Education, ASEE](https://nemo.asee.org/public/conferences/374/papers/50309/view)
26. [Polynomial Perceptrons for Compact, Robust, and Interpretable Machine Learning Models, Entropy (MDPI)](https://www.mdpi.com/1099-4300/28/4/453)
27. [Artificial Neural Network](https://developer.nvidia.com/discover/artificial-neural-network)

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

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Neural network architectures › Feedforward and multilayer perceptron architectures

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/perceptron

English original: https://www.edgepedia.org/perceptron
