# Perceptron

__: Algorithm for supervised learning of binary classifiers__

**Short description**Machine learning and data mining |
---|

In machine learning, the **perceptron** (or **McCulloch–Pitts neuron**) is an algorithm for supervised learning of binary classifiers. A binary classifier is a function which can decide whether or not an input, represented by a vector of numbers, belongs to some specific class.^{[1]} It is a type of linear classifier, i.e. a classification algorithm that makes its predictions based on a linear predictor function combining a set of weights with the feature vector.

## History

The perceptron was invented in 1943 by Warren McCulloch and Walter Pitts.^{[5]} The first hardware implementation was Mark I Perceptron machine built in 1957 at the Cornell Aeronautical Laboratory by Frank Rosenblatt,^{[6]} funded by the Information Systems Branch of the United States Office of Naval Research and the Rome Air Development Center. It was first publicly demonstrated on 23 June 1960.^{[7]} The machine was "part of a previously secret four-year NPIC [the US' National Photographic Interpretation Center] effort from 1963 through 1966 to develop this algorithm into a useful tool for photo-interpreters".^{[8]}

Rosenblatt described the details of the perceptron in a 1958 paper.^{[9]} His organization of a perceptron is constructed of three kinds of cells ("units"): AI, AII, R, which stand for "projection", "association" and "response".

Rosenblatt's project was funded under Contract Nonr-401(40) "Cognitive Systems Research Program", which lasted from 1959 to 1970,^{[10]} and Contract Nonr-2381(00) "Project PARA" ("PARA" means "Perceiving and Recognition Automata"), which lasted from 1957^{[6]} to 1963.^{[11]}

### Mark I Perceptron machine

The perceptron was intended to be a machine, rather than a program, and while its first implementation was in software for the IBM 704, it was subsequently implemented in custom-built hardware as the "Mark I perceptron" with the project name "Project PARA",^{[12]} designed for image recognition. The machine is currently in Smithsonian National Museum of American History.^{[13]}

The Mark I Perceptron has 3 layers.

- An array of 400 photocells arranged in a 20x20 grid, named "sensory units" (S-units), or "input retina". Each S-unit can connect to up to 40 A-units.
- A hidden layer of 512 perceptrons, named "association units" (A-units).
- An output layer of 8 perceptrons, named "response units" (R-units).

Rosenblatt called this three-layered perceptron network the *alpha-perceptron*, to distinguish it from other perceptron models he experimented with.^{[7]}

The S-units are connected to the A-units randomly (according to a table of random numbers) via a plugboard (see photo), to "eliminate any particular intentional bias in the perceptron". The connection weights are fixed, not learned. Rosenblatt was adamant about the random connections, as he believed the retina was randomly connected to the visual cortex, and he wanted his perceptron machine to resemble human visual perception.^{[14]}

The A-units are connected to the R-units, with adjustable weights encoded in potentiometers, and weight updates during learning were performed by electric motors.^{[2]}^{:193}The hardware details are in an operators' manual.^{[12]}

In a 1958 press conference organized by the US Navy, Rosenblatt made statements about the perceptron that caused a heated controversy among the fledgling AI community; based on Rosenblatt's statements, * The New York Times * reported the perceptron to be "the embryo of an electronic computer that [the Navy] expects will be able to walk, talk, see, write, reproduce itself and be conscious of its existence."

^{[15]}

*Principles of Neurodynamics* (1962)

Rosenblatt described his experiments with many variants of the Perceptron machine in a book *Principles of Neurodynamics* (1962). The book is a published version of the 1961 report.^{[16]}

Among the variants are:

- "cross-coupling" (connections between units within the same layer) with possibly closed loops,
- "back-coupling" (connections from units in a later layer to units in a previous layer),
- four-layer perceptrons where the last two layers have adjustible weights (and thus a proper multilayer perceptron),
- incorporating time-delays to perceptron units, to allow for processing sequential data,
- analyzing audio (instead of images).

The machine was shipped from Cornell to Smithsonian in 1967, under a government transfer administered by the Office of Naval Research.^{[8]}

*Perceptrons* (1969)

Although the perceptron initially seemed promising, it was quickly proved that perceptrons could not be trained to recognise many classes of patterns. This caused the field of neural network research to stagnate for many years, before it was recognised that a feedforward neural network with two or more layers (also called a multilayer perceptron) had greater processing power than perceptrons with one layer (also called a single-layer perceptron).

Single-layer perceptrons are only capable of learning linearly separable patterns.^{[17]} For a classification task with some step activation function, a single node will have a single line dividing the data points forming the patterns. More nodes can create more dividing lines, but those lines must somehow be combined to form more complex classifications. A second layer of perceptrons, or even linear nodes, are sufficient to solve many otherwise non-separable problems.

