Network Architecture Intermediate

Multilayer Perceptron

A basic neural network made of simple deciders stacked in layers

Key points
  • A multilayer perceptron is a neural network built by stacking a very simple decider in row after row. It's the first basic skeleton most people meet when learning about neural networks.
  • All one unit does is multiply every number it receives by a set weight, add them all up, and bend the result once. Nothing more.
  • A later row never sees the raw input. It only receives the scores the row right before it produced.
  • With a single row, only problems split by one straight line can be solved. Stack rows, and a wavy boundary becomes possible too.
  • Even inside today's largest models, this structure is still built in like a spare part.
Contents

1The analogy

Picture a recycling room with two rows of inspection stations. Each station in the first row checks exactly one simple thing — one checks for shine, one checks for give when pressed, one checks for see-through. Instead of a plain yes or no, each station reports a score for how strongly its one property shows up.

The second row of stations never looks at the object directly. It only reads the scores the first row wrote down. Shiny but doesn't give when pressed — probably a can. See-through and light — probably a plastic bottle. That kind of call comes from this row. Simple stations that couldn't tell you anything on their own, once lined up and layered, add up to a fairly convincing sort. That's a multilayer perceptron — a plain little decider, stacked in rows.

2In detail

What one unit does

Once you see what a single station does, everything else follows easily. A unit takes in a batch of numbers from whatever came before it. It multiplies each number by its own set weight — a dial that decides how much that particular input matters. Some inputs get a large weight, others get one close to zero.

Adding up all those products gives a single score. To that score, the unit adds one more number it keeps for itself: a baseline. That baseline sets the unit's personality — "stay quiet unless something strong shows up" or "react to even the faintest signal."

Without a bend, stacking layers is pointless

Passing that score straight up to the next row causes a problem. Repeating multiply-and-add over and over still ends up mathematically identical to doing it once. Stack a hundred rows and you'd get nothing more than a single row could do.

So at the end, the score gets bent, once. The most common trick is to flatten every negative value to zero and let positive values pass through unchanged. That single kink is what makes stacking rows meaningful at all — layer enough kinked lines together and you get something close to a curve.

Later rows judge only on earlier scores

The first row of stations looks straight at the object. From the second row on, no station sees the object at all — it only sees the scores the row before it wrote down. A row that works only in the middle, invisible from the outside, is called a hidden layer.

Every unit connects to every single unit in the row before it, with nothing skipped. Ten stations in the row before means the next row's unit receives all ten scores. Which of them matters more is decided entirely by the multiplied weight. That's why this kind of network is called fully connected.

The signal only ever flows forward. There's no path for a later row to ask an earlier one a question again. From the moment the object comes in to the moment a result comes out, everything moves straight through in one direction.

Correcting by how far off the answer was

Nobody sets the weights by hand. They start out scattered at meaningless values. Feed in a photo of a can and get "plastic bottle" back, and the network measures how far off that was as a number, then nudges the weights a little, working backward from the end to the start.

Repeat that correction hundreds of thousands of times, and each station settles into checking whatever it turns out to be useful for. Nobody has to write down "check for shine" or "check for see-through" in advance — the network finds, on its own, whatever cues are useful for telling things apart.

Still built into today's large models

A multilayer perceptron isn't some outdated structure. Open up a network that handles images, or a large language model that handles text, and this structure is tucked into every layer. When something like attention gathers information together, the part that actually does something with it is still made of units that multiply, add, and bend once.

A large share of a big model's total weight often sits right here. The structure is simple, so the math runs fast, and its capacity is easy to scale up — just add more units per row.

3More precisely

A multilayer perceptron stacks the perceptron — a single-unit decider — into rows, with an activation function slipped in between each pair of rows. There's at least one hidden layer between the input and output rows, units within the same row aren't connected to each other, and there's no path for a signal to travel backward. That's why it's also called a feedforward network.

The analogy breaks down in one place. A recycling-room inspector checks something a person could name, like shine or see-through, but the properties a real unit actually picks up on usually can't be named at all. Open up a trained model and, far more often than not, you can't explain in a single phrase what any given unit is looking for.

The number of rows and units per row is also something a person chooses ahead of time. Only the weights and baselines are set by training — how many layers to use, and how many units per layer, is up to whoever builds the network.

One more gap is worth naming. An inspection station keeps working the same way once it's set up, but a unit's weights keep shifting throughout training, so the "station" a diagram shows is really a snapshot of something still in motion until training ends.

4Try it yourself

5Common misconceptions

  • It's easy to think stacking more layers always makes a network smarter, but actually past a certain point, training stops going well and the network starts memorizing the data outright instead.

  • It's easy to think one unit handles one property a person could recognize, but actually that property is usually scattered across many units mixed together, hard to read out one at a time.

  • It's easy to think the multilayer perceptron is an outdated structure nobody uses anymore, but actually it's still built into today's large models, layer after layer, like a spare part.

7One-line summary

In shortA multilayer perceptron stacks a simple multiply-add-and-bend unit into layer after layer, letting them draw a complicated boundary together that none of them could draw alone.

Spotted an error or have a better analogy? Suggest an edit · Last updated2026-09-02