Encoder (Enc)

The part of an AI model that reads and understands an input, turning words or images into a rich numerical summary the rest of the model can use.

Technically: A Transformer stack that maps a full input sequence to contextual vectors using bidirectional (non-causal) self-attention — every position can attend to every other. Encoders produce position-aware embeddings used by classification heads, by cross-attention in encoder-decoder models, and by retrieval. Vision encoders like ViT tokenize image patches.

Category: Model Architectures

Related ideas