QUESTION 10 OF 15

What does the transformer feed-forward block do?

Reveal the answer and explore the explanation.

10
Hard

What does the transformer feed-forward block do?

Answer
Answer

Position-wise nonlinear transformation after attention in a standard transformer block.

Practical example

Expand and project token features independently.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As