April 2024
Intermediate to advanced
264 pages
6h 10m
English

What are the differences between encoder-and decoder-based language transformers?
Both encoder- and decoder-style architectures use the same self-attention layers to encode word tokens. The main difference is that encoders are designed to learn embeddings that can be used for various predictive modeling tasks such as classification. In contrast, decoders are designed to generate new texts, for example, to answer user queries.
This chapter starts by describing the original transformer architecture consisting of an encoder that processes input text and a decoder that produces translations. The subsequent ...
Read now
Unlock full access