Attention in transformers, step-by-step | Deep Learning Chapter 6
3-Second Blueprint (English)
- Self-attention maps high-dimensional token embeddings into Query and Key vectors whose dot products score contextual alignment.
- Softmax-normalized attention weights blend factored Value down- and up-projection vectors to shift token embeddings toward fuller meaning.
- Running multiple attention heads in parallel lets GPUs capture distinct grammatical and semantic relationships at massive scale.
Self-Attention MechanismQuery-Key-Value MatricesMulti-Head AttentionToken Embeddings
3-Sekunden-Fazit (Deutsch)
- Self-Attention projiziert Token-Embeddings in kleinere Query- und Key-Vektoren, deren Skalarprodukte kontextuelle Bezüge präzise messen.
- Per Softmax normierte Gewichte kombinieren faktorisierte Value-Projektionen, um die Bedeutung jedes Tokens im Satzkontext zu verfeinern.
- Mehrere parallele Attention-Heads ermöglichen es GPUs, unterschiedliche grammatische und semantische Beziehungen gleichzeitig zu erfassen.
Self-Attention-MechanismusQuery-Key-Value-MatrizenMulti-Head-AttentionToken-Embeddings
Note / Hinweis: Blueprints are AI-generated educational summaries (0% Politics · 0% Religion · 0% Brainrot) and do not constitute medical, legal, or financial advice. / KI-generierte Zusammenfassung zu Bildungszwecken – ersetzt keine medizinische, rechtliche oder finanzielle Fachberatung.