uiz Space

May 2026 term · Large Language Models · BSDA5004

Large Language Models Quiz 2: 16 August 2026 (May 2026 term)

The IIT Madras BS Large Language Models (LLM) Quiz 2 paper sat on 16 Aug 2026, in the May 2026 term: 18 questions for 50 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
18
Marks
50
Duration
120 min
Written
1
MCQ
12
MSQ
5

Updated

Official paper: Large Language Models 16 Aug 26 · No negative marking.

Question 1

+2 marksWritten answer

Answer the subquestions for the given transformer architecture for one (N = 1) Encoder Decoder Block

In the given Transformer architecture for one Encoder Decoder block, identify every Add & Norm layer. Submit the corresponding component alphabets in alphabetical (ascending) order as a single uppercase string without spaces, commas, or quotation marks. Example: If the correct components are Q, G, and S, your answer should be GQS Answers Case Sensitive : No

Show answer

Correct answer: FHMPR

Question 2

+1 markOne correct option

Answer the subquestions for the given transformer architecture for one (N = 1) Encoder Decoder Block

Identify the function of component "L" in the given Transformer architecture.

  1. A

    Positional Encoding

  2. B

    Feed-Forward Network

  3. C

    Masked Multi-Head Self-Attention

  4. D

    Multi-Head Cross-Attention

  5. E

    Linear Output Projection

Show answer

Correct answer

  • C

    Masked Multi-Head Self-Attention

Question 3

+2 marksOne or more correct options

Answer the subquestions for the given transformer architecture for one (N = 1) Encoder Decoder Block

Based on the architecture shown in the given image, identify all components that appear more than once. Assume the architecture contains exactly one Encoder block and one Decoder block.

Select all that apply.

  1. A

    Positional Encoding

  2. B

    Feed-Forward Network

  3. C

    Masked Multi-Head Self-Attention

  4. D

    Multi-Head Cross-Attention

  5. E

    tokenizer

  6. F

    Add & Norm

Show answer

Correct answers

  • A

    Positional Encoding

  • B

    Feed-Forward Network

  • F

    Add & Norm

Question 4

+3 marksOne or more correct options

Select all that apply.

  1. A

    The approach violates the autoregressive property

  2. B

    The approach ensures autoregressive property is not violated by ensuring that the final attention weights of future tokens are 0

  3. C

    The final attention weights in the new approach will be greater than or equal to that of the original approach

  4. D

    The attention weights for the final token of the sequence will always be the same for both the approaches

Show answer

Correct answers

  • A

    The approach violates the autoregressive property

  • D

    The attention weights for the final token of the sequence will always be the same for both the approaches

Question 5

+3 marksOne or more correct options

Which of the following options correctly reflect the internal state updates performed during a Byte Pair Encoding (BPE) training iteration?

Select all that apply.

  1. A

    After a pair is chosen for merging, it is permanently added to the active vocabulary list.

  2. B

    The algorithm recalculates the log probability of the entire corpus before the next iteration.

  3. C

    The independent frequencies of the two constituent tokens that were part of the merge are reduced by the frequency of the merged token.

  4. D

    The original constituent tokens of the merged pair are removed from the vocabulary to optimize dictionary size.

Show answer

Correct answers

  • A

    After a pair is chosen for merging, it is permanently added to the active vocabulary list.

  • C

    The independent frequencies of the two constituent tokens that were part of the merge are reduced by the frequency of the merged token.

Question 6

+3 marksOne or more correct options

A baseline T5 model with denoising objective on a span of corrupted tokens is used for unsupervised pre-training. Consider the phrase "life is like a box of chocolates". If the word "life" and the span "box of chocolates" are selected for corruption, which of the following statements correctly describe the training process?

Select all that apply.

  1. A

    The input sequence replaces the corrupted spans with unique sentinal tokens as: "<X> is like a <Y>".

  2. B

    The output sequence generated takes the form "<X> life <Y> box of chocolates <Z>", with the final sentinal token to indicate sequence completion.

  3. C

    The loss is calculated exclusively over the generated sentinal tokens and the missing text.

  4. D

    The decoder reconstructs the entire original sequence autoregressively to compute the total loss over all positions.

Show answer

Correct answers

  • A

    The input sequence replaces the corrupted spans with unique sentinal tokens as: "<X> is like a <Y>".

  • B

    The output sequence generated takes the form "<X> life <Y> box of chocolates <Z>", with the final sentinal token to indicate sequence completion.

  • C

    The loss is calculated exclusively over the generated sentinal tokens and the missing text.

Question 7

+3 marksOne correct option

During the fine-tuning of GPT-1 for Textual Entailment tasks, what is the purpose of the delimiter token ($)?

  1. A

    To trigger the softmax function.

  2. B

    To separate premise and hypothesis.

  3. C

    To mark the end of the sentence.

  4. D

    To initialize the linear head.

Show answer

Correct answer

  • B

    To separate premise and hypothesis.

Question 8

+3 marksOne correct option

During the fine-tuning of a decoder-only Transformer for sequence classification, why is the hidden representation of the final input token used as the input to the classification layer?

  1. A

    The first token's representation relies exclusively on absolute positional encodings and lacks semantic context for classification.

  2. B

    The final token's representation is computed independently of self-attention, making its gradients more stable during the fine-tuning process.

  3. C

    Selecting the final token aligns with the autoregressive objective, eliminating the need for teacher forcing during the classification forward pass.

  4. D

    Causal self-attention ensures that only the final token's representation aggregates information from all preceding tokens in the sequence.

Show answer

Correct answer

  • D

    Causal self-attention ensures that only the final token's representation aggregates information from all preceding tokens in the sequence.

Question 9

+3 marksOne correct option
  1. A

    Increases the required number of candidate tokens thus expanding the nucleus.

  2. B

    Decreases the required number of candidate tokens thus shrinking the nucleus.

  3. C
  4. D

    Size of the nucleus remains unaffected by the temperature scaling as it only depends on order of the tokens.

Show answer

Correct answer

  • A

    Increases the required number of candidate tokens thus expanding the nucleus.

Question 10

+3 marksOne correct option

In the WordPiece tokenization algorithm, how does the scoring formula prioritize token merges?

  1. A

    It evaluates the log-probability of the pair and selects the highest scoring transition.

  2. B

    It merges the pair with the highest absolute frequency in the corpus.

  3. C

    It prioritizes pairs that occur together frequently but rarely appear independently in the corpus.

  4. D

    None of these

Show answer

Correct answer

  • C

    It prioritizes pairs that occur together frequently but rarely appear independently in the corpus.

Question 11

+3 marksOne correct option

Consider the T5 "text-to-text" paradigm. How does the model process fundamentally different tasks such as Semantic Similarity (continuous regression) and Sentiment Analysis (discrete classification) during the fine-tuning phase?

  1. A

    The model uses the encoder to output the regression score and decoder for the classification tokens switching based on the input prompt.

  2. B

    The decoder part of the model is appended with separate prediction heads for regression and classification which are updated based on Mean Squared Error and Cross-Entropy respectively.

  3. C

    The model treats both tasks as sequence generation objectives with task- specific prefix added in the input and all output is generated as strings.

  4. D

    None of these.

Show answer

Correct answer

  • C

    The model treats both tasks as sequence generation objectives with task- specific prefix added in the input and all output is generated as strings.

Question 12

+3 marksOne correct option

In the context of the BART (Bidirectional AutoRegressive Transformer) architecture, how does the model handle corrupted input sequences compared to its output?

  1. A

    The decoder ignores the encoder output and performs standard causal language modeling.

  2. B

    The encoder processes the original sequence and the decoder predicts the corrupted tokens.

  3. C

    The encoder processes the corrupted sequence and the decoder predicts the entire original sequence.

  4. D

    Both the encoder and decoder process the corrupted sequence to calculate masked loss.

Show answer

Correct answer

  • C

    The encoder processes the corrupted sequence and the decoder predicts the entire original sequence.

Question 13

+3 marksOne correct option

When comparing the C4 dataset to an 'Unfiltered-C4' dataset that is 8 times larger, what was the observed effect on downstream task performance?

  1. A

    Performance remained identical, suggesting a saturation point in data utility.

  2. B

    Performance improved only for high-resource tasks like translation.

  3. C

    Performance improved significantly due to the increased diversity of data.

  4. D

    Performance degraded across all tasks despite the larger scale.

Show answer

Correct answer

  • D

    Performance degraded across all tasks despite the larger scale.

Question 14

+3 marksOne correct option

Which of the following describes the 'Adapter Layers' fine-tuning strategy?

  1. A

    Randomly freezing 50% of the attention heads in each layer during training.

  2. B

    Adding small dense-ReLU-dense blocks after FFN layers and updating only those and Layer Norm parameters.

  3. C

    Updating all parameters in the model but using a much smaller learning rate.

  4. D
Show answer

Correct answer

  • B

    Adding small dense-ReLU-dense blocks after FFN layers and updating only those and Layer Norm parameters.

Question 15

+3 marksOne correct option

Which of the following is a reported negative effect of including significantly duplicated content in LLM training data?

  1. A

    It decreases the model's overall inference speed during deployment.

  2. B

    It causes the model to generate repeated sequences much more frequently.

  3. C

    It permanently reduces the maximum supported context window length.

  4. D

    It causes the model to lose the ability to process multilingual input.

Show answer

Correct answer

  • B

    It causes the model to generate repeated sequences much more frequently.

Question 16

+3 marksOne correct option
  1. A

    The model will be over-trained and memorize the dataset.

  2. B

    The model will be under-trained and less capable than a smaller model trained on more data with the same compute budget.

  3. C

    The model will perfectly memorize the small dataset and generalize flawlessly.

  4. D

    The model's inference speed will increase dramatically.

Show answer

Correct answer

  • B

    The model will be under-trained and less capable than a smaller model trained on more data with the same compute budget.

Question 17

+3 marksOne or more correct options

Consider the following corpus consisting of 4 words (ignore spaces and punctuation). there is no spoon The vocabulary is constructed using the whole words in this corpus and the individual characters in this corpus. The vocabulary should now have 13 tokens. Use this vocabulary for the given subquestions.

Using the vocabulary constructed, two new continuous strings: "prison" and "rhino" are to be segmented. Which of the following proposed segmentations are valid?

Select all that apply.

  1. A

    prison

  2. B

    p, r, is, o, n

  3. C

    p, r, is, on

  4. D

    r, h, i, n, o

  5. E

    r, h, i, no

Show answer

Correct answers

  • B

    p, r, is, o, n

  • D

    r, h, i, n, o

  • E

    r, h, i, no

Question 18

+3 marksOne correct option

Consider the following corpus consisting of 4 words (ignore spaces and punctuation). there is no spoon The vocabulary is constructed using the whole words in this corpus and the individual characters in this corpus. The vocabulary should now have 13 tokens. Use this vocabulary for the given subquestions.

Using a unigram language model, identify the segment with the highest probability from the given options:

  1. A

    n, o, i, s, e, s

  2. B

    no, is, e, s

  3. C

    nois, e, s

  4. D

    no, i, s, e, s

Show answer

Correct answer

  • B

    no, is, e, s