Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

DSBC - Attention Is All You Need

Total questions: 11

Worksheet time: 25mins

Name
Class
Date
1.

For what RNN is used and achieve the best results?

a)

Speech and image recognition

b)

Handwriting and image recognition

c)

Financial predictions

d)

Handwriting and speech recognition

2.

What is the basic concept of Recurrent Neural Network?

a)

Use recurrent features from dataset to find the best answers.

b)

Use a loop between inputs and outputs in order to achieve the better prediction.

c)

Use loops between the most important features to predict next output.

d)

Use previous inputs to find the next output according to the training set.

3.

What architecture represents many-to-many RNNs ?

a)
b)
c)
d)
4.

When RNN sequences are too long, what is most likely to happen ?

a)

the model is prone to ignoring the hidden states with the highest gradients.

b)

the model is prone to mixing the content of distant positions it with following positions’ content.

c)

the model is prone to overfitting easily as exploding gradients hinder efficient back-propagation.

d)

the model is prone to forgetting the content of distant positions in sequence.

5.

The multi-head attention block is fed three matrices named the Values (V), the Keys (K) and the Query (Q). Which of the following statements is correct ?

a)

V and K are outputted from the input embedding and Q from the output embedding.

b)

Q and K are outputted from the input embedding and V from the output embedding.

c)

V is outputted from the input embedding and K and Q from the output embedding.

d)

Q is outputted from the input embedding and K and V from the output embedding.

6.

The formula summarizing the multi-head attention operations is:

a)

Attention(Q, K, V) = softmax⁡(VKTdk) QAttention\left(Q,\ K,\ V\right)\ =\ soft\max\left(\frac{VK^T}{\sqrt[]{d_k}}\right)\ Q  

b)

Attention(Q, K, V) = softmax⁡(QKTdk) VAttention\left(Q,\ K,\ V\right)\ =\ soft\max\left(\frac{QK^T}{\sqrt[]{d_k}}\right)\ V  

c)

Attention(Q, K, V) = softmax⁡(QVTdk) KAttention\left(Q,\ K,\ V\right)\ =\ soft\max\left(\frac{QV^T}{\sqrt[]{d_k}}\right)\ K  

7.

The self-attention mechanism is permutation invariant.

a)

True

b)

False

8.

Select the false statement

a)

Every position should have the same identifier irrespectively of the sequence length.

b)

Positional encodings have the same dimension as the embeddings.

c)

There are many choices of positional encodings.

d)

Using sinusoidal functions for positional embeddings allow large displacements of positional similarity/dissimilarity.

9.

We can give the self attention greater power of discrimination, by combining several self attention heads.

a)

True

b)

False

10.

The attention mechanism contains considerably more weights than a classic RNN.

a)

True

b)

False

11.

For a computer vision problem, select the correct statement(s):

a)

Soft Attention is the global Attention where all image patches are given some weight.

b)

Hard Attention is the global Attention where all image patches are given some weight.

c)

In Soft Attention, only one image patch is considered at a time.

d)

In Hard Attention, only one image patch is considered at a time.