Glossary term
Glossary term
Architecture
In general, any ML system that converts from a raw, sparse, or external representation into a more processed, denser, or more internal representation.
Encoders are often a component of a larger model, where they are frequently paired with a decoder. Some Transformers pair encoders with decoders, though other Transformers use only the encoder or only the decoder.
Some systems use the encoder's output as the input to a classification or regression network.
In sequence-to-sequence tasks, an encoder takes an input sequence and returns an internal state (a vector). Then, the decoder uses that internal state to predict the next sequence.
Refer to Transformer for the definition of an encoder in the Transformer architecture.
See LLMs: What's a large language model in Machine Learning Crash Course for more information.
Created for this library
A translation vendor uses an encoder to map a source sentence into a sequence of contextual representations consumed by the decoder.
A search team uses an encoder to convert documents into dense vectors stored in its retrieval index.
A code-search vendor uses an encoder on code snippets and uses the same encoder on natural-language queries for cross-modal retrieval.
Definition source: Google for Developers Machine Learning Glossary | Creative Commons Attribution 4.0 License