Multilayer perceptron

Feedforward · pattern · Tabular, Game or sensor state → Scores, Class label, Action

Dense layers with a nonlinearity between them: the smallest network that can learn curved decision boundaries.

Also called MLP, Feedforward network, Fully connected network

Figure 1. The Multilayer perceptron as a schematic: the parts it is built from and how data flows between them. Select a part to read about it.

What it does

An MLP passes a fixed-length vector through a few dense layers, with an activation such as ReLU or tanh after each hidden layer. Each hidden unit computes one weighted sum and switches on in part of the input space; the next layer combines those pieces. With one hidden layer it can already separate cases that no single straight line can, such as XOR. MLPs are small enough to draw in full, which makes them the best place to see how individual weights change behavior.

Formula

h = ReLU(W1 x + b1)y = W2 h + b2decision = argmaxk yk

Shapes and parameters

Shapes
A feature vector [N, I] in, hidden activations [N, H], scores or values [N, K] out.
Parameters
Sum over layers of inputs × outputs + outputs. The ticket router 4 → 8 → 3 has 4 × 8 + 8 + 8 × 3 + 3 = 67 parameters.
Used for
Tabular prediction (fuel economy, sensor forecasts), small classifiers, game NPC brains, reinforcement-learning policies, and the feed-forward half of every transformer block.

Figure 2. A real multilayer perceptron in WeightSpace: Gas turbine monitor, drawn from the file the app runs. Open a module to see the parts inside.

In WeightSpace

The game NPC brains are MLPs, and every weight in them can be edited: Signal Run guards (3 → 3 → 3), Fox navigation (4 → 5 → 2), the Hide-and-seek seeker (3 → 4 → 3) and the ticket router (4 → 8 → 3). Catalog MLPs such as fuel economy and sensor anomaly detection expose their output bias within ±8.