Attention Mechanism
The 'Attention Mechanism' test covers key questions on how attention models work, especially self-attention and its application in neural networks. It includes topics like the mathematical formulation of attention scores and implementation in Transformer architectures.
Sample Questions
What is the primary purpose of the attention mechanism in neural networks?
- To allow the model to focus on relevant parts of input
- To reduce training time
- To eliminate the need for backpropagation
- To increase model size
In attention mechanisms, what does the term 'query' typically represent?
- The output prediction
- The current focus of the model
- The training labels
- The input data
Which component in attention calculates compatibility scores between query and keys?
- Encoder
- Value vectors
- Compatibility function
- Softmax function