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
In the context of Multi-Head Attention, if the model dimension
and we employ
heads, what is the dimension of the concatenated output of the 8 heads before it is passed through the final linear output projection
?
Solution
In the Masked Language Modeling (MLM) objective of BERT, 15% of tokens are chosen for prediction. Of these chosen tokens, 80% are replaced with
, 10% are replaced with a random word, and 10% are left unchanged. What is the primary theoretical motivation for keeping 10% of the tokens unchanged?
Solution
Why is the standard GPT architecture (Decoder-only with causal masking) generally unsuitable for the Masked Language Modeling (MLM) objective as implemented in BERT?
Solution
In the T5 (Text-to-Text Transfer Transformer) framework, every NLP task is cast as a text generation problem.
If you use T5 for a Semantic Textual Similarity (STS-B) task, where the goal is to predict a similarity score (e.g., 3.8) between two sentences, how does the model output this score?
If you use T5 for a Semantic Textual Similarity (STS-B) task, where the goal is to predict a similarity score (e.g., 3.8) between two sentences, how does the model output this score?
Solution
When using Temperature Sampling to mix datasets from different tasks during multi-task pre- training, let
be the probability of sampling a task
. The formula involves raising the
proportion to the power of
.
If we set the temperature
(a very large value), what happens to the sampling distribution across tasks?
proportion to the power of
If we set the temperature
Solution
When constructing training datasets for large language models (LLMs), which of the following best describes the key factors that must be balanced to achieve strong and reliable performance?
Solution
Which of the following are components found within a standard Transformer Encoder layer?
Solution
Select all correct statements regarding the comparison between RNNs and Transformers.
Solution
Select all correct findings from the T5 paper regarding Unsupervised Pre-training Objectives.
Solution
Consider the concept of Zero-Shot Transfer as popularized by GPT-2. Why might this be preferred over Supervised Fine-Tuning?
Solution
Inscript
Let
denote the activation of the
neuron for the
training sample.
In Layer Normalization, normalization is performed across features for each individual sample.
Let
be the number of neurons (features) in the hidden layer.
For a given sample, the layer normalization statistics are computed as:



where
is a small constant for numerical stability.

Layer Normalization is applied independently to each sample in the given data above.
For Sample 2, after applying Layer Normalization. What is the maximum value in the normalized output vector
?
(ignore the learnable parameters
and
, and assume
):
Let
In Layer Normalization, normalization is performed across features for each individual sample.
Let
For a given sample, the layer normalization statistics are computed as:
where
Layer Normalization is applied independently to each sample in the given data above.
For Sample 2, after applying Layer Normalization. What is the maximum value in the normalized output vector
(ignore the learnable parameters
Solution
Comprehension Passage
Consider a GPT model used for Causal Language Modelling.
We feed the input sentence:

Assume the context length is 7 (time steps t = 0 to t = 6).
The attention matrix computed in one attention layer is given below:

Based on the above data, answer the given subquestions.
We feed the input sentence:
Assume the context length is 7 (time steps t = 0 to t = 6).
The attention matrix computed in one attention layer is given below:
Based on the above data, answer the given subquestions.
Is the given attention matrix valid for a causal language modelling task?
Solution
Comprehension Passage
Consider a GPT model used for Causal Language Modelling.
We feed the input sentence:

Assume the context length is 7 (time steps t = 0 to t = 6).
The attention matrix computed in one attention layer is given below:

Based on the above data, answer the given subquestions.
We feed the input sentence:
Assume the context length is 7 (time steps t = 0 to t = 6).
The attention matrix computed in one attention layer is given below:
Based on the above data, answer the given subquestions.
Inscript
At time step t = 5 (word: data), what is the attention weight assigned to the word science? (Provide exact answer)
At time step t = 5 (word: data), what is the attention weight assigned to the word science? (Provide exact answer)
Solution
Comprehension Passage
Sentence Corpus:
"the key to artificial intelligence has always been the representation"
Pre-processing Instructions:
- Convert all text to lowercase.
- Append the end-of-word symbol
to every word (e.g., "the" becomes
).
- The Initial Vocabulary is defined as the set of all unique characters present in the corpus plus the
symbol.
Based on the above data, answer the given subquestions.
"the key to artificial intelligence has always been the representation"
Pre-processing Instructions:
- Convert all text to lowercase.
- Append the end-of-word symbol
- The Initial Vocabulary is defined as the set of all unique characters present in the corpus plus the
Based on the above data, answer the given subquestions.
Which of the following character pairs occurs with the highest frequency across the entire sentence before any BPE merges are performed?
Solution
Comprehension Passage
Sentence Corpus:
"the key to artificial intelligence has always been the representation"
Pre-processing Instructions:
- Convert all text to lowercase.
- Append the end-of-word symbol
to every word (e.g., "the" becomes
).
- The Initial Vocabulary is defined as the set of all unique characters present in the corpus plus the
symbol.
Based on the above data, answer the given subquestions.
"the key to artificial intelligence has always been the representation"
Pre-processing Instructions:
- Convert all text to lowercase.
- Append the end-of-word symbol
- The Initial Vocabulary is defined as the set of all unique characters present in the corpus plus the
Based on the above data, answer the given subquestions.
Inscript
Calculate the total vocabulary size immediately after the first merge operation is completed.
Note: The vocabulary size includes all individual base characters/symbols plus the newly created merge token.
Calculate the total vocabulary size immediately after the first merge operation is completed.
Note: The vocabulary size includes all individual base characters/symbols plus the newly created merge token.
Solution
Inscript
Consider a vocabulary
.
At a specific time step
, the model outputs the following probability distribution:

If we use Top-
sampling with
, what is the probability of selecting token B? (Calculate the re-normalized probability. Enter the value correct to 2 decimal places).
Consider a vocabulary
At a specific time step
If we use Top-
Solution
Inscript
Consider a small BERT-like model with the following configuration:
- Embedding dimension (
) = 128
- Vocabulary size (
) = 5000
- Maximum sequence length (
) = 64
- Number of segment types = 2
Calculate the total number of parameters in the Embedding Layer (sum of Token embeddings, Position embeddings, and Segment embeddings).
Enter the exact integer value.
Consider a small BERT-like model with the following configuration:
- Embedding dimension (
- Vocabulary size (
- Maximum sequence length (
- Number of segment types = 2
Calculate the total number of parameters in the Embedding Layer (sum of Token embeddings, Position embeddings, and Segment embeddings).
Enter the exact integer value.
Solution
What is a major disadvantage of character-level tokenization?
Solution
When using the SentencePiece, how are subword units selected?
Solution
To obtain high-quality training text from raw web data for large language models, which of the following mechanisms are typically included in the pre-processing pipeline?
Solution
Which of the following statements correctly explain the importance of deduplication during preprocessing of large-scale datasets used for training Deep Learning or Large Language Models?
Solution
Shape
Thickness [ / ]
3
All colors