Guide-linked quiz · Hard Level
Attention Mechanisms Quiz
Test query-key-value attention, softmax scaling, parallel heads, dense attention cost, weighted-value calculations, and causal masking for generation.
Question 1 of 8
What does token attention combine when forming an output representation?
Preview every question8 questions
Answers and explanations appear as you take the quiz.
- What does token attention combine when forming an output representation?
- Permanent copies of the entire conversation on disk
- Value information from allowed positions using computed weights
- Only manually chosen keywords with no learned scores
- A translation dictionary that removes every other token
- Which landmark 2017 paper introduced the transformer architecture?
- 'Deep Residual Learning for Image Recognition'
- 'Playing Atari with Deep Reinforcement Learning'
- 'Attention Is All You Need'
- 'Generative Adversarial Networks'
- What are the three vectors computed for each token in attention?
- Query, key, and value
- Input, output, and bias
- Mean, median, and mode
- Encoder, decoder, and loss
- In the formula softmax(QK^T / √d_k) V, why divide by √d_k?
- To convert the result into integers
- To remove negative numbers
- To make the model run on a GPU
- To keep the dot-product scores from becoming too large before softmax
- Why does dense self-attention involve growing pairwise work for very long token sequences?
- Because it must download new data from the internet
- Because longer text always contains rarer words
- Because cost grows with the square of the sequence length (O(n²))
- Because it switches to a slower programming language
- What capacity does multi-head attention provide through separate learned projections?
- A guarantee that every head has one unique named meaning
- Several attention representations that can capture different relationships in parallel
- Removal of every token embedding
- A reduction of vocabulary size by definition
- In a scalar attention example, values two and six receive weights three-quarters and one-quarter. What is their weighted output?
- Eight
- Four
- Two
- Three
- What does a causal attention mask prevent in an autoregressive text decoder?
- Using later token positions when forming the current position's representation
- Using any previous token
- Computing any query or key vectors
- Learning all model parameters
Keep testing yourself
More quizzes picked for your level.