In 1969, a famous book entitled *Perceptrons* by Marvin Minsky and Seymour Papert showed that it was impossible for these classes of network to learn an XOR function. It is often believed (incorrectly) that they also conjectured that a similar result would hold for a multi-layer perceptron network. However, this is not true, as both Minsky and Papert already knew that multi-layer perceptrons were capable of producing an XOR function. (See the page on *Perceptrons (book)* for more information.) Nevertheless, the often-miscited Minsky/Papert text caused a significant decline in interest and funding of neural network research. It took ten more years until neural network research experienced a resurgence in the 1980s.^{[17]} This text was reprinted in 1987 as "Perceptrons - Expanded Edition" where some errors in the original text are shown and corrected.

### Subsequent work

Rosenblatt continued working on perceptrons despite diminishing funding. The last attempt was Tobermory, built between 1961 and 1967, built for speech recognition.^{[18]} It occupied an entire room.^{[19]} It had 4 layers with 12,000 weights implemented by toroidal magnetic cores. By the time of its completion, simulation on digital computers had become faster than purpose-built perceptron machines.^{[20]} He died in a boating accident in 1971.

The kernel perceptron algorithm was already introduced in 1964 by Aizerman et al.^{[21]} Margin bounds guarantees were given for the Perceptron algorithm in the general non-separable case first by Freund and Schapire (1998),^{[1]} and more recently by Mohri and Rostamizadeh (2013) who extend previous results and give new L1 bounds.^{[22]}

The perceptron is a simplified model of a biological neuron. While the complexity of biological neuron models is often required to fully understand neural behavior, research suggests a perceptron-like linear model can produce some behavior seen in real neurons.^{[23]}

The solution spaces of decision boundaries for all binary functions and learning behaviors are studied in.^{[24]}

## Definition

In the modern sense, the perceptron is an algorithm for learning a binary classifier called a threshold function: a function that maps its input [math]\displaystyle{ \mathbf{x} }[/math] (a real-valued vector) to an output value [math]\displaystyle{ f(\mathbf{x}) }[/math] (a single binary value):

- [math]\displaystyle{ f(\mathbf{x}) = \theta(\mathbf{w} \cdot \mathbf{x} + b) }[/math]

where [math]\displaystyle{ \theta }[/math] is the heaviside step-function, [math]\displaystyle{ \mathbf{w} }[/math] is a vector of real-valued weights, [math]\displaystyle{ \mathbf{w} \cdot \mathbf{x} }[/math] is the dot product [math]\displaystyle{ \sum_{i=1}^m w_i x_i }[/math], where m is the number of inputs to the perceptron, and b is the *bias*. The bias shifts the decision boundary away from the origin and does not depend on any input value.

Equivalently, since [math]\displaystyle{ \mathbf{w}\cdot \mathbf{x} + b = (\mathbf{w}, b) \cdot (\mathbf{x}, 1) }[/math], we can add the bias term [math]\displaystyle{ b }[/math] as another weight [math]\displaystyle{ \mathbf{w}_{m+1} }[/math] and add a coordinate [math]\displaystyle{ 1 }[/math] to each input [math]\displaystyle{ \mathbf{x} }[/math], and then write it as a linear classifier that passes the origin:[math]\displaystyle{ f(\mathbf{x}) = \theta(\mathbf{w} \cdot \mathbf{x}) }[/math]

The binary value of [math]\displaystyle{ f(\mathbf{x}) }[/math] (0 or 1) is used to perform binary classification on [math]\displaystyle{ \mathbf{x} }[/math] as either a positive or a negative instance. Spatially, the bias shifts the position (though not the orientation) of the planar decision boundary.

In the context of neural networks, a perceptron is an artificial neuron using the Heaviside step function as the activation function. The perceptron algorithm is also termed the **single-layer perceptron**, to distinguish it from a multilayer perceptron, which is a misnomer for a more complicated neural network. As a linear classifier, the single-layer perceptron is the simplest feedforward neural network.

## Power of representation

### Information theory

From an information theory point of view, a single perceptron with *K* inputs has a capacity of *2K* bits of information.^{[25]} This result is due to Thomas Cover.^{[26]}

