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 fully connected layer computes
where
is a weight matrix,
is a bias vector, and the activation
function
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 . For binary inputs
and
, two hidden units and a linear
output compute XOR (Goodfellow et al. 2016, pp. 166-168)
by
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.