The artificial neuron & the perceptron
◈ 4 cardsThe neuron model (Σw·x, threshold), McCulloch-Pitts logic gates, the perceptron delta-rule update, linear separability, and the XOR problem.
The artificial neuron
An artificial neuron has four parts: inputs , real-valued weights , an activation (the weighted sum), and a threshold/activation function that turns net into an output. The classic hard-limiter fires when and otherwise; folding the threshold in as a bias weight on a constant lets the same rule read .
McCulloch-Pitts (1943) showed such neurons compute any logic function. An AND gate uses weights on : only makes . An OR gate uses : any input with a fires. By composition you get every Boolean function — neural computation is Turing-complete in principle. But MP neurons are hand-wired, not learned.
The perceptron and its learning rule
The perceptron (Rosenblatt 1958) makes a single-layer threshold neuron learnable. After each example it nudges the weights toward the desired output :
where is the learning rate. If the output already matches , ; otherwise weights on the active inputs move to fix the error. The perceptron convergence theorem guarantees: if a weight vector that classifies all examples exists, the rule will find it.
Linear separability and XOR — the famous wall
The catch in the theorem is the word if. A perceptron computes a single hyperplane decision boundary, so it can only learn linearly separable problems — ones where a straight line (in 2D) splits the classes. AND and OR are linearly separable; XOR is not. The four XOR points cannot be split by any single line — the two positive points sit on a diagonal with the negatives on the other diagonal. No weights satisfy all four inequalities, so the perceptron rule oscillates forever on XOR.
Minsky and Papert’s 1969 analysis of exactly this limitation stalled neural-network research for years — until the hidden-layer fix of L8.6. The exercise trains a perceptron to 100% on AND and then watches it fail on XOR.