The perceptron computes ŷ = step(w^Tx + b), a linear decision boundary trained by nudging w toward misclassified points.
It provably converges on linearly separable data (the perceptron convergence theorem) but Minsky and Papert's 1969 analysis showed it cannot represent XOR — no single linear boundary separates XOR's four points correctly — a limitation that stalled neural network research for over a decade until multi-layer networks with nonlinear activations were shown capable of representing XOR and, more generally, arbitrary continuous functions.
Theorem 16.1 (Universal approximation, informal). A feedforward network with a single hidden layer of sufficient width and a non-polynomial activation function can approximate any continuous function on a compact domain to arbitrary accuracy.
This existence result (Cybenko 1989, Hornik 1991) says nothing about how many hidden units are needed in practice, nor whether such a network is learnable by gradient descent from finite data — it establishes only that the representational limitation of a single perceptron disappears once hidden layers and nonlinearity are introduced, which is why depth alone does not guarantee good generalization; the training dynamics (the companion book) matter just as much as expressive capacity.
Continue with the book
Explore the full treatment, worked examples, and exercises in The AI Algorithms Compendium.
Companion article for The AI Algorithms Compendium, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
