Architecture first. Mechanism inside.
A Transformer is a neural-network architecture that processes relationships between tokens.
Its attention mechanism lets each token weigh information from other relevant tokens.
A Transformer is a neural-network architecture that processes relationships between tokens.
A Transformer is a neural-network architecture that processes relationships between tokens.
Its attention mechanism lets each token weigh information from other relevant tokens.
Each word can look at the other words and decide which ones are most useful for understanding the current context.
This analogy is for understanding only. A Transformer uses mathematical operations, not human discussion.
Text becomes token representations.
Each position can weigh information from other relevant positions.
Attention results are combined with additional neural-network processing.
Stacked layers progressively transform the representation.
The final representation supports prediction or another model task.
“The bank approved the loan because it had enough information.”
Attention assigns different weights to relationships between token representations. This is a simplified illustration, not a visualization of a specific model’s real attention weights.
Example: Pronouns and context
Input: English
Output: another language
Input: support ticket
Output: category
An LLM is often built with Transformer architecture.
Attention is one important mechanism inside it.
ChatGPT uses models plus other systems.
A Transformer uses attention and stacked neural-network layers to process relationships between tokens.
See how tokens, attention, layers, and output scores fit together.