Transformer Architecture
Domain: LLM Concepts
π― Motivation
Previous models processed text word-by-word and forgot early context. The transformer processes all words at once and lets each word attend to all others.
π Concrete Example
The transformer uses self-attention: in βThe cat sat on the mat because it was tiredβ, it attends to cat to know it means the cat, not the mat.
π Analogy
A classroom where every student can simultaneously see and hear every other student. Instead of passing notes one at a time (old models), everyone communicates at once (transformer).