Transformer Mechanisms

The 'Transformer Mechanisms' test covers key questions on transformer architecture, the functioning of attention mechanisms, and training techniques. It assesses understanding of core concepts like self-attention and positional encoding.

Sample Questions

  1. What is the primary purpose of the self-attention mechanism in Transformers?

    • To allow each token to attend to all other tokens in the sequence
    • To reduce the model's memory usage during training
    • To generate random weights for neural connections
    • To convert text into numerical representations
  2. Which component in a Transformer model processes input sequences in parallel?

    • Convolutional Neural Network (CNN)
    • Encoder with self-attention
    • Long Short-Term Memory (LSTM)
    • Recurrent Neural Network (RNN)
  3. What does the 'multi-head' in multi-head attention refer to?

    • Attention applied to different parts of the input sequence separately
    • Using multiple models for attention calculation
    • Multiple attention mechanisms applied simultaneously
    • Multiple layers of the same attention mechanism