Perceptron
A perceptron is the most basic linear binary classification model; it decides the class by taking a weighted sum of input features and then passing it through a threshold function. Proposed in 1958 by the American psychologist Frank Rosenblatt, it is the earliest neural network model able to "learn from data" and the ancestor of all deep learning models today.
Core Principles
The mathematical form of the perceptron is extremely simple: the input vector x is dotted with the weight vector w, the bias b is added to give z = w * x + b, and a sign function outputs +1 or -1. Geometrically this is equivalent to finding a hyperplane in a high-dimensional space that separates the two classes of samples. The direction of the weight vector is the normal of the hyperplane, and the bias determines the distance from the hyperplane to the origin.
The learning rule is equally plain: iterate over the training samples; if the classification is correct, do nothing; if it is wrong, update the weights as w <- w + eta * y * x, where eta is the learning rate and y is the true label. This rule is called the perceptron learning rule, and Rosenblatt proved its convergence. Its intuitive meaning is: push the hyperplane a little toward the misclassified sample until all samples are correctly placed on the two sides. Between 1957 and 1960 Rosenblatt implemented the Mark I Perceptron at the Cornell Aeronautical Laboratory, using a perceptron array of 400 photoelectric elements to recognize simple images; the media at the time saw it as "an electronic brain that can learn".
The perceptron convergence theorem (Novikoff, 1962) gives a convergence guarantee: if the training set is linearly separable with margin gamma and the sample norm is bounded by R, then the number of misclassifications is bounded by (R/gamma)^2. This theorem is both the source of its reliability and the exposure of its ceiling: the bound is independent of the data dimension but inversely proportional to the margin, so the smaller the margin the slower the convergence.
Key Points
Linearly separable limitation: in 1969 Minsky and Papert rigorously proved in the book "Perceptrons" that a single-layer perceptron cannot represent nonlinearly separable functions such as XOR. This conclusion was widely misread as "neural networks have no future" and became one of the important backgrounds for the shrinkage of research funding in the field over the following decade or so.
Activation function: early versions used a step function, which is non-differentiable, so updates could only rely on the error-driven rule; modern implementations commonly use sigmoid or ReLU, making it a unit of a differentiable network. This replacement is a necessary condition on the path to multi-layer networks and backpropagation.
Relationship with logistic regression: the two have the same structure and differ in loss function and optimization method. The perceptron uses 0-1 loss (error counting), while logistic regression uses cross-entropy and produces probability outputs. The perceptron does not produce calibrated probabilities, which is a major engineering shortcoming.
Multi-class extension: stacking single perceptrons into multiple output units and taking the highest score gives a multi-class perceptron; adding softmax and cross-entropy then yields the prototype of the modern classifier.
Common Misconceptions
Misconception one: that the perceptron has been superseded. In fact it is the smallest runnable unit for understanding neural networks, and the structure of a linear layer plus a threshold still exists in the classification head at the end of every network. Misconception two: equating "a single layer cannot solve XOR" with "multiple layers cannot either". A two-layer network with nonlinear activations can represent XOR; Minsky's book explicitly discussed the multi-layer problem, but algorithms for training multi-layer networks were lacking at the time. Misconception three: thinking that convergence of the perceptron means a unique result; in fact the solution depends on the order in which samples are traversed and on the initial weights.
Application Scenarios
Fast baselines for linearly separable tasks, teaching demonstrations of neural network principles, extremely low-power classification on embedded and hardware devices, rough judgment of text sentiment polarity, simple filters for online learning, spam keyword filtering, and as the final classification unit of a deep network.