Decoder
The part of a model that generates output from an internal representation or from encoded input.
How does a caption take shape?
A fictional image-captioning system receives an archive photo of an open umbrella. Its image encoder produces features. A text decoder uses those features and the text generated so far to build a caption.
- Start
The decoder begins with image features and a start signal. It assigns scores to possible next tokens.
- Continue
After producing words that begin “an open,” it evaluates continuations given that prefix and the image. Different decoding settings can yield different captions.
- Stop
An end token or a length limit ends generation. A reader should still check that each concrete detail is visible in the photograph.
What does the decoder know about the picture?
It can use only the information its inputs and learned parameters make available. A plausible color or location may come from patterns in training despite weak visual evidence. Hearing a fluent caption does not establish that every phrase is grounded in the image.

Where else does the term appear?
An autoencoder’s decoder reconstructs an input representation. A decoder-only language model predicts continuations directly from preceding tokens. Look at the input and training target to identify which job “decoder” describes.
Follow the idea
Encoder · Trace how raw input becomes a representation.
Hallucination · Check a generated detail against its source.
Source · Vinyals and colleagues on neural image caption generation
Return to Decoder in the A–Z glossary