MauryaHub PYQ Practice

Large Language Models · Quiz 2 · Jan 2026

Large Language Models · Quiz 2 · Jan 2026

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 21 published solutions

Question 2 MCQ · 2.0 marks

In the context of Multi-Head Attention, if the model dimension
Source diagram or notation
and we employ
Source diagram or notation
heads, what is the dimension of the concatenated output of the 8 heads before it is passed through the final linear output projection
Source diagram or notation
?
6406536642412.Source diagram or notation
6406536642413.Source diagram or notation
6406536642414.Source diagram or notation
6406536642415.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 MCQ · 2.0 marks

In the Masked Language Modeling (MLM) objective of BERT, 15% of tokens are chosen for prediction. Of these chosen tokens, 80% are replaced with
Source diagram or notation
, 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**?
6406536642429.
To reduce the computational cost of the softmax layer during training.
6406536642430.
To prevent the network from overfitting to the
Source diagram or notation
token.
6406536642431.
To mitigate the mismatch between pre-training (where
Source diagram or notation
appears) and fine-tuning (where
Source diagram or notation
does not appear), ensuring the model creates meaningful representations for non-masked words.
6406536642432.
To act as a regularizer similar to Dropout.

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 MCQ · 2.0 marks

Why is the standard GPT architecture (Decoder-only with causal masking) generally **unsuitable** for the Masked Language Modeling (MLM) objective as implemented in BERT?
6406536642433.
GPT models are too small to learn bidirectional contexts.
6406536642434.
The causal mask in GPT prevents the model from attending to future tokens, making it impossible to use right-side context to predict a masked token.
6406536642435.
GPT does not have positional embeddings, which are required for MLM.
6406536642436.
GPT uses ReLU activation, while BERT uses GELU, which is required for MLM.

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 2.0 marks

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?
6406536642452.
It outputs a single scalar value from a regression head on top of the encoder.
6406536642453.
It generates the string "3.8" token-by-token using the decoder.
6406536642454.
It outputs a class label corresponding to a bucketed score range (e.g., "High Similarity").
6406536642455.
T5 cannot be used for regression tasks like STS-B.

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 2.0 marks

When using **Temperature Sampling** to mix datasets from different tasks during multi-task pre- training, let
Source diagram or notation
be the probability of sampling a task
Source diagram or notation
. The formula involves raising the proportion to the power of
Source diagram or notation
. If we set the temperature
Source diagram or notation
(a very large value), what happens to the sampling distribution across tasks?
6406536642456.
The model trains almost exclusively on the largest dataset (highest resource task).
6406536642457.
The sampling distribution approaches a uniform distribution, where all tasks (large and small) are sampled with nearly equal probability.
6406536642458.
The model trains almost exclusively on the smallest dataset (lowest resource task).
6406536642459.
The sampling distribution remains proportional to the original dataset sizes.

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 MCQ · 2.0 marks

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?
6406536642468.
Model depth, number of parameters, and learning rate
6406536642469.
Scale, diversity, and quality of the training data
6406536642470.
Vocabulary size, tokenization method, and batch size
6406536642471.
Compute budget, optimizer choice, and hardware efficiency

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 MSQ · 3.0 marks

Which of the following are components found within a standard Transformer **Encoder** layer?
6406536642416.
Multi-Head Self-Attention mechanism
6406536642417.
Position-wise Feed-Forward Networks
6406536642418.
Cross-Attention mechanism (Encoder-Decoder attention)
6406536642419.
Masked Multi-Head Self-Attention

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MSQ · 3.0 marks

Select all correct statements regarding the comparison between RNNs and Transformers.
6406536642420.
In Transformers, the path length between any two positions in the sequence is constant
Source diagram or notation
, whereas in RNNs it is
Source diagram or notation
(where
Source diagram or notation
is the sequence length).
6406536642421.
Transformers process tokens strictly sequentially during training in the same way as RNNs.
6406536642422.
Transformers allow for significantly more parallelization during training compared to RNNs.
6406536642423.
Attention mechanisms in Transformers utilize Query, Key, and Value vectors derived from input embeddings.

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MSQ · 3.0 marks

Select all correct findings from the T5 paper regarding **Unsupervised Pre-training Objectives**.
6406536642460.
The specific corruption rate (e.g., 10%, 15%, 25%) had a minimal effect on downstream performance.
6406536642461.
Using a span length of around 3 tokens performed slightly better than masking single tokens.
6406536642462.
The "Deshuffling" objective (reordering shuffled sentences) significantly outperformed the Span Corruption objective.
6406536642463.
Replacing a corrupted span with a unique sentinel token worked better than simply dropping the tokens from the input.

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 3.0 marks

Consider the concept of **Zero-Shot Transfer** as popularized by GPT-2. Why might this be preferred over Supervised Fine-Tuning?
6406536642464.
It allows the model to handle tasks for which no labeled training data is available.
6406536642465.
It always achieves higher accuracy than a fine-tuned SOTA model.
6406536642466.
It avoids the need to store a separate specialized model (checkpoint) for every downstream task.
6406536642467.
It mimics the human ability to perform tasks based on instructions without needing thousands of examples.

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 NAT · 2.0 marks