Specifically let [math]\displaystyle{ T(N, K) }[/math] be the number of ways to linearly separate *N* points in *K* dimensions, then[math]\displaystyle{ T(N, K)=\left\{\begin{array}{cc}
2^N & K \geq N \\
2 \sum_{k=0}^{K-1}\left(\begin{array}{c}
N-1 \\
k
\end{array}\right) & K\lt N
\end{array}\right. }[/math]When *K* is large, [math]\displaystyle{ T(N, K)/2^N }[/math] is very close to one when [math]\displaystyle{ N \leq 2K }[/math], but very close to zero when [math]\displaystyle{ N\gt 2K }[/math]. In words, one perceptron unit can almost certainly memorize a random assignment of binary labels on N points when [math]\displaystyle{ N \leq 2K }[/math], but almost certainly not when [math]\displaystyle{ N\gt 2K }[/math].

### Boolean function

When operating on only binary inputs, a perceptron is called a linearly separable Boolean function, or threshold Boolean function. The sequence of numbers of threshold Boolean functions on n inputs is OEIS A000609. The value is only known exactly up to [math]\displaystyle{ n=9 }[/math] case, but the order of magnitude is known quite exactly: it has upper bound [math]\displaystyle{ 2^{n^2 - n \log_2 n + O(n)} }[/math] and lower bound [math]\displaystyle{ 2^{n^2 - n \log_2 n - O(n)} }[/math].^{[27]}

Any Boolean linear threshold function can be implemented with only integer weights. Furthermore, the number of bits necessary and sufficient for representing a single integer weight parameter is [math]\displaystyle{ \Theta(n \ln n) }[/math].^{[27]}

### Universal approximation theorem

A single perceptron can learn to classify any half-space. It cannot solve any linearly nonseparable vectors, such as the Boolean exclusive-or problem (the famous "XOR problem").

A perceptron network with **one hidden layer** can learn to classify any compact subset arbitrarily closely. Similarly, it can also approximate any compactly-supported continuous function arbitrarily closely. This is essentially a special case of the theorems by George Cybenko and Kurt Hornik.

### Conjunctively local perceptron

*Perceptrons* (Minsky and Papert, 1969) studied the kind of perceptron networks necessary to learn various boolean functions.

Consider a perceptron network with [math]\displaystyle{ n }[/math] input units, one hidden layer, and one output, similar to the Mark I Perceptron machine. It computes a boolean function of type [math]\displaystyle{ f: 2^n \to 2 }[/math]. They call a function **conjuctively local of order [math]\displaystyle{ k }[/math]**, iff there exists a perceptron network such that each unit in the hidden layer connects to at most [math]\displaystyle{ k }[/math] input units.

Theorem. (Theorem 3.1.1): The parity function is conjuctively local of order [math]\displaystyle{ n }[/math].

Theorem. (Section 5.5): The connectedness function is conjuctively local of order [math]\displaystyle{ \Omega(n^{1/2}) }[/math].

## Learning algorithm for a single-layer perceptron

Below is an example of a learning algorithm for a single-layer perceptron with a single output unit. For a single-layer perceptron with multiple output units, since the weights of one output unit are completely separate from all the others', the same algorithm can be run for each output unit.

For multilayer perceptrons, where a hidden layer exists, more sophisticated algorithms such as backpropagation must be used. If the activation function or the underlying process being modeled by the perceptron is nonlinear, alternative learning algorithms such as the delta rule can be used as long as the activation function is differentiable. Nonetheless, the learning algorithm described in the steps below will often work, even for multilayer perceptrons with nonlinear activation functions.

When multiple perceptrons are combined in an artificial neural network, each output neuron operates independently of all the others; thus, learning each output can be considered in isolation.

### Definitions

We first define some variables:

- [math]\displaystyle{ r }[/math] is the learning rate of the perceptron. Learning rate is a positive number usually chosen to be less than 1. The larger the value, the greater the chance for volatility in the weight changes.
- [math]\displaystyle{ y = f(\mathbf{z}) }[/math] denotes the
*output*from the perceptron for an input vector [math]\displaystyle{ \mathbf{z} }[/math]. - [math]\displaystyle{ D = \{(\mathbf{x}_1,d_1),\dots,(\mathbf{x}_s,d_s)\} }[/math] is the
*training set*of [math]\displaystyle{ s }[/math] samples, where:- [math]\displaystyle{ \mathbf{x}_j }[/math] is the [math]\displaystyle{ n }[/math]-dimensional input vector.
- [math]\displaystyle{ d_j }[/math] is the desired output value of the perceptron for that input.

We show the values of the features as follows:

- [math]\displaystyle{ x_{j,i} }[/math] is the value of the [math]\displaystyle{ i }[/math]th feature of the [math]\displaystyle{ j }[/math]th training
*input vector*. - [math]\displaystyle{ x_{j,0} = 1 }[/math].

To represent the weights:

- [math]\displaystyle{ w_i }[/math] is the [math]\displaystyle{ i }[/math]th value in the
*weight vector*, to be multiplied by the value of the [math]\displaystyle{ i }[/math]th input feature. - Because [math]\displaystyle{ x_{j,0} = 1 }[/math], the [math]\displaystyle{ w_0 }[/math] is effectively a bias that we use instead of the bias constant [math]\displaystyle{ b }[/math].

To show the time-dependence of [math]\displaystyle{ \mathbf{w} }[/math], we use:

- [math]\displaystyle{ w_i(t) }[/math] is the weight [math]\displaystyle{ i }[/math] at time [math]\displaystyle{ t }[/math].

### Steps

- Initialize the weights. Weights may be initialized to 0 or to a small random value. In the example below, we use 0.
- For each example j in our training set D, perform the following steps over the input [math]\displaystyle{ \mathbf{x}_j }[/math] and desired output [math]\displaystyle{ d_j }[/math]:
- Calculate the actual output:
- [math]\displaystyle{ \begin{align} y_j(t) &= f[\mathbf{w}(t)\cdot\mathbf{x}_j] \\ &= f[w_0(t)x_{j,0} + w_1(t)x_{j,1} + w_2(t)x_{j,2} + \dotsb + w_n(t)x_{j,n}] \end{align} }[/math]

- Update the weights:
- [math]\displaystyle{ w_i(t+1) = w_i(t) \; \boldsymbol{+} \; r\cdot(d_j - y_j(t)) x_{j,i} }[/math], for all features [math]\displaystyle{ 0 \leq i \leq n }[/math], [math]\displaystyle{ r }[/math] is the learning rate.

- Calculate the actual output:
- For offline learning, the second step may be repeated until the iteration error [math]\displaystyle{ \frac{1}{s} \sum_{j=1}^s |d_j - y_j(t)| }[/math] is less than a user-specified error threshold [math]\displaystyle{ \gamma }[/math], or a predetermined number of iterations have been completed, where
*s*is again the size of the sample set.

The algorithm updates the weights after every training sample in step 2b.

### Convergence of one perceptron on a linearly separable dataset

A single perceptron is a linear classifier. It can only reach a stable state if all input vectors are classified correctly. In case the training set D is *not* linearly separable, i.e. if the positive examples cannot be separated from the negative examples by a hyperplane, then the algorithm would not converge since there is no solution. Hence, if linear separability of the training set is not known a priori, one of the training variants below should be used. Detailed analysis and extensions to the convergence theorem are in Chapter 11 of *Perceptrons* (1969).

Linear separability is testable in time [math]\displaystyle{ \min(O(n^{d/2}), O(d^{2n}), O(n^{d-1} \ln n)) }[/math], where [math]\displaystyle{ n }[/math] is the number of data points, and [math]\displaystyle{ d }[/math] is the dimension of each point.^{[28]}

If the training set *is* linearly separable, then the perceptron is guaranteed to converge after making finitely many mistakes.^{[29]} The theorem is proved by Rosenblatt et al.

**Perceptron convergence theorem** — Given a dataset [math]\displaystyle{ D }[/math], such that [math]\displaystyle{ \max_{(x,y) \in D}\|x\|_2 = R }[/math], and it is linearly separable by some unit vector [math]\displaystyle{ w^* }[/math], with margin [math]\displaystyle{ \gamma }[/math]: [math]\displaystyle{ \gamma := \min_{(x,y) \in D} y(w^*\cdot x ) }[/math]

Then the perceptron 0-1 learning algorithm converges after making at most [math]\displaystyle{ (R/\gamma)^2 }[/math] mistakes, for any learning rate, and any method of sampling from the dataset.

The following simple proof is due to Novikoff (1962). The idea of the proof is that the weight vector is always adjusted by a bounded amount in a direction with which it has a negative dot product, and thus can be bounded above by *O*(√*t*), where t is the number of changes to the weight vector. However, it can also be bounded below by *O*(*t*) because if there exists an (unknown) satisfactory weight vector, then every change makes progress in this (unknown) direction by a positive amount that depends only on the input vector.

**Proof**

Suppose at step [math]\displaystyle{ t }[/math], the perceptron with weight [math]\displaystyle{ w_t }[/math] makes a mistake on data point [math]\displaystyle{ (x, y) }[/math], then it updates to [math]\displaystyle{ w_{t+1} = w_t + r(y-f_{w_t}(x) ) x }[/math].

If [math]\displaystyle{ y = 0 }[/math], the argument is symmetric, so we omit it.

WLOG, [math]\displaystyle{ y = 1 }[/math], then [math]\displaystyle{ f_{w_t}(x) = 0 }[/math], [math]\displaystyle{ f_{w^*}(x) = 1 }[/math], and [math]\displaystyle{ w_{t+1} = w_t + rx }[/math].

By assumption, we have separation with margins: [math]\displaystyle{ w^* \cdot x \geq \gamma }[/math] Thus,

[math]\displaystyle{ w^* \cdot w_{t+1} - w^* \cdot w_{t} = w^* \cdot (rx) \geq r\gamma }[/math]

Also [math]\displaystyle{ \|w_{t+1}\|_2^2 - \|w_{t}\|_2^2 = \|w_{t} + rx\|_2^2 - \|w_{t}\|_2^2 = 2r (w_t \cdot x) + r^2 \|x\|_2^2 }[/math] and since the perceptron made a mistake, [math]\displaystyle{ w_t \cdot x \leq 0 }[/math], and so

[math]\displaystyle{ \|w_{t+1}\|_2^2 - \|w_{t}\|_2^2 \leq \|x\|_2^2 \leq r^2R^2 }[/math]

Since we started with [math]\displaystyle{ w_0 = 0 }[/math], after making [math]\displaystyle{ N }[/math] mistakes, [math]\displaystyle{ \|w\|_2 \leq \sqrt{Nr^2R^2} }[/math] but also

[math]\displaystyle{ \|w\|_2 \geq w \cdot w^* \geq Nr\gamma }[/math]

Combining the two, we have [math]\displaystyle{ N \leq (R/\gamma)^2 }[/math]

While the perceptron algorithm is guaranteed to converge on *some* solution in the case of a linearly separable training set, it may still pick *any* solution and problems may admit many solutions of varying quality.^{[30]} The *perceptron of optimal stability*, nowadays better known as the linear support-vector machine, was designed to solve this problem (Krauth and Mezard, 1987).^{[31]}

### Perceptron cycling theorem

When the dataset is not linearly separable, then there is no way for a single perceptron to converge. However, we still have^{[32]}

**Perceptron cycling theorem** — If the dataset [math]\displaystyle{ D }[/math] has only finitely many points, then there exists an upper bound number [math]\displaystyle{ M }[/math], such that for any starting weight vector [math]\displaystyle{ w_0 }[/math] all weight vector [math]\displaystyle{ w_t }[/math] has norm bounded by [math]\displaystyle{ \|w_t\| \leq \|w_0\|+M }[/math]

This is proved first by Bradley Efron.^{[33]}

### Learning a Boolean function

Consider a dataset where the [math]\displaystyle{ x }[/math] are from [math]\displaystyle{ \{-1, +1\}^n }[/math], that is, the vertices of an n-dimensional hypercube centered at origin, and [math]\displaystyle{ y = \theta(x_i) }[/math]. That is, all data points with positive [math]\displaystyle{ x_i }[/math] have [math]\displaystyle{ y=1 }[/math], and vice versa. By the perceptron convergence theorem, a perceptron would converge after making at most [math]\displaystyle{ n }[/math] mistakes.

If we were to write a logical program to perform the same task, each positive example shows that one of the coordinates is the right one, and each negative example shows that its *complement* is a positive example. By collecting all the known positive examples, we eventually eliminate all but one coordinate, at which point the dataset is learned.^{[34]}

This bound is asymptotically tight in terms of the worst-case. In the worst-case, the first presented example is entirely new, and gives [math]\displaystyle{ n }[/math] bits of information, but each subsequent example would differ minimally from previous examples, and gives 1 bit each. After [math]\displaystyle{ n+1 }[/math] examples, there are [math]\displaystyle{ 2n }[/math] bits of information, which is sufficient for the perceptron (with [math]\displaystyle{ 2n }[/math] bits of information).^{[25]}

However, it is not tight in terms of expectation if the examples are presented uniformly at random, since the first would give [math]\displaystyle{ n }[/math] bits, the second [math]\displaystyle{ n/2 }[/math] bits, and so on, taking [math]\displaystyle{ O(\ln n) }[/math] examples in total.^{[34]}

## Variants

The pocket algorithm with ratchet (Gallant, 1990) solves the stability problem of perceptron learning by keeping the best solution seen so far "in its pocket". The pocket algorithm then returns the solution in the pocket, rather than the last solution. It can be used also for non-separable data sets, where the aim is to find a perceptron with a small number of misclassifications. However, these solutions appear purely stochastically and hence the pocket algorithm neither approaches them gradually in the course of learning, nor are they guaranteed to show up within a given number of learning steps.

The Maxover algorithm (Wendemuth, 1995) is "robust" in the sense that it will converge regardless of (prior) knowledge of linear separability of the data set.^{[35]} In the linearly separable case, it will solve the training problem – if desired, even with optimal stability (maximum margin between the classes). For non-separable data sets, it will return a solution with a small number of misclassifications. In all cases, the algorithm gradually approaches the solution in the course of learning, without memorizing previous states and without stochastic jumps. Convergence is to global optimality for separable data sets and to local optimality for non-separable data sets.

The Voted Perceptron (Freund and Schapire, 1999), is a variant using multiple weighted perceptrons. The algorithm starts a new perceptron every time an example is wrongly classified, initializing the weights vector with the final weights of the last perceptron. Each perceptron will also be given another weight corresponding to how many examples do they correctly classify before wrongly classifying one, and at the end the output will be a weighted vote on all perceptrons.

In separable problems, perceptron training can also aim at finding the largest separating margin between the classes. The so-called perceptron of optimal stability can be determined by means of iterative training and optimization schemes, such as the Min-Over algorithm (Krauth and Mezard, 1987)^{[31]} or the AdaTron (Anlauf and Biehl, 1989)).^{[36]} AdaTron uses the fact that the corresponding quadratic optimization problem is convex. The perceptron of optimal stability, together with the kernel trick, are the conceptual foundations of the support-vector machine.

