Decoder
Domain: LLM Concepts
π― Motivation
The decoder generates output tokens one at a time, using both the encoded input and the tokens it has already generated.
π Concrete Example
Generating Bonjour: decoder starts, uses encoderβs understanding of Hello, produces Bon. Then uses encoder output + Bon to produce jour. Then stops.
π Analogy
A writer drafting a story - they write one word at a time, each word depends on what theyβve already written (previous tokens) and their overall plan (encoder output).