Convolutional Neural Networks
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Why are CNNs better suited for image classification than MLPs?
Why are CNNs better suited for image classification than MLPs?
30 questions
- 1
Why are CNNs better suited for image classification than MLPs?
- A
CNNs are translation invariant and have fewer parameters.
- B
CNNs are faster to train due to parallel processing.
- C
CNNs can process images without any preprocessing.
- D
CNNs do not require activation functions.
Correct answer
ACNNs are translation invariant and have fewer parameters.
Explanation
CNNs are designed to be translation invariant (they detect features regardless of position) and use fewer parameters through weight sharing, reducing overfitting compared to fully connected MLPs.
- A
- 2
What happens to an MLP's performance if a digit is off-center in the image?
- A
The performance improves because the digit is easier to classify.
- B
The performance stays the same regardless of digit position.
- C
The performance degrades because MLPs are not translation invariant.
- D
The performance improves due to increased data variation.
Correct answer
CThe performance degrades because MLPs are not translation invariant.
Explanation
MLPs are not translation invariant; they react differently to features based on their position in the input, so off-center digits lead to less reliable predictions.
- A
- 3
How many parameters would a fully connected network have with a 224x224x3 input and three hidden layers of 128 neurons each?
- A
Approximately 22 million
- B
Over 300 billion
- C
Exactly 128,000
- D
Around 1.5 million
Correct answer
BOver 300 billion
Explanation
Flattening a 224x224x3 image gives 150,528 inputs. A fully connected layer to 128 neurons has 150,528 * 128 ≈ 19.3M parameters. Three such layers would have over 300 billion parameters (19.3M * 128 * 128...).
- A
- 4
What is a key reason MLPs are prone to overfitting on image data?
- A
They are too simple to model image patterns.
- B
They require small learning rates.
- C
Excessive number of parameters due to fully connected layers.
- D
They cannot learn complex features.
Correct answer
CExcessive number of parameters due to fully connected layers.
Explanation
The combination of large input size and fully connected layers results in an enormous number of parameters, making the network prone to overfitting if not enough data is available.
- A
- 5
What year was VGG-16 developed?
- A
2016
- B
2012
- C
2010
- D
2014
Correct answer
D2014
Explanation
VGG-16 was developed in 2014 and at that time achieved state-of-the-art performance comparable to human-level accuracy.
- A
- 6
What are the two main components of a CNN architecture?
- A
Convolutional layers and pooling layers
- B
Feature extractor and classifier
- C
Encoder and decoder
- D
Input and output layers
Correct answer
BFeature extractor and classifier
Explanation
A CNN consists of an upstream feature extractor (backbone) that learns features and a downstream classifier (head) that maps features to class probabilities.
- A
- 7
In VGG-16, how many convolutional blocks are used for feature extraction?
- A
Four
- B
Three
- C
Seven
- D
Five
Correct answer
DFive
Explanation
VGG-16 has five convolutional blocks, each typically containing multiple convolutional layers followed by a pooling layer.
- A
- 8
What is the input shape for VGG-16?
- A
256x256x3
- B
224x224x3
- C
224x224x1
- D
227x227x3
Correct answer
B224x224x3
Explanation
VGG-16 accepts color images of size 224x224 with three RGB channels.
- A
- 9
How does the data shape change as it flows through a CNN?
- A
Spatial dimensions decrease while depth increases.
- B
Spatial dimensions increase while depth decreases.
- C
Both spatial and depth dimensions decrease.
- D
Both spatial and depth dimensions increase.
Correct answer
ASpatial dimensions decrease while depth increases.
Explanation
CNNs intentionally reduce spatial dimensions (through pooling and strides) and increase depth (number of channels) through convolutional layers.
- A
- 10
What is a typical basic structure of a convolutional block?
- A
A single fully connected layer followed by dropout.
- B
Multiple pooling layers followed by a convolutional layer.
- C
A convolutional layer followed by a batch normalization layer only.
- D
One or more 2D convolutional layers followed by a pooling layer.
Correct answer
DOne or more 2D convolutional layers followed by a pooling layer.
Explanation
A convolutional block typically contains one or more convolutional layers and ends with a pooling layer to reduce spatial dimensions.
- A
- 11
In a convolutional layer, what is the function of a filter (kernel)?
- A
To apply a non-linear activation function.
- B
To store the class predictions.
- C
To detect specific features by performing a convolution operation.
- D
To reduce the spatial dimensions of the input.
Correct answer
CTo detect specific features by performing a convolution operation.
Explanation
Filters in convolutional layers slide over the input and perform convolution to detect features like edges, textures, etc.
- A
- 12
What is the depth requirement for a filter in a convolutional layer?
- A
It can be arbitrary as long as it is 3.
- B
It must match the depth of the input.
- C
It must be equal to the number of output channels.
- D
It must be 1 for grayscale images only.
Correct answer
BIt must match the depth of the input.
Explanation
For a convolution to be valid, the filter's depth must equal the input's depth (e.g., 3 for RGB, or the number of activation maps from the previous layer).
- A
- 13
What determines the number of activation maps produced by a convolutional layer?
- A
The stride of the convolution.
- B
The depth of the input.
- C
The spatial size of the input.
- D
The number of filters in the layer.
Correct answer
DThe number of filters in the layer.
Explanation
Each filter produces one activation map; thus, the number of filters equals the number of output activation maps.
- A
- 14
What happens to the spatial size of the output when a convolution is performed without padding?
- A
It becomes larger than the input.
- B
It remains the same as the input.
- C
It becomes smaller than the input.
- D
It depends on the activation function.
Correct answer
CIt becomes smaller than the input.
Explanation
Without padding, the filter cannot extend beyond the input boundaries, so the output spatial dimensions are reduced (e.g., 6x6 input with 3x3 filter gives 4x4 output with stride 1).
- A
- 15
In CNNs, how are the weights of a kernel determined?
- A
They are set to predefined values like Sobel filters.
- B
They are randomly initialized and never changed.
- C
They are learned during training via backpropagation.
- D
They are computed from the input image statistics.
Correct answer
CThey are learned during training via backpropagation.
Explanation
Unlike traditional image processing with fixed kernels, CNN kernels are trainable parameters that are optimized during training to extract useful features.
- A
- 16
What is the convolution operation at each filter location?
- A
The cross-correlation of the filter with the input.
- B
The element-wise multiplication followed by sum and bias addition.
- C
The dot product of the filter values and the corresponding input values.
- D
The maximum value in the receptive field.
Correct answer
CThe dot product of the filter values and the corresponding input values.
Explanation
The convolution operation computes the dot product (sum of element-wise multiplication) between the filter and the receptive field, often followed by a bias and activation.
- A
- 17
How many trainable parameters are in a single 3x3x3 filter (with bias) that processes a 3-channel input?
- A
9
- B
3
- C
27
- D
28
Correct answer
D28
Explanation
Each of the 3 kernels has 9 weights (3x3), total 27 weights, plus 1 bias, so 28 parameters.
- A
- 18
What is the role of the activation function after a convolution?
- A
To reduce the spatial dimensions.
- B
To introduce non-linearity into the network.
- C
To normalize the output values.
- D
To compute the gradient for backpropagation.
Correct answer
BTo introduce non-linearity into the network.
Explanation
Activation functions (e.g., ReLU) add non-linearity, enabling the network to learn complex patterns.
- A
- 19
What does a Sobel kernel detect in an image?
- A
Horizontal edges
- B
Color blobs
- C
Diagonal edges
- D
Vertical edges
Correct answer
DVertical edges
Explanation
The Sobel kernel shown in the video is used to detect vertical edges by emphasizing differences in horizontal pixel values.
- A
- 20
What is the purpose of using multiple filters in a convolutional layer?
- A
To detect different features from the same input.
- B
To reduce the number of parameters.
- C
To increase the depth of the input.
- D
To apply multiple activation functions.
Correct answer
ATo detect different features from the same input.
Explanation
Each filter learns to detect a distinct feature (e.g., different edge orientations), so multiple filters capture a variety of features.
- A
- 21
What is the most common type of pooling used in CNNs?
- A
Max pooling
- B
Min pooling
- C
Sum pooling
- D
Average pooling
Correct answer
AMax pooling
Explanation
Max pooling is the most common choice, as it selects the maximum value in each pooling window, preserving the strongest activations.
- A
- 22
What is the effect of a pooling layer on the number of parameters in the network?
- A
It does not affect the number of parameters.
- B
It reduces the number of parameters because it reduces the input size to later layers.
- C
It increases the number of parameters due to additional filter weights.
- D
It can either increase or decrease parameters depending on the type.
Correct answer
BIt reduces the number of parameters because it reduces the input size to later layers.
Explanation
Pooling reduces spatial dimensions, which decreases the number of parameters in subsequent layers because the input size is smaller.
- A
- 23
Do pooling layers have trainable parameters?
- A
Only average pooling has trainable parameters.
- B
Yes, they have learnable weights for the filter.
- C
No, they only have a fixed operation (e.g., max or average).
- D
They have a bias term that is learned.
Correct answer
CNo, they only have a fixed operation (e.g., max or average).
Explanation
Pooling layers use a fixed function (like max or average) over a window; there are no trainable parameters.
- A
- 24
With a 4x4 input slice, a 2x2 pooling filter, and a stride of 2, what is the output size?
- A
3x3
- B
2x2
- C
1x1
- D
4x4
Correct answer
B2x2
Explanation
With stride 2, the filter moves 2 pixels each time, covering the 4x4 input in 2x2 non-overlapping regions, yielding a 2x2 output.
- A
- 25
What is the main goal of hierarchical feature learning in CNNs?
- A
To reduce the number of filters in deeper layers.
- B
To combine low-level features (edges) into high-level features (objects) through successive layers.
- C
To ensure all features are learned in the first layer.
- D
To make the network deeper without increasing parameters.
Correct answer
BTo combine low-level features (edges) into high-level features (objects) through successive layers.
Explanation
CNNs build increasingly complex representations: early layers detect simple structures, and deeper layers combine them to recognize objects like car wheels.
- A
- 26
According to the 2013 visualization paper, what do filters in the first layer typically detect?
- A
Edges and color blobs
- B
Complex objects like faces
- C
High-level semantic features
- D
Texture patterns
Correct answer
AEdges and color blobs
Explanation
The paper showed that first-layer filters learn to detect basic structural elements such as edges and color blobs.
- A
- 27
In VGG-16, what is the shape of the activation maps before the classifier?
- A
7x7x512
- B
14x14x512
- C
28x28x512
- D
7x7x256
Correct answer
A7x7x512
Explanation
After the final convolutional block (Conv-5), the activation maps have spatial size 7x7 with 512 channels.
- A
- 28
Why must the activation maps be flattened before the fully connected layers?
- A
To preserve spatial relationships.
- B
To reduce the number of channels.
- C
To convert the 3D data into a 1D vector for dense layers.
- D
To apply pooling again.
Correct answer
CTo convert the 3D data into a 1D vector for dense layers.
Explanation
Fully connected layers require a 1D input vector, so the 3D activation maps (7x7x512) are flattened into a 1D vector (25,088 elements).
- A
- 29
How does the classifier in a CNN map features to class probabilities?
- A
By applying a global pooling operation.
- B
By directly comparing features to stored templates.
- C
By performing another set of convolutions on the features.
- D
By using learned weights to combine activations from the feature extractor and fire appropriate output neurons.
Correct answer
DBy using learned weights to combine activations from the feature extractor and fire appropriate output neurons.
Explanation
The flattened features are passed through fully connected layers with learned weights that activate specific output neurons corresponding to classes.
- A
- 30
What happens to the feature maps of different input images (e.g., car vs elephant) after passing through a trained CNN?
- A
They become identical because all weights are fixed.
- B
They are discarded before the classifier.
- C
They are averaged to produce a single vector.
- D
They become different, leading to different activations in the classifier.
Correct answer
DThey become different, leading to different activations in the classifier.
Explanation
Different images produce distinct feature maps, which, when combined with the fixed classifier weights, cause different output neurons to fire strongly, enabling classification.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.