Applying foundational LLM structures and mechanisms: Practice Questions — LLM Architecture (NVIDIA-Certified Professional: Generative AI LLMs)
Practice Questions: Applying Foundational LLM Structures and Mechanisms These multiple-choice questions are designed to test your understanding of...
Practice Questions: Applying Foundational LLM Structures and Mechanisms
These multiple-choice questions are designed to test your understanding of foundational large language model (LLM) architectures and mechanisms, a key component of the NVIDIA-Certified Professional: Generative AI LLMs exam.
Which of the following best describes the primary role of the transformer architecture in LLMs?
- A. To perform convolutional operations on sequential data
- B. To enable parallel processing of input tokens using self-attention mechanisms
- C. To generate fixed-size embeddings without positional information
- D. To replace recurrent neural networks with feedforward layers only
Correct answer: B
Explanation: Transformers use self-attention to process all input tokens simultaneously, enabling efficient parallelization and capturing contextual relationships across sequences.
In an LLM, what is the purpose of positional encoding?
- A. To normalize input embeddings
- B. To provide information about the order of tokens in the sequence
- C. To reduce model size by compressing token representations
- D. To initialize weights in the transformer layers
Correct answer: B
Explanation: Positional encoding injects sequence order information into token embeddings, which is essential because transformers process tokens in parallel without inherent order awareness.
Which mechanism allows an LLM to focus on different parts of the input sequence when generating each output token?
- A. Dropout regularization
- B. Layer normalization
- C. Multi-head self-attention
- D. Residual connections
Correct answer: C
Explanation: Multi-head self-attention enables the model to attend to various positions in the input sequence simultaneously, capturing diverse contextual relationships.
What is the main advantage of using multi-head attention over single-head attention in LLMs?
- A. It reduces the number of parameters in the model
- B. It allows the model to attend to information from different representation subspaces
- C. It eliminates the need for positional encodings
- D. It simplifies the training process
Correct answer: B
Explanation: Multi-head attention splits the attention mechanism into multiple heads, each learning to focus on different aspects of the input, improving representational capacity.
In the context of LLM architecture, what is the role of residual connections?
- A. To add non-linearity to the model
- B. To prevent vanishing gradients and enable deeper networks
- C. To reduce overfitting by randomly dropping connections
- D. To encode positional information
Correct answer: B
Explanation: Residual connections add the input of a layer to its output, helping gradients flow through deep networks and improving training stability.
Which component in transformer-based LLMs is responsible for transforming the input embeddings into output token probabilities?
- A. The embedding layer
- B. The feedforward neural network (FFN) layers
- C. The output softmax layer
- D. The positional encoding module
Correct answer: C
Explanation: The softmax layer converts the final hidden states into a probability distribution over the vocabulary for token prediction.
Why is layer normalization used within transformer blocks of LLMs?
- A. To increase model capacity by adding parameters
- B. To stabilize and accelerate training by normalizing inputs across features
- C. To reduce the dimensionality of token embeddings
- D. To encode positional information
Correct answer: B
Explanation: Layer normalization normalizes inputs within each layer, improving training stability and convergence speed.
What is the significance of the feedforward network (FFN) within each transformer block?
- A. To perform attention calculations
- B. To apply non-linear transformations and increase model expressiveness
- C. To encode token positions
- D. To reduce the sequence length
Correct answer: B
Explanation: The FFN applies two linear transformations with a non-linear activation in between, enabling the model to learn complex feature representations.
More in this topic
Ready to test your knowledge?
Put what you've learned into practice with a quick quiz and track your progress.
Test your knowledge →