Let
Source diagram or notation
denote the activation of the
Source diagram or notation
neuron for the
Source diagram or notation
training sample. In **Layer Normalization**, normalization is performed **across features for each individual** **sample**. Let
Source diagram or notation
be the number of neurons (features) in the hidden layer. For a given sample, the layer normalization statistics are computed as:
Source diagram or notation
Source diagram or notation
Source diagram or notation
where
Source diagram or notation
is a small constant for numerical stability.
Source diagram or notation
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**
Source diagram or notation
**?** (ignore the learnable parameters
Source diagram or notation
and
Source diagram or notation
, and assume
Source diagram or notation
):

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 MCQ · 2.0 marks

Consider a GPT model used for **Causal Language Modelling**. We feed the input sentence:
Source diagram or notation
Assume the context length is 7 (time steps t = 0 to t = 6). The attention matrix computed in one attention layer is given below:
Source diagram or notation
Based on the above data, answer the given subquestions.
Is the given attention matrix valid for a causal language modelling task?
6406536642425.
True
6406536642426.
False
6406536642427.
Insufficient information

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 NAT · 2.0 marks

Consider a GPT model used for **Causal Language Modelling**. We feed the input sentence:
Source diagram or notation
Assume the context length is 7 (time steps t = 0 to t = 6). The attention matrix computed in one attention layer is given below:
Source diagram or notation
Based on the above data, answer the given subquestions.
At time step t = 5 (word: data), what is the attention weight assigned to the word science? (Provide exact answer)

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 MCQ · 2.0 marks

**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
Source diagram or notation
to every word (e.g., "the" becomes
Source diagram or notation
). • The **Initial Vocabulary** is defined as the set of all unique characters present in the corpus plus the
Source diagram or notation
symbol. 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?
6406536642443.Source diagram or notation
6406536642444.Source diagram or notation
6406536642445.Source diagram or notation
6406536642446.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 NAT · 2.0 marks

**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
Source diagram or notation
to every word (e.g., "the" becomes
Source diagram or notation
). • The **Initial Vocabulary** is defined as the set of all unique characters present in the corpus plus the
Source diagram or notation
symbol. Based on the above data, answer the given subquestions.
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.

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 NAT · 3.0 marks

Consider a vocabulary
Source diagram or notation
. At a specific time step
Source diagram or notation
, the model outputs the following probability distribution:
Source diagram or notation
If we use **Top-**
Source diagram or notation
**sampling with**
Source diagram or notation
, what is the probability of selecting token **B**? (Calculate the re-normalized probability. Enter the value correct to 2 decimal places).

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 NAT · 3.0 marks

Consider a small BERT-like model with the following configuration: • Embedding dimension (
Source diagram or notation
) = 128 • Vocabulary size (
Source diagram or notation
) = 5000 • Maximum sequence length (
Source diagram or notation
) = 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.

A published solution is not available for this question yet.

Report a correction for Q18

Question 19 MCQ · 3.0 marks

What is a major disadvantage of character-level tokenization?
6406536642439.
Character-level tokenization cannot represent punctuation marks or special symbols
6406536642440.
It has very large vocabulary size because each word is broken into multiple characters
6406536642441.
It produces much longer input sequences which increases computational cost.
6406536642442.
It fails to capture morphological patterns such as prefixes and suffixes, reducing the model's ability to understand word structure

A published solution is not available for this question yet.

Report a correction for Q19

Question 20 MCQ · 3.0 marks

When using the SentencePiece, how are subword units selected?
6406536642448.
Based on a probabilistic model that maximizes the likelihood of the training data.
6406536642449.
By randomly selecting character n-grams until the vocabulary limit is reached.
6406536642450.
By selecting only the top 50,000 most frequent words in the corpus.
6406536642451.
By iteratively merging the most frequent pair of adjacent characters.

A published solution is not available for this question yet.

Report a correction for Q20

Question 21 MSQ · 2.0 marks

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?
6406536642472.
Tokenizing text into subword units using Byte Pair Encoding (BPE)
6406536642473.
Deduplicating content at line, paragraph, and document levels
6406536642474.
Detecting and filtering toxic content such as hate speech and profanity
6406536642475.
Identifying the language of web pages
6406536642476.
Assessing the quality of content to remove low-value or spam text
6406536642477.
Detecting and removing Personally Identifiable Information (PII)
6406536642478.
Fine-tuning the model using reinforcement learning from human feedback (RLHF)

A published solution is not available for this question yet.

Report a correction for Q21

Question 22 MSQ · 2.0 marks

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?
6406536642479.
Deduplication reduces the risk of overfitting by preventing repeated samples from dominating the gradient updates.
6406536642480.
Deduplication guarantees that the trained model will achieve higher accuracy on all downstream tasks.
6406536642481.
Deduplication helps avoid data leakage between training and evaluation sets, leading to more reliable performance metrics.
6406536642482.
Deduplication eliminates the need for regularization techniques such as dropout and weight decay.

A published solution is not available for this question yet.

Report a correction for Q22