uiz Space

September 2025 term · Large Language Models · BSDA5004

Large Language Models End Term: 21 December 2025, Set 1 (September 2025 term)

The IIT Madras BS Large Language Models (LLM) End Term paper sat on 21 Dec 2025, in the September 2025 term, set 1: 24 questions for 50 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
24
Marks
50
Duration
180 min
MCQ
16
Numerical
5
MSQ
3

Updated

Official paper: Large Language Models 21 Dec 25 · No negative marking.

Question 1

+1 markOne correct option

What happens when you use Batch Normalization with a batch size of 1?

  1. A

    It works perfectly fine

  2. B

    The statistics become meaningless (mean=0, std=0)

  3. C

    It automatically switches to Layer Normalization

  4. D

    It uses the running statistics from training

Show answer

Correct answer

  • B

    The statistics become meaningless (mean=0, std=0)

Question 2

+2 marksOne correct option

A language model outputs the following logits for the next token: {cat: 3.2, dog: 2.9, bird: 1.1, fish: 0.5, snake: -0.4} Before sampling, the decoding pipeline performs: • Temperature scaling with T = 2.0 • Top-K filtering with K = 3 After applying both steps, which tokens remain eligible for sampling?

  1. A

    Only ''cat''

  2. B

    'cat'' or ''dog''

  3. C

    'cat'', ''dog'' or ''bird''

  4. D

    'dog'', ''bird'' or ''fish''

Show answer

Correct answer

  • C

    'cat'', ''dog'' or ''bird''

Question 3

+2 marksOne correct option
  1. A

    Tokens A, B, C, D, E

  2. B

    Tokens A, B

  3. C

    Tokens A, B, C

  4. D

    Tokens A, B, C, D

  5. E

    Tokens A, B, D

Show answer

Correct answer

  • C

    Tokens A, B, C

Question 4

+2 marksOne correct option
  1. A
  2. B
  3. C

    Insufficient information to determine

Show answer

Correct answer

  • C

    Insufficient information to determine

Question 5

+2 marksOne correct option

A research team wants to classify scientific abstracts into multiple topics simultaneously (e.g., ''ML'', ''biology'', ''statistics''), where each abstract may belong to more than one topic. They fine-tune BERT for this task. Which modification is MOST appropriate?

  1. A

    Replace the [CLS] vector with an average of the top-4 attention heads

  2. B

    Feed the [CLS] embedding into a linear layer with a sigmoid activation per label

  3. C

    Use token embeddings individually and classify each token

  4. D

    Use the [SEP] token embedding for multi-label prediction

Show answer

Correct answer

  • B

    Feed the [CLS] embedding into a linear layer with a sigmoid activation per label

Question 6

+1 markOne correct option

A company wants to automatically correct noisy OCR text extracted from scanned documents. The text contains spelling mistakes, missing words, and scrambled phrases. Which model should they fine-tune?

  1. A

    BERT, because it masks tokens and predicts them independently

  2. B

    BART, because it is trained with text corruption and autoregressive reconstruction

  3. C

    GPT, because it is optimal for bidirectional correction

  4. D

    BERT, because [CLS] captures global structure

Show answer

Correct answer

  • B

    BART, because it is trained with text corruption and autoregressive reconstruction

Question 7

+1 markOne correct option
  1. A

    Computing the softmax for each row

  2. B
  3. C
  4. D

    Performing layer normalization

Show answer

Correct answer

  • B

Question 8

+1 markOne correct option

During autoregressive inference, key-value (KV) caching is used to avoid recomputing keys and values for previously generated tokens. If the KV cache is allowed to grow without any limit, which of the following failure modes can occur?

  1. A

    GPU memory exhaustion

  2. B

    Latency becoming quadratic in the output length

  3. C

    Inability to perform parallel token generation

  4. D

    Beam search collapsing to a single token

Show answer

Correct answer

  • A

    GPU memory exhaustion

Question 9

+2 marksOne correct option
  1. A
  2. B

    (A figure from the original paper is missing from the source site.)

  3. C
  4. D
Show answer

Correct answer

  • C

Question 10

+2 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 11

+2 marksOne correct option

If a model uses Absolute Positional Embeddings (APE), increasing the sequence length from 100 to 1000 requires:

  1. A

    No new parameters

  2. B

    900 additional positional embedding vectors

  3. C

    A new rotation matrix

  4. D

    A distance-based bias matrix

Show answer

Correct answer

  • B

    900 additional positional embedding vectors

Question 12

+3 marksOne correct option
  1. A

    3

  2. B

    5

  3. C

    6

  4. D

    7

Show answer

Correct answer

  • C

    6

Question 13

+3 marksOne correct option
  1. A

    APE = 10, RPE = 19, ALiBi = 0, NoPE = 0

  2. B

    APE = 10, RPE = 10, ALiBi = 19, NoPE = 0

  3. C

    APE = 20, RPE = 19, ALiBi = 1, NoPE = 1

  4. D

    APE = 10, RPE = 2T = 20, ALiBi = 10, NoPE = 0

Show answer

Correct answer

  • A

    APE = 10, RPE = 19, ALiBi = 0, NoPE = 0

Question 14

+2 marksOne correct option

Which of the following methods uses/use the concept: "The farther apart two tokens are, the less they should attend to each other''?

  1. A

    RoPE

  2. B

    APE

  3. C

    ALiBi

  4. D

    RPE

Show answer

Correct answer

  • C

    ALiBi

Question 15

+2 marksOne correct option

You trained a model with max sequence length 512. At inference, you need to process sequence length 4096 without retraining. Which positional encoding will perform best out-of-the-box?

  1. A

    APE

  2. B

    RPE

  3. C

    RoPE

  4. D

    ALiBi

Show answer

Correct answer

  • D

    ALiBi

Question 16

+2 marksOne correct option
  1. A

    7000

  2. B

    8000

  3. C

    Depends on the number of distances

  4. D

    0

Show answer

Correct answer

  • D

    0

Question 17

+3 marksNumerical answer
Show answer

Correct answer: 100000

Question 18

+2 marksNumerical answer
Show answer

Correct answer: 121

Question 19

+2 marksNumerical answer
Show answer

Correct answer: 30

Question 20

+2 marksNumerical answer
Show answer

Correct answer: 110592

Question 21

+3 marksNumerical answer
Show answer

Correct answer: 64

Question 22

+3 marksOne or more correct options

A GPT-style causal language model is trained using the next-token prediction objective:

During inference, the model must generate tokens autoregressively from left to right using only past context. Consider the following statements about GPT-style causal models.

Select all that apply.

  1. A
  2. B
  3. C

    Removing positional encodings would force GPT to treat all permutations of the same set of tokens as equivalent contexts

  4. D

    Causal masking ensures that the computational cost of training scales linearly with sequence length

Show answer

Correct answers

  • A
  • B
  • C

    Removing positional encodings would force GPT to treat all permutations of the same set of tokens as equivalent contexts

Question 23

+3 marksOne or more correct options

Under which of the following decoding settings can the model produce different outputs across multiple runs on the same prompt?

Select all that apply.

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

Correct answers

  • B
  • C

Question 24

+2 marksOne or more correct options

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • B
  • C