Brain-Score 85/100 TECH CodeEmporium · 1:01

Query, Key and Value vectors in Transformer Neural Networks

3-Second Blueprint (English)

  1. Each token projects into Query (what it seeks), Key (what it offers for matching), and Value (its content) vectors.
  2. Scaled dot-product scores between Queries and Keys pass through optional causal masking and softmax to form attention weights.
  3. Multiplying attention weights by Value vectors produces context-enriched representations across the sequence.
TransformersSelf-AttentionQKV VectorsScaled Dot-Product

3-Sekunden-Fazit (Deutsch)

  1. Jedes Token wird in Query- (Suchanfrage), Key- (Abgleichsmerkmal) und Value-Vektoren (Inhalt) projiziert.
  2. Skalierte Skalarprodukte aus Query und Key liefern nach optionaler Maskierung und Softmax die Aufmerksamkeitsgewichte.
  3. Die Gewichtung der Value-Vektoren erzeugt kontextreiche Repräsentationen über die gesamte Sequenz hinweg.
TransformerSelf-AttentionQKV-VektorenSkaliertes Skalarprodukt

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.