1/123
Looks like no tags are added yet.
True or false: RNNs are designed to process parallel data by keeping information from previous time steps
false, RNNs are designed for seq data
True or false: CNNs mainly use convolutional filters to find spatial features such as edges, shapes and patterns.
true
True or false: Transformers require recurrent connections to process sequential information
false, they use self attention and process tokens in parallel
True or false: In RL, an agent learns by interacting with an environment and receiving rewards or penalties.
true
True or false: In RL, an agent learns by interacting with an environment and receiving rewards only.
false, receives penalties
True or false: Generative AI models can only create new text.
false
True or false: Agentic AI systems can independently plan and carry out multiple steps toward a goal using external tools.
true
True or false: AI ethics requires organizations to consider fairness, transparency and accountability when building AI systems.
true
Describe the role of convolutional layers in a CNN.
slides filters over image to detect features like edges and patterns
What is the key difference between value-based and policy-based RL?
value learns action values and picks best, policy learns policy directly
How do you build W_Q, W_K, W_V aren’t given, howw do you build them?
combo of rows of input embeddings
In self-attention, what does the Query represent?
what curr tokens looking for
In self-attention, what does the Key represent?
what each token shows that it has
In self-attention, what does the Value represent?
info passed forward if token is chosen
In the search analogy, the Query is like the
search phrase
In the search analogy, the Value is like the
content of doc you get back
How are Q, K and V produced from the input?
multiply token embeddings by 3 weight matrices
Are the Q, K and V weight matrices fixed or learned?
learned during training
In the input matrix X, what does each row hold?
one token embedding vector
What does the dot product of a query and a key measure?
how similar two tokens are
Why are attention scores divided by the square root of the key dimension?
to keep dot products from growing too big
What does softmax do to the attention scores?
turns them into weights that sum to 1
What is the last step of self-attention for one token?
take weighted sum of val vectors, result is tokens context vector
How does self-attention decide which tokens are important to a given token?
scores tokens query against every key and softmaxes scores
Why use multiple attention heads?
each head learns diff kind of relationship
What did the Transformer replace recurrence with?
self attention
Why do Transformers train faster than RNNs?
process all tokens of seq in parallel
Why does a Transformer need positional encoding?
self attention doesnt know token order
Why does the decoder use masked self-attention?
stop it from seeing future tokens
The hidden state at time t depends on the current input and
prev hidden state
How does an RNN handle sequential dependencies?
carries hidden state forward from each time step to next
What does parameter sharing mean in an RNN?
same weights are reused at every time step
What causes vanishing gradients in an RNN?
repeatedly multiplying factors smaller than 1
Which technique addresses exploding gradients by rescaling large gradients?
gradient clipping
What is the main fix for vanishing gradients in RNNs?
lstm/gru
Which LSTM gate decides what to remove from the cell state?
forget
Which LSTM gate decides what new information to write into memory?
input
Which LSTM gate decides how much memory to expose as the hidden state?
output
What is a feature map in a CNN?
output from sliding filter over input
The depth of a convolutional layer's output equals the number of
filters
What is a filter (kernel)?
small weight matrix that detects one feature
What is stride?
how many pixels filter moves each step
What happens to the output size when stride increases?
gets smaller
What is padding?
extra border pixels added around input
If an exam problem doesn't mention padding, assume it is
0
If an exam problem doesn't give the convolution stride, assume it is
1
What does ReLU do after convolution?
adds nonlinearity by setting neg vals to 0
What is the main purpose of a pooling layer?
shrinks spatial size of feature maps
Besides shrinking size, what else does pooling do?
keeps dominant features and makes them less sensitive to small shifts
Which pooling type returns the largest value in each window?
max
Which pooling type returns the mean of each window?
avg
Does pooling change the number of channels (depth)?
no
What does the flatten step do?
turns stacked feature maps into one long vector
What does the fully connected layer do in a CNN?
combines extracted features to make final prediction
Which method fits time-series sensor data such as vibration or temperature?
RNN like lstm/gru
Which method fits images, such as visual defect inspection?
CNN
Which method fits creating synthetic data when real data is scarce?
GenAI like GAN
Which method fits sequential decisions such as robot navigation or process control?
RL
Why pick an LSTM over a simple RNN for long sensor histories?
keeps long term info w/out vanishing gradients
In predictive maintenance, what is a typical RNN output?
predicted failure or remaining useful life
In predictive maintenance, what is a typical CNN input?
images of equipment
In predictive maintenance, what is a typical CNN output?
defect class
In an RL design, what is the input to the agent?
curr state like sensor readings
In an RL design, what is the output of the agent?
action chosen by policy
In an RL design, what must you define to train the agent?
reward signal
What engineering benefit comes from early failure prediction?
less unexpected downtime
What engineering benefit comes from automated visual inspection?
faster, more consistent maintenance and quality checks
What does a GAN generator start from?
random latent vector z
What does a GAN generator output?
synthetic sample like image
What does the discriminator output?
prob that input is real
What is the generator's goal?
make discriminators label sample as real
Is GAN training cooperative or adversarial?
adversarial
Are the generator and discriminator updated in the same gradient step?
no, updates alternate
During the discriminator step, what does the discriminator learn?
label real as real and generated as fake
During the discriminator step, which network is held fixed?
generator
During the generator step, which network's weights change?
generator
What is mode collapse?
generator produces only few kinds of samples
How does a WGAN critic's output differ from a standard GAN discriminator's?
outputs an unbounded score not a prob
What does a generative model learn?
how data is distributed
What is a VAE?
encoder decoder that learns a prob dist in latent space
Which VAE loss term makes the output match the input?
reconstruction loss
Which VAE loss term pulls the encoder distribution toward a prior such as a standard normal?
KL divergence
Why does a VAE use the reparameterization trick?
so gradients can flow thru random sampling step
What is CycleGAN used for?
translating images between 2 domains like horse to zebra
Does CycleGAN need paired training images?
no
What does cycle-consistency loss require?
translating A to B and back to A recovers original
What is the primary objective of an SVM?
find separating hyperplane w largest margin
What are support vectors?
training points closest to decision boundary
Why are support vectors important?
determines where boundary sits
What is the margin?
distance from hyperplane to nearest points of either class
What does a larger margin give?
better generalization to unseen data
What does C control in a soft-margin SVM?
tradeoff between wide margin and violations
What is the effect of a very large gamma?
narrow, flexible boundary that can overfit local noise
What is the effect of a small gamma?
broader, smoother boundary
What does the kernel trick do?
maps data into higher dimensional space w/out computing coords
When do you need a kernel?
data isnt linearly separable
What is the goal of reinforcement learning?
max expected long term reward
What is a policy?
rule for choosing action in each state
What is exploration?
trying unfamiliar actions to learn more
What is exploitation?
choose actions known to work well