The [math]\displaystyle{ \alpha }[/math]-perceptron further used a pre-processing layer of fixed random weights, with thresholded output units. This enabled the perceptron to classify analogue patterns, by projecting them into a binary space. In fact, for a projection space of sufficiently high dimension, patterns can become linearly separable.

Another way to solve nonlinear problems without using multiple layers is to use higher order networks (sigma-pi unit). In this type of network, each element in the input vector is extended with each pairwise combination of multiplied inputs (second order). This can be extended to an *n*-order network.

It should be kept in mind, however, that the best classifier is not necessarily that which classifies all the training data perfectly. Indeed, if we had the prior constraint that the data come from equi-variant Gaussian distributions, the linear separation in the input space is optimal, and the nonlinear solution is overfitted.

Other linear classification algorithms include Winnow, support-vector machine, and logistic regression.

### Multiclass perceptron

Like most other techniques for training linear classifiers, the perceptron generalizes naturally to multiclass classification. Here, the input [math]\displaystyle{ x }[/math] and the output [math]\displaystyle{ y }[/math] are drawn from arbitrary sets. A feature representation function [math]\displaystyle{ f(x,y) }[/math] maps each possible input/output pair to a finite-dimensional real-valued feature vector. As before, the feature vector is multiplied by a weight vector [math]\displaystyle{ w }[/math], but now the resulting score is used to choose among many possible outputs:

