Index Ai Academy
Glossary · Phase 5 · Transformers

Feed-forward network

Also written: feed-forward networks, feed-forward layer, FFN

The small neural network inside each transformer block. It works on each token on its own, after attention has mixed in information from the other tokens.

Try it now

Communicate, then compute, with a skip connection around each. Stack dozens of these and you have a GPT.

Learn it properly

The transformer block · Attention, MLP, residuals and norms together. About 35 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write