NN Exam 2

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

1/123

encourage image

There's no tags or description

Looks like no tags are added yet.

124 Terms

1
New cards

True or false: RNNs are designed to process parallel data by keeping information from previous time steps

false, RNNs are designed for seq data

2
New cards

True or false: CNNs mainly use convolutional filters to find spatial features such as edges, shapes and patterns.

true

3
New cards

True or false: Transformers require recurrent connections to process sequential information

false, they use self attention and process tokens in parallel

4
New cards

True or false: In RL, an agent learns by interacting with an environment and receiving rewards or penalties.

true

5
New cards

True or false: In RL, an agent learns by interacting with an environment and receiving rewards only.

false, receives penalties

6
New cards

True or false: Generative AI models can only create new text.

false

7
New cards

True or false: Agentic AI systems can independently plan and carry out multiple steps toward a goal using external tools.

true

8
New cards

True or false: AI ethics requires organizations to consider fairness, transparency and accountability when building AI systems.

true

9
New cards

Describe the role of convolutional layers in a CNN.

slides filters over image to detect features like edges and patterns

10
New cards

What is the key difference between value-based and policy-based RL?

value learns action values and picks best, policy learns policy directly

11
New cards

How do you build W_Q, W_K, W_V aren’t given, howw do you build them?

combo of rows of input embeddings

12
New cards

In self-attention, what does the Query represent?

what curr tokens looking for

13
New cards

In self-attention, what does the Key represent?

what each token shows that it has

14
New cards

In self-attention, what does the Value represent?

info passed forward if token is chosen

15
New cards

In the search analogy, the Query is like the

search phrase

16
New cards

In the search analogy, the Value is like the

content of doc you get back

17
New cards

How are Q, K and V produced from the input?

multiply token embeddings by 3 weight matrices

18
New cards

Are the Q, K and V weight matrices fixed or learned?

learned during training

19
New cards

In the input matrix X, what does each row hold?

one token embedding vector

20
New cards

What does the dot product of a query and a key measure?

how similar two tokens are

21
New cards

Why are attention scores divided by the square root of the key dimension?

to keep dot products from growing too big

22
New cards

What does softmax do to the attention scores?

turns them into weights that sum to 1

23
New cards

What is the last step of self-attention for one token?

take weighted sum of val vectors, result is tokens context vector

24
New cards

How does self-attention decide which tokens are important to a given token?

scores tokens query against every key and softmaxes scores

25
New cards

Why use multiple attention heads?

each head learns diff kind of relationship

26
New cards

What did the Transformer replace recurrence with?

self attention

27
New cards

Why do Transformers train faster than RNNs?

process all tokens of seq in parallel

28
New cards

Why does a Transformer need positional encoding?

self attention doesnt know token order

29
New cards

Why does the decoder use masked self-attention?

stop it from seeing future tokens

30
New cards

The hidden state at time t depends on the current input and

prev hidden state

31
New cards

How does an RNN handle sequential dependencies?

carries hidden state forward from each time step to next

32
New cards

What does parameter sharing mean in an RNN?

same weights are reused at every time step

33
New cards

What causes vanishing gradients in an RNN?

repeatedly multiplying factors smaller than 1

34
New cards

Which technique addresses exploding gradients by rescaling large gradients?

gradient clipping

35
New cards

What is the main fix for vanishing gradients in RNNs?

lstm/gru

36
New cards

Which LSTM gate decides what to remove from the cell state?

forget

37
New cards

Which LSTM gate decides what new information to write into memory?

input

38
New cards

Which LSTM gate decides how much memory to expose as the hidden state?

output

39
New cards

What is a feature map in a CNN?

output from sliding filter over input

40
New cards

The depth of a convolutional layer's output equals the number of

filters

41
New cards

What is a filter (kernel)?

small weight matrix that detects one feature

42
New cards

What is stride?

how many pixels filter moves each step

43
New cards

What happens to the output size when stride increases?

gets smaller

44
New cards

What is padding?

extra border pixels added around input

45
New cards

If an exam problem doesn't mention padding, assume it is

0

46
New cards

If an exam problem doesn't give the convolution stride, assume it is

1

47
New cards

What does ReLU do after convolution?

adds nonlinearity by setting neg vals to 0