- [math]\displaystyle{ \hat y = \operatorname{argmax}_y f(x,y) \cdot w. }[/math]

Learning again iterates over the examples, predicting an output for each, leaving the weights unchanged when the predicted output matches the target, and changing them when it does not. The update becomes:

- [math]\displaystyle{ w_{t+1} = w_t + f(x, y) - f(x,\hat y). }[/math]

This multiclass feedback formulation reduces to the original perceptron when [math]\displaystyle{ x }[/math] is a real-valued vector, [math]\displaystyle{ y }[/math] is chosen from [math]\displaystyle{ \{0,1\} }[/math], and [math]\displaystyle{ f(x,y) = y x }[/math].

For certain problems, input/output representations and features can be chosen so that [math]\displaystyle{ \mathrm{argmax}_y f(x,y) \cdot w }[/math] can be found efficiently even though [math]\displaystyle{ y }[/math] is chosen from a very large or even infinite set.

Since 2002, perceptron training has become popular in the field of natural language processing for such tasks as part-of-speech tagging and syntactic parsing (Collins, 2002). It has also been applied to large-scale machine learning problems in a distributed computing setting.^{[37]}

## References

- ↑
^{1.0}^{1.1}Freund, Y.; Schapire, R. E. (1999). "Large margin classification using the perceptron algorithm".*Machine Learning***37**(3): 277–296. doi:10.1023/A:1007662407062. http://cseweb.ucsd.edu/~yfreund/papers/LargeMarginsUsingPerceptron.pdf. - ↑
^{2.0}^{2.1}Bishop, Christopher M. (2006).*Pattern Recognition and Machine Learning*. Springer. ISBN 0-387-31073-8. - ↑ Hecht-Nielsen, Robert (1991).
*Neurocomputing*(Reprint. with corrections ed.). Reading (Mass.) Menlo Park (Calif.) New York [etc.]: Addison-Wesley. p. 6, Figure 1.3 caption.. ISBN 978-0-201-09355-1. - ↑ Block, H. D. (1962-01-01). "The Perceptron: A Model for Brain Functioning. I" (in en).
*Reviews of Modern Physics***34**(1): 123–135. doi:10.1103/RevModPhys.34.123. ISSN 0034-6861. https://link.aps.org/doi/10.1103/RevModPhys.34.123. - ↑ McCulloch, W; Pitts, W (1943). "A Logical Calculus of Ideas Immanent in Nervous Activity".
*Bulletin of Mathematical Biophysics***5**(4): 115–133. doi:10.1007/BF02478259. https://www.bibsonomy.org/bibtex/13e8e0d06f376f3eb95af89d5a2f15957/schaul. - ↑
^{6.0}^{6.1}Rosenblatt, Frank (1957). "The Perceptron—a perceiving and recognizing automaton".*Report 85-460-1*(Cornell Aeronautical Laboratory). https://blogs.umass.edu/brain-wars/files/2016/03/rosenblatt-1957.pdf. - ↑
^{7.0}^{7.1}Nilsson, Nils J. (2009). "4.2.1. Perceptrons".*The Quest for Artificial Intelligence*. Cambridge: Cambridge University Press. ISBN 978-0-521-11639-8. https://www.cambridge.org/core/books/quest-for-artificial-intelligence/32C727961B24223BBB1B3511F44F343E. - ↑
^{8.0}^{8.1}O’Connor, Jack (2022-06-21). "Undercover Algorithm: A Secret Chapter in the Early History of Artificial Intelligence and Satellite Imagery" (in en).*International Journal of Intelligence and CounterIntelligence*: 1–15. doi:10.1080/08850607.2022.2073542. ISSN 0885-0607. https://www.tandfonline.com/doi/full/10.1080/08850607.2022.2073542. - ↑ Rosenblatt, F. (1958). "The perceptron: A probabilistic model for information storage and organization in the brain.".
*Psychological Review***65**(6): 386–408. doi:10.1037/h0042519. ISSN 1939-1471. http://dx.doi.org/10.1037/h0042519. - ↑ Rosenblatt, Frank, and CORNELL UNIV ITHACA NY.
*Cognitive Systems Research Program*. Technical report, Cornell University, 72, 1971. - ↑ Muerle, John Ludwig, and CORNELL AERONAUTICAL LAB INC BUFFALO NY.
*Project Para, Perceiving and Recognition Automata*. Cornell Aeronautical Laboratory, Incorporated, 1963. - ↑
^{12.0}^{12.1}^{12.2}Hay, John Cameron (1960).*Mark I perceptron operators' manual (Project PARA) /*. Buffalo: Cornell Aeronautical Laboratory. https://web.archive.org/web/20231027213510/https://apps.dtic.mil/sti/tr/pdf/AD0236965.pdf. - ↑ "Perceptron , Mark I" (in en). https://americanhistory.si.edu/collections/search/object/nmah_334414.
- ↑ Anderson, James A., ed (2000) (in en).
*Talking Nets: An Oral History of Neural Networks*. The MIT Press. doi:10.7551/mitpress/6626.003.0004. ISBN 978-0-262-26715-1. https://direct.mit.edu/books/book/4886/Talking-NetsAn-Oral-History-of-Neural-Networks. - ↑ Olazaran, Mikel (1996). "A Sociological Study of the Official History of the Perceptrons Controversy".
*Social Studies of Science***26**(3): 611–659. doi:10.1177/030631296026003005. - ↑
*Principles of neurodynamics: Perceptrons and the theory of brain mechanisms*, by Frank Rosenblatt, Report Number VG-1196-G-8, Cornell Aeronautical Laboratory, published on 15 March, 1961. The work reported in this volume has been carried out under Contract Nonr-2381 (00) (Project PARA) at C.A.L. and Contract Nonr-401(40), at Cornell Univensity. - ↑
^{17.0}^{17.1}Sejnowski, Terrence J. (2018) (in en).*The Deep Learning Revolution*. MIT Press. p. 47. ISBN 978-0-262-03803-4. https://books.google.com/books?id=9xZxDwAAQBAJ. - ↑ Rosenblatt, Frank (1962). “
*A Description of the Tobermory Perceptron*.” Cognitive Research Program. Report No. 4. Collected Technical Papers, Vol. 2. Edited by Frank Rosenblatt. Ithaca, NY: Cornell University. - ↑
^{19.0}^{19.1}Nagy, George. 1963.*System and circuit designs for the Tobermory perceptron*. Technical report number 5, Cognitive Systems Research Program, Cornell University, Ithaca New York. - ↑ Nagy, George. "Neural networks-then and now."
*IEEE Transactions on Neural Networks*2.2 (1991): 316-318. - ↑ Aizerman, M. A.; Braverman, E. M.; Rozonoer, L. I. (1964). "Theoretical foundations of the potential function method in pattern recognition learning".
*Automation and Remote Control***25**: 821–837. - ↑ Mohri, Mehryar; Rostamizadeh, Afshin (2013). "Perceptron Mistake Bounds". arXiv:1305.0208 [cs.LG].
- ↑ Cash, Sydney; Yuste, Rafael (1999). "Linear Summation of Excitatory Inputs by CA1 Pyramidal Neurons".
*Neuron***22**(2): 383–394. doi:10.1016/S0896-6273(00)81098-3. PMID 10069343. - ↑ Liou, D.-R.; Liou, J.-W.; Liou, C.-Y. (2013).
*Learning Behaviors of Perceptron*. iConcept Press. ISBN 978-1-477554-73-9. - ↑
^{25.0}^{25.1}MacKay, David (2003-09-25).*Information Theory, Inference and Learning Algorithms*.*Cambridge University Press*. p. 483. ISBN 9780521642989. https://books.google.com/books?id=AKuMj4PN_EMC&pg=PA483. - ↑ Cover, Thomas M. (June 1965). "Geometrical and Statistical Properties of Systems of Linear Inequalities with Applications in Pattern Recognition".
*IEEE Transactions on Electronic Computers***EC-14**(3): 326–334. doi:10.1109/PGEC.1965.264137. ISSN 0367-7508. http://ieeexplore.ieee.org/document/4038449/. - ↑
^{27.0}^{27.1}Šíma, Jiří; Orponen, Pekka (2003-12-01). "General-Purpose Computation with Neural Networks: A Survey of Complexity Theoretic Results" (in en).*Neural Computation***15**(12): 2727–2778. doi:10.1162/089976603322518731. ISSN 0899-7667. https://direct.mit.edu/neco/article/15/12/2727-2778/6791. - ↑ "Introduction to Machine Learning, Chapter 3: Perceptron" (in en). https://openlearninglibrary.mit.edu/courses/course-v1:MITx+6.036+1T2019/courseware/Week2/perceptron/?activate_block_id=block-v1:MITx+6.036+1T2019+type@sequential+block@perceptron.
- ↑ Novikoff, Albert J. (1963). "On convergence proofs for perceptrons".
*Office of Naval Research*. - ↑ Bishop, Christopher M (2006-08-17). "Chapter 4. Linear Models for Classification".
*Pattern Recognition and Machine Learning*. Springer Science+Business Media, LLC. pp. 194. ISBN 978-0387-31073-2. - ↑
^{31.0}^{31.1}Krauth, W.; Mezard, M. (1987). "Learning algorithms with optimal stability in neural networks".*Journal of Physics A: Mathematical and General***20**(11): L745–L752. doi:10.1088/0305-4470/20/11/013. Bibcode: 1987JPhA...20L.745K. - ↑ Block, H. D.; Levin, S. A. (1970). "On the boundedness of an iterative procedure for solving a system of linear inequalities" (in en).
*Proceedings of the American Mathematical Society***26**(2): 229–235. doi:10.1090/S0002-9939-1970-0265383-5. ISSN 0002-9939. https://www.ams.org/proc/1970-026-02/S0002-9939-1970-0265383-5/. - ↑ Efron, Bradley. "The perceptron correction procedure in nonseparable situations."
*Rome Air Dev. Center Tech. Doc. Rept*(1964). - ↑
^{34.0}^{34.1}Simon, Herbert A.; Laird, John E. (2019-08-13). "Limits on Speed of Concept Attainment" (in English).*The Sciences of the Artificial, reissue of the third edition with a new introduction by John Laird*(Reissue ed.). Cambridge, Massachusetts London, England: The MIT Press. ISBN 978-0-262-53753-7. https://www.amazon.com/Sciences-Artificial-MIT-Press/dp/0262537532. - ↑ Wendemuth, A. (1995). "Learning the Unlearnable".
*Journal of Physics A: Mathematical and General***28**(18): 5423–5436. doi:10.1088/0305-4470/28/18/030. Bibcode: 1995JPhA...28.5423W. - ↑ Anlauf, J. K.; Biehl, M. (1989). "The AdaTron: an Adaptive Perceptron algorithm".
*Europhysics Letters***10**(7): 687–692. doi:10.1209/0295-5075/10/7/014. Bibcode: 1989EL.....10..687A. - ↑ McDonald, R.; Hall, K.; Mann, G. (2010). "Distributed Training Strategies for the Structured Perceptron".
*Human Language Technologies: The 2010 Annual Conference of the North American Chapter of the ACL*. Association for Computational Linguistics. pp. 456–464. https://www.aclweb.org/anthology/N10-1069.pdf.

