Feedforward Network (FFN) (FFN)

Quick definition

A network of learned transformations applied to token representations between attention operations in a transformer block.

A network of learned transformations applied to token representations between attention operations in a transformer block.

Transformer FFNs usually operate independently at each token position while attention mixes information across positions.

Example: A model applies a two-layer nonlinear transformation after each attention sublayer.

Common use cases: Transformer architecture, representation learning, and model design.

Examples

  • A model applies a two-layer nonlinear transformation after each attention sublayer.

Use cases

  • Transformer architecture, representation learning, and model design.

Frequently asked questions

What is Feedforward Network (FFN)?

A network of learned transformations applied to token representations between attention operations in a transformer block.

What should I know about Feedforward Network (FFN)?

Transformer FFNs usually operate independently at each token position while attention mixes information across positions.

Categories and tags