LLM Midterm Quiz 3

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:37 AM on 10/6/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

We know query key and value concepts were borrowed from the domain of information retrieval and databases. Please match the respective concept.

query → store , value →retrieve, key→ search

2
New cards

while using softmax function if dim is set to -1 then it indicates that the normalization is applied along the 

last dimension

3
New cards

Which of the following are true w.r.t RNNs?


All of the above

4
New cards

Which of the following is accurate with respect to attention weights from a softmax function?

higher weights indicate greater importance 

5
New cards

Both weight parameters and attention weights represent the same entities in a neural network. T/F

False

6
New cards

During dropout, randomly selected ______ layer units are ignored 

hidden

7
New cards

Before applying the softmax function, mask the attention scores with 

negative infinity

8
New cards

Normalized attentions mean the attention weights in 

each row sum to 1

9
New cards

Which of the following represent the meaning of the dot product

quantifies how closely two vectors are aligned, measures similarity, higher dot product implies à greater degree of alignment, multiplying two vectors element-wise and then summing the products

10
New cards

Softmax takes attention scores and returns attention weights that are always positive t/f

True

11
New cards

Self-attention module allows each position in the input sequence to consider the relevancy of all other positions in the same sequence T/F

True

12
New cards

Masked self attention, also known as causal attention used in LLMs allows a model to only consider _____ and ____ tokens or input in a sequence during text generation.

previous and current

13
New cards

attention weights

normalized dot products between the inputs

14
New cards

attention score

dot products between the inputs

15
New cards

context vectors

weighted sum over the inputs

16
New cards

To avoid information leakage, the distribution of attention weights is calculated only among the unmasked positions

True

17
New cards

Large dot products can result in very ______ gradients during backpropagation

small