Multi-Layer Perceptron (MLP)

A neural network of stacked layers where every neuron connects to every neuron in the next layer, used as a building block across AI systems.

Technically: A fully connected neural network with an input layer, one or more hidden layers using learned weights and non-linear activations, and an output layer. In Transformers the FFN sublayer is an MLP applied per position. MLPs also serve as classification heads and value networks, and hold a large share of the parameters in modern large language models.

Category: Attention Mechanisms

Related ideas