Encoder
Definition
An encoder transfers input into an internal representation.
It processes raw data or tokens into features or latent states that a decoder or downstream head uses. The representation does not have to be smaller than the input.
Simply explained
It translates input signals into a form with which further model parts can work.
Why it matters in practice
Encoders carry search, classification, translation and multimodal processing.
Example from business
Hypothetical example: A text encoder generates vectors for similarity search in manuals.
Limits and pitfalls
- View encoder output as directly interpretable; ignore context length, tokenization, and training domain.
Origin & history
Encoders are a basic building block of neural networks; Transformer encoders became particularly influential in 2017.
Use in mid-sized companies
- Companies use encoders for classification, retrieval or anomaly detection.
Frequently asked questions
Is an encoder a complete model?
Not necessarily. Does it need a decoder? Only for suitable tasks.
Sources
Source check: 10.10.2026. Definition and documented classification matched; examples describe possible applications.
Editorially reviewed on: