uiz Space

January 2025 term · Large Language Models · BSDA5004

Large Language Models Quiz 2: 16 March 2025 (January 2025 term)

The IIT Madras BS Large Language Models (LLM) Quiz 2 paper sat on 16 Mar 2025, in the January 2025 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
MCQ
5
MSQ
6
Numerical
6
Written
1

Updated

Official paper: IIT M DEGREE AN EXAM QDB2 16 Mar 2025 · No negative marking.

Question 1

+2 marksOne correct option

Consider following assertion and reason pair:
Assertion: A small vocabulary is desirable, as it reduces the size of the embedding matrix. Reason: Decreasing the size of the vocabulary increases the number of tokens in the input.

  1. A

    Assertion and Reason are both true and Reason is a correct explanation of Assertion.

  2. B

    Assertion and Reason are both true and Reason is not a correct explanation of Assertion.

  3. C

    Assertion is true but Reason is false.

  4. D

    Assertion is false but Reason is true.

Show answer

Correct answer

  • D

    Assertion is false but Reason is true.

Question 2

+2 marksOne correct option

Consider following statement and mark if it is true or false:
Repeating examples in the pre-training datasets are completely harmless for downstream performance.

  1. A

    TRUE

  2. B

    FALSE

Show answer

Correct answer

  • B

    FALSE

Question 3

+3 marksOne correct option

What is the order of the language modeling pipeline?

  1. A

    First, the model, which handles text and returns raw predictions. The tokenizer then makes sense of these predictions and converts them back to text when needed.

  2. B

    First, the tokenizer, which handles text and returns IDs. The model handles these IDs and outputs a prediction, which can be some text.

  3. C

    The tokenizer handles text and returns IDs. The model handles these IDs and outputs a prediction. The tokenizer can then be used once again to convert these predictions back to some text.

Show answer

Correct answer

  • C

    The tokenizer handles text and returns IDs. The model handles these IDs and outputs a prediction. The tokenizer can then be used once again to convert these predictions back to some text.

Question 4

+3 marksOne or more correct options

Consider fine-tuning the T5 model on a sentiment classification task. The T5 model was pre- trained using the C4 dataset. Suppose, in the original dataset, the positive samples are denoted by integer 2, neutral samples are denoted by integer 1 and the negative samples are denoted by integer 0. Choose the necessary modifications that one needs to perform to use the T5 model for fine-tuning:

Select all that apply.

  1. A

    Map the label 0 to “negative” and 1 to “positive” in the dataset

  2. B

    Map the label 0 to “negative”, 1 to “neutral” and 2 to “positive” in the dataset

  3. C

    Map the label 0 to “0”, 1 to “1” and 2 to “2” in the dataset

  4. D

    Update the vocabulary of T5 with the modified labels

  5. E

    Add at least one linear layer on top of the decoder for final classification

  6. F

    None of these.

Show answer

Correct answers

  • B

    Map the label 0 to “negative”, 1 to “neutral” and 2 to “positive” in the dataset

  • C

    Map the label 0 to “0”, 1 to “1” and 2 to “2” in the dataset

Question 5

+3 marksOne or more correct options

The strikeout words in the passage given below denote the words to be dropped from the original sentence.

“These models can't read your mind. If outputs are too long, ask for brief replies. If outputs are too simple, ask for expert-level writing. If you dislike the format, demonstrate the format you'd like to see. The less the model has to guess at what you want, the more likely you'll get it.”

Which of the following represents the correct input sequence, with sentinel tokens, to the baseline model that uses pre-training denoising objectives? [z] represents the end of the sentinel token in a sentence. The characters inside the square brackets are the sentinel tokens.

Select all that apply.

  1. A

    [a] your mind [b] ask for brief replies [c] demonstrate the format [d] less the model has to guess [e]

  2. B

    [a] your mind [b] ask for brief replies [c] demonstrate the format [d] less the model has to guess

  3. C

    [v] your mind [w] ask for brief replies [x] demonstrate the format [y] less the model has to guess

  4. D

    [v] your mind [w] ask for brief replies [x] demonstrate the format [y] less the model has to guess [z]

  5. E

    [a] your mind [b] demonstrate the format [c] ask for brief replies [d] less the model has to guess

  6. F

    None of these

Show answer

Correct answers

  • B

    [a] your mind [b] ask for brief replies [c] demonstrate the format [d] less the model has to guess

  • C

    [v] your mind [w] ask for brief replies [x] demonstrate the format [y] less the model has to guess

Question 6

+3 marksOne or more correct options

Suppose the T5 base model has to be fine tuned with gradual unfreezing. First layer of the encoder takes the input in appropriate format. Gradual unfreezing is divided in 12 (i.e. no. of layers) phases.
Choose the correct statements:

Select all that apply.

  1. A

    In the first phase, weights of only the last layer of encoder and decoder (both) are unfrozen.

  2. B

    In the first phase, weights of only the last layer of decoder only are unfrozen.

  3. C

    In the first phase, weights of only the last layer of encoder only are unfrozen.

  4. D

    In the second phase, weights of only the second last layer of encoder and decoder (both) are unfrozen.

  5. E

    In the second phase, weights of the last two layers of encoder and decoder (both) are unfrozen.

  6. F

    In the first phase, weights of only the first layer of encoder and decoder (both) are unfrozen.

Show answer

Correct answers

  • A

    In the first phase, weights of only the last layer of encoder and decoder (both) are unfrozen.

  • D

    In the second phase, weights of only the second last layer of encoder and decoder (both) are unfrozen.

Question 7

+3 marksOne or more correct options

Which of the following models uses a form of denoising objective for pre-training?

Select all that apply.

  1. A

    BERT

  2. B

    GPT 3

  3. C

    BART

  4. D

    T5

Show answer

Correct answers

  • A

    BERT

  • C

    BART

  • D

    T5

Question 8

+3 marksOne or more correct options

Consider the C4 pipeline. Which of the following will NOT pass through it as it is?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
  7. G
Show answer

Correct answers

  • A
  • B
  • C
  • D
  • E

Question 9

+3 marksOne or more correct options

Which of the following are correct about GPT-3 model with 175B parameters:

Select all that apply.

  1. A

    It is an encoder-decoder only model.

  2. B

    It uses absolute postional encoding.

  3. C

    It uses a composite dataset for pre-training.

  4. D

    None of these.

Show answer

Correct answers

  • B

    It uses absolute postional encoding.

  • C

    It uses a composite dataset for pre-training.

Question 10

+4 marksNumerical answer

Consider a vocabulary V\mathcal{V},

V=\mathcal{V} =([start], deep, hot, is, learning, research, topic, very, [end]).

Assume that the BART model is being trained using a denoising objective. Suppose the original sentence is “[start] deep learning is very hot research topic [end]” and the corrupted sentence is “[start] deep [mask] is [mask] very hot [mask] topic [end]”

The prediction probabilities outputted by the model are given below.

Y^=[0.10.170.110.120.080.170.150.220.280.070.190.090.120.180.020.030.010.240.130.210.180.170.090.210.040.160.040.160.120.070.060.150.120.20.0.180.110.150.170.150.070.120.240.020.190.120.050.020.070.070.150.150.250.030.040.040.120.060.090.060.050.030.190.020.050.070.180.020.220.030.240.13]\hat{Y} = \begin{bmatrix} 0.1 & 0.17 & 0.11 & 0.12 & 0.08 & 0.17 & 0.15 & 0.22 & 0.28 \\ 0.07 & 0.19 & 0.09 & 0.12 & 0.18 & 0.02 & 0.03 & 0.01 & 0.24 \\ 0.13 & 0.21 & 0.18 & 0.17 & 0.09 & 0.21 & 0.04 & 0.16 & 0.04 \\ 0.16 & 0.12 & 0.07 & 0.06 & 0.15 & 0.12 & 0.2 & 0. & 0.18 \\ 0.11 & 0.15 & 0.17 & 0.15 & 0.07 & 0.12 & 0.24 & 0.02 & 0.19 \\ 0.12 & 0.05 & 0.02 & 0.07 & 0.07 & 0.15 & 0.15 & 0.25 & 0.03 \\ 0.04 & 0.04 & 0.12 & 0.06 & 0.09 & 0.06 & 0.05 & 0.03 & 0.19 \\ 0.02 & 0.05 & 0.07 & 0.18 & 0.02 & 0.22 & 0.03 & 0.24 & 0.13 \end{bmatrix}

