Quiz Space

LLM End Term: 22 December 2024, Set QDB1 (September 2024 term)

Question 1

+3 marksNumerical answer

The input embeddings for the words “learning”, “brings” and “joy” are h1=[0.5,0.25,1]h_1 = [0.5, 0.25, 1], h2=[0.1,0.25,0]h_2 = [0.1, 0.25, 0], and h3=[0.1,0.1,0.9]h_3 = [0.1, 0.1, 0.9], respectively. Note that the embeddings are row vectors. The projection matrices are as follows

WQ=[11−1101]WK=[011001]WV=[00−1−111]W_Q = \begin{bmatrix} 1 & 1 \\ -1 & 1 \\ 0 & 1 \end{bmatrix} \quad W_K = \begin{bmatrix} 0 & 1 \\ 1 & 0 \\ 0 & 1 \end{bmatrix} \quad W_V = \begin{bmatrix} 0 & 0 \\ -1 & -1 \\ 1 & 1 \end{bmatrix}

The following quantities are computed as

Q=HWQK=HWKV=HWVQ = HW_Q \quad K = HW_K \quad V = HW_V

Let eje_j denote the unnormalized attention score, aja_j denote the normalized attention score (ignore the scaling by dk\sqrt{d_k}) and zjz_j denote the linear combination of the value vectors for the j−thj - th word.

Enter the value of the first element, i.e., with index (0,0) of the matrix containing the partial derivatives, ∂a3∂e3\frac{\partial a_3}{\partial e_3}.

Question 2

+2 marksOne or more correct options

Choose the correct statements regarding an encoder-decoder transformer model:

Select all that apply.

  1. A

    A self attention block makes use of a mask matrix.

  2. B

    Multi head self attention block is part of the encoder.

  3. C

    Teacher forcing can help speed up the training process for tasks such as machine translation.

  4. D

    None of these.

Question 3

+2 marksOne or more correct options

Consider the following statements about increasing the size of the vocabulary

Select all that apply.

  1. A

    It reduces number of tokens required to represent a sentence

  2. B

    It Increases the computational complexity as embedding matrix size increases

  3. C

    It increases the context length T

  4. D

    None of these

18 more questions in this paper

Sign in with Google — it is free — to see every question with its answer and explanation, practise it in learning mode, or take it as a timed mock test.

More on the LLM End Term 22 Dec 2024 Set QDB1 paper

The IIT Madras BS Large Language Models (LLM) End Term paper sat on 22 Dec 2024, in the September 2024 term, set QDB1: 21 questions for 50 marks in 180 minutes. The first 3 questions are below. Sign in with Google — it is free — to see the whole paper with its answers and explanations, in learning mode or as a timed mock test.

FeatureLLM End Term 22 Dec 2024 Set QDB1 at a glance
TermSeptember 2024 term
SubjectLarge Language Models
Course codeBSDA5004
Questions21
Marks50
Duration180 min
Numerical6
MSQ6
MCQ8
Written1
Official paperIIT M DEGREE AN EXAM QDB4 22 Dec 2024
Negative markingNo negative marking.
Updated

Other sets that day

Same End Term, other subjects

More LLM