Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : LARGE LANGUAGE MODELS (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Transformers process input tokens:
Solution
What is the purpose of the softmax function in the attention mechanism?
Solution
What is the main difference between GPT and BERT pre-training objectives?
Solution
In Top-K sampling for language generation, increasing the value of K typically has which of the following effects?
Solution
Why are residual connections important in transformer architectures?
Solution
Which of the following statements are true regarding causal language modeling (CLM)?
Solution
Which of the following are valid reasons why transformer-based large language models are widely used in natural language processing?
Solution
Which elements are included in BERT’s input representation for Next Sentence Prediction?
Solution
How does Top-p (nucleus) sampling differ from Top-K sampling in language generation?
Solution
Solution
Solution
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Select the scaled dot-product attention for the first head:
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Select the scaled dot-product attention for the second head:
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Concatenate the outputs from both the attention heads, then apply the output projection matrix Wo to produce the final output of the multi-head attention mechanism. Select the correct result of this operation.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
For the given input matrix X and multihead attention output MHA(X), apply a residual connection and store the result in matrix R, and finally compute the sum of all elements in matrix R.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
The table presents the conditional probability distribution over vocabulary tokens at each timestep during sequence generation. Each column corresponds to a timestep (from 1 to 5), and the values represent the probability of selecting each token given the tokens chosen in all previous timesteps. For timestep t, the values in the column represent:

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
In exhaustive search, at timestep t=1, we run the decoder once to obtain probability distributions over all tokens in the vocabulary. Given the 6 tokens available in the table in the main question, how many times must we run the decoder at timestep t=4?
Solution
Comprehension Passage
The table presents the conditional probability distribution over vocabulary tokens at each timestep during sequence generation. Each column corresponds to a timestep (from 1 to 5), and the values represent the probability of selecting each token given the tokens chosen in all previous timesteps. For timestep t, the values in the column represent:

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
How many total sequences of exactly length 5 are possible according to exhaustive search?
Solution
Comprehension Passage
The table presents the conditional probability distribution over vocabulary tokens at each timestep during sequence generation. Each column corresponds to a timestep (from 1 to 5), and the values represent the probability of selecting each token given the tokens chosen in all previous timesteps. For timestep t, the values in the column represent:

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
If we use top-k sampling with k=2 at timestep 1, what is the normalized probability of selecting token “sky” at the timestep=1?
Solution
Shape
Thickness [ / ]
3
All colors