Encoder-Decoder Architecture
Category: Neural Networks & Architectures
A model structure where an encoder processes the input into a representation and a decoder generates the output from that representation.
Full Explanation
The encoder-decoder architecture consists of two components: an encoder that processes the input sequence into a contextual representation, and a decoder that generates the output sequence from this representation. In transformers, the encoder uses bidirectional self-attention while the decoder uses causal (masked) self-attention and cross-attention to the encoder. This architecture is natural for sequence-to-sequence tasks where input and output lengths differ, such as translation, summarization, and speech recognition. T5 and BART are prominent encoder-decoder transformer models. The encoder captures the input semantics while the decoder learns to produce appropriate outputs conditioned on this understanding. While encoder-decoder models are versatile, decoder-only models have become dominant for large language models due to simpler scaling properties.
Related Terms
More in Neural Networks & Architectures
Explore More
- AI Tools Library — Discover AI tools related to Encoder-Decoder Architecture
- AI Education — Courses to learn about Neural Networks & Architectures
- AI News — Latest news and updates