Neural Network

A feedforward neural network (multi-layer perceptron) generalizes the perceptron by connecting many neurons in layers. The first layer takes the input vector and passes it through weighted connections to a set of hidden neurons, such that the -th neuron in the hidden layer computes

where is a non-linear activation such as sigmoid, tanh, or ReLU.

The resulting activations form the inputs to the next layer, so a second hidden layer would compute

and so on until the output layer produces

where maps to the final prediction - often a softmax or linear output depending on the task:
[PLACEHOLDER FIGURE]

Each layer extracts progressively higher-level structure: early layers detect simple features, later layers combine them into more abstract ones. With enough hidden units, even a single hidden layer can approximate any continuous function per the Universal Approximation Theorem, though multiple layers often achieve the same with far fewer parameters and greater representational efficiency.

Properties

(Weight Symmetry) There are ways to permute an -layer network with hidden width .