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.

Learn it properly

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

Open the lesson Create a free account

Other terms from the same lesson