Kubnal Bridge

Model Components

Encoder

The encoder reads the full input sequence and produces a contextualized representation for each token using bidirectional self-attention—each token can attend to all other tokens in both directions. BERT is the canonical encoder-only model, excelling at understanding tasks like classification and NER.

In encoder-decoder models (T5, BART), the encoder processes the input, and the decoder generates the output conditioned on the encoder's representations. Encoder-only models are faster for inference on understanding tasks.

Authority Links

Related Terms