## Further reading

- Aizerman, M. A. and Braverman, E. M. and Lev I. Rozonoer. Theoretical foundations of the potential function method in pattern recognition learning. Automation and Remote Control, 25:821–837, 1964.
- Rosenblatt, Frank (1958), The Perceptron: A Probabilistic Model for Information Storage and Organization in the Brain, Cornell Aeronautical Laboratory, Psychological Review, v65, No. 6, pp. 386–408. doi:10.1037/h0042519.
- Rosenblatt, Frank (1962), Principles of Neurodynamics. Washington, DC: Spartan Books.
- Minsky, M. L. and Papert, S. A. 1969.
*Perceptrons*. Cambridge, MA: MIT Press. - Gallant, S. I. (1990). Perceptron-based learning algorithms. IEEE Transactions on Neural Networks, vol. 1, no. 2, pp. 179–191.
- Olazaran Rodriguez, Jose Miguel.
*A historical sociology of neural network research*. PhD Dissertation. University of Edinburgh, 1991. - Mohri, Mehryar and Rostamizadeh, Afshin (2013). Perceptron Mistake Bounds arXiv:1305.0208, 2013.
- Novikoff, A. B. (1962). On convergence proofs on perceptrons. Symposium on the Mathematical Theory of Automata, 12, 615–622. Polytechnic Institute of Brooklyn.
- Widrow, B., Lehr, M.A., "30 years of Adaptive Neural Networks: Perceptron, Madaline, and Backpropagation,"
*Proc. IEEE*, vol 78, no 9, pp. 1415–1442, (1990). - Collins, M. 2002. Discriminative training methods for hidden Markov models: Theory and experiments with the perceptron algorithm in Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP '02).
- Yin, Hongfeng (1996), Perceptron-Based Algorithms and Analysis, Spectrum Library, Concordia University, Canada

## External links

- A Perceptron implemented in MATLAB to learn binary NAND function
- Chapter 3 Weighted networks - the perceptron and chapter 4 Perceptron learning of
*Neural Networks - A Systematic Introduction*by Raúl Rojas (ISBN:978-3-540-60505-8) - History of perceptrons
- Mathematics of multilayer perceptrons
- Applying a perceptron model using scikit-learn - https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Perceptron.html

Original source: https://en.wikipedia.org/wiki/Perceptron.
Read more |