100% Correct
Equivariance - ANSWER -If the input changes, the output changes in the same
way if f(g(x) =g(f(x). If the beak of a bird in a picture moves a bit, the output
values will move in the same way
change to input causes equal change to output
Invariance - ANSWER -If the input changes, the output stays the same. That is
f(g(x)) = f(x) E.g. rotating/scaling a number will still result in that number being
classified the same..
change to input does not affect output
Useful if we care more about if a feature is present than exactly where it is
saliency maps - ANSWER -Instead of using deconvnets, can, instead of taking the
error gradient wrt model parameters, take gradient of class score we're trying to
visualize wrt to the image itself (the input of the network)
gets the degree to which a pixel contributed to that class score
take absolute value of score because we care about degree, not direction
helps us understand why model gives response they did
Another method to make saliency maps: guided backpropagation algorithm
(combination of deconvnet and gradient of class score wrt input of network)
Sensitivity of loss to individual pixel changes , uses pre-softmax scores (gradient,
then absval, then sum across channels)
CAM = Class Activation Mapping - ANSWER -use Global Average Pooling layer
as final layer to average the activations of each feature map and run through
softmax loss layer to highlight the important regions of the image by projecting
back the weights of the output on the convolutional feature maps
Grad-CAM - ANSWER -more versatile version of CAM that can produce visual
explanations for any arbitrary CNN, even if the network contains a stack of fully
connected layers too
, let the gradients of any target concept score flow into the final convolutional layer;
then compute an importance score based on the gradients and produce a coarse
localization map highlighting the important regions in the image for predicting that
concept
What regions of image is model looking at to make prediction?
Which individual regions have highest class activation as you extract layer from
CNN? Direction/magnitude of gradients to determine which gradients are causing
the most updates to the NN
Objective: inspective given layer of CNN and correlate to output
Task specific (if asked what is a dog -> dog pixels are more important)
Adversarial examples - ANSWER -Inputs formed by applying small but
intentionally worst-case perturbations to examples from the dataset, such that the
perturbed input results in the model outputting an incorrect ANSWER with high
confidence.
Guided Backprop - ANSWER -Layer by layer (deconvolution is similar to
backprop)
From details to more abstracted representations
L1 Loss - ANSWER -Sum of Absolute Value of (true - predicted)
L2 Loss - ANSWER -Sum of Absolute Value of (true - predicted)^2
Mean Squared Error (MSE) - ANSWER -Average of (true - predicted)^2
Style Transfer - ANSWER -measure the difference in style between the
synthesized image and the style image
Sum of Gram matrix of each layer Stype vs prediction
Where G is the Gram matrix that abstracts the correlation between the layers
Content Loss - ANSWER -the difference in content features between the
synthesized image and the content image via the squared loss function
Binary Cross-Entropy Loss - ANSWER --1* log(prediction of true class)