The zeroth row of the matrix is the output probability distribution by the model given the special [Start] token as input. Following the Greedy Search decoding strategy, the subsequent rows give the conditional probability distribution conditioned over the previous tokens. What is the loss value?

Show answer

Correct answer: 1.95 (accepted within ±0.05)

Question 11

+3 marksNumerical answer
Show answer

Correct answer: 2115

Question 12

+2 marksNumerical answer

Consider the following dictionary with the number of word occurrences in a corpus:

python
wo = { "taught" : 2,
"laughter" : 1,
"drought" : 4,
"tough" : 5}

Note: Append </w> to each word at the end.

You will be working with BPE algorithm, answer the given subquestions in that context:

How many tokens are there in the initial vocabulary?

Show answer

Correct answer: 11

Question 13

+3 marksOne correct option

Consider the following dictionary with the number of word occurrences in a corpus:

python
wo = { "taught" : 2,
"laughter" : 1,
"drought" : 4,
"tough" : 5}

Note: Append </w> to each word at the end.

You will be working with BPE algorithm, answer the given subquestions in that context:

Which of the following pairs has the highest frequency before any merge?

  1. A

    (‘u’, ‘g’)

  2. B

    (‘a’, ‘u’)

  3. C

    (‘g’, ‘h’)

  4. D

    (‘h’, ‘t’)

  5. E

    (‘w’, ‘e’)

  6. F

    None of these.

Show answer

Correct answer

  • A

    (‘u’, ‘g’)

Question 14

+2 marksNumerical answer

Consider the following dictionary with the number of word occurrences in a corpus:

python
wo = { "taught" : 2,
"laughter" : 1,
"drought" : 4,
"tough" : 5}

Note: Append </w> to each word at the end.

You will be working with BPE algorithm, answer the given subquestions in that context:

What is the frequency of the pair merged in the very first merge?

Show answer

Correct answer: 12

Question 15

+3 marksNumerical answer

Consider the following dictionary with the number of word occurrences in a corpus:

python
wo = { "taught" : 2,
"laughter" : 1,
"drought" : 4,
"tough" : 5}

Note: Append </w> to each word at the end.

You will be working with BPE algorithm, answer the given subquestions in that context:

What is the minimum number of merges, after which there is a token with exactly 3 English letters?

Show answer

Correct answer: 2

Question 16

+3 marksWritten answer

Consider the following dictionary with the number of word occurrences in a corpus:

python
wo = { "taught" : 2,
"laughter" : 1,
"drought" : 4,
"tough" : 5}

Note: Append </w> to each word at the end.

You will be working with BPE algorithm, answer the given subquestions in that context:

Which pair will be merged in the third merge? Say the pair is (‘ab’,‘c’), then enter “abc” (without quotes and white spaces). If there is a tie between two or more candidates, pick the one that occurs first in the original vocabulary.
NOTE: Enter the exact answer without any extra space in the beginning or at the end.

Show answer

Correct answer: ough

Question 17

+2 marksNumerical answer

Consider the following dictionary with the number of word occurrences in a corpus:

python
wo = { "taught" : 2,
"laughter" : 1,
"drought" : 4,
"tough" : 5}

Note: Append </w> to each word at the end.

You will be working with BPE algorithm, answer the given subquestions in that context:

Assume that the process is stopped after 4 merges. How many tokens from the initial vocabulary will have their frequency revised/reduced to 0?

Show answer

Correct answer: 6

Question 18

+3 marksOne correct option

Consider the following dictionary with the number of word occurrences in a corpus:

python
wo = { "taught" : 2,
"laughter" : 1,
"drought" : 4,
"tough" : 5}

Note: Append </w> to each word at the end.

You will be working with BPE algorithm, answer the given subquestions in that context:

  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
Show answer

Correct answer

  • A