TOPICS
Search

Neural Network


A neural network is a parameterized model that combines processing units, each of which typically applies an activation function to a weighted combination of inputs and a bias. In a feedforward neural network, the computation has no feedback loops. A common architecture arranges the units in successive layers (Goodfellow et al. 2016, 3Blue1Brown 2017).

For an input vector a_0, a fully connected layer computes

 a_l=sigma_l(W_la_(l-1)+b_l),

where W_l is a weight matrix, b_l is a bias vector, and the activation function sigma_l(t) is applied componentwise. Layers between input and output are called hidden layers. Nonlinear activations allow the composition to represent functions beyond the affine maps obtained when every activation is the identity.

For example, define the rectified linear activation r(t)=max(0,t). For binary inputs x and y, two hidden units and a linear output compute XOR (Goodfellow et al. 2016, pp. 166-168) by

 r(x+y)-2r(x+y-1).

An affine map cannot represent XOR on these inputs, since any affine output has equal sums at opposite corners of the input square, whereas XOR has sums 0 and 2.

For supervised training, weights and biases are adjusted to reduce a loss function comparing predictions with target outputs. Backpropagation computes the derivatives of the loss function with respect to those parameters for use by an optimization method such as the method of steepest descent.


See also

Backpropagation, Loss Function, Method of Steepest Descent

Explore with Wolfram|Alpha

References

3Blue1Brown. "But What Is a Neural Network?" Oct. 5, 2017. https://www.3blue1brown.com/lessons/neural-networks/.Goodfellow, I.; Bengio, Y.; and Courville, A. Deep Learning. Cambridge, MA: MIT Press, Ch. 6, 2016. https://www.deeplearningbook.org/contents/mlp.html.

Cite this as:

Weisstein, Eric W. "Neural Network." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/NeuralNetwork.html

Subject classifications