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

  1. 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
  2. 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
  3. Which component in attention calculates compatibility scores between query and keys?

    • Encoder
    • Value vectors
    • Compatibility function
    • Softmax function