48
New cards

What is the main purpose of a pooling layer?

shrinks spatial size of feature maps

49
New cards

Besides shrinking size, what else does pooling do?

keeps dominant features and makes them less sensitive to small shifts

50
New cards

Which pooling type returns the largest value in each window?

max

51
New cards

Which pooling type returns the mean of each window?

avg

52
New cards

Does pooling change the number of channels (depth)?

no

53
New cards

What does the flatten step do?

turns stacked feature maps into one long vector

54
New cards

What does the fully connected layer do in a CNN?

combines extracted features to make final prediction

55
New cards

Which method fits time-series sensor data such as vibration or temperature?

RNN like lstm/gru

56
New cards

Which method fits images, such as visual defect inspection?

CNN

57
New cards

Which method fits creating synthetic data when real data is scarce?

GenAI like GAN

58
New cards

Which method fits sequential decisions such as robot navigation or process control?

RL

59
New cards

Why pick an LSTM over a simple RNN for long sensor histories?

keeps long term info w/out vanishing gradients

60
New cards

In predictive maintenance, what is a typical RNN output?

predicted failure or remaining useful life

61
New cards

In predictive maintenance, what is a typical CNN input?

images of equipment

62
New cards

In predictive maintenance, what is a typical CNN output?

defect class

63
New cards

In an RL design, what is the input to the agent?

curr state like sensor readings

64
New cards

In an RL design, what is the output of the agent?

action chosen by policy

65
New cards

In an RL design, what must you define to train the agent?

reward signal

66
New cards

What engineering benefit comes from early failure prediction?

less unexpected downtime

67
New cards

What engineering benefit comes from automated visual inspection?

faster, more consistent maintenance and quality checks

68
New cards

What does a GAN generator start from?

random latent vector z

69
New cards

What does a GAN generator output?

synthetic sample like image

70
New cards

What does the discriminator output?

prob that input is real

71
New cards

What is the generator's goal?

make discriminators label sample as real

72
New cards

Is GAN training cooperative or adversarial?

adversarial

73
New cards

Are the generator and discriminator updated in the same gradient step?

no, updates alternate

74
New cards

During the discriminator step, what does the discriminator learn?

label real as real and generated as fake

75
New cards

During the discriminator step, which network is held fixed?

generator

76
New cards

During the generator step, which network's weights change?

generator

77
New cards

What is mode collapse?

generator produces only few kinds of samples

78
New cards

How does a WGAN critic's output differ from a standard GAN discriminator's?

outputs an unbounded score not a prob

79
New cards

What does a generative model learn?

how data is distributed

80
New cards

What is a VAE?

encoder decoder that learns a prob dist in latent space

81
New cards

Which VAE loss term makes the output match the input?

reconstruction loss

82
New cards

Which VAE loss term pulls the encoder distribution toward a prior such as a standard normal?

KL divergence

83
New cards

Why does a VAE use the reparameterization trick?

so gradients can flow thru random sampling step

84
New cards

What is CycleGAN used for?

translating images between 2 domains like horse to zebra

85
New cards

Does CycleGAN need paired training images?

no

86
New cards

What does cycle-consistency loss require?

translating A to B and back to A recovers original

87
New cards

What is the primary objective of an SVM?

find separating hyperplane w largest margin

88
New cards

What are support vectors?

training points closest to decision boundary

89
New cards

Why are support vectors important?

determines where boundary sits

90
New cards

What is the margin?

distance from hyperplane to nearest points of either class

91
New cards

What does a larger margin give?

better generalization to unseen data

92
New cards

What does C control in a soft-margin SVM?

tradeoff between wide margin and violations

93
New cards

What is the effect of a very large gamma?

narrow, flexible boundary that can overfit local noise

94
New cards

What is the effect of a small gamma?

broader, smoother boundary

95
New cards

What does the kernel trick do?

maps data into higher dimensional space w/out computing coords

96
New cards

When do you need a kernel?

data isnt linearly separable

97
New cards

What is the goal of reinforcement learning?

max expected long term reward

98
New cards

What is a policy?

rule for choosing action in each state

99
New cards

What is exploration?

trying unfamiliar actions to learn more

100
New cards

What is exploitation?

choose actions known to work well