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)
(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)
Solution
Which statements are true about traditional attention used in sequence-to-sequence models?
Solution
Comprehension Passage
Consider the text "learn easy math", consisting of three tokens: {learn,easy,math}.
The token embeddings are arranged in the input matrix
:

The query, key, and value projection matrices are given by:




Based on the above data, answer the given subquestions.
The token embeddings are arranged in the input matrix
The query, key, and value projection matrices are given by:
Based on the above data, answer the given subquestions.
Inscript
Compute the
of the final scaled dot-product attention and submit the sum of the diagonal elements of
matrix.
Compute the
Solution
Comprehension Passage
Consider the text "learn easy math", consisting of three tokens: {learn,easy,math}.
The token embeddings are arranged in the input matrix
:

The query, key, and value projection matrices are given by:




Based on the above data, answer the given subquestions.
The token embeddings are arranged in the input matrix
The query, key, and value projection matrices are given by:
Based on the above data, answer the given subquestions.
Choose the token pair with the least attention score.
Solution
Inscript
A Transformer model processes a sequence containing 6 tokens using Multi-Head Attention. The model initially uses 4 attention heads. If the number of attention heads is doubled to 8, while the sequence length remains unchanged, how many additional attention scores are computed across all heads?
A Transformer model processes a sequence containing 6 tokens using Multi-Head Attention. The model initially uses 4 attention heads. If the number of attention heads is doubled to 8, while the sequence length remains unchanged, how many additional attention scores are computed across all heads?
Solution
Inscript
A batch of 8 sentences is passed through a Transformer Encoder consisting of 6 encoder layers and 8 attention heads. After padding, each sentence has a maximum length of 32 tokens. The model uses an embedding dimension of
. What is the total number of elements (volume) in the output tensor produced by the final encoder layer for the entire batch?
A batch of 8 sentences is passed through a Transformer Encoder consisting of 6 encoder layers and 8 attention heads. After padding, each sentence has a maximum length of 32 tokens. The model uses an embedding dimension of
Solution
Inscript
Consider a masked multi-head attention layer in a transformer decoder. The source vocabulary is of size
,
and context length
. To enforce autoregressive generation, a causal mask is applied to the raw attention score before applying softmax. How many entries in the causal mask are set to
?
Consider a masked multi-head attention layer in a transformer decoder. The source vocabulary is of size
Solution
Inscript
Consider a Transformer model with a hidden state dimension
. The positional encoding for a given position,
and dimension
is defined by:


Compute the squared euclidean norm for the vector corresponding to
and enter the value.
Consider a Transformer model with a hidden state dimension
Compute the squared euclidean norm for the vector corresponding to
Solution
Consider the following statements regarding the use of Teacher Forcing while training autoregressive sequence-to-sequence models and select the appropriate option:
Statement 1: Teacher Forcing involves passing the input token to a larger Teacher model whose output is then input as the next token
Statement 2: Teacher Forcing helps to prevent compounding of early incorrect predictions that can destabilize training
Statement 1: Teacher Forcing involves passing the input token to a larger Teacher model whose output is then input as the next token
Statement 2: Teacher Forcing helps to prevent compounding of early incorrect predictions that can destabilize training
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Inscript
Compute the joint probability of the sentence :

(Provide answer correct upto 2 digits after the decimal)
Compute the joint probability of the sentence :
(Provide answer correct upto 2 digits after the decimal)
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Choose the option corresponding to the sentence with the highest joint probability under the given language model.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Inscript
Using the given probability tree calculate the conditional probability of predicting "apples" given "like" [i.e P(apples | like)]. (Submit -1 if the provided information is insufficient)
Using the given probability tree calculate the conditional probability of predicting "apples" given "like" [i.e P(apples | like)]. (Submit -1 if the provided information is insufficient)
Solution
Which of the following are components found within a GPT decoder layer?
Solution
Comprehension Passage
The table below represents the conditional probability distribution over the vocabulary. Each column corresponds to a decoding timestep and the values represent the conditional probability of selecting a token at the timestep given the previously generated tokens

For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
Inscript
Use greedy decoding to determine the most likely sequence of 6 tokens and compute the probability of generating that sequence. Enter the value rounded off to 3 decimal places
Use greedy decoding to determine the most likely sequence of 6 tokens and compute the probability of generating that sequence. Enter the value rounded off to 3 decimal places
Solution
Comprehension Passage
The table below represents the conditional probability distribution over the vocabulary. Each column corresponds to a decoding timestep and the values represent the conditional probability of selecting a token at the timestep given the previously generated tokens

For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
Inscript
Use exhaustive search strategy to identify the most probable sequence consisting of 4 tokens. How many decoder runs are required in total to identify the most probable sequence containing 4 tokens?
Use exhaustive search strategy to identify the most probable sequence consisting of 4 tokens. How many decoder runs are required in total to identify the most probable sequence containing 4 tokens?
Solution
Comprehension Passage
The table below represents the conditional probability distribution over the vocabulary. Each column corresponds to a decoding timestep and the values represent the conditional probability of selecting a token at the timestep given the previously generated tokens

For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
Inscript
Use Top-k sampling at timestep t = 4 and k = 3. Compute the renormalized probability of the most probable token from the candidate tokens and enter the value rounded off to three decimal places
Use Top-k sampling at timestep t = 4 and k = 3. Compute the renormalized probability of the most probable token from the candidate tokens and enter the value rounded off to three decimal places
Solution
Comprehension Passage
The table below represents the conditional probability distribution over the vocabulary. Each column corresponds to a decoding timestep and the values represent the conditional probability of selecting a token at the timestep given the previously generated tokens

For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
For all calculations, consider only the tokens mentioned in the first column as the Vocabulary
Based on the above data, answer the given subquestions.
Inscript
Consider the sequence "the castle was abandoned". What is the minimum beam width required to guarantee that this sequence is retained during beam search at timestep t = 4 ?
Consider the sequence "the castle was abandoned". What is the minimum beam width required to guarantee that this sequence is retained during beam search at timestep t = 4 ?
Solution
Shape
Thickness [ / ]